Anthropic went from about 2,500 changes a day in May 2026 to more than 30,000 a day in September, Hallie said in her November 2026 talk. That volume explains why Claude Code best practices moved from steering sessions to managing them.
What Claude Code best practices look like for Opus 5.5
Claude Code best practices now mean a short Claude.md, auto mode as the default permission mode, deny rules for irreversible actions, hooks that exit with code 2, and cloud sessions on a disposable machine. Lydia Hallie, who works on developer relations for Claude Code at Anthropic, laid out that shift in an 18-minute AI Engineer talk published on 12 November 2026.
Her argument is subtractive. The models handle intent and codebase context well enough that mid-session steering and approval of every command mostly get in the way. What used to be human work has moved to the model, the harness, or the environment.
Hallie described two eras. Earlier in 2026, sessions ran on a model she called Opus 4.5, stopped early, needed constant reminders, and had no auto mode, so people either approved each command or ran with permissions disabled. By late 2026, she said, Anthropic staff run dozens of sessions at once for hours, sessions verify their own results, and some sessions start other sessions.
She cited an internal figure for scale: Anthropic went from roughly 2,500 code changes per day in May 2026 to more than 30,000 per day in September 2026. Secondary coverage of the same talk repeats those numbers, for example this Digital Era report. Treat them as Anthropic-reported, not independently audited.
The practical consequence is that each place a developer steps out of the loop needs a replacement owner. Hallie names three: the model, the harness that wraps it, and the machine it runs on.
Why a shorter Claude.md works better now
A shorter Claude.md works because newer models can read the stack and file layout from the repository itself, so instructions about those things add noise. Hallie said hard directives written with exclamation marks, such as IMPORTANT or never do this, can push current models off track and produce more tool calls and worse results.
Her rule: keep only what Claude cannot see from the code. A service still pointing at a legacy data source that the code does not reference qualifies. Which framework you use does not.
Anthropic ships a command Hallie called doctor prompt audit that checks a Claude.md and installed skills against the current model and reports what is no longer needed. Before deleting anything, confirm the command name and behaviour in the current Claude Code documentation, because subcommand names change between releases.
The same reasoning explains why she treats old guidance as dated rather than wrong. Writing IMPORTANT in capital letters made sense when a model needed correction every few minutes. It matters less when the model can hold a multi-hour task and check its own output.
Auto mode, the classifier, and where it still blocks
Auto mode is a Claude Code permission mode that runs a separate classifier over tool calls other than ordinary file reads and edits in your project. Hallie said Anthropic made it the default permission mode in August 2026. It allows commands it recognises as safe, such as running tests or installing dependencies, and blocks ones it cannot classify.
Defaults cover the common case. They do not cover a push to a deploy repository outside the trusted folder, which Hallie used as her example of landing back in the loop.
The fix is a settings entry written in plain English. Hallie said that text is sent to the classifier, which decides whether to allow or reject commands. In practice you list which repositories, storage buckets and domains you trust, plus anything that should always be allowed or never run.
| Setting | Who enforces it | What it covers |
|---|---|---|
| Model choice | The model | Steering, codebase understanding, self-checking |
| Auto mode | Classifier in the harness | Ordinary commands, with blocks when unsure |
| Claude.md | Model context | Only what the code does not show |
| Deny rules | Harness, before the classifier | Tool calls that must never run |
| Sandbox | Operating system | Files, folders, hosts reachable by shell commands |
| Hooks and CI | Scripts and pipeline | Verification that has to run every time |
Deny rules for actions you cannot take back
Deny rules are the only way to make a tool call impossible, because Claude Code checks them before the auto mode classifier sees the call. Hallie said a tool call matching a deny rule never reaches the classifier at all.
Her test for what deserves a rule: if Claude gets this wrong once, can I take it back? Wrong code can be reverted, so leave that to the model. Discarding uncommitted changes, or reading a key that then sits in the transcript, cannot be undone.
The example she used is a .env file. Auto mode would approve reading it by default. A deny rule stops the tool that reads files, and Hallie added that shell commands such as cat also fail to open the file once the rule exists.
Deny rules have a limit that matters for anything running long tasks. They decide whether a tool call starts. They do not constrain what the started process does next.
Sandboxing shell commands and their children
A sandbox constrains the operating system level, so child processes started by a command inherit the restriction. Hallie explained this with npm test, a command auto mode allows. If a dependency in that test run opened an SSH key and sent it to an unknown host, an in-the-loop human approving the command would have clicked allow, because npm test itself looks harmless.
A sandbox changes what happens after approval. Hallie said the operating system controls which files a command can read, which folders it can write to, and which hosts it can reach. Deny rules pass through to the operating system, so the dependency opening that file is stopped.
Two caveats from the talk. By default the sandbox can still read most of the machine, so keys you care about need their own rule. And the sandbox covers shell commands and whatever they start. Claude own file tools, MCP servers and hooks run outside it.
That gap is the argument for running the whole session somewhere else.
Cloud sessions, network access and secrets
A cloud session gives each Claude Code run its own machine with a fresh copy of the repository, keeps working after you close the laptop, and removes the local secrets problem by construction. Hallie noted that .env files, SSH keys and GitHub tokens are not in Git, so they never reach that machine.
Network access is restricted by default to things like package registries and GitHub. Other hosts must be added explicitly. If a session needs an API key, Hallie said it can be provided as a network secret: the session reports the missing key mid-run, and the value is used without being sent to the model.
She keeps two controls on top. Auto mode and deny rules still apply, so a forced push or a secret in a commit can be caught. And she repeated a line worth remembering: the machine is disposable, but what leaves it is not. Pushed commits and messages sent through connectors persist.
Hooks, tests and the exit code that forces a retry
Hooks force verification to run, where a prompt only asks for it. Hallie calls them scripts Claude Code runs at a chosen point, so you decide when they fire and what they check. She gave three placements: a linter after every file edit, the relevant tests when a task is marked complete, and the full suite when the session tries to finish.
The detail that changes whether this works is the exit code. Hallie said most tools exit with code 1 on failure, and Claude Code treats that task as completed anyway. A script that exits with code 2 sends the error back to Claude, which then works on the fix.
A recent write-up of the same technique makes the mechanism explicit: the hook's stderr is passed to the model, so it should name the file, the line and the error rather than acting as a log file, as described in this summary of the Stop hook behaviour.
Verification points also reduce review cost. Hallie's example is migrating authentication to a new API, where one run leaves the old API in place, another migrates only new logins, and a third logs everyone out. A test that checks session behaviour fails the third run before it gets far.
CI, review and orchestration as the next handover
CI becomes the backstop once sessions multiply, because every pull request passes the same checks regardless of how the session was configured. Hallie said Anthropic turns on CI auto-fix so Claude notices a failing check and returns to the code, which keeps human review for things a check cannot catch.
Merge-when-ready exists but stays opt-in, and Hallie ties review depth to risk. On her team every pull request is reviewed by Claude first, in a fresh context and not by the session that wrote it, with a separate group of agents checking reported bugs. Docs and copy changes need no human reviewer once checks pass, ordinary product changes need one, and risky changes need two.
The next step removes the human from session startup. Hallie described Claude Code projects, which she said is still in beta, as an orchestrator session that splits a task, starts a thread per task, tracks what returns, and sends incomplete work back. The orchestrator wants a model that judges well, threads want a model that does the work, and the two can be set separately. She added that context management inside that setup is automatic.
Hallie closed with a smaller entry point: pick one task bigger than you would normally hand over, make CI catch what you care about, configure network access, secrets and a setup script, then start in the cloud and note where the session stalls or where you still approve something. That spot is the next thing to hand over.
Frequently asked questions about Claude Code best practices
- Should I delete my Claude.md instructions? Keep the parts that describe something the code cannot show, such as an unreferenced legacy data source or an external system a service talks to. Remove stack descriptions, file locations and exclamation-mark directives, which Hallie says can degrade results with current models. Run the prompt audit command first and read its output before deleting.
- Does auto mode replace deny rules? No. Auto mode is a classifier that approves commands it judges safe and blocks ones it cannot classify, and Hallie said it blocked 89% of clearly dangerous commands in an August 2026 Anthropic study while roughly one in ten still went through. Deny rules run before the classifier and stop the call entirely, so they remain the only strict guarantee inside the harness.
- Why does my hook not make Claude its failures? Most scripts exit with code 1 when a test fails, and Hallie said Claude Code marks the task complete anyway. Exit with code 2 and write the specific error to stderr so the model receives something it can act on.
- Is a sandbox enough for unattended runs? A sandbox limits files, folders and hosts for shell commands and their child processes, enforced by the operating system. It does not cover Claude own file tools, MCP servers or hooks, and by default it can still read most of your machine. Cloud sessions add a disposable machine with a fresh repository copy, which removes local secrets from reach.
- Is Claude Code projects ready for teams? Hallie described it as still in beta during the November 2026 talk, so treat orchestration as an option to test rather than a settled workflow. The single-session practices, deny rules, hooks, CI and cloud execution, apply whether or not you adopt it.
Where to learn this stack in Portuguese
If you want to apply these ideas in a Brazilian development team, Crazystack is a Portuguese-language program on TypeScript and modern web development, and the Crazystack Typescript track covers the kind of typed codebase where agent-written pull requests need strong CI and type checks.
Gustavo Dev Doido teaches through the Bootcamp do Dev Doido, which walks through building and deploying full applications. The habits in Hallie's talk, short project instructions, deny rules, hooks and a pipeline that fails loudly, fit that kind of project work directly.
Turning a talk like this into something your team can reuse is a separate job from watching it. YouBlog takes a YouTube link, transcribes the video and drafts an article from it, which is how a recorded walkthrough becomes written documentation your team can search.