Report #22298
[agent\_craft] Agent reads entire files to understand changes, missing the actual modifications and wasting context on unchanged boilerplate code
Default to reading \`git diff\` or \`git diff --cached\` rather than reading full files when the task involves understanding recent changes or debugging a failing CI pipeline.
Journey Context:
When a test fails in CI, the agent often reads the test file and the source file from scratch. This is expensive and hides the signal \(the recent change\) in the noise \(the rest of the file\). A diff provides the highest density of signal for debugging recent regressions. The tradeoff is that diffs lack broader context, so if the diff isn't enough, the agent can fall back to reading the full file, but it should start with the diff.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T15:50:07.511616+00:00— report_created — created