Enjoying this issue?
Get tomorrow's AI & engineering digest in your inbox — hand-picked, summarized, and always spam-free.
TLDR
Anthropic's internal use of Claude Code has shifted from micromanaging each session to acting as a manager of dozens of autonomous sessions, enabled by stronger models and new safety features. The key changes are: minimal CLAUDE.md files (only what Claude can't infer from code), auto mode with a separate classifier that blocks dangerous commands better than humans, hard deny rules for irreversible actions, sandbox environments for untrusted code, and project-level orchestration that delegates tasks to sub-agents. The real story is that the old best practices of steering and approving every step are now counterproductive with current models.
Key points
Anthropic went from about 200 code changes per day in May to over 30,000 per day in September.
Auto mode uses a separate classifier to approve or reject commands, blocking 89% of dangerous commands versus 14% caught by humans.
Hard deny rules in settings block commands before auto mode evaluates them, preventing irreversible actions like reading API keys.
The /sandbox command limits file access and network reach for commands, protecting keys even from compromised scripts.
Claude Code Projects lets one main session orchestrate separate sub-sessions for each task, with configurable coordinator and worker models.
Tools mentioned
Techniques
- auto mode with command classifier
- hard deny rules for irreversible actions
- sandbox environment for untrusted code
- hooks with exit code 2 to force fixes
- project-level orchestration with coordinator and worker models
Stop scrolling. Start reading smarter.
Receive the day's most important AI & engineering updates in one concise email. No spam.
Transcript (captions)
So, Enthropic went from about 200 code changes a day in May to more than 30,000 a day in September. And Lydia Hi from the Cloud Code team just gave a talk on how they're working now. And it looks
really different from how most people are still using Cloud Code today. >> We've now essentially become managers for dozens of sessions. >> So, I broke down her talk into the five
things that you need to do yourself in every single session, what handles each one now, and the setup that you can copy today. So, let's not waste any time and just get straight into this one. All
right. So the first thing that we used to do was steer. Earlier this year, a session on Opus 4.5 meant you would watch it after you prompted it and then you would correct it and remind it what
to do. So people started filling up their claw.mds with lines like important and never in all caps. Lydia's daily driver now is Obus 5.5 and she says on models that are that strong, those lines
actually work against you. 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 a worse results.
So nowadays your cloud MD file should only include the things that Claude cannot see from your code. >> So the test for every line in your CloudMD is could claude figure this out
by reading the code. I basically run my whole business out of one folder and inside of cloud code it uses cloud.mmd as my routing map or it can also use agents.mmd where my business wiki lives,
where my brand assets are and where my finances are, things like that. Claude would have a really hard time just guessing that from the files. So that's what stays. And the cool thing is you
don't have to clean all of this up by hand. You can just start to brainstorm with it a little bit. And you can even run /docctor prompt audit and it will check your cloudmd and your skills
against the model that you're on and it will tell you what the model no longer needs and what's just taking up space and maybe even confusing the model. Now the second thing was about approving.
You either clicked allow on every single command or you skipped permissions dangerously and you just kind of crossed your fingers and hoped for the best. But now we have auto mode which is the
default inside of like the terminal and cloud code desktop app. And so with auto mode, they have a separate classifier that checks your commands. So tests and installs can just run and it will only
stop on things that it isn't sure about. But by default, it will only trust your current folder and your current repo. So if you ask cloud to ship something to staging, it will just block the push to
your deploy repo and you're back to once again approving things in a very safe manner. >> You can configure auto mode in your own settings just in plain English. And this
is what gets sent to the classifier which then decides whether to reject or allow certain commands. >> So you write out which repos or buckets and domains that you trust plus what it
should always allow or never do. And if you don't want to write that yourself, then you can just run /auto mode setup and it will draft those entries from your project and your recent sessions.
And auto mode is also already really good at catching these bad commands and much better than you are, especially if you don't come from a coding or technical background like I don't. So I
use auto mode all the time. So, in a study we published back in August, we tested auto mode versus real people in the loop, and only about 14% of people caught a clearly dangerous command. Auto
mode blocked 89% of them. So, it is a lot better at it than we were. But about 1 in 10 of those commands still went through. >> Now, the third thing is interesting.
It's about saying no. Auto mode will still let about one in 10 bad commands through. So, for the stuff that really matters, you want to have a deny rule or like a deny list. And that's a hard
block that you put in your settings file and cloud code can check it before even auto mode gets a say. So Lydia has a simple test for what needs to go on this deny list.
>> I think it kind of just comes down to if Claude gets this wrong once, can I take it back? >> If Claude writes bad code, you can undo that. So then you just let the model
handle it. But if it wipes work that you hadn't saved or if it reads one of your API keys, you can't undo that. So saying never read my.NV NV file, which is where your keys live, that would actually
become a hard rule rather than just a prompt rule. There's a big difference between saying something in the prompt and having something actually hard-coded in permissions. And that's important if
you're working with clients, too. And also, if you're using cloud code way more for knowledge work like I am, rather than like building software or coding all the time, the test is still
the exact same thing. Cloud rewriting a draft is fine, but sending an email or deleting files is something that you cannot take back. But once again, a deny rule only sees the command, not what the
command does. So say Cloud runs your tests. Those tests also run a bunch of code that you didn't write. So if one of those scripts is compromised, it could just open that same end file or your SSH
keys and send those to a server you've never heard of, right? And even if we were still there as humans approving everything, honestly, we would have just clicked allow cuz there's nothing to say
no to. >> And that's what a sandbox sort of environment is for. And you can actually type / sandbox and your computer itself will limit which files a command can
open and which websites it can reach. So even a bad package can't go grab your keys. And Lydia also says that for the really long jobs, she will run Claude in a cloud session where it gets its own
fresh computer with a copy of your code. So your keys aren't even in there and it keeps going even if you, you know, close your laptop. >> This machine is disposable, but the
things that leave it aren't. So a commit is pushed or a message is sent through a connector. >> And you can keep those deny rules in the cloud sessions as well. All you have to
do is commit them into your project and then every session in the future will pick them up. So by the way, I put all of these deny rules and the auto mode settings and all these, you know, these
hook setup things that I'll be talking about from this video into a free guide inside of my free school community, which you can grab using the link in the description. If Claude runs for hours on
its own, you're not reading every single file at the end. And if you are, you might be wasting some time. But the same prompt can land in really different places. So Lydia's example is moving
your login system to a new API. >> So with the exact same prompt, you know, one run might move it over but leave the old API in there. Or one might move it but only for new login and another one
might move it but log everyone out. >> All three of these look fine at a glance. So what you do is you give Claude checks along the way that either pass or fail, like a test or a
screenshot. That way the run that logs everyone out actually gets caught right away at that first check rather than at the very end and you've wasted all your time and tokens. And this of course
works outside of code too. If cloud is writing a research report for example the check can be you know making sure that every claim has a source link or that every number matches the
spreadsheet. And once again when you're doing these checks yes they can be programmatic or sort of hardcoded in but they can also be a bit more subjective. They can be simply you saying what does
done look like or what does good look like? And you can give every single task its own test and you can have it take screenshots and you know double check things and triple check things. The key
is that Claude is looking at its actual output and it's iterating on it and it's giving itself feedback and it's checking things before it hands you that v1. >> I also like to ask it to show the actual
output because you weren't there to see it. >> And I am always doing some sort of version with this in my skills and also whenever I do a / goal prompt which is
you know the prompt that keeps cla working until a finish line is actually true. But then if you do have certain checks that have to run every single time, that's when you use hooks, which
are these little scripts that cloud code runs on its own. You know, a quick format check after every edit or the test after every task and the full test suite before it's allowed to finish. So
these are a lot more programmatic and code- based. And when a check fails, the number your script exits with decides what Claude does next. >> When a test fails, by default, most
tools, they exit with a one exit code. Um, but with a one, that task by cloud 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. >> So, maybe you can make your hooks exit with a two and then cloud can't call something done until it actually is. And
then once a session opens up a pull request, your CI can run. And on Lydia's team, Cloud reviews the code before any human person does. >> On our team, uh, every PR gets reviewed
by Cloud first, so not by the session that wrote it. So it comes with a a fresh context and also a separate group of agents to just double check every bug it finds.
>> And after that the people only review what's actually risky and the small stuff like the docs can merge on its own once those checks have passed. Now the very last thing that you still do
yourself is start every session and that's the next thing that Enthropic is handing off. So with cloud code projects which is in beta right now on pro max and ultra plans you basically give one
main session your whole list for the week and it just starts a separate session for each task and it checks what comes back. So, it's kind of like the same way you would have, you know, a
main orchestrator agent delegate to sub agents, but it's doing it in more of a projectoriented way. It's like sub agents on steroids. And that list, of course, doesn't have to be code. It
could be a client report or a research brief or, you know, making up a bunch of content ideas and then scripting out the videos or whatever it needs to be for that specific project. So, instead of
juggling all, you know, 12 different chats, you're just talking to one main chat. >> And the main session doesn't write the code itself. So there you want a model
that's really good at deciding what to do and judging what comes back. A model like Fable. >> And you can even in your project settings set what the coordinator or the
orchestrator model is. So you could use something like Fable 52, which is Enthropic's newest model at the moment. And then you could have each thread model, which are like the little sub
chats, be something like Opus 5.5 for the actual work. So basically moral of the story here is that the old best practices are all still there, but they've just kind of moved a lot off
your plate and things are happening more automatically now. And you want to make sure that you're not giving these really powerful models too many instructions and really just getting in their way.
You want to let them do what they're built and trained to do. >> So almost everything we used to do ourselves is now either the model, the harness, or the environments.
>> So if you want to try this, just take one task that's way bigger than what you'd normally give to Claude and make sure you have a check that would catch if something is going wrong
>> and then start in the cloud and see where your sessions get stuck and where you're still in the loop because that's the next thing to hand over to Claude. So, if you guys enjoyed this one or you
learned something new, then please give it a like. It helps me out a ton. And as always, I appreciate you guys making it to the end of the video and I'll see you on the next one.