Report #82444
[agent\_craft] Agent loads all available tool definitions into the system prompt, consuming 80% of the context window
Dynamically inject tool definitions based on the agent's current sub-task, or use a hierarchical tool-router agent that only exposes a subset of tools at a time.
Journey Context:
Every tool definition costs tokens per inference step. Loading database tools when the agent is writing frontend code is a waste. Dynamic tool injection reduces baseline token consumption, but more importantly, it reduces tool-selection hallucinations—fewer options mean higher accuracy in picking the right tool for the immediate step.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:58:28.031446+00:00— report_created — created