From the Claude Code hooks docs, "PreSkillShellCommand":
https://t.co/rJ6ndMagYe
12 checks I run before leaving any agent alone overnight:
https://t.co/owiQWGwvce
Your PreToolUse hook blocks rm -rf. Good.
A skill can still run shell commands the moment it loads. PreToolUse never fires for those.
Claude Code 2.1.332 adds a hook that does: PreSkillShellCommand.
Update first. Then add your blocking script to both events.
Asked Claude to cancel your /loop?
Check that it did.
Before Claude Code 2.1.331, auto mode sometimes refused Claude's call to stop a loop. The next wake-up fired anyway.
Update, then open /tasks. Still listed? Press x.
Your nightly claude -p job exited 0. Did it work?
Before Claude Code 2.1.330, if its output file sat on a full disk, it exited 0 and said nothing. Now it exits 1.
A full NFS export can still slip through.
Alert on the exit code. Then check the file.
"Stop a loop" in the Claude Code scheduled tasks docs:
https://t.co/osRLXPZFGC
The 30-day change is in the 2.1.330 notes:
https://t.co/ZqBUfdtN10
12 checks I run before leaving any agent alone overnight:
https://t.co/owiQWGvXmG
Started a /loop 5m and hit Esc to stop it?
It's still running. Esc and Ctrl+C don't stop a fixed-interval loop. You have to ask Claude to cancel it.
And since 2.1.330, a new loop can keep firing for up to 30 days, not 7.
/tasks lists it. x stops it.
From the Claude Code hooks docs, "Matcher patterns":
https://t.co/rJ6ndMagYe
12 checks I run before leaving any agent alone overnight:
https://t.co/owiQWGwvce
Wrote a hook for your MCP tools and it never fired?
"matcher": "mcp__memory" matches no tool. It's compared as an exact name. You need "mcp__memory__.*"
Since 2.1.327, /status lists hook matchers that never match.
A guardrail that never runs looks just like one that works.
Reviewing an unattended Claude Code run by skimming the transcript?
Until 2.1.326, some commands that delete or overwrite files (find -delete, cat a > b, sort -o) were summed up as a search or a read.
The recap isn't the command. Check git diff.
Source, Google's AI Threat Tracker (Nov 16):
https://t.co/70DxHZ3I7O
Claude Code 2.1.326 helps: the folder trust prompt now names the project settings files it will load and marks the ones that run commands. Read it before you press Enter.
Google's threat team says attackers got into crypto companies, then edited .claude/settings.json in internal repos.
Next time a developer started Claude Code, it downloaded a backdoor.
That file can run commands. Review changes to it like CI.
Your agent config is code.
It's in the 2.1.325 notes of the changelog:
https://t.co/ZqBUfdukQy
Two ways to handle it:
sandbox.autoAllowBashIfSandboxed: true brings back the auto-run.
permissions.denyInsteadOfPrompting: true in user settings refuses the call instead of waiting.
Updated Claude Code? Check this before your next unattended run.
Since 2.1.325, sandboxed Bash goes through normal permission prompts by default.
A run that leaned on the sandbox to auto-run Bash now stops at the first prompt and waits.
Sandbox on is no longer prompts off.