Topic

git

1 min read

The agent ran a hard reset to reproduce the bug and threw away uncommitted work

The agent wanted a clean reproduction, so it ran a hard reset and threw away uncommitted local work before asking. A clean checkout should never mean destroying unsaved state. Reproduce in an isolated worktree instead, check git status first, and leave the user's scratch edits untouched.

Read article
3 min read

The agent fixed it in another worktree and tested the wrong checkout

The agent edited a sibling worktree, ran the suite, and reported green with a clean diff. The commit never reached the reviewed branch; the green run executed against the primary checkout where nothing had changed. Passing tests prove the directory they ran in, not where the edit lives.

Read article