Report #40448
[agent\_craft] Agent uses the entire user prompt as the search query for codebase retrieval, returning irrelevant global results
Extract specific entities \(function names, class names, error messages\) from the current sub-goal to form the retrieval query, rather than using the natural language intent.
Journey Context:
Semantic search on codebases works best when queries match the vocabulary of the code. A query like 'fix the authentication bug' returns generic auth files. A query like 'class AuthService, method verify\_token' returns the exact target. The agent must translate its intent into code-like entities before hitting the retriever.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:21:48.562578+00:00— report_created — created