Claude Code Edited the Wrong File
Modified a file you didn't intend — usually similar names, or it followed an import chain. Git-revert, then re-scope with allow/deny lists in the prompt.
Articles tagged with #Wrong edit
Modified a file you didn't intend — usually similar names, or it followed an import chain. Git-revert, then re-scope with allow/deny lists in the prompt.
Composer rewrote 10+ files and broke working code — prompt was too open and the agent had too much default scope.
You @ one file and Cursor answers about a different same-named file — ambiguity, stale index, or symlink confusion.
Claude Code + Codex (or two parallel sessions) edit the same function differently and produce a conflict. Isolate scopes with worktrees; never let an agent resolve.