Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Explains keeping static Claude Code model aliases in LingTai's preset_editor.go up to date.
23% 91%+68 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 5 of 22 without it.
When a user in Lingtai TUI switches the provider selection in the preset editor from Claude Code to Anthropic, what happens to the currently selected model ID if the user had previously entered an arbitrary custom text string?
States that arbitrary custom user model text is preserved without modification
3 of 3 safety checks passed
Bookkeeping notes for keeping providerModels and friends in
preset_editor.go aligned with each curated catalog's real-world lineup. Read
this before editing those maps so you don't bork an agent network with a
typo or a retired model.
Codex is no longer maintained through this manual process. Since
2026-09-30 Codex's model row is per-editor-instance state fetched from a
public directory, cached, and offline-fallback-protected — see
tui/CONTRACT.md's "Model list curation" → "Codex exception" for the full
binding contract (display_name filter, slug/label split, cache, refresh
preservation, and the c custom-entry key). Everything below this point that
talks about hand-curating a Codex list (the authoritative-source row, Rule 0's
scope, and "When you add/remove a model") is retained as historical rationale
for WHY the old static entries were chosen, not as a live maintenance
procedure — do not add a new hardcoded Codex generation here. The Claude Code
CLI-alias guidance below is unaffected and still current.
LingTai ships four provider families (editorProviders: openai, anthropic,
codex, claude-code). Only one still carries a STATIC package-level model
catalog in providerModels: the Claude Code CLI aliases. Codex's lineup is
public-directory-sourced per-editor state (PresetEditorModel.codexModels,
see the note above) rather than a providerModels entry. The openai and
anthropic families point at arbitrary endpoints (the official APIs, other
vendors' compatible endpoints, or account pools), so their model row is free
text and there is no list to keep current. Every static-catalog/free-text
decision calls modelOptions(provider); Codex additionally consults
(*PresetEditorModel).modelSlugOptions/modelDisplayOptions for its own
per-instance lineup.
Drift in a curated catalog causes one of two failures:
The second failure mode is what this file exists to prevent.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.