Rethinking Claude Code Best Practices: The 5 Jobs Anthropic Stopped Doing by Hand
Most of what we added to our Claude Code setups over the past year is now holding the new models back. That is the message of "Rethinking Claude Code Best Practices", a talk Lydia Hallie from the Claude Code team at Anthropic gave in November 2026. The warnings in capital letters, the long rule files, even the approve button: on the new models, they can make Claude worse.
The short version: Anthropic went from about 2,500 merged code changes a day in May 2026 to over 30,000 a day by September. That is 12 times more in four months, and they got there by handing off five jobs most of us still do by hand. Here is each job, who takes it over, and the setting to copy.
What "in the loop" means
Picture how most of us still work. Claude takes a step and waits for you. You steer it, approve it, say no, check it, and start the next one. Anthropic calls this being in the loop.
Lydia's own team works differently: "We're running dozens of sessions at the same time, running for hours, verifying their own results along the way." In her words, "we've now essentially become managers for dozens of sessions."
The model, the harness, the environment
You can't just walk away, though. Lydia has one rule for leaving the loop: "Something else has to take over. And this is either the model, the harness, or the environment that it's running in." The harness is just Claude Code itself, the app around the model. The environment is the computer it all runs on. Every job you hand off goes to one of those three.
| Job you do by hand | Who takes it over | What to set up |
|---|---|---|
| 1. Steering | The model | Trim CLAUDE.md, run /doctor prompt-audit |
| 2. Approving every command | Auto mode | Tell it what you trust, in plain English |
| 3. Saying no | Deny rules and the environment | A deny rule, /sandbox, cloud sessions |
| 4. Checking it's done | Tests, hooks, CI | Hooks that exit with 2 |
| 5. Starting every session | Claude | Projects, with one main session |
Job 1: Steering
For a year, we steered Claude with a file called CLAUDE.md, the note you leave for Claude before it starts. And we filled that note with shouting.
Lydia says you may still have things like "important" or "never do this" with an exclamation mark in that file. "But with today's models, you really don't need that and it can actually make the model go off track. So you end up with more tool calls and overall worse results."
So here is the test for every line in your note: could Claude work this out by reading the project? If yes, delete it. "Think hard." "Keep going." Which tools you use. All gone. What stays is what Claude cannot see from your code, like a service that still uses an old source not referenced anywhere in the code.
You don't have to do this by hand. Type /doctor prompt-audit. Claude Code reads your note and your skills, and lists what the new model no longer needs. Nothing changes until you say so. Job one now belongs to the model.
Job 2: Approving
Every command, Claude stops and asks. Allow? Allow? Allow? Most of us stopped reading those a long time ago.
The replacement is auto mode, a second AI acting as a guard that reads every command before it runs. Safe ones, like running tests, go through. Ones it is unsure about stop. It is now the starting mode in new versions of Claude Code.
Out of the box, the guard only trusts this folder and this project. Anything else, it stops, and you are back to clicking. The fix is one settings file, written in plain English: which accounts you trust, what is always allowed, what is never allowed. Job two now belongs to auto mode.
Job 3: Saying no
Anthropic paid over a thousand professional testers to watch Claude work, and slipped one dangerous command into every session. Lydia gives the result: "Only about 14% of people caught a clearly dangerous command. Auto mode blocked 89% of them." Better than us. But about one in 10 still went through.
So for the things that must never happen, you need a hard rule. Which things? Lydia's test is five words: "Can I take it back?"
Bad code, yes. You can undo it, so leave that to the model. A deleted file, a leaked password, a message already sent, no. Those get a rule.
The rule is one line in settings, called a deny rule. The one in the video says: never read my secrets file. A deny rule beats everything. The guard never even sees that command.
But a rule only checks the command Claude types, not what a script does once it is running. So Anthropic adds two walls:
- The sandbox. Think of a fenced yard. Your computer itself decides which files a command can touch and which websites it can reach. You turn it on with /sandbox.
- A cloud session. A separate computer with a fresh copy of your project. Your passwords and keys were never on it, and it keeps working when you close the laptop.
Job three now belongs to the rules, and the room Claude works in.
Job 4: Checking the work
This is the reason Claude tells you it's done when it isn't. When you approved every step, you saw the work. Now Claude runs for hours and you see nothing.
Lydia's example: ask Claude to move your auth, which just means the login system, to a new API. With the exact same prompt, "one run might move it over but leave the old API in there, or one might move it but only for new logins, and another one might move it but log everyone out." Three different results, and all three look finished.
So you add checkpoints: anything that comes back as pass or fail, like a test, a build or a screenshot. You can ask for them in your prompt, but a prompt is only a request. For checks that must run, use a hook, a small script that Claude Code runs by itself at a set moment. After every edit, check the style. Before a task is marked done, run its tests. Before the session ends, run all of them.
The trap: your hook must exit with 2
There is one trap here. In Lydia's words: "When a test fails, by default, most tools exit with a one exit code, but with a one, that task by Claude Code just gets marked as completed anyway. So make sure that your scripts exit with a two exit code because that's what actually sends Claude back to fix it." One number is the difference between done and actually done.
The last gate
Every session ends as a pull request, a bundle of changes waiting for approval. The same automatic checks (CI) run on every one. And on Lydia's team, "every PR gets reviewed by Claude first. So not by the session that wrote it." Then people review by risk: a typo fix, nobody. A normal change, one person. A risky change, two. Job four now belongs to tests, hooks, and that last gate.
Job 5: Starting every session
Even with the first four gone, you are still the one launching every session. Lydia admits: "I'm terrible at context switching." The answer is a feature called Projects, which is still in beta. You talk to one main session. It splits the job, starts a session for each piece, and checks what comes back.
The main session doesn't write code itself, so Lydia wants "a model that's really good at deciding what to do and judging what comes back, a model like Fable." The sessions underneath "need a model that's good at actually doing the work, like Opus 5.5." Job five now belongs to Claude.
What is left for you
Lydia says of the old rules: "They're all still there, but they've just moved." What remains for us: "We're really just here to start that first one and to just review what comes out."
To be fair
This is Anthropic describing how Anthropic works, with its own numbers. We did not run a test of our own. The guard is not perfect either: about one in 10 dangerous commands still got through auto mode, which is why job three exists. And Projects is still in beta.
The 4-step starter plan
To begin this week, in Lydia's own order:
- Pick one task far bigger than you normally give Claude.
- Make sure your automatic checks catch what you care about.
- Set up the cloud computer: what it can reach, its secrets, and its setup steps.
- Run it in the cloud, and watch where you get pulled back in. That spot is the next job to hand over.
Get the 5 Jobs Handoff Sheet
We put all five jobs on one page, with every setting ready to copy and the starter plan. Comment RETHINK on the video, or grab it below. Lydia's full talk is linked here too.
Source: "Rethinking Claude Code Best Practices", Lydia Hallie, Anthropic, on the AI Engineer channel. Quotes are lightly trimmed for reading. Settings were checked against the Claude Code docs on Nov 17 2026. Numbers: Anthropic Engineering, "Redesigning source control at Anthropic" (Oct 13 2026) and Anthropic's auto mode post (Aug 7 2026). Independent, not affiliated with Anthropic or AI Engineer.
Free PDF: The 5 Jobs Handoff Sheet
The 5 Jobs Handoff Sheet: all five jobs on one page, every setting from the video ready to copy, plus the 4-step starter plan.
Join 27,000+ readers of the Hyperautomation AI Report
Quick answers
What is the Rethinking Claude Code Best Practices talk?
It is a talk Lydia Hallie from the Claude Code team at Anthropic gave in November 2026, published on the AI Engineer channel. Her message is that much of what people added to their Claude Code setups over the past year now holds the new models back. She walks through five jobs people still do by hand and what takes each one over: the model, Claude Code itself, or the computer it runs on.
What should I keep in my CLAUDE.md file now?
Only what Claude cannot see from your code. Lydia's example is a service that still uses an old source that is not referenced anywhere in the code. Capital-letter warnings, lines like "think hard" and notes about which tools you use can go. You can run /doctor prompt-audit and Claude Code will list what the new model no longer needs. It only suggests, and nothing changes until you say so.
How good is Claude Code's auto mode at catching dangerous commands?
In a study Anthropic published in August 2026, only about 14% of people caught a clearly dangerous command, while auto mode blocked 89% of them. That is much better than people, but about one in 10 still went through. For things that must never happen, Lydia says you need a hard rule, such as a deny rule in settings.
Why does Claude Code say a task is done when the tests failed?
Most tools exit with a code of 1 when a test fails. Lydia says that with a 1, the task in Claude Code still gets marked as completed. Make your check scripts exit with a 2 instead, because that is what sends Claude back to fix the problem.
How much more code does Anthropic ship with Claude Code?
Anthropic merged about 2,500 code changes a day in May 2026 and over 30,000 a day by September 2026. That is roughly 12 times more in four months. The numbers come from Anthropic Engineering's post "Redesigning source control at Anthropic" from October 13, 2026.
What are Claude Code Projects?
Projects is a Claude Code feature that is still in beta. You talk to one main session, and it splits the job, starts a session for each piece and keeps track of what comes back. Lydia suggests a model like Fable for the main session, which decides and judges, and a model like Opus 5.5 for the sessions doing the work. You can set those separately.