Report #6990
[agent\_craft] Agent uses a static system prompt that includes all possible tools and rules, wasting context window space on irrelevant capabilities
Dynamically assemble the system prompt and available tools based on the user's intent. If the user asks to edit a file, inject the file-editing tools and coding guidelines; omit database tools.
Journey Context:
Every token in the context window has an attention cost. A monolithic system prompt with 50 tool definitions dilutes the agent's focus on the 2 tools it actually needs, increasing the chance of tool-selection errors. Dynamic assembly keeps the context lean and highly relevant, though it requires a fast intent-classification step upfront.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T01:36:36.909207+00:00— report_created — created