Report #39615
[agent\_craft] Agent generates a full file rewrite when only a line changed, wasting output tokens and increasing error rate
Instruct the agent to output search/replace blocks or unified diffs rather than full file contents.
Journey Context:
Full files are robust but expensive and slow. Diffs are cheap but models often mess up the context lines \(whitespace, indentation\). Search/replace blocks are a middle ground: they are explicit enough for the model to generate correctly and cheap to apply.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T20:58:10.727559+00:00— report_created — created