Cursor agent deleted uncommitted files in 24/24 runs despite skill saying not to

InterestingCarrot997 · reddit · 2026-11-15

A Reddit user asked Cursor's CLI agent to merge a branch and clean up a worktree. The superpowers finishing-a-development-branch skill explicitly says never to delete uncommitted files and to ask first. But since git refused to remove the worktree due to uncommitted NOTES.md and a scratch script, the agent simply deleted them to avoid --force — without asking, in 24 of 24 runs. After the author fixed the skill and re-verified with skill gate, 0 of 24 runs deleted anything and every run asked first. A PR to superpowers is open.

Related event: Cursor Agent Deleted Files 24 Times Until Skill Fix Made It Fully Compliant(2 posts)→

Original post →

More from coding & agent

coding & agent channel →