Loading video...

Video Failed to Load

Go Home

Anthropic just released new agent guide: make every subagent earn its own context steal this 18-role blueprint for turning Opus 5.5 into an entire engineering team PLAN → TOOLS → RESULTS → REVISE one main loop keeps the goal, plan and evidence → procedures become skills → API actions...

18,866 views • 6 days ago •via X (Twitter)

28 Comments

beamnxw ./'s profile picture
beamnxw ./6 days ago

guide: reference kit:

Lummox's profile picture
Lummox6 days ago

That’s another step bros

monokern's profile picture
monokern6 days ago

shared context overhead is what people usually underestimate

tekario's profile picture
tekario6 days ago

this guide is what i was looking for this evening!

Bonsai 🌳's profile picture
Bonsai 🌳6 days ago

If there’s anyone you should listen to, it’s definitely Anthropic

Marvin's profile picture
Marvin6 days ago

anthropic is an incredibly cool company from what i can see

NO1ennn's profile picture
NO1ennn6 days ago

Alpha info bro , we must test it thx

Lisa Phillips's profile picture
Lisa Phillips5 days ago

Is mandating context for every subagent truly scalable, or does that overhead introduce complexity that negates the efficiency gains of using a large model?

Diam's profile picture
Diam6 days ago

The merge rule makes sense. Separate job titles don't always need separate agents.

Skaly_Bull's profile picture
Skaly_Bull6 days ago

A subagent that cannot justify its own context is just expensive noise

Yarchi's profile picture
Yarchi6 days ago

That’s huge, thanks for sharing

Gipp 🦅's profile picture
Gipp 🦅6 days ago

anyone scaling teams with agents should dig into this guide

EugBass's profile picture
EugBass6 days ago

very helpful guide

Zhen's profile picture
Zhen5 days ago

A role earns its own context when it reduces a specific failure mode: stale assumptions, weak verification, or tool sprawl. I’d compare the single-loop baseline and the split version on identical tasks, then inspect both the result quality and the cost of reconciling their state.

0xbobaa's profile picture
0xbobaa6 days ago

"merge roles that repeatedly share data" is the line most multi-agent setups need, half the subagents out there just pass the same context back and forth

Crio Songo's profile picture
Crio Songo6 days ago

This idea is quite interesting, I'll pull the code down and run it to see how the effect actually works.

Vini Ensina | Claude Code & IA's profile picture
Vini Ensina | Claude Code & IA6 days ago

the test I use before splitting off a subagent: does it run in parallel, need a clean context, or need tools that conflict with the main loop? if none of the 3, it stays a skill in the main agent. every handoff loses detail

猫屎咖啡's profile picture
猫屎咖啡6 days ago

子代理各管一摊更清爽

Slonski's profile picture
Slonski6 days ago

comparing each merge of roles on the same end-to-end tasks is what really shows what breaks

Javeriya Ahsan's profile picture
Javeriya Ahsan5 days ago

Having verifiable outputs changes the whole workflow.

Zephyr's profile picture
Zephyr6 days ago

curious which of the 18 roles survive after the merge test. my guess is verification stays separate and most of the rest fold into one loop

catman's profile picture
catman5 days ago

If teams start treating context boundaries as something to measure, agent architectures may get simpler over time. The roles that survive will be the ones that show a repeatable improvement on real tasks, not the ones that look good on a diagram.

Unmarked's profile picture
Unmarked6 days ago

wtf is this hahaah

Vipul Kumar Kewat's profile picture
Vipul Kumar Kewat5 days ago

If you want to grow, share one lesson per video, not just the video.

AdiiX's profile picture
AdiiX6 days ago

merge roles that keep sharing data, such a clean rule, saving the whole blueprint Beam

IronaX's profile picture
IronaX5 days ago

Thank it’s nice

marfin's profile picture
marfin6 days ago

thx for these links, friend

The SI Maximalist's profile picture
The SI Maximalist6 days ago

Eighteen roles, one main loop keeping the evidence straight. The org chart gets much more useful when progress survives a handoff.

