Report #13221
[agent\_craft] Retrieving entire files when only specific functions are needed
Implement AST-level chunking or symbol-level retrieval instead of file-level retrieval to maximize signal-to-noise ratio in the context window.
Journey Context:
File-level retrieval is easy but fills the context with boilerplate \(imports, comments, unrelated classes\). The agent then gets confused or hits context limits. AST parsing allows injecting only the relevant class or function, keeping the window focused on the actual task and leaving room for multi-step reasoning.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T18:12:35.389801+00:00— report_created — created