Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/alinaqi/maggyWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/alinaqi/maggy/model-config)<a href="https://agentmods.dev/commands/alinaqi/maggy/model-config"><img src="https://agentmods.dev/badge/commands/alinaqi/maggy/model-config/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/alinaqi/maggy/model-config"><img src="https://agentmods.dev/badge/commands/alinaqi/maggy/model-config.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01627 |
| Opus 5.5 | $0.00000 | $0.00651 |
| Sonnet 5.5 | $0.00000 | $0.00325 |
| Haiku 4.5 | $0.00000 | $0.00163 |
Grade B, and why
model-config scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
MR="$(cat ~/.claude/.bootstrap-dir)/scripts/model_routing.py" How it starts
The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/model-config — Choose the model you follow
View or change the primary model that handles your coding work across
srooter (the gateway), the route-task hooks, and Maggy. One setting, read
everywhere. Stored in ~/.claude/model-config.json.
Usage
/model-config — show current primary + what's available
/model-config <model> — set the primary (e.g. minimax, claude, deepseek)
Switch Claude Code to a pre-configured backend
The primary is the model Claude Code's real coding work runs on (through srooter). To move it to one of the pre-configured backends:
| Say | Backend | srooter alias |
|---|---|---|
/model-config deepseek |
DeepSeek Pro | deepseek-pro |
/model-config kimi |
Kimi K3 (Moonshot) | kimi-k3 |
/model-config glm |
GLM 5.3 (Z.ai) | glm-5.3 |
/model-config codex |
Codex | codex |
The switch takes effect for new sessions (srooter reads ANTHROPIC_BASE_URL
and its routes at startup — restart srooter, then start a fresh Claude Code
session). Each backend needs its provider key set in srooter's env
(DEEPSEEK_API_KEY, MOONSHOT_API_KEY, GLM_API_KEY, OPENAI_API_KEY);
srooter skips any backend whose key is unset and falls back down its chain.
Direct provider — bypass srooter entirely (--direct)
DeepSeek Pro, GLM 5.3, and Kimi K3 each publish a native
Anthropic-compatible endpoint, so Claude Code can talk to them directly
with no srooter hop. /model-config <backend> --direct writes a launcher into
~/bin:
| Say | Launcher | Endpoint · model |
|---|---|---|
/model-config deepseek --direct |
claude-deepseek |
api.deepseek.com/anthropic · deepseek-v4-pro |
/model-config glm --direct |
claude-glm |
api.z.ai/api/anthropic · glm-5.3 |
/model-config kimi --direct |
claude-kimi |
api.moonshot.ai/anthropic · kimi-k3 |
MR="$(cat ~/.claude/.bootstrap-dir)/scripts/model_routing.py"
python3 "$MR" write-launcher deepseek # one backend
python3 "$MR" write-launchers # all three at once
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago Changed · +70 lines 4f6296ec5924
- 3mo ago First seen · 82 lines · 0 tokens per session scan B a604139d6846
model-config is a command published in the GitHub repository alinaqi/maggy (713 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,627 tokens. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
model-config compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| model-configalinaqi/maggy | Command | 713 | 3d ago | MIT | B | 0 | Claude Code |
| promptnonlinear-xyz/factory-kit | Command | 10 | 6d ago | MIT | A | 18 | Claude Code |
| data-pipelinechristopherlouet/claude-base | Command | 5 | 15d ago | MIT | A | 0 | Claude Code |
| ccc-python-reviewKevinZai/commander | Command | 6 | yesterday | MIT | A | 48 | Claude Code |
| checklistgithub/spec-kit | Command | 153k | today | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 153k | today | MIT | A | 27 | Claude Code |
| analyzegithub/spec-kit | Command | 153k | today | MIT | A | 26 | Claude Code |