Report #101831
[counterintuitive] LLMs are as good at editing existing code as they are at writing new code
For edits, give the model a minimal diff-style prompt with the exact change intent, relevant context only, and a test that must pass; prefer generation only for greenfield scaffolding.
Journey Context:
SWE-Bench Pro failure analyses show that frontier agents often fail on repository-level editing because of context overflow, wrong semantic understanding, syntax errors, and endless file reading. Editing requires preserving invariants across files while changing only what's needed; generation is unconstrained. The gap is real: even top models struggle to produce correct patches for real GitHub issues. The fix is to constrain the edit aggressively and verify with the existing test suite.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-07T05:31:16.896401+00:00— report_created — created