/Tech1d ago

Boris Cherny, Claude Code lead at Anthropic, releases nested subagent support to manage context limits in complex workflows

Story Overview

Boris Cherny just shipped an experimental tweak to Anthropic’s terminal-based coding agent that lets a main agent spin up subagents which can themselves spin up more subagents, creating a controlled hierarchy capped at five levels deep to keep long-running or multi-part tasks from flooding the primary context window.

6485.8K2981.4K476.7K
Original post
Boris Cherny@bcherny#320inTech

Just landed nested subagent support in Claude Code

Starting to experiment more with agents kicking off agents as a way to better manage context. Capped at depth=5 to start, going out in today’s release.

Lmk what you think!

5:42 AM · Jun 9, 2026 · 432.8K Views
Developer Impact

Nesting lets agents tackle bigger tasks without context overload

Each subagent runs in its own isolated window and returns only a summary, so developers can now break sprawling codebases or debugging sessions into layered delegations that previously had to stay flat.

Open Question

Five-level cap leaves room for future growth

The hard limit is presented as a starting point rather than a final design, with Cherny explicitly asking users for feedback on how the nesting behaves in real workflows and whether the ceiling feels too tight or just right.

Sentiment

Positive users praise Claude Code's nested subagent support for better context management and specialized workflows, while negative users point to bugs, rate limits, and token costs.

Pos
64.3%
Neg
35.7%
132 comments with sentiment.
Cluster Engagement
Posts from X
Most Activity
Most Activity
VIEWS18.1KBOOKMARKS39LIKES157RETWEETS8REPLIES18
Omar Khattab@lateinteraction

“agents kicking off agents as a way to better manage context”

“nested” language models

“depth=N”

neat :-)

Boris Cherny@bcherny

Just landed nested subagent support in Claude Code

Starting to experiment more with agents kicking off agents as a way to better manage context. Capped at depth=5 to start, going out in today’s release.

Lmk what you think!

1dViews 18.1KLikes 157Bookmarks 39
Dan Shipper 📧@danshipper

paging @kieranklaassen

Boris Cherny@bcherny

Just landed nested subagent support in Claude Code

Starting to experiment more with agents kicking off agents as a way to better manage context. Capped at depth=5 to start, going out in today’s release.

Lmk what you think!

1dViews 14.7KLikes 36Bookmarks 19
Boris Cherny@bcherny

One idea I’m experimenting with: add "fork:true" to a skill’s frontmatter to have it run in its own context window, then in the skill tell it to use agents to keep context isolated for each step also.

Adding this to the built in /code-review skill to improve performance even more

1dViews 1.4KLikes 30Bookmarks 18
meowbooks@meowbooksj

one token here costs 20k on the main thread

Boris Cherny@bcherny

Just landed nested subagent support in Claude Code

Starting to experiment more with agents kicking off agents as a way to better manage context. Capped at depth=5 to start, going out in today’s release.

Lmk what you think!

1dViews 4.3KLikes 115Bookmarks 5
elvis@omarsar0

@bcherny Testing this out as soon as I have access to it. Subagents are really underrated especially for effective context management.

Boris Cherny@bcherny

Just landed nested subagent support in Claude Code

Starting to experiment more with agents kicking off agents as a way to better manage context. Capped at depth=5 to start, going out in today’s release.

Lmk what you think!

1dViews 3.7KLikes 9Bookmarks 5

oh boy

Boris Cherny@bcherny

Just landed nested subagent support in Claude Code

Starting to experiment more with agents kicking off agents as a way to better manage context. Capped at depth=5 to start, going out in today’s release.

Lmk what you think!

1dViews 2.3KLikes 16Bookmarks 1

@lateinteraction It's a rule that Anthropic has to rename everything that they introduce 😀

Omar Khattab@lateinteraction

“agents kicking off agents as a way to better manage context”

“nested” language models

“depth=N”

neat :-)

1dViews 1.6KLikes 23Bookmarks 1
Boris Cherny@bcherny

@omerfrkdemiral Say “use a workflow”. Just “workflow” had too many false positives

1dViews 2.3KLikes 21
Auny 🧡@AunySillyMe

@bcherny i love the names my codex gives it's subagents 🤣

1dViews 121Likes 6
ÖFD@omerfrkdemiral

@bcherny Previously, when I wrote workflows, they were colorful; could you bring that back?

1dViews 2.4KBookmarks 1
Adam Elkassas@adampredev

From my experience this doesn't work out of the box. CC struggles on runaway context in a single instance and often adding more nested subagents makes it worse up to a certain point. It also really depends on the complexity of the problem, so you have to scope its use well or it can be less context efficient and actually do worse in a lot of cases. There is some coordination magic that can get it to work in the right circumstances, but that's for the CC team to figure out ;)

1dViews 74Likes 3Bookmarks 1
Nicholas Ramos@NickVRamos

@bcherny like the context management angle

more agents kicking off agents = more review surface area

@plannotator feels timely

1dViews 34Likes 1Bookmarks 2
Paweł Huryn@PawelHuryn

@bcherny Will you support nested dynamic workflows, too? Would love to explore that. As far as can tell, those were hard limits with tools unavailable to subagents.

1dViews 214Likes 2Bookmarks 1
Daniel Auras@rasdani_

@bcherny just call it RLM already

1dViews 28Likes 3Bookmarks 1
Lee Penkman@LeeLeepenkman

@bcherny Yea I've been /batch and loop and I used to use it a lot for monitoring but I switched to gpt max plan for that as -p is kind of less economical these days because of those rules .. but apart from that I love sub agents so cool they are back and deeper than ever :D

23hViews 3Likes 1Bookmarks 1
Virang Jhaveri@VirangJhaveri

@bcherny Now tracking what agents did and improving will get terrible.

But Superdense can help https://github.com/Nimrobo/superdense

1dViews 25Likes 1Bookmarks 1
binaryminary@binaryminary

@bcherny Can you share an example of how you personally use it?

1dViews 1.7KLikes 1
SeekerClaw@SeekerClaw

@bcherny Can we watch what each subagent is doing? Monitoring subagents should be fun!

1dViews 795Likes 1
Load more posts