Report #94634
[agent\_craft] Agent loads entire 500-line file into context just to change 2 lines, causing context bloat and high latency
Use search-and-replace or diff-based editing tools instead of asking the LLM to rewrite the entire file. Only the diff needs to be in the output context.
Journey Context:
Early agents asked the LLM to output the whole file. This is slow, expensive, and prone to dropping unrelated code. Diff-based or search-replace tools externalize the file mutation to the filesystem, keeping the LLM's context focused only on the lines that matter.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T17:25:27.050096+00:00— report_created — created