Issue · 2026-11-19 · Claude Code · Hooks · Workflows · Security
Claude Code 2.1.326 Makes Hook Blocks Stick, Plus a 3-Stage Review
Hi, Paul here. This week's Claude Code release is mostly fixes, but one line in it can quietly change what your hooks do, so that's where I'd start. After that, a review loop worth copying: plan, have a fresh agent attack the plan, then audit the raw diff before merge.
What changed
Claude Code 2.1.326 makes hook blocks hold in more cases. The release notes say it plainly: "Changed a hook's "decision": "block" to hold in more cases, so a hook that always prints one may start blocking calls."
If you wrote a hook that prints "decision": "block" as a default and relied on it being ignored in some paths, those calls may now stop. The same release also:
- Shows hook failures in red and hooks that stop Claude in yellow, with the reason underneath.
- Improves the error when a PreToolUse hook exits 127, "saying its check may not have run."
- Adds a startup warning when an
--allowedTools,--disallowedToolsor--toolsentry "doesn't look like a complete rule." - Stops sandboxed commands on macOS, Linux and WSL from writing to "some sensitive home folders by default." You can allow some with
sandbox.filesystem.allowWrite.
What to do: run claude update, then grep your hooks for "block":
grep -rn '"block"' ~/.claude/settings.json .claude/ ~/.claude/hooks 2>/dev/null
Any hook that emits a block unconditionally should only emit it when it means it. If you run headless jobs with --allowedTools, start one by hand once and read the new warning before your next unattended run.
Workflow of the week: plan, red-team, audit the diff
vaibhav-space/my-ai-coding-workflow is one developer's setup after an estimated 4,500+ hours with coding agents. The part worth copying is a three-stage review that only runs on "Architectural" tasks (subsystems, multi-service features, breaking contract changes). Small, bounded tasks skip it.
Stage 1: plan, and stop. prompts/planning.md has the agent inspect the repo, map requirements to acceptance criteria and say how each one will be verified. It ends with a hard boundary:
Stop once the plan is saved and wait for my approval. Do not touch implementation code.
The point is to catch wrong file paths, wrong package versions and wrong architecture assumptions before any code exists.
Stage 2: red-team the plan in a fresh context. prompts/critical-plan-review.md runs as an independent senior engineer in a new session or subagent, so it isn't anchored on the planner's reasoning. It looks for race conditions, missing error boundaries, timeout policies, idempotency risks and over-engineering, with a YAGNI brake that separates real failure modes from unlikely edge cases.
Stage 3: audit the raw git state before merge. prompts/production-readiness-review.md, again in a fresh context, reads git status, git diff, git diff --cached and untracked files against the approved plan. It hunts logic bugs, integration breaks, leaked secrets and stray artifacts. Fixes must be the smallest targeted edit; anything that changes architecture or a public contract pauses for you.
How to set it up in Claude Code:
- Copy the repo's
CLAUDE.mdinto~/.claude/CLAUDE.md(or merge the parts you want). - Save the three prompt files somewhere you can paste from, or turn each into a slash command.
- Run stage 2 and stage 3 with
/clearfirst or as a subagent, never in the session that wrote the plan.
My take: adopt stage 3 first. It checks the diff against the plan, not against the agent's own summary of what it did, and that's the gap where most surprises hide.
Copy this: a skill that skips the first idea
antialgorithm is a Claude Code skill for creative work: names, copy, ideas, posters, UI. It "steers the model away from its first, most average pick" by having the model name that first idea, then move away from it for a reason drawn from your project.
It ships three helper scripts. seed.py gives a random starting point when your request is thin. rough.py roughens a code-drawn SVG so it looks less plotted. check.py renders an SVG at full and icon size and flags text that runs off an edge, has low contrast or is too small.
Install (MIT license, needs Python 3; check.py also needs numpy, Pillow and rsvg-convert or cairosvg):
git clone https://github.com/mankidev/antialgorithm ~/.claude/skills/antialgorithm
I'd use it for naming and landing-page copy, where the default answer is the one everyone else's agent also gave.
Worth your time
- Cursor's security incident update: a malicious copy of the Claude Code extension sat in Cursor's marketplace cache for about 11 hours on October 29. If you installed Anthropic.claude-code 2.1.312 or 2.1.313 there, Cursor says uninstalling alone "may not be enough."
- Building always-on agents: Anthropic's guide to agents that run indefinitely, built on an event inbox, timers, memory, permissions and an outbox. Useful framing even for cron jobs.
- Coral: an Apache-2.0 local gateway that lets agents query APIs and files with SQL, exposed over MCP, so one query can join
github.issueswith another source. - Codex 0.169.0: multiple side-chat tabs in the opt-in terminal workspace, task search by name or directory, and a Ctrl+S diagnostic ZIP that works with uploads off.
Reply and tell me
Do you review agent plans before code gets written, or only the diff after? Hit reply with what your review step looks like. I read every one and the best setups end up in a future issue.