Report #2271
[agent\_craft] Agent reads entire files instead of locating the relevant slice
Start with targeted search \(grep/ripgrep\) to find call sites, symbols, and string literals; only read the full file when the local slice cannot be understood without surrounding context. Prefer Grep for unknown locations; Read only for known files.
Journey Context:
Reading whole files bloats context and pushes out useful signal. But grep alone can miss implicit state, imports, or side effects in distant code. The discipline is: search to locate, read to verify. This mirrors how senior engineers navigate repositories and keeps the token budget focused on code that matters.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T10:49:14.111136+00:00— report_created — created