Project · Creator
Agent Router
Local CLI that picks the model, effort and skills for each phase of a Claude Code or Codex task, and explains the choice
Planning, execution and verification should run on different models within a budget, with a decision you can review and replay. Experimental; no measured cost gain is claimed yet.
Frontier models for the hard steps, cheaper ones for the rest. Agent Router is a local Rust CLI that routes each phase of a coding task (plan, execute, verify) to a model, an effort setting and a set of skills, for Claude Code or Codex, and explains why.
Why it exists
A coding host uses one model and effort setting per session unless you switch by hand. Nothing records why a choice was made, and permission or budget limits may only show up once the agent is already working.
What it does
- A choice per phase: plan, execute and verify can each get their own model, effort and skills.
- Limits checked first: permissions, budget, risk and missing host evidence remove candidates before any score is computed.
- A decision you can read: every choice and every exclusion is explained, and the same inputs replay to the same receipt.
- Nothing runs unapproved: you approve one exact digest; each phase runs as a separate host process in an OS sandbox, writes go to a Git worktree, and you preview the patch before applying it.
What it is not
It is not a coding agent, a hosted gateway or an autonomous runner. Your host still does the work, keeps its own credentials and permissions, and the model of the conversation you are in does not change. Routing runs offline, with no provider call.
Hosts and platforms
Claude Code and Codex have CLI adapters. OpenCode and Copilot adapters are optional, and their native installations remain unverified. Runtime supervision exists on macOS (Seatbelt) and Linux (Bubblewrap); Windows native execution is not implemented.
Install
The repository has been public since October 28, 2026. Build the routing CLI from source with Rust 1.85 or newer; no packaged release has been published:
git clone https://github.com/FlorianBruniaux/agent-router.git
cd agent-router
cargo build --locked -p agent-router-cli
./target/debug/agent-router version --json
The README’s quick start then routes and explains a bundled example offline, with no model call.
Status
Experimental. Offline routing works on the bundled examples; automatic daily use inside Claude Code or Codex is not qualified yet. No measured cost or quality gain is claimed: the human-labelled evaluation corpus is still open work. Source-available under the Functional Source License (FSL-1.1-ALv2), which converts to Apache 2.0; it is not an OSI open-source license.