Wishing for one AI model that's the smartest, fastest, and cheapest for coding agents makes sense. It would be simpler.
But you can already get that combination from the system around the models, not from any one LLM. 🧵
@leoleotoobad You can build the complex stuff, just not as one big prompt. We split the work by concern into stories, each with its own checks, and the Architect reviews them before they're built.
@ivan_bezdomny We write the project's decisions down as they get made, so the agents work from what's already settled instead of choosing again each time.
@shriabhinav09 A separate QA writes the tests from the story's acceptance criteria before any code exists, so the checks aren't shaped by what the Builder did.
@msg We ended up with fewer subagents, each tied to a step in the work instead of a job title, like an Architect that can send a story back before anything gets built.
Routekit is the open-source framework behind this, roles, stories and gates included: https://t.co/9XJPivuDFY
If you want help setting up something like it for your team, that's what we do at https://t.co/ce9tXrsWsQ
The value of subagents isn't running more of them at once. It's that each one has one job and nobody grades their own work.
In Routekit, the Dispatcher dispatches. That's its whole job. The PO kicks off research and writes the backlog, with acceptance criteria on every story. QA reads those criteria and writes the tests. The Architect reviews stories before they're built and sends back the ones that don't hold up. The Builder builds. A separate Reviewer checks the result, and the story waits until it passes.
None of this is new. It's how good teams already split up work. Software is still software, and design, testing and review don't go away because the code came from a model.
What changes is that each agent starts with a narrow brief and a clean context, and the handoff between them is a story, not a chat log.
Worth knowing Karpathy didn't write this file. A developer built it from his January notes on where coding agents go wrong. The four rules are good ones, but a rule in a file is inference, a request the model can skip. The ones that matter most to us live in code, as checks the work has to pass before it moves on.
@koriigami We've ended up doing that page with the agents instead of before them. We talk the idea through with the Dispatcher while a Research agent digs into the code and notes, and once it's settled it becomes stories with acceptance criteria that separate agents build and check.
Routekit now runs four of our own projects besides itself. Two are websites, one is a trading project, and one is for business process work. We'd rather prove the process on work that looks nothing like Routekit than only on Routekit.
@read__the__diff A lot of our review moved earlier. The Architect checks each story before it's built and QA writes the tests from its acceptance criteria, so the post-build Reviewer has less left to catch.
@JakeHoffner@github@bot@Claude Our handoff is the backlog. A story and its acceptance criteria stay there, and the Dispatcher sends that to the next agent, so it doesn't live in anyone's context window.
@IliyaOblakov We think in stories rather than how many agents are running. Each agent has one job and the Dispatcher only dispatches, so the thing we track is which phase each story is in.
@Terrence_Y_ Being able to pick the model per role. Planning, building and reviewing don't all need the same one, and swapping one shouldn't mean rebuilding the workflow around it.
@kkaminsk We ended up treating that third one as its own system. Research findings and decisions go into notes the agents can search, separate from the stories they work from.
@mikawuf Worth adding that a fresh session often beats one long one that keeps compacting. We keep what has to carry over in notes the next session can read.
@michaelyinplus It's still software whoever writes it. For us those decisions live in each story's acceptance criteria, and an Architect review can send a story back before any code exists.