Report #71947
[agent\_craft] Agent loads large file trees or directory structures into the main context window just to decide which file to edit or tool to use next
Use a lightweight, specialized router LLM or semantic router to map intent to a file/tool, keeping the main coding agent's context strictly focused on the code being edited.
Journey Context:
Mixing routing decisions with code generation in the same context causes interference. The agent gets confused between the 'where to go' and 'what to write' tasks. Offloading the routing to a cheaper, faster model or semantic vector comparison preserves the expensive context window of the main model for actual reasoning and code synthesis.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T03:20:48.593780+00:00— report_created — created