Bijaykars/claude-code-autoroute
Cost-aware model routing for Claude Code using Haiku, Sonnet, and Opus subagents, with failure tracking and experimental self-tuning.
ARCHETYPE
Orchestrator
A bench of specialised subagents. The main agent mostly delegates.
Copy this rig
# review before running: this installs third-party code $ npx degit Bijaykars/claude-code-autoroute/agents ./rig-claude-code-autoroute/agents $ npx degit Bijaykars/claude-code-autoroute/commands ./rig-claude-code-autoroute/commands $ npx degit Bijaykars/claude-code-autoroute/hooks ./rig-claude-code-autoroute/hooks
MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.
$ curl -fsSL --create-dirs -o .claude/agents/deep-debug.md https://raw.githubusercontent.com/Bijaykars/claude-code-autoroute/main/agents/deep-debug.md $ curl -fsSL --create-dirs -o .claude/agents/digest.md https://raw.githubusercontent.com/Bijaykars/claude-code-autoroute/main/agents/digest.md $ curl -fsSL --create-dirs -o .claude/agents/implement.md https://raw.githubusercontent.com/Bijaykars/claude-code-autoroute/main/agents/implement.md $ curl -fsSL --create-dirs -o .claude/agents/locate.md https://raw.githubusercontent.com/Bijaykars/claude-code-autoroute/main/agents/locate.md $ curl -fsSL --create-dirs -o .claude/agents/researcher.md https://raw.githubusercontent.com/Bijaykars/claude-code-autoroute/main/agents/researcher.md $ curl -fsSL --create-dirs -o .claude/agents/retune.md https://raw.githubusercontent.com/Bijaykars/claude-code-autoroute/main/agents/retune.md $ curl -fsSL --create-dirs -o .claude/agents/reviewer.md https://raw.githubusercontent.com/Bijaykars/claude-code-autoroute/main/agents/reviewer.md $ curl -fsSL --create-dirs -o .claude/agents/scaffold.md https://raw.githubusercontent.com/Bijaykars/claude-code-autoroute/main/agents/scaffold.md $ curl -fsSL --create-dirs -o .claude/agents/test-writer.md https://raw.githubusercontent.com/Bijaykars/claude-code-autoroute/main/agents/test-writer.md $ curl -fsSL --create-dirs -o .claude/agents/ui-designer.md https://raw.githubusercontent.com/Bijaykars/claude-code-autoroute/main/agents/ui-designer.md
This rig commits no guardrails. Here is the community baseline instead — the deny/ask rules most often found across all 7,204 rigs:
{
"permissions": {
"deny": [
"Read(./.env)",
"Read(**/.env)",
"Read(~/.ssh/**)",
"Bash(rm -rf *)",
"Read(**/*.pem)",
"Bash(rm -rf /)",
"Bash(git push --force:*)",
"Bash(sudo *)",
"Read(.env)",
"Bash(rm -rf /*)",
"Read(./.env.*)",
"Read(~/.aws/**)",
"Bash(git push --force*)",
"Bash(rm -rf:*)",
"Read(**/*.key)",
"Read(**/.env.*)",
"Bash(sudo:*)",
"Bash(git reset --hard*)",
"Bash(git reset --hard:*)",
"Read(.env.*)"
],
"ask": [
"Bash(git push:*)",
"Bash(git push *)",
"Bash(git commit:*)",
"Bash(rm *)",
"Bash(rm:*)",
"Bash(git rebase *)",
"Bash(wget *)",
"Bash(npm publish:*)",
"Bash(git commit *)",
"Bash(gh pr merge *)"
]
}
} Subagents (10)
| deep-debug model: sonnet | Root-cause investigation for bugs whose cause is genuinely unknown — intermittent failures, heisenbugs, "it works locally", corruption that appears far from its source, performance cliffs. Use only af |
| digest model: haiku | Reads long files, logs, test output, diffs, or docs and returns a compact factual summary. Use proactively before pulling any large file into the main conversation — logs, stack traces, CI output, API |
| implement model: sonnet | Implements a well-specified change — the approach is already decided and what remains is writing correct code. Use for feature work, refactors with defined scope, and bug fixes where the root cause is |
| locate model: haiku | Finds where things live in a codebase — files, symbols, config keys, call sites, usages of a pattern. Use proactively whenever answering a question requires searching more than two or three files. Ret |
| researcher model: opus | Web and documentation research that needs synthesis — comparing sources, benchmarks, prices, APIs, docs and release notes — returning a compact, sourced report. Use this instead of an ad-hoc general-p |
| retune model: sonnet | Reads the agent-memory ledgers and re-tiers the other subagents — adjusting their effort and model frontmatter based on observed escalation rates. Run periodically, or when routing feels wrong. Not fo |
| reviewer model: opus | Reviews a diff or a set of changed files for correctness, security, and convention fit. Use proactively after any non-trivial code change, and before committing. |
| scaffold model: sonnet | Mechanical, low-judgment file work — boilerplate files, config stubs, repetitive edits across many files, renames, import rewrites, adding a field to every instance of a struct. Use proactively when a |
| test-writer model: sonnet | Writes and runs tests for existing code. Use proactively after a feature or fix lands, and whenever the user asks for coverage, regression tests, or a reproduction case for a bug. |
| ui-designer model: fable | Designs and redesigns user interfaces — layout, visual hierarchy, theming, components, states, interaction and UX flow. Use whenever the user asks to design, redesign or restyle a page, component or f |
Slash commands (1)
/autoroute
Similar rigs
AliYmn/claude-structured
An opinionated project template for Claude Code — persistent context, autonomous workflows, self-improving agents.
Automator 628 tok ·
jaqubowsky/fleet
Runs Claude Code and pi agents in parallel on your Mac, one Docker sandbox per issue. A host agent hands out the work, watches every sandbox and brings back tested, reviewed pull requests.
Minimalist 341 tok ·
OMOCHInoHOSHI/dotfiles-claude
.claude
Pragmatist 293 tok ·
joaolozano-lendario/athena-os
A Claude Code Native System for Intelligent Workflow Architecture - Slash Commands for Smarter AI Workflows
Orchestrator 3.7k tok ·