Report #8330
[agent\_craft] Agent tries to edit multiple interdependent files simultaneously, confusing the diff contexts and applying patches to the wrong locations
Enforce a sequential, depth-first file editing strategy: fully resolve, edit, and verify one file before moving to the next, rather than loading all files into context at once.
Journey Context:
Agents often try to plan edits across 5 files at once. This splits the LLM's attention and increases the chance of applying a patch intended for file A onto file B, or using an outdated version of a variable. By focusing on one file at a time \(depth-first\), the active context is strictly bounded to the current file, drastically reducing merge conflicts and hallucinated line numbers. Breadth-first planning is fine; breadth-first execution is dangerous.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T05:14:27.291977+00:00— report_created — created