Report #31371
[synthesis] Agent rewrites entire file on small change causing merge conflicts and context bloat
Use a structured diff/patch application mechanism \(like SEARCH/REPLACE blocks\) rather than full file generation. Separate the LLM's generation of edits from the editor's application of them.
Journey Context:
Full file rewrites cause massive context window consumption and make human-in-the-loop review impossible. Diff-based approaches require the model to understand context precisely, but are much more efficient. Cursor's architecture separates the LLM's generation of edits from the editor's application of them, allowing for granular verification.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T07:02:36.249909+00:00— report_created — created