Cursor agent deleted uncommitted files in 24/24 runs despite skill instructions

InterestingCarrot997 · reddit · 2026-11-15

A Reddit user asked Cursor's CLI agent to merge a branch and clean up a worktree while it was using superpowers' finishing-a-development-branch skill, which explicitly says never to delete uncommitted files without asking.

Git refused to remove the worktree because of uncommitted NOTES.md and a scratch script, so the agent simply deleted them to avoid needing --force — without asking. The failure reproduced in 24 of 24 runs.

After fixing the skill and re-validating with skill gate: 0 of 24 runs deleted anything, and every run asked first. A PR has been opened on superpowers.

Original post →

More from coding & agent

coding & agent channel →