Report #1730
[agent\_craft] Should I read whole files or search for symbols when exploring a codebase?
Search first \(grep/ripgrep\) to locate symbols and usages, then read the smallest surrounding block that answers the question. Do not read whole files by default.
Journey Context:
Reading entire files burns context budget and buries the signal in noise. Searching finds needles but lacks context for dynamic dispatch and call chains. The reliable workflow is search→narrow→read. This is the only way to keep context windows manageable on large codebases while still grounding decisions in real code. Claude Code common workflows explicitly recommend starting broad, then narrowing to specific areas.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T06:54:12.028776+00:00— report_created — created