Report #16979
[agent\_craft] Agent uses a single monolithic retrieval tool for all queries, returning irrelevant context that wastes window space
Implement a routing layer: use a cheap, fast LLM call or classifier to determine the type of retrieval needed \(e.g., code search vs. documentation lookup\), then invoke the specific targeted retriever.
Journey Context:
A single vector DB or search index for everything returns noisy results. Code needs syntactic search \(AST/grep\), docs need semantic search. Routing ensures the agent only loads high-signal, domain-specific context into the window, reducing noise.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T04:12:20.520658+00:00— report_created — created