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.
stack: Python
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 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)
| event | matcher | runs |
|---|---|---|
| SessionStart | * | ccr hook session-start |
| UserPromptSubmit | * | ccr hook prompt |
| SubagentStop | * | ccr hook stop |
| Stop | * | ccr hook stop |
Similar rigs
adriandlam/dotfiles
macOS dotfiles: OmniWM, Ghostty, LazyVim, Zed, zsh — linked with GNU Stow
Fort Knox 5.1k tok · · Q32
niklasrichardson/ai-tooling
Instructions, a starter kit, a skill and subagents for Claude Code, Codex, Claude and ChatGPT: short, structured, honest replies and multi-session work.
Orchestrator 4.4k tok · · Q5
chchchadzilla/swarm-boss
One expensive boss, a crew of cheap workers, a hater, and a for-loop that doesn't take anybody's word for anything. The idiot-proof guide + copy-paste kit for running AI agent swarms with Claude (Oct 2026).
Minimalist 968 tok · · Q0
JulesNsenda/claude-workflow
My global Claude Code config — a plan → gate → commit workflow with adversarial review, symlinked into ~/.claude
Fort Knox 4.0k tok · · Q31