ok so let me explain why subagents kill long context
swyx 🇸🇬
Visit on X@swyx155K followers
276,060 views
ok so let me explain why subagents kill long context
Like you can spend $500m building 100 million context models, and they would be 1) slow, 2) expensive to use, 3) have huge context rot. O(n) is the lower bound.
Cog's approach is something you learn in day 1 of CS50 - divide and parallelize. Embeddings are too dumb, Agentic Search is too slow. So train limited-agency (max 4 turns), natively parallel tool calling (avg parallelism of 7-8, custom toolset) fast (2800tok/s) subagents to give the performance of Agentic Search under an acceptable "Flow Window" that feels immaterially slower than Embeddings.
The benefit of this is threefold:
- 8 ^ 4 toolcalls cover a very large code search space. can compound subagent calls if more needed.
- predictable cost & end to end latency
- subagent outputs "clean" contexts, free of context failure modes like context poisoning and context rot (h/t Drew Breunig )
we originally called this Rapid Agentic Search, to contrast with RAG. but Fast Context rolls of the tongue better.
there's 2 other perspectives that are worthwhile, i'll go into below, but just go try it out. here it is on Andrej Karpathy's fastchat
Comments
Comments from the original post on X (Twitter)
No comments yet
