Logo di Claude Model Router

Claude Model Router

Community
Rajvardhman05
claude-model-router

Pick the right Claude model for each piece of work instead of running everything on one. Load BEFORE spawning any subagent or parallel worker (to choose its model), when a task stalls and you are deciding whether to raise effort or move up a model, and when the user asks which model or effort level to use for a task.

Panoramica

Pubblicato daRajvardhman05
Repositoryclaude-model-router
Nome della skillclaude-model-router
Stelle
31
Fork
6
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da Rajvardhman05 su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Claude Model Router in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/Rajvardhman05/claude-model-router/tree/main
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Rajvardhman05/claude-model-router.git \
  .claude/skills/claude-model-router
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Claude Model Router in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Claude Model Router non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Claude Model Router non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Claude model router

One model for everything is either too expensive or too weak. This skill routes each piece of work to the cheapest model that will finish it properly.

Rules are condensed from Anthropic's guide "Which Claude model should you build with?" (claude.dev/blog, November 2026). They are written by tier (Haiku / Sonnet / Opus / Fable), so they survive version bumps. If the tiers themselves change, re-read the guide.

The one rule that shapes everything

Route by delegation. Never switch the main session's model mid-task.

The main session keeps its model. Routing happens when you hand work to a subagent, by setting that subagent's model. Switching the main model mid-session throws away the prompt cache (the next turn pays full price for the whole context) and, when moving down a tier, the earlier reasoning too.

Routing table for delegated work

Set the model on the subagent call (model: haiku | sonnet | opus | fable) or in the subagent's definition file. If a tier is not available on this account, use the next tier down (no fable means opus) and say so in one line.

The subagent's jobModel
Find files, grep, read logs, run tests and report, summarize long outputhaiku
Classify, tag, route, extract fields, high-volume checkable workhaiku
Well-scoped edits against a clear spec; a contained bug fixsonnet
Repeated agent tasks: investigation, review, draftingsonnet
Everyday documents, slides, spreadsheetssonnet
Multi-file features, tricky debugging, computer use, vision-heavy workopus
Major refactor or migration, architecture planning, deep research, scientific or quantitative analysisfable
Unsureopus

Two guards on the table:

  • A clear spec does not guarantee Sonnet is enough. Migrations and performance work can need Opus even when fully specified.
  • Small models get work where mistakes are cheap to spot. If a wrong answer would pass unnoticed (a judgment call, a subtle edit), keep it on the main model.

For a one-off subagent, leave effort at the model's default. Set it explicitly in only two cases, both below: climbing the escalation ladder, and a cheap-first retry over a checkable batch.

When not to delegate at all

Delegation has a coordination cost. Skip it when:

  • the work is one dependent chain (each step needs the previous step's result), or
  • it all fits comfortably in the current context, or
  • it is a handful of tool calls.

Delegate when the work is verbose reading (logs, wide file sweeps) or genuinely parallel. The point is to keep the expensive model's context lean: every turn resends the whole context, so bulk reading belongs in a cheap subagent that returns a short summary.

Escalation ladder

When a result is not good enough, climb in this order and stop at the first rung that works:

  1. Let it verify. Give the model a test, build, or script to check its own work.
  2. Raise effort one level. Effort buys more thinking and checking. It does not add skill the model lacks.
  3. Move up one model, starting at a lower effort than the smaller model was using.

Past high effort, one more effort level can cost as much as the next model up. On hard tasks try the bigger model before going beyond high.

Cheap-first retry. When the outcome can be checked automatically, run the batch at low effort and re-run only the failures at high. This usually beats running everything at high on both cost and pass rate.

Advising on the main session's model

You cannot change the session's model yourself; the user does. Speak up in one line only when there is a clear mismatch, then carry on as asked:

  • Too small: a major migration, architecture work, or a long unattended run on Sonnet or Haiku. Suggest moving up.
  • Too big: a long stretch of simple, well-scoped edits on the top tier. Suggest moving down.

Sensible starting points when the user asks:

WorkModelEffort
Most coding and knowledge workopusmedium, then high
Well-scoped everyday codingsonnetmedium, then high
Chat a person is waiting onsonnetlow or medium
Hardest technical work, long unattended runs, leading many subagentsfablemedium, then high

If the user does switch, tell them to compact first or start a fresh session with a short written plan, so the new model does not pay to re-read the whole history.

Do not oversell it

Mixed-model setups do not always win. Judge by cost per finished task, not price per token: a pricier model that finishes in half the tokens can be cheaper. If the user wants proof, the test is simple: run a few real tasks with automatic pass/fail checks on each candidate, and keep the mixed setup only if it beats every single-model run.

Domande frequenti

Cosa fa la skill IA Claude Model Router?

Pick the right Claude model for each piece of work instead of running everything on one. Load BEFORE spawning any subagent or parallel worker (to choose its model), when a task stalls and you are deciding whether to raise effort or move up a model, and when the user asks which model or effort level to use for a task.

Perché usare Claude Model Router su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Claude Model Router è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Claude Model Router in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/Rajvardhman05/claude-model-router/tree/main. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Claude Model Router?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Claude Model Router?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Claude Model Router: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Claude Model Router è gratuita?

Sì. È pubblicata su GitHub da Rajvardhman05 con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