Related Videos

You probably have too many subagents Anthropic team found that one agent with skills often beats a stack of subagents: better quality, lower cost, less latency, easier set up. One customer got about 2x faster runs after switching. Here is the thing. Every subagent hands back a summary, and every handoff loses detail. One agent that saw every step can actually connect them. And since Opus 4.5, models handle far more in a single loop, so a lot of that "router and specialist" structure is doing work the model no longer needs. The old reason to split agents was a bloated system prompt. Skills and tool search fix that: the agent only loads what it needs, when it needs it. Here's how to fold your subagents into one agent: 1. Build the core loop One model, one context window. Each turn it fires off tool calls, the harness runs them in parallel, and the same model decides the next step. Set turn and cost budgets and write gates in the harness. 2. Let the model own the plan It writes the plan on turn one and revises it as results come in. No separate planner, no router. 3. Turn subagent prompts into skills Steps, rules, and team know-how go into skills. The agent only sees short descriptions and loads the full skill when it needs it. That's what keeps the system prompt small: Anthropic cut Claude Code's by 80%+. 4. Turn API calls into tools Group tools by user intent, not one per endpoint. Past 30–50 tool definitions, tool choice degrades, so use tool search with deferred loading. Put validation, approvals, and permissions inside the tools. 5. Move reference material behind search Policies, specs, and docs sit behind a lookup tool the agent calls. Don't paste them into the prompt. Subagents still make sense in a few cases: when the context is measurably bloated, when you need parallel work in fresh context you can throw away afterward, or when the agent keeps picking the wrong tools because of conflicting instructions. Even then, call the subagent as a tool so the main agent stays in the conversation. And don't migrate everything at once. Start with a small eval, even 10 golden examples is enough, then fold in one subagent at a time, beginning with the ones that always run together. Look at which tasks flipped, not just the overall score, and run each task more than once, because some breaks only show up every other run. If the folded version does worse, keep the subagent. Fewer agents, smarter loop.

Yarchi

16,479 views • 8 days ago

THIS IS A PURE F*CKING GOLDMINE Anthropic just shared one of the best tricks for Claude Code. The idea: let Opus 5.5 write the plan as a script, and let a swarm of cheaper agents run it. Bigger jobs and way fewer Opus tokens, because the script holds the plan and Opus only sees the final answer. You just launch Claude Code like this: claude --model opus --effort ultracode here's the split: → Opus 5.5 turns your task into a workflow script → Haiku 5.5 agents scan every file in parallel → Sonnet 5.5 agents patch each fix in its own isolated copy → you stop burning Opus context on a hundred agent transcripts Opus only shows up at three moments: → writing the workflow before the run → reading the verified results after it → signing off before anything ships Opus plans. Haiku scans. Sonnet ships. JEV engineering is the same move one layer down: the forks that need no thinker (which file, which tool, retry or stop) go to JEV in milliseconds, and the big models only see the ones that split the full tree > Opus 5.5 runs the main session and writes the workflow > scan audits every file on Haiku 5.5 > edit patches each fix on Sonnet 5.5 in an isolated copy > verify cross-checks every finding on Sonnet 5.5 > Opus 5.5 reads only what survived verification > JEV routes micro-forks in milliseconds paste the tree and this prompt into Claude Code ↓ "Rebuild my Claude Code setup around this tree: 1. Run the main session on Opus 5.5 with ultracode on. 2. In every workflow, run read-only scan stages on Haiku 5.5 and edit stages on Sonnet 5.5, each edit in its own isolated copy. 3. Add one rule to CLAUDE.md: every finding gets an independent verifier agent before it's reported, and fix loops stop after two rounds with no progress. 4. Route fast deterministic forks (tool choice, path selection, retries) through JEV. Show me every change as a diff first. No edits until I say go." ↳ save it, it'll come in handy.

xsmryze

60,847 views • 11 days ago

