Repository navigation
Description
Problem
Solenta's composer model picker and effort pill are driven by a hardcoded snapshot in electron/providers.js. The snapshot is already behind live CLIs and vendor docs. Users cannot pick GPT-5.6 Sol on Codex, cannot pick Codex ultra or Claude ultracode, and some advertised effort levels are rejected by the selected model.
Custom model ids still work (Custom... in src/modelPicker.ts), but they are a fallback. Effort is worse: ReasoningEffort is a closed union (low | medium | high | xhigh | max). setReasoningEffort and agent-profile validation reject anything else, including ultra. Unknown Claude --effort values are a silent warning plus default, so a typo here costs the user the setting with no error.
Verified sources (2026-08-28)
| Harness | Installed CLI | Catalog source used today |
|---|---|---|
| Claude Code | 2.1.219 | Hardcoded |
| Codex | 0.142.4 (repo snapshot comment cites 0.144.1) | Hardcoded from ~/.codex/models_cache.json visibility=list |
| Grok | 1.0.5 | Hardcoded from grok models / ~/.grok/models_cache.json |
| OpenCode | 1.17.12 | Hardcoded from opencode models |
| Kimi Code | 0.39.0 | Hardcoded from ~/.kimi-code/config.toml |
| Cursor | 2026.08.25-3e8eec8 | Hardcoded from cursor-agent --list-models |
Gap matrix
Codex (highest user-visible miss)
Catalog today: gpt-5.6-terra, gpt-5.6-luna, gpt-5.5, gpt-5.4-mini. No gpt-5.6-sol. Recommended is still GPT-5.5.
OpenAI (2026-07-09, updated 2026-08-21): GPT-5.6 family is Sol (flagship, gpt-5.6 alias), Terra (balanced), Luna (fast). Codex effort ladder includes ultra (parallel subagents) above max. Official API reasoning.effort for Sol: none, low, medium (default), high, xhigh, max. Codex coding clients treat ultra as a first-class model_reasoning_effort value (Codex SDK 0.19.0: Sol and Terra support ultra; Luna stops at max).
This machine's Codex 0.142.4 cache only lists gpt-5.5 and gpt-5.4-mini. The in-repo snapshot is from 0.144.1 and still omitted Sol (visibility=list only). Cursor already exposes the Sol family as model ids (gpt-5.6-sol-high, ...-max, etc.).
Codex efforts today: low, medium, high, xhigh, max. No ultra. Agent profiles explicitly reject reasoningEffort: "ultra".
Per-model: this machine's gpt-5.5 cache supports only low/medium/high/xhigh (no max, no ultra). Advertising max/ultra on every Codex model will send values some models reject.
Claude Code
Models today: claude-fable-5, claude-opus-5, claude-sonnet-5, claude-haiku-4-5. Matches the current family; do not add Mythos without a live /model listing.
Efforts today: low, medium, high, xhigh, max. No ultracode.
ultracode is a Claude Code session setting, not an API effort. Docs: it sends xhigh plus automatic Dynamic Workflows. CLI form is claude --effort ultracode (needs 2.1.203+). claude --help on 2.1.219 still only lists low/medium/high/xhigh/max. Live spawn on this machine died on org auth before the flag could be confirmed. Implementation must verify against a logged-in CLI: unknown values are silently ignored.
Haiku 4.5 is not effort-capable. Provider-wide efforts currently offer the ladder on Haiku anyway.
Grok
Models match live: grok-4.6 (default), grok-4.5.
Efforts today (provider-wide): low, medium, high, xhigh. Live cache: grok-4.6 has those four; grok-4.5 has only low/medium/high. No max, no ultra. Default is high.
OpenCode
Catalog today (8 Zen models): big-pickle, deepseek-v4-flash-free, laguna-s-2.1-free, ling-3.0-tiny-free, longcat-2.0-free, mimo-v2.5-free, nemotron-3-ultra-free, north-mini-code-free (recommended).
Live opencode models (1.17.12): big-pickle, deepseek-v4-flash-free, hy3-free, laguna-s-2.1-free, mimo-v2.5-free, nemotron-3-ultra-free, nemotron-3.5-lightning-free.
opencode run --help lists --variant (per-model reasoning effort). Verbose catalog has variants: deepseek low/medium/high/max, hy3 low/medium/high, big-pickle empty. Solenta leaves efforts: [] and never emits --variant.
Cursor
204 models, in sync with live cursor-agent --list-models (2026.08.25). Effort is baked into the model id (gpt-5.6-sol-max, gpt-5.6-sol-high-fast, ...). No separate effort pill (correct). No gpt-5.6-sol-ultra id. Leave Cursor alone unless a later live listing adds ids.
Kimi
Models match ~/.kimi-code/config.toml. Efforts low, high, max via config.toml (no CLI flag). k3 / k3-256k advertise support_efforts; kimi-for-coding aliases do not. Existing race: #181.
Recommended sequence
Do not advertise a level a model rejects. That is the existing contract (maybeEmitEffort, setReasoningEffort).
- Per-model effort lists (schema). Additive
modelInfo[].efforts. Picker andsetReasoningEffortuse the selected model's list when present, else the provider list. Unblocks every later item. - Codex: add
gpt-5.6-sol(recommended) +ultraon Sol/Terra only. ExtendReasoningEffortwithultra. Wire-c model_reasoning_effort=ultra. Copy must say ultra is multi-agent, not just more thinking. - Claude: add
ultracodeafter a live CLI accept/reject check. Same effort pill, distinct label. Emit--effort ultracode. Do not persist it as if it were an API enum if the CLI treats it as session-only; match live behaviour. - OpenCode: replace the Zen snapshot and emit
--variantfrom per-model variants. Drop gone ids (tests currently pinopencode/north-mini-code-free). - Catalog freshness. Keep snapshots as the offline default, but warn (doctor or providers.list) when a live CLI cache diverges. Optional later: merge live ids into the picker.
Grok 4.5 xhigh and Haiku effort fall out of (1) with no extra product work.
Out of scope
- Cursor model-id explosion / baking effort into ids (already correct).
- Adding Claude Mythos without a live listing.
- Kimi concurrent-effort race (Kimi reasoning effort races concurrent kimi turns (global config.toml flip window) #181) and workflow kimi effort (Workflow kimi phases run without effort control and without MCP tools #699).
- Generic CLI provider (Generic CLI provider: drop in any agent binary #458).
Code map
- Catalog + argv:
electron/providers.js - Type + IPC:
src/shared/ipc.ts(ReasoningEffort,ModelInfo,ProviderInfo) - Store / profiles:
electron/store.js(REASONING_EFFORTS) - Validation:
electron/services.jssetReasoningEffort - Picker labels:
src/modelPicker.tsEFFORT_LABELS - Tests:
electron/test/providers.test.js,electron/test/reasoning-effort.test.js,electron/test/agent-profiles.test.js(currently rejects"ultra")
Activity
currentbits commentedon Aug 28, 2026
Child issues, in recommended ship order:
--variantCursor is in sync (204 models, effort baked into ids). Kimi models match; effort race remains #181.
currentbits commentedon Aug 28, 2026
Planboard tree (this thread, 2026-08-28):
gpt-5.6-sol(recommended) andultraon Sol/Terra only. Needs Per-model effort lists so advertised levels match the selected model #739 so Luna/5.5 do not grow an ultra segment.ultracodeafter a live--effort ultracodeaccept on a logged-in 2.1.203+ CLI. Needs Per-model effort lists so advertised levels match the selected model #739 if Haiku stays in the same provider.--variantfrom per-modelvariants. Needs Per-model effort lists so advertised levels match the selected model #739. Tests currently pin the deadopencode/north-mini-code-freerecommended id.Contract reminder for whoever lands the catalogs:
setProvideris not an allowlist.electron/test/providers-set.test.js("accepts a custom model for every provider") andsrc/modelPicker.tsCUSTOM_MODEL_IDalready accept any non-empty id up to 100 chars. The JSDoc onsetProvider/normalizeModelForProvider/CoderApi.threads.setProviderpreviously claimed membership was required whenmodelswas non-empty; that comment is being corrected so a catalog PR does not re-close the list. Effort is the closed door (ReasoningEffortunion +setReasoningEffortreject).currentbits commentedon Aug 28, 2026
Children #739 #740 #741 #744 #745 shipped: per-model efforts, Codex Sol+ultra, Claude ultracode, OpenCode Zen + --variant, catalogNote on providers.list.
Merge worktree coder/fork-refresh-model-catalogs-and-effort-l-de1613:…