/polytropos:routefrom polytropos
Pick the right Claude model for a task and estimate its cost before running it. Use when the user asks which model to use, whether a task needs Fable/Opus, what a task will cost, or wants a task dispatched to a cheaper model. Args are the task description, optionally prefixed with --api or --sub to force a billing mode.
Ships in polytropos. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are routing ONE task to the right model with a cost estimate. Read the plugin's data/pricing.json for all prices, model notes, and task-size profiles — resolve in order: ${CLAUDE_PLUGIN_ROOT}/data/pricing.json; if that variable is unset, ../../data/pricing.json relative to this SKILL.md; if neither exists, references/pricing.json beside this SKILL.md (a vendored snapshot — check its cached_date and flag prices as possibly stale if it is more than 60 days old). Never use prices from memory.
Two different questions get two different framings:
billing_mode in pricing.json (overridable: --api / --sub flag at the start of the args wins).api mode, regardless of the user's own plan. Detect this framing from the task: mentions of "my app", "endpoint", "pipeline", "batch job", "users", SDK code, production traffic.State which mode you chose and why in one sentence.
api mode — dollar-optimized: cheapest sufficient model wins.
| Model | Route here when |
|---|---|
| Haiku 4.5 | Classification, extraction, formatting, simple lookups, high-volume/bulk calls. Caveat: 200K context ceiling. Haiku 5.5 is priced in pricing.json with a separate rate for single prompts over its long_context.threshold_input_tokens; it becomes the haiku default when its row leads its tier. |
| Sonnet 5.5 | The speed-and-intelligence workhorse for day-to-day coding, tests, docs, refactors, and most app inference. |
| Opus 5.5 | Default for most workloads, including long-running agentic coding and knowledge work. Use it when Sonnet 5.5 at high effort falls short. |
| Fable 5.1 | Demanding reasoning, long-horizon agentic work, large migrations, deep research, or problems Opus 5.5 at higher effort failed on. |
When in doubt between two tiers in api mode, recommend the cheaper one and say what failure signal would justify upgrading.
The first row in each tier of pricing.json is the current default. Older rows remain for
historical transcript costing and for explicit compatibility pins where the provider still
supports them; never infer current availability from their presence in the file.
subscription mode — capability-first, burn-aware. Marginal dollar cost is zero; the only cost is 5-hour/7-day rate-limit burn. The user's working posture:
/polytropos:architect, which has Fable do the meta-work once (plan + execution kit of task briefs, model-pinned subagents, skills, verification loops) so Opus/Sonnet execute the rest at near-Fable quality. Fable for the portion that needs it, then back down./usage rate_limits.*.used_percentage high).low/medium for routine work, high/xhigh for hard agentic work.Pick the closest task_profiles size (XS/S/M/L/XL) from pricing.json, or estimate tokens directly if the task gives you better information. For each candidate model:
cache_read_multiplier (0.1×).batch_discount (50%) when the task is batchable (non-latency-sensitive bulk work).In subscription mode, present the dollar figure as "API-equivalent burn" — a proxy for how hard the task hits rate limits, not money spent.
Output, in order:
model set to the recommended alias (haiku/sonnet/opus/fable). Warn that the subagent does not share this conversation's context, so you will pass it a self-contained brief — write that brief from the conversation, run it, and relay the result.`/model sonnet` — only the user can switch the main session's model./polytropos:architect instead of a plain dispatch — Fable plans and builds the execution kit, then /polytropos:execute runs it on cheaper models. Plain Fable dispatch is for small, self-contained Fable-worthy tasks only.Keep the whole response compact — this is a decision aid, not a report.
Before recommending, check for ${CLAUDE_PLUGIN_ROOT}/prefs/repo-bench.json (gitignored;
written only by an explicit repo_bench.py apply after a measured benchmark run). If it
exists and its repo matches the project being routed for, prefer its tiers /
daily_driver model ids over the default tier picks and SAY SO, citing source_run and
applied_at. If any id in it is missing from data/pricing.json, ignore the file and
say it is stale. Absent file = no change to this skill's behavior.
When an explicit repository/kit/assignment and authorized startup config are supplied, use the native context-travel skill and read ${CLAUDE_PLUGIN_ROOT}/docs/CONTEXT-TRAVEL-SURFACES.md (or ../../docs/CONTEXT-TRAVEL-SURFACES.md relative to the context-travel skill) on demand for a bounded scope brief. Treat missing, stale, partial, or refused context as advisory; retain this workflow's authoritative sources, policy, pricing, permission, and mandatory verification rules. If no authorized context transport is available, continue this workflow and report context unavailable.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub agentmc15/polytropos --plugin polytropos17 skills in this plugin
/architectPlan a complex task once on the frontier tier (Fable 5.1 today) and write the execution kit — PLAN.md, TASKS.md, GUARDRAILS.md, and model-pinned agents — that a cheaper model then executes at near-Fable quality. Use when the user says "plan this with Fable", "architect this", "review this codebase", or escalates a complex task. Not for running a kit; that is /polytropos:execute./assess-improvementAssess an existing repository for a small, evidence-backed improvement opportunity and produce a scoped findings report and handoff briefs. Use when the user asks where a codebase could be improved, wants an evidence-driven improvement plan, or wants a harness or runtime ecosystem assessed — including multi-harness Polytropos assessments. Not for implementing, activating, enabling providers, or promoting a policy change./Other plugins' skills for the same job