Adaptive budget-aware model routing. Manages 4-tier system to maximize $200/mo Max plan usage across full weekly cycle. Run when starting sessions, hitting usage warnings, or optimizing sub-agent costs.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
## When to Use
- Session start (automatically via hook)
- When Claude flags usage at 75%, 90%, or 95%
- Breaking large tasks into sub-tasks with different complexity levels
- When starting overnight/long-running autonomous sessions
- When you want to check or change the current budget tier
## Adaptive Budget System (Maintainer Directive — April 10, 2026)
The $200/mo Max plan has a weekly rolling limit. Opus burns ~5x faster than Sonnet. Without management, budget exhausts in 3 days.
### 4-Tier System
| Tier | Name | Model | Effort | Subagents | Cost vs Opus |
| ---- | ---------- | -------- | ------ | --------- | ------------- |
| 1 | FULL POWER | opus | max | inherit | 1x (baseline) |
| 2 | BALANCED | opusplan | high | sonnet | ~0.3-0.4x |
| 3 | CONSERVE | sonnet | high | haiku | ~0.15x |
| 4 | EMERGENCY | sonnet | medium | haiku | ~0.1x |
### Quick Commands
```bash
# Check current tier
scripts/budget-manager.sh status
# Record a usage warning (when Claude flags it)
scripts/budget-manager.sh warn 75
scripts/budget-manager.sh warn 90
# Force full power for a critical session
…
The line at the top of this page pins the label git:20260526.e594bbf, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_q4wifnazwxhqmirh
GET https://markdownregistry.com/api/v1/resolve?ref=naman10parikh/wikimem/model-routing
GET https://markdownregistry.com/api/v1/blob/31bce41e7142df661a56bde0fcf88118d2dc477eacd66f9d4323f09daf3d2dae
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
naman10parikh/wikimem · .claude/skills/anthropic-frontend-design/SKILL.md · Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to…
naman10parikh/wikimem · .claude/skills/architect/SKILL.md · Use when making architectural decisions for the Energy/NRG platform. Loads architecture from VISION.md and debates…
naman10parikh/wikimem · .claude/skills/ecosystem-reference/SKILL.md · Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the…
naman10parikh/wikimem · .claude/skills/harness-review/SKILL.md · Review an agent's harness (scaffold) for quality, token efficiency, and correctness. Based on harness engineering…
naman10parikh/wikimem · .claude/skills/integrate-resources/SKILL.md · Process new resources dropped into resources/unread/. Extracts Claude Code tips, tools, patterns and updates the setup…
naman10parikh/wikimem · .claude/skills/llm-council-critique/SKILL.md · Run a 6-hat brutal LLM Council self-critique on any deliverable, session output, or status update. Surfaces what's…
naman10parikh/wikimem · .claude/skills/loop-create/SKILL.md · Scaffold a new agent with the full file structure. Use when creating any new agent for the Energy platform. NOTE —…
nahid-sparktales/agent-dispatcher · skills/ai/model-routing/SKILL.md · Pick a model per job and degrade sensibly when one fails — a quality bar per call site, candidates compared on the same…
frankxai/claude-skills-library · free-skills/model-routing/SKILL.md · Intelligent model selection — routes tasks to Haiku (fast/cheap), Sonnet (balanced), or Opus (complex/strategic) by…
cmc-27/pass-the-parcel · .devops/skills/model-routing/SKILL.md · Make sure to use this skill whenever the user mentions choosing a model, model selection, capability classes, binding…
frankxai/agentic-creator-os · .claude/skills/model-routing/SKILL.md · Intelligent model selection - routes tasks to Haiku (fast/cheap), Sonnet (balanced), or Opus (complex/strategic) based…
moonray/repoprompt-workflows · .agents/skills/model-routing/SKILL.md · Use when choosing an oracle model or effort level for spec, plan, or review consultations (ask_oracle, context_builder…
naman10parikh/agentgrid · .claude/skills/model-routing/SKILL.md · Adaptive budget-aware model routing. Manages 4-tier system to maximize $200/mo Max plan usage across full weekly cycle…
yeaight7/agent-powerups · plugins/agentic-systems/skills/model-routing/SKILL.md · Use when selecting a model for a new task or subagent, deciding whether to escalate after a failed attempt, or…
yeaight7/agent-powerups · skills/model-routing/SKILL.md · Use when selecting a model for a new task or subagent, deciding whether to escalate after a failed attempt, or…