Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Revises the grok TUI preset routed through OpenCode Go (OPENCODE_GO_API_KEY) via a manifest-driven lingtai-tui presets revise workflow.
50% 100%+50 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 11 of 22 without it.
Which specific map in tui/internal/tui/preset_editor.go records image input support for models in the preset editor?
modelHasVision
3 of 3 safety checks passed
Use this child for the named built-in grok preset. grokPreset in tui/internal/preset/preset.go:1375 ships grok-4.5, provider grok, OpenAI compatibility, https://opencode.ai/zen/go/v1, and OPENCODE_GO_API_KEY. This is the TUI's only verified Grok route; it has no vision capability. Custom is available for a user-owned xAI or other gateway, but is not the built-in route.
For the built-in route, read the official OpenCode Go docs and call the authenticated gateway GET https://opencode.ai/zen/go/v1/models. That served-model list is authoritative for this preset; the xAI API docs are only for model-level capability facts and do not establish an xAI route in the TUI. Preserve lowercase IDs and the shared Go credential. Do not use an xAI catalog entry as proof that OpenCode Go serves it. GROK_API_KEY is only the provider-generic fallback; the shipped default keeps OPENCODE_GO_API_KEY because the default endpoint is the shared Go gateway.
Start at grokPreset in tui/internal/preset/preset.go. Revise ProviderRegionURLs["grok"] and ProviderDefaultEnv for route/env changes, providerModels["grok"] for the picker, and modelHasVision["grok-4.5"] for a reviewed vision fact in tui/internal/tui/preset_editor.go. Recheck the constructor's absent vision key and the OpenCode Go default row. Follow tui/internal/tui/SKILL.md and tui/CONTRACT.md.
The picker currently offers grok-4.5 only and modelHasVision records it false: the Go endpoint's image-input mapping is not pinned. A Custom row does not turn an xAI endpoint into the shipped route.
Prepare an evidence-bound manifest and explicit input, then run lingtai-tui presets revise --manifest PATH --input PATH --mode dry-run|check|apply [--output-dir PATH]. Review the JSON plan, use dry-run/check before apply, and apply only to a new explicit output directory. revision.go validates hashes, route bindings, and evidence and preserves unowned bytes. This amendment does record the evidence-bound no-op: Grok remains OpenCode Go-only at grok-4.5,
Next to this one in the catalogue, plus more from the same author.