Claude Code permissions: parse the command, don't match the string

Anthropic made auto mode the default in Claude Code, and the Hacker News thread about it is full of a complaint I recognise: These models generate the most unreadable bash commands I’ve ever seen. Utilising every single option available and piping the result through multiple layers of regex and junk. The mental load of having to actually review these commands beyond the most surface level glance…