Feature Request: Dynamic Tool/Skill Loading (Tool Search Tool pattern)
Status Closed — duplicate
Maintainer reply None cached
Activity 3 comments · opened Feb 10, 2026 · closed Feb 14, 2026
Summary
Request for dynamic skill loading to reduce context token usage.
Problem
Currently, all configured skills are loaded into the system prompt on every request (~3-5K tokens for 20+ skills). This is wasteful when most requests only need 1-2 skills.
Proposed Solution
Implement a "Tool Search Tool" pattern:
- Index skills semantically - Create embeddings of skill descriptions
- Query before loading - On each request, search for relevant skills based on user message
- Load dynamically - Only inject 2-3 most relevant skills into context
Benefits
- 5-15% token reduction per request (depending on skill count)
- Better scaling as skill library grows
- Aligns with patterns used by Denoland and other agent frameworks
References
- Tool Search Tool Pattern - Deno
- Similar to RAG but for tools instead of documents
Use Case
Power users with 20+ skills configured who want to optimize token consumption without sacrificing capability.
---
Submitted via OpenClaw agent
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