Most turns in a coding session don't need the biggest model, but Claude Code and Codex send every turn to whatever model the session started on.
So I built jev-router, a small local proxy in Rust that sits between the harness and the model providers. On each new turn it asks Jev (a classifier on OpenRouter) which model fits, based on route descriptions I write in plain English, then holds that pick for the whole tool loop so I don't throw away the prompt cache mid-turn.
If Jev is slow or unsure the turn falls back to a default, and I can force a model with @route:opus when I know better. Every decision gets logged so I can label what should have happened, and I'm not trusting any savings number until I have 150 labeled turns.
Mine are split by repo. Each repo gets its own long-running Grok Bot thread that keeps the context and starts the coding runs in T3 Code. The two doing the same job on different repos share one procedure file plus a small settings file each, so a process change only gets made once.
@levelsio Yea this is basically how my home lab monitoring works now, a Grok Bot checks my machines every morning (disk, containers, backups, Home Assistant) against a baseline of what's already broken and only messages me when something's new or worse, like a backup older than 36h.
Built a small one for my own repos, GitHub issue in and merge-ready PR out. Every release runs an eval against a repo with planted bugs and we record solve rate, cost & time against the previous checkpoint, otherwise I'd have no way to tell if a change to the "factory" made it better or worse.
@mattpocockuk Been on this lately too. Running the full suite on every PR is our slow part, so the plan is to only run the suites a change actually touches, and write it up once as a runbook we use across every app.
@elonmusk@bot Yea I use both - the bots get the jobs that run every day like meals and household stuff, and the repo work still goes through a coding agent. What kept the bots consistent was one shared rules file they all read before acting.
@AravSrinivas Seeing the same on a much smaller scale with my own bots, they're on all my machines over Tailscale and the rule is any bot that hands me a command it could've run itself gets deleted lol
@garrytan Gentleman genealogist over here lol. Gave Grok free rein on my dad's side of the family tree, all I had was the people I'd met, and it came back with my grandmother's family migrating west on the American frontier in the south.
@OpenAI Did a version of this for a team where most people had barely touched ChatGPT, and the to-do list it pulled off their own email got the best reaction and the most confusion. It only knows what it can see, so anything they'd finished on a phone call stayed open until they told it.
@GergelyOrosz Same split here, plus Grok Build. In my real runs grok/codex came in at ~50% of the time at ~20% of the cost, so I'd rather pick per task than standardize on one.
@PawelHuryn@Zai_org Those 429s and 529s are why my model router fails over. If a provider rate-limits or errors before sending anything, it retries once on a backup route I picked ahead of time and keeps the rest of that turn there. Wouldn't help a benchmark that has to stay on one model though.
If I typed "actually, redo the architecture" while my coding agent was mid-task, my model router kept using the model it picked for the previous ask.
jev-router, the small proxy I wrote to pick a model per turn, only decides when a turn starts. Claude Code tucks anything you type during a tool loop in next to a tool result, so the router read it as the same turn.
Now it recognizes Claude Code's exact wrapper for those messages and treats what I typed as a new turn, so it gets its own model pick.
The tests use real Claude Code sessions recorded through the router, and they failed on the old code.
If a later Claude Code version rewords that wrapper, those messages fall back to the old behavior. Nothing alerts on that yet.
Most turns in a coding session don't need the biggest model, but Claude Code and Codex send every turn to whatever model the session started on.
So I built jev-router, a small local proxy in Rust that sits between the harness and the model providers. On each new turn it asks Jev (a classifier on OpenRouter) which model fits, based on route descriptions I write in plain English, then holds that pick for the whole tool loop so I don't throw away the prompt cache mid-turn.
If Jev is slow or unsure the turn falls back to a default, and I can force a model with @route:opus when I know better. Every decision gets logged so I can label what should have happened, and I'm not trusting any savings number until I have 150 labeled turns.
@PawelHuryn 9 rounds is painful lol. My coding agent caps review at 3 rounds, and the reviewer can't score a finding 0.8+ confidence without a concrete trace or repro. Anything out of scope or already in the code before the change gets logged as advisory, whatever severity it claims.
Ran one of these for a team where most people had barely touched ChatGPT and what landed was having it pull every action item they'd committed to over email and hadn't done yet, off their own accounts. Most of the friction was setup though (finding connectors, reconnecting accounts), worth its own page in the template.
@GergelyOrosz Probably biased being self-taught with a business degree, but IMO it's because they already ask which business number the work should move. I trace agent token spend the same way, spend -> use case -> the number.