
Claude Code and Codex CLI skill: an LLM router that delegates bulk, already-decided coding tasks to another model you already pay for (GPT via Codex, Gemini via agy, a Claude Opus subagent).
概览
delegate-router is an agent skill (SKILL.md, the Agent Skills format) for and that works as an LLM router for coding work. It hands bulky, already-decided work (boilerplate, scaffolding, test stubs, mechanical edits across many files, reading media and long documents) to another model you already pay for: (GPT models), through the Antigravity agy CLI, or a subagent. The host keeps the design and the verification, and saves its own quota and context. - ROUTING.md maps each kind of task to an ordered list of models, chosen from independent benchmarks and cost per task. It skips any CLI you don't have and never routes back to the host's own model, except an Opus subagent under an Opus host, which keeps the main context clean. - Four gates (bulk, decided, verifiable, contained) and a never-delegate list (debugging, architecture, security code, anything under ~40 lines). - A delegate's "done" isn't evidence: the host runs the check and reads the diff. - model_watch.
README
以下为原文 README 节选,完整内容请查看原文。
delegate-router: multi-model task delegation for Claude Code and Codex CLI
One agent thinks, another types. delegate-router is an agent skill (SKILL.md, the Agent
Skills format) for Claude Code and OpenAI Codex CLI that works as an LLM router for
coding work. It hands bulky, already-decided work (boilerplate, scaffolding, test stubs,
mechanical edits across many files, reading media and long documents) to another model you
already pay for: Codex (GPT models), Gemini through the Antigravity agy CLI, or a
Claude Opus subagent. The host keeps the design and the verification, and saves its own
quota and context.
- Routing by task, not by habit. ROUTING.md maps each kind of task to an ordered list of models, chosen from independent benchmarks and cost per task. It skips any CLI you don’t have, never routes back to the host’s own model (except an Opus subagent under an Opus host, which keeps the main context clean), and prefers a model on another of your subscriptions, so the work spreads across the plans you pay for.
- A judge before every handoff. Four gates (bulk, decided, verifiable, contained) and a never-delegate list (debugging, architecture, security code, anything under ~40 lines).
- The host always verifies. A delegate’s “done” isn’t evidence: the host runs the check and reads the diff.
- Routes that keep up on their own. Every 12 h,
model_watch.pynotices new models in your CLIs and the vendors’ release notes, re-checks the routes against a fresh benchmark snapshot, and tells you when a route should change. A tracker rescaling its scores moves nothing; a model that really beats the holder does.
New in v1.4: work goes to a model on another of your subscriptions first, so your main agent’s quota isn’t spent twice (how). Each route is judged on its own benchmark, and a route switches only on a cost per task measured on our bench (how). See the changelog.
Interactive diagram: docs/workflow.html (open it locally).
Requirements
- macOS or Linux,
git,python33.9+. - **Your main agent is Claude Code (
claude) or
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add pvjbuilds/delegate-router