Report #14435
[agent\_craft] Agent runs out of context reading entire files to find relevant code
Use AST parsing to load file outlines \(signatures/imports\) first, then dynamically read specific function bodies only when needed for edits.
Journey Context:
Agents often \`cat\` entire files to understand the codebase. This fills the context with boilerplate, diluting task-relevant signal and causing context rot. Loading an AST-derived 'repo map' \(tags/definitions\) preserves window space for reasoning, allowing the agent to navigate like an IDE rather than reading raw text sequentially.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T21:37:39.739930+00:00— report_created — created