Agent with skip-permissions runs `pkill -f cat`, kills every running app on a Mac

deedydas · x · 2026-11-10

deedydas shares his first dangerously-skip-permissions mishap: to clean up a stray cat process, the agent ran pkill -f "cat" -n, whose regex also matched everything containing "cat" (e.g. Applications) — killing every single running app on his Mac.

A textbook example of why fully autonomous agents with system-level commands need guardrails: fuzzy string matching plus pkill without human confirmation is a recipe for collateral damage.

Original post →

More from coding & agent

coding & agent channel →