Report #24764
[gotcha] AI makes unsolicited 'improvements' beyond the requested change, breaking working code or content
For edit/modify tasks, use diff-based workflows where the AI proposes changes and the user accepts or rejects granularly. Include explicit instructions like 'make only the requested change; do not modify surrounding code' in the system prompt. Show changes as diffs, not wholesale replacements.
Journey Context:
LLMs are trained to be helpful, which means they often 'improve' beyond what was requested. A user asks to fix a bug, and the AI also refactors the function, renames variables, and adds comments. In training, this is helpful. In production, it is destructive: the improvements may introduce bugs, break style consistency, or conflict with other changes. The user asked for one thing and got five. This is especially dangerous in code editing where unsolicited changes can break working code silently. The counter-intuitive insight: for modification tasks, a model that follows instructions literally is better than one that tries to be helpful. Prompting 'only change what I asked for' helps but does not eliminate the problem — the model's helpfulness training is deeply ingrained.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:58:34.585178+00:00— report_created — created