THIS IS A PURE F*CKING GOLDMINE Anthropic just shared the sharpest trick for Claude Code The idea: let Opus 5.5 write the plan as a script, and swarm the new Haiku 5.5 in parallel Huge sweeps with zero Opus burn: the script holds the loop and Opus only sees the final diff You just launch Claude Code like this: claude --model opus --effort ultracode here's the split: → Opus 5.5 turns your objective into an executable workflow script → Haiku 5.5 swarms every file in parallel at 340 tok/s to extract candidates → Sonnet 5.5 patches each fix and cross-checks findings in its own isolated copy → you stop burning Opus context on a hundred agent transcripts Opus only shows up at three moments: → authoring the workflow script before the run → reading verified findings after the swarm finishes → signing off before anything ships to git Opus plans · Haiku scans · Sonnet ships JEV engineering is the same move one layer down: the forks that need no thinker (which file, which tool, retry or stop) go to JEV in milliseconds, and the big models only see the ones that split the full tree > Opus 5.5 runs the main session and writes workflow.js > pipeline() fans out the new Haiku 5.5 to audit every file > parallel() schema validators drop false positives in V8 > Sonnet 5.5 patches each fix in an isolated worktree > verify cross-checks all diffs before reporting > Opus 5.5 reads only what survived verification > JEV routes micro-forks in milliseconds paste the tree and this prompt into Claude Code ↓ "Rebuild my Claude Code setup around this tree: 1. Run the main session on Opus 5.5 with ultracode on 2. In every workflow, run read-only scan stages on the new Haiku 5.5 and edit stages on Sonnet 5.5, each edit in its own isolated copy 3. Add one rule to CLAUDE.md: every finding gets an independent verifier agent before it's reported, and fix loops stop after two rounds with no progress 4. Route fast deterministic forks (tool choice, path selection, retries) through JEV Show me every change as a diff first, no edits until I say go" ↳ save it, it'll come in handy

mirku

200,753 views • 17 days ago

THIS IS AN ABSOLUTE F*CKING GOLDMINE Anthropic just shared one of the best tricks for Claude Code. The idea: Opus 5.5 writes the entire plan as a script, and a swarm of cheaper agents executes it. Bigger jobs and far fewer Opus tokens, because the script holds the plan and Opus only sees the final answer. You just start Claude Code like this: claude --model opus --effort ultracode here's the split: → Opus 5.5 turns your task into a workflow script → Haiku 5.5 agents scan every file in parallel → Sonnet 5.5 agents patch each fix in its own isolated copy → you stop burning Opus context on a hundred agent transcripts Opus only steps in at three moments: → writing the workflow before the run → reading the verified results after it → signing off before anything ships Opus plans. Haiku scans. Sonnet ships. JEV engineering is the same move one layer down: the forks that need no thinker (which file, which tool, retry or stop) go to JEV in milliseconds, and the big models only see the ones that split the full tree > Opus 5.5 runs the main session and writes the workflow > scan audits every file on Haiku 5.5 > edit patches each fix on Sonnet 5.5 in an isolated copy > verify cross-checks every finding on Sonnet 5.5 > Opus 5.5 reads only what survived verification > JEV routes micro-forks in milliseconds paste the tree and this prompt into Claude Code ↓ "Rebuild my Claude Code setup around this tree: 1. Run the main session on Opus 5.5 with ultracode on. 2. In every workflow, run read-only scan stages on Haiku 5.5 and edit stages on Sonnet 5.5, each edit in its own isolated copy. 3. Add one rule to CLAUDE.md: every finding gets an independent verifier agent before it's reported, and fix loops stop after two rounds with no progress. 4. Route fast deterministic forks (tool choice, path selection, retries) through JEV. Show me every change as a diff first. No edits until I say go." ↳ save it, you'll reach for it on every big task.

Callan

13,976 views • 17 days ago

