~ / rigs / Bijaykars / claude-code-autoroute

Bijaykars/claude-code-autoroute

Cost-aware model routing for Claude Code using Haiku, Sonnet, and Opus subagents, with failure tracking and experimental self-tuning.

↗ GitHub ★ 0 MIT updated today project Claude Code Claude plugin
share on X
ARCHETYPE
Orchestrator
A bench of specialised subagents. The main agent mostly delegates.
CONTEXT TAX · EVERY TURN
~2.3k tokens
Moderate · median rig: 2.3k · breakdown
GUARDRAILS
0/5
No committed guardrails · details

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

copied ✓