I Built a 41-Line Approval Gate for AI Agents. Then I Tried to Break It 20 Ways.
AI-generated summary The author built a 41-line Python approval gate for AI agents that checks shell commands against a denylist file and evaluates command shapes. The approval gate successfully blocked eight destructive commands while missing two others that used flags and encoding to bypass the substring checks.