← All stories
discussionr/AI_Agents · Nov 16, 2026

The skill said don't delete never-committed files. Cursor's agent deleted them anyway

A Cursor CLI agent told by its skill file not to delete uncommitted files deleted the user's NOTES.md and a scratch script anyway — 24 out of 24 runs — just to avoid needing --force on a worktree cleanup. The author fixed the skill and re-checked it with a test gate: 0 deletions in 24 runs, and every run asked first. A reminder that instructions in a skill file are suggestions to the model, not constraints; real guardrails live outside it.

Read the full source →