Anthropic's Claude Code team updated six workflow rules covering checkpoints, hooks, auto mode, code mode, deny rules, and multi-session projects.
What changed in how Claude Code is supposed to be used? #
Anthropic’s Claude Code team has updated its guidance on how to run agentic coding workflows safely, replacing habits that made sense a year ago but now create risk or waste effort. The update, outlined by Claude Code team member Lydia Hallie, covers six areas: checking Claude’s work with checkpoints instead of reading full output, using hooks to enforce automated checks, relying on auto mode instead of approving every command, a new experimental “code mode” for tool calls, deny rules for anything irreversible, and running multi-session projects instead of juggling chats manually. The common thread is that manual review doesn’t scale, and the old defaults (approve everything, read everything at the end) were never actually safe. They just felt safe.
TL;DR #
- Checkpoints replace end-of-task review: instead of reading a full output to see if Claude did the job right, you set pass/fail checks along the way so failures get caught early and Claude is forced to fix them before moving on.
- Hooks are scripts Claude Code runs automatically at set moments (after a file edit, when a task is marked done, before a session ends), but they only send Claude back to fix something if the script exits with code 2. Exit code 1 gets logged as a failure but the task still gets marked done.
- Auto mode has been the default permission setting since August, and Anthropic’s own testing found it blocked about 89% of dangerous commands in a controlled test, compared to roughly 14% caught by human reviewers approving the same commands manually.
- Deny rules are for anything you can’t undo, like sending an email, deleting a client’s files, or reading a
.envfile, and they’re checked before auto mode even evaluates the command, so a blocked action never reaches the classifier at all. - Code mode , released November 12 and still experimental and terminal-only, has Claude write a script that makes multiple tool calls and filters the results before anything lands in context, cutting token and context use roughly in half in one reported test.
- Sandboxing limits what a command can reach on your machine, but it only covers commands themselves, not connectors or hooks, which still run with full access to your machine unless you move long jobs into a cloud session with its own fresh environment.
- Claude Code projects , still in beta, let one main session split work across multiple threads with different models for planning versus execution, so you’re not manually tracking five or six separate chats.
Workers wait for instructions. Contractors deliver the outcome.
Describe what you need. Remy builds it, secures it and hands it over running.
Why is checking Claude’s work at the end a bad idea? #
The core problem is that the same prompt, run multiple times, can produce multiple different “finished” results, and none of them look wrong at a glance. Hallie’s example: ask Claude to migrate your app’s logins to a new system, and one run might leave the old system running in parallel, another might only migrate new signups going forward (stranding existing users), and a third might migrate everyone but log every user out in the process. Each of these looks complete when you skim it. You’d only catch the actual problem when a customer can’t log in.
This generalizes to anything repetitive, like a weekly report pulled from a CRM export. The brief is identical every time, but the output can vary in ways you’d only catch by reading the entire thing, and by the tenth report, nobody is reading the entire thing. The fix is to stop reviewing outcomes and start reviewing checkpoints: pass/fail markers placed along the way that are faster to scan than the full output and that force a failing run to get corrected before it finishes, rather than after.
How do hooks and exit codes actually work? #
Hooks are scripts that Claude Code runs automatically at defined points, such as every time a file gets edited, every time a task gets marked complete, or right before a session ends. They’re what make checkpoints enforceable rather than optional.
The detail that trips people up: most check scripts exit with code 1 when something fails, but Claude Code treats exit code 1 as “logged, task still done.” To actually send Claude back to fix the problem, the script has to exit with code 2. Getting this wrong means your checks are running and technically failing, but nothing is actually stopping Claude from moving on anyway.
Is auto mode actually safer than approving commands manually? #
Based on Anthropic’s internal testing, yes, and by a wide margin. The team tested auto mode against real people approving a list of commands that included clearly dangerous ones (the kind that delete files or leak keys). People caught about 14% of the dangerous commands. Auto mode caught about 89%. The implication is that manually approving every step was never actually making things safer, it just felt like oversight. In practice, the person approving commands is often the one most likely to wave something through just to keep the job moving.
Auto mode has been the default permission mode since August, but it still has a blind spot: it only trusts the folder you’re actively working in by default. So a task that needs to push to a staging environment, save into a shared client folder, or post to Slack will still stop and ask for approval every time, even though you run that exact workflow weekly. The fix is running /auto mode setup, which drafts a list of folders, sites, and tools to pre-approve based on your recent sessions, instead of starting from a blank permissions list.
Built like a system. Not vibe-coded.
Remy manages the project — every layer architected, not stitched together at the last second.
What is code mode and when should you use it? #
Code mode, released November 12, changes how Claude Code interacts with connected tools. Normally, every tool call (a Notion search, a Gmail lookup) returns its full result directly into Claude’s context, so ten calls means ten full results sitting in context even if most of that content is irrelevant to what’s needed. That consumes usage limits quickly, especially with multiple connectors running.
With code mode, Claude instead writes a short script that makes the necessary calls, filters the results itself, and only returns what’s actually needed. In one reported comparison, running the same connector task with code mode used about half the tokens and roughly a third of the context compared to the standard approach. It performed better on tasks that involve reading and compiling information, and weaker on tasks that require making direct edits.
That makes it better suited right now to research and reporting tasks than to large-scale file editing. It’s still experimental and terminal-only, so it doesn’t yet work in the desktop app, VS Code, or cloud sessions. Importantly, any hooks or deny rules you’ve set still apply to every call made inside a code mode script, so the safety layer carries over.
Why do you still need deny rules if auto mode works this well? #
Because auto mode is probabilistic, and some actions can’t be undone if it gets something wrong even once. The team’s framing: if Claude makes a mistake and you can take it back (a bad draft, for example), let the model handle it without intervention. If you can’t take it back (sending an email, deleting client files, exposing an API key by reading it into chat history), that action needs a deny rule, which is a line in your settings that blocks the command outright.
Deny rules are checked before auto mode even evaluates the command, meaning a denied action never reaches the classifier that decides what’s risky. This matters because auto mode’s default behavior is permissive toward reading a .env file, where API keys typically live. Without an explicit deny rule, that’s a gap.
There’s a related risk auto mode and deny rules don’t fully solve: a plugin or script you installed might run tampered code that reaches your credentials, and if you’re not reading the code inside every plugin, you wouldn’t catch it by approving steps either, because there’s nothing suspicious-looking to decline. The mitigation is sandboxing, which limits what a command can reach on the operating system level, including anything that command starts. Sandboxing doesn’t cover connectors or hooks, though, which still run with full access to your machine. For genuinely long or sensitive jobs, running them in a cloud session gives the work its own machine with a fresh copy of your files and no local keys present, with secrets added separately so Claude can use them without ever seeing them directly.
How do Claude Code projects help with running multiple sessions? #
Prompt
Stop stitching scripts.Ship one system.
One spec produces the whole app, with security and compliance included.
Claude Code projects, still in beta, address the problem of running several Claude chats at once and losing track of which one is doing what. Instead of juggling multiple sessions, a single main session takes the overall task, splits it into subtasks, starts a separate thread for each one, and checks the results as they come back.
Because the main session is judging work rather than doing it, it benefits from a model suited to evaluation, while the threads doing the actual work benefit from a model suited to execution, and these can be configured separately. If a thread’s output isn’t actually complete, the main session sends it back rather than accepting it. Projects also remove the need to manage context manually, since there’s no compacting or clearing required the way there is in a single long-running chat.
Frequently Asked Questions #
What’s the difference between a hook and a deny rule in Claude Code?
A hook is a script that runs automatically at a defined point (after an edit, before a session ends) to check work and can send Claude back to fix something if it exits with code 2. A deny rule is a blanket block on a specific action (like reading a .env file) that’s checked before auto mode even considers the command, so it can’t be approved under any circumstance.
Does auto mode replace the need for manual approval entirely?
Not entirely. Auto mode handles routine permission decisions more reliably than manual approval, according to Anthropic’s testing, but it still stops to ask for approval on actions outside the folder you’re working in by default, like pushing to staging or posting to Slack, unless you’ve pre-approved those with /auto mode setup.
What should I write deny rules for first?
Anything irreversible: sending emails, deleting files in shared or client folders, and reading files like .env that contain API keys. These are the actions where a single mistake can’t be undone, which is the threshold the Claude Code team uses to decide what needs a deny rule versus what can be left to the model.
Is code mode available in Claude’s desktop app or VS Code?
Not yet. As of its release on November 12, code mode is experimental and only works in the terminal version of Claude Code. It doesn’t function in the desktop app, VS Code, or cloud sessions.
How does Claude Code decide how much human review a task needs?
Anthropic’s internal approach ties review intensity to risk: low-risk work like documentation can skip human review entirely once automated checks pass, normal work gets one human reviewer, and higher-risk changes get multiple reviewers. The same logic can be applied to personal or team workflows by sorting recurring tasks into tiers based on how costly a mistake would be.