Report #7912
[agent\_craft] Agent reads entire large files into context instead of executing targeted introspection
Shift from 'reading' to 'executing'. Use AST parsers, \`grep\`, \`git ls-files\`, or dynamic execution \(e.g., \`python -c "import module; print\(module.\_\_dict\_\_\)"\`\) to extract specific metadata rather than loading a 2000-line file into the context window.
Journey Context:
Coding agents often default to \`cat\` or \`read\_file\` to understand a codebase. This rapidly exhausts the context window with boilerplate or irrelevant logic. The agent should act like a developer navigating an IDE: use go-to-definition, search for symbols, or run small scripts to print type signatures or state. The tradeoff is requiring a reliable code execution sandbox, but the payoff is massive context savings and higher precision.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T04:09:28.766899+00:00— report_created — created