Skip to main content

Module models

Module models 

Source
Expand description

Curated list of Claude models known to work with this CLI. Centralized so the settings dropdown, defaults, and subagent hints agree.

Constants§

DEFAULT_LEGACY_ADAPTIVE_FALLBACK
Default legacy-model thinking budget used when the “adaptive” sentinel (0) leaks into the non-adaptive request path. Matches the “high” tier.
KNOWN_MODELS

Functions§

context_window_for_model
Returns the input context window size for a given model, in tokens. Used as the denominator for the chatui context-usage bar and anywhere else the client needs to know how much prompt the model will accept.
default_model
effort_for_thinking_level
Maps a SynapsCLI thinking level to an Anthropic effort value for models that use adaptive thinking (Opus 4.6+/Sonnet 4.6+). Effort controls thinking depth when budget_tokens is unavailable/deprecated.
model_supports_1m
Returns true for models that support opting into the 1M context window via the context-1m-2025-08-07 beta header.
model_supports_adaptive_thinking
Returns true for models that support (and require) adaptive thinking: thinking: {type: "adaptive"} with NO budget_tokens field.
thinking_level_for_budget
Maps a raw thinking_budget value to the user-facing level name.