THIS IS PURE F*CKING GOLD Anthropic just dropped the ultimate autonomy loop for Claude Code The idea: run /goal in auto mode, and let the new Haiku 5.5 judge every turn True overnight autonomy with zero burn: Sonnet builds, Haiku evaluates at 340 tok/s, Opus signs off You just launch Claude Code like this: claude --model opus --dangerously-skip-permissions here's the split: → Opus 5.5 locks the goal condition and plans the overall architecture → Sonnet 5.5 writes the fixes, refactors modules, and runs test suites → Haiku 5.5 evaluates completion after every turn as an independent Stop hook → you stop burning Opus context on dozens of intermediate iteration turns Opus only shows up at three moments: → framing the goal condition before the loop starts → intervening if the loop hits the turn cap or an impossible verdict → signing off on the final git diff once the goal clears Opus frames · Sonnet builds · Haiku judges JEV engineering is the same move one layer down: the forks that need no thinker (which tool, path resolution, retry or abort) clear in milliseconds, and the big models only see the ones that split the full tree > Opus 5.5 runs the main session and defines the completion condition > auto mode approves safe tool calls so turns run unattended > Sonnet 5.5 patches code and runs test suites in an isolated copy > Haiku 5.5 evaluates transcript evidence: Met · Not yet met · Impossible > background check-in monitors idle tasks and backs off stuck loops > Opus 5.5 reviews the achieved transcript and signs off on the diff > JEV routes micro-forks in milliseconds paste the tree and this prompt into Claude Code ↓ "Rebuild my Claude Code setup around this tree: 1. Run the main session on Opus 5.5 with auto mode enabled 2. Route the goal evaluator hook to the new Haiku 5.5 via ANTHROPIC_DEFAULT_HAIKU_MODEL 3. Use Sonnet 5.5 for implementation and refactoring turns, keeping fixes isolated 4. Add one rule to CLAUDE.md: always bound autonomous /goal conditions with a verifiable end state and stop after 20 turns with no progress 5. Route fast deterministic forks through JEV Show me every change as a diff first, no edits until I say go" ↳ save it, it'll come in handy

mirku

25,309 views • 16 days ago

THIS IS A PURE F*CKING GOLDMINE Anthropic just shared one of the best tricks for Claude Code. The idea: let Opus 5.5 write the plan as a script, and let 12 cheap agents run it while Opus sits idle at zero tokens. Same task, two ways: Opus solo was 49% done and still running. The swarm finished in 9 minutes on 165k tokens. You just launch Claude Code like this: claude --model opus --swarm haiku,sonnet here's the split: → Opus 5.5 writes plan.js, then stops reading anything → 6 Haiku 5.5 agents audit every file in parallel → 4 Sonnet 5.5 agents patch each fix in its own isolated copy → 2 Haiku 5.5 agents cross-check, 8 of 9 findings survive Opus only shows up at two moments: → writing the plan before the run → signing off on the verified fixes after it Opus plans. Haiku scans. Sonnet ships. JEV engineering is the same move one layer down: 3,767 forks this run - which model, which lane, retry or stop - resolved in code, and only the genuinely split ones ever reach Opus the full tree > Opus 5.5 runs the main session on xhigh and writes plan.js > scan audits each file on Haiku 5.5, six in parallel > patch applies each fix on Sonnet 5.5 in its own isolated copy > verify cross-checks every finding on Haiku 5.5 > Opus 5.5 reads only what survived, then signs off > JEV resolves micro-forks in milliseconds paste the tree and this prompt into Claude Code ↓ "Rebuild my Claude Code setup around this tree: Run the main session on Opus 5.5 with effort xhigh and swarm haiku,sonnet. Have Opus write the plan as a script: scan on Haiku 5.5, patch on Sonnet 5.5 in isolated copies, verify on Haiku 5.5. Let the phases overlap - each finding moves on as soon as its own stage finishes, no waiting for the batch. Never surface raw agent output to the main session, only verified results. Route deterministic forks (model choice, lane choice, retries) through JEV. Show me every change as a diff first. No edits until I say go." ↳ save it, it’ll come in handy

Sprytix

19,842 views • 16 days ago

