2026-04-01

Dangerous commands: what actually gets flagged, and what doesn't

“Dangerous” is a word that can mean almost anything, which is exactly why this rule pack doesn’t try to define it broadly. It matches a specific, bounded list of command shapes that are destructive, hard to undo, or both.

What’s on the list

Recursive, forced deletes on broad paths. Force-pushes that can overwrite remote history. Disk- level operations (partitioning, formatting) run from an agent context where that’s almost never the actual intent. Each is a real pattern against the command text, checked before execution.

What’s deliberately not on the list

Ordinary rm, ordinary git push, package installs, build commands — anything that’s routine and reversible or low-blast-radius stays unflagged. A rule pack that fires on normal developer commands trains you to ignore it, which defeats the point. Precision matters more here than raw coverage.

Shadow mode first, always

Like every other pack, this one can run observe-only before you ever turn on enforcement — you get a real report of what it would have caught against your own actual command history before deciding whether it’s trustworthy enough to block anything.

← Back to blog