Jason Zhou avatar

Jason Zhou

@jasonzhou1993

8/14/2025, 12:29:29 PM

I was using Claude Code Sub-agent wrong...

Here's what I learnt after 20+ hrs trial & errors

Made my agents way more effective

šŸ‘‡ Thread below https://t.co/1D6VXhDU4S
First -

Why did Anthropic build sub-agents initially?

It's all about context engineer & context optimisations

It works best when focusing on planning & researching and send back with a summary plan to conversation thread https://t.co/S6TmHxti2Z
However, 

Context sharing between sub-agents is non-exist

That's why if you have sub-agent do actual work, then this context is not visible to all other agents

This cause problems... https://t.co/5AwDxaQB0S
Meanwhile,

@ManusAI_HQ has this blog on how they use file storage as the ultimate context system

It inspired me to design a context sharing setup to get main agent & sub agents to share context between each other

.claude/
ā”” tasks/ (Updated by all agents)
ā”” session_context_01.md
ā”” session_context_02.md
ā”” ...
ā”” docs/ (Store result of each sub agent)
ā”” http://shadcn-frontend-implementation.md
ā”” http://vercel-ai-sdk-5-plan.md
ā”” http://usage-pricing-plan.md
ā”” ...

This allow effective handover & ability to maintain context
This is how I built:
- @shadcn -ui-expert agent
- vercel-@aisdk -5-expert agent

Using principles above https://t.co/ex4plgfrNE
Result?

It can one-shot building a fully functional chatGPT replica using latest @aisdk v5 (introduced a few weeks ago) https://t.co/Uw3AiJmMwa
If you interested in learning more

We have a claude code template in @aibuilderclub_ with best hooks/agents/commands that actually useful

We do weekly build together sessions https://t.co/9g6dKBmQA7
Share
Explore

TwitterXDownload

v1.2.1

The fastest and most reliable Twitter video downloader. Free to use, no registration required.

Ā© 2024 TwitterXDownload All rights reserved.