THIS IS A PURE F*CKING DIAMOND Anthropic just documented one of the best setups for Claude Code The idea: run Opus 5.5, Sonnet 5.5, and the new Haiku 5.5 together in a tight tripartite loop, each doing only what it was built for Opus-level planning on every big architectural decision, without paying Opus rates for routine code edits or repo searches You just start Claude Code like this: CLAUDE_CODE_SUBAGENT_MODEL=haiku claude --model opusplan here's how it splits: → Opus 5.5 runs plan mode: architects the system blueprint, locks contracts, and signs off on the diff → Sonnet 5.5 executes the plan in the main session: writes the code, applies patches, and runs test suites → Haiku 5.5 swarms the repository in parallel: maps the AST, greps call sites, and parses docs at 340 tok/s with native 1M context → you stop burning Opus context on routine files and keep your main session under 10k tokens Opus only steps in at three moments: → before a plan locks (architectural design) → when the same test fails twice (debugging deadlocks) → before calling it done (signing off on git diff) Opus plans, Sonnet builds, Haiku swarms JEV engineering is the same move one layer down: the forks that need no thinker (which file, which tool, retry or stop) resolve in code in 15ms, and the frontier models only see the ones that split the full tree > Opus 5.5 architects the implementation plan (opusplan mode) > Sonnet 5.5 runs the main execution session and writes code > search maps the repo AST on Haiku 5.5 (340 tok/s, 1M context) > grep locates token call sites on Haiku 5.5 (isolated subagent) > docs pulls API specifications on Haiku 5.5 (0.05x cost) > Opus 5.5 verifies synthesized diff before final sign-off > JEV routes micro-forks in milliseconds paste the tree and this prompt into Claude Code ↓ "Reconfigure my Claude Code setup around this tree: 1. Run with model 'opusplan' so Opus 5.5 plans the architecture and Sonnet 5.5 implements the code 2. Set CLAUDE_CODE_SUBAGENT_MODEL=haiku so all search, grep, and documentation subagents swarm on Haiku 5.5 with its native 1M context 3. Configure fallbackModel to ['sonnet', 'haiku'] in settings.json to guarantee 100% session availability 4. Add one rule to CLAUDE.md: delegate all repository searches and test runs to Haiku 5.5 subagents to keep main context under 10k tokens 5. Route fast deterministic forks (tool choice, path selection, retries) through JEV Show me every change as a diff first. No edits until I say go" ↳ save it, it'll come in handy

mirku

38,620 views • 14 days ago

THIS IS A PURE F*CKING CODING JACKPOT Anthropic built the most powerful Claude Code feature and hid it from us Claude Code can now run a whole team of AI agents from one script, and almost nobody has switched it on here's the idea: Opus 5.5 writes the plan as a script, cheap fast models do the grunt work in parallel, and Opus only reads the final result the script holds the loop. not Opus. so your expensive model isn't burning context on a hundred agent chats you turn it on like this: claude --model opus --effort ultracode here's how I'd split the work: -> Opus 5.5 turns your goal into a workflow script -> Haiku 5.5, the fastest Claude model right now, scans every file in parallel -> Sonnet 5.5 makes each fix in its own isolated copy of the repo, so edits don't collide -> separate checker agents try to knock down every finding before you see it Opus only shows up three times: -> writing the script before the run -> reading what survived the checks -> your final yes before anything goes to git Opus plans. Haiku scans. Sonnet fixes. and here's my twist: Jev is the same idea one level down. the tiny forks that don't need a thinker (which file, which tool, retry or stop) go to Jev in milliseconds, and the big models only get the hard ones paste this into Claude Code: "Rebuild my Claude Code setup around this: 1. Run the main session on Opus 5.5 with ultracode on 2. In every workflow, run read-only scan stages on claude-haiku-5-5 and edit stages on claude-sonnet-5-5, each edit in its own isolated copy 3. Add one rule to CLAUDE.md: every finding gets an independent checker agent before it's reported, and fix loops stop after two rounds with no progress 4. Send fast simple decisions (tool choice, path selection, retries) through Jev Show me every change as a diff first. No edits until I say go." the catch: ultracode spends a lot more tokens per request. great for big sweeps, overkill for a one-line fix ↳ save it, you'll need it

kiosa

19,390 views • 15 days ago