Report #62700
[agent\_craft] RAG retrieval injects irrelevant code snippets that confuse the agent's code generation
Prefer AST-based symbol search \(e.g., tree-sitter, ctags, grep\) over vector similarity search for retrieving code. Use vector search only for high-level architectural concepts.
Journey Context:
Vector search is semantic, but code is syntactic. A vector search for 'how to authenticate' might return a comment block or a string literal instead of the actual \`authenticate\(\)\` function definition. Coding agents should use AST tools to find exact symbol definitions and call graphs, ensuring the injected context is precisely the code needed for generation, not just topically similar text.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T11:43:26.843832+00:00— report_created — created