Expand description
Available model lists per agent: built-in for Claude, queried from each CLI for others. Shared by TUI and daemon (Web UI).
Structs§
- Model
Query - Result of querying the model list: when
problemis set, the list may be incomplete (e.g., not logged in or expired), and the user should be informed.
Constants§
- ANTIGRAVITY_
MODELS - Default available models for Antigravity (agy).
- CLAUDE_
MODELS - Available models for Claude Code. The
claudeCLI has no subcommand to list models, so this is built-in: the first entries are aliases (always pointing to the latest in each family), followed by pinned version ids. Update here when new models launch; the Web UI fetches this same list via the daemon’slist_models. - COPILOT_
MODELS - Default available models for GitHub Copilot CLI (
copilothas nomodelssubcommand). Keep in sync withMODEL_CATALOG.copilotincrates/ertangle-daemon/src/web/index.html.
Functions§
- parse_
codex_ models codex debug modelsoutputs{"models":[{slug,display_name,visibility}]}; keep onlyvisibility == list.- parse_
models - Parse output of the
modelssubcommand: ignore blank lines and prompt lines that do not look like an id. - query_
models - Query the agent CLI for available models (
opencode models,agy models), waiting up to 8 seconds. Each output line has the model id in the first column, followed by the display name (tab-separated). agy’s list embeds effort in the model id (xxx-high), whereas ACP separates model and effort, so variants are merged here. - query_
models_ detailed - Same as
query_models, but includes any query problem description. - query_
raw_ models - Same as
query_raw_models_detailed, returning only the list. - query_
raw_ models_ detailed - Query the agent CLI for raw available models (
opencode models,agy models,codex debug models), waiting up to 8 seconds. Does not mergeantigravityeffort variants; attaches a description if the query fails or the CLI reports an error. - split_
effort_ variants - Merge combined “model + effort” ids such as
base-low/-medium/-high/-xhigh/-maxintobase(with effort selected separately). Only merges when a base has two or more variants, avoiding mis-splitting standalone ids likegpt-oss-120b-medium. Input is(display_label, id), preserving original order.