wide3751

Sommelier — AI skill for Claude Code

AI community

Claude Code plugin that picks the right model and effort for each task, using TypeSafe Jev judgments.

How to install Sommelier

This entry records only its repository, not the path inside it, so there is no exact command to give. Open wide3751/sommelier and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Sommelier does

Claude Code plugin that picks the right model and effort for each task, using TypeSafe Jev judgments.

Alternatives in AI

  • Codex Skill — by klaudworks - Enables users to prompt codex from claude code 914 ★
  • Klaatcode — Open-source AI coding agent for the terminal 357 ★
  • Typesafe MCP — An mcp connector to evaluate anything fast and cheap 258 ★

README

sommelier: automatic model routing plugin for Claude Code

English | [繁體中文](README.zh-TW.md) | [简体中文](README.zh-CN.md) | [日本語](README.ja.md) | [한국어](README.ko.md)

[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/Y8H028VWRF)

sommelier: automatic model routing for Claude Code (a Claude Code mod)

A **Claude Code plugin**, built on **Claude Code mods** (the mods API's `turn.step`), that picks the model and effort for each task automatically. Quick lookups go to **Claude Haiku**, well-specified changes to **Claude Sonnet**, and investigation or design to **Claude Opus**, with **TypeSafe Jev** classifying each request — saving Claude Code usage without giving up quality.

The way a sommelier picks a wine for each dish, sommelier asks [TypeSafe Jev](https://docs.typesafe.ai) (a classification API that returns probabilities) three questions about each new request — **how much reasoning it needs**, **whether it starts a new task**, and **whether it is a high-risk operation** — and maps the answer onto a configurable ladder:

Reasoning depth Default rung Example
L0 lookup or mechanical edit haiku · medium "Check the version in package.json"
L1 clear goal and approach sonnet · medium "Add a timezone parameter to parseDate"
L2 needs investigation or trade-offs base (opus · medium) "Login sometimes returns 401, find out why"
L3 unbounded, needs long deliberation opus · high "Design a multi-tenant permission architecture"

**Why not switch models every turn?** Each model keeps its own prompt cache, so switching models means writing the whole conversation into the cache again, which costs usage too. sommelier's rule is: **upgrade any time; downgrade only when it pays off** — on a new task, and only when the switching cost is lower than what it saves.

Quick start

claude plugin marketplace add wide3751/sommelier