r/Agent_AI • u/Ok-Motor-9812 • 15h ago
Discussion In bypass mode Claude Code nudges the model to read files with cat, and every hook i had on the Read tool went silent. Open sourced the audit that caught it
Lost a whole rules sequence to this in September before i understood what happened. My gates check the Read tool. Under bypassPermissions the harness itself tells the model to use cat, head and sed in Bash instead. So every hook keyed on Read just never fires, no error, nothing in the log.
Wrote a guard that blocks reading files through Bash. It blocked 565 times last week alone. That's the model following the harness hint, it isn't being sneaky.
This is the kind of thing an update changes under you. I only see it because a script reads yesterday's transcripts every morning and gives the next session a list of what drifted. It's open source: https://github.com/nesaminua/claude-code-harness-audit-kit
Anyone else run hooks keyed on Read or Edit under bypass?