~ / rigs / ai-solution-architect-roadmap / claude-code-router

ai-solution-architect-roadmap/claude-code-router

Routes each Claude Code task to the cheapest model and effort that should be enough. Rule-based and local, using the code graph, risk, past outcomes and weekly usage.

↗ GitHub ★ 0 MIT updated 1mo ago project Claude Code
field: AI / ML workflow: Data / ETLTesting & TDD
stack: Python
share on X
ARCHETYPE
Orchestrator
A bench of specialised subagents. The main agent mostly delegates.
CONTEXT TAX · EVERY TURN
~349 tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
1/5
No YOLO mode · details
Quality 15/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit ai-solution-architect-roadmap/claude-code-router/.claude ./rig-claude-code-router  # inspect, then merge into .claude/

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/Explore.md https://raw.githubusercontent.com/ai-solution-architect-roadmap/claude-code-router/main/.claude/agents/Explore.md
$ curl -fsSL --create-dirs -o .claude/agents/ccr-architect.md https://raw.githubusercontent.com/ai-solution-architect-roadmap/claude-code-router/main/.claude/agents/ccr-architect.md
$ curl -fsSL --create-dirs -o .claude/agents/ccr-critical.md https://raw.githubusercontent.com/ai-solution-architect-roadmap/claude-code-router/main/.claude/agents/ccr-critical.md
$ curl -fsSL --create-dirs -o .claude/agents/ccr-implement.md https://raw.githubusercontent.com/ai-solution-architect-roadmap/claude-code-router/main/.claude/agents/ccr-implement.md
$ curl -fsSL --create-dirs -o .claude/agents/ccr-quick.md https://raw.githubusercontent.com/ai-solution-architect-roadmap/claude-code-router/main/.claude/agents/ccr-quick.md
$ curl -fsSL --create-dirs -o .claude/agents/ccr-small.md https://raw.githubusercontent.com/ai-solution-architect-roadmap/claude-code-router/main/.claude/agents/ccr-small.md

This rig commits no guardrails. Here is the community baseline instead — the deny/ask rules most often found across all 16.2k rigs:

{
  "permissions": {
    "deny": [
      "Read(./.env)",
      "Read(./.env.*)",
      "Read(**/.env)",
      "Read(~/.ssh/**)",
      "Bash(git push --force:*)",
      "Read(**/*.pem)",
      "Read(.env)",
      "Read(~/.aws/**)",
      "Read(**/*.key)",
      "Read(**/.env.*)",
      "Bash(git push --force*)",
      "Bash(rm -rf:*)",
      "Bash(rm -rf *)",
      "Bash(sudo *)",
      "Bash(sudo:*)",
      "Bash(rm -rf /)",
      "Bash(git push -f:*)",
      "Read(.env.*)",
      "Bash(git reset --hard*)",
      "Bash(rm -rf /*)"
    ],
    "ask": [
      "Bash(git push:*)",
      "Bash(git push *)",
      "Bash(gh pr merge *)",
      "Bash(git commit:*)",
      "Bash(rm *)",
      "Bash(gh pr merge:*)",
      "Bash(gh pr create *)",
      "Bash(git reset --hard:*)",
      "Bash(npm publish:*)",
      "Bash(git rebase *)"
    ]
  }
}

Subagents (6)

Explore
model: haiku
Fast read-only codebase search on haiku: find files, symbols, usages and config, and answer where/how-is-X questions. Say how thorough to be (quick, medium, very thorough). Use proactively for any sea
ccr-architect
model: opus
Senior engineer for design, unclear or intermittent bugs, performance, migrations and security-sensitive work: investigates first, then implements or proposes a plan. Use proactively when ccr routes a
ccr-critical
model: opus
Most careful worker for critical-path changes: auth, payments, destructive migrations, infra, secrets, or code marked critical in project memory. Use proactively when ccr routes a task to T4.
ccr-implement
model: sonnet
Implements features, endpoints, refactors and multi-file changes that follow existing patterns, with tests. Use proactively when ccr routes a task to T2.
ccr-quick
model: haiku
Fast, cheap worker for lookups and trivial edits: where is X defined, what does Y return, rename, typo, one-line or config tweak. Use proactively when ccr routes a task to T0.
ccr-small
model: sonnet
Small, well-scoped changes: a bug fix with a known cause, a test for one function, a single-file edit that follows existing patterns. Use proactively when ccr routes a task to T1.

Hooks (4)

eventmatcherruns
SessionStart*ccr hook session-start
UserPromptSubmit*ccr hook prompt
SubagentStop*ccr hook stop
Stop*ccr hook stop

Similar rigs

copied ✓