Configure consumer-owned opencode model overrides for the cheap, standard, and deep QA lanes without pinning blueprint source or global config. Use for "/model-setup", "Modelle für QA-Lanes einrichten", or "configure QA models". Under Claude Code, explain the haiku/sonnet/opus mapping only and write no files.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Model Setup?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sn4kygit-model-setup)
---
name: model-setup
description: Configure consumer-owned opencode model overrides for the cheap, standard, and deep QA lanes without pinning blueprint source or global config. Use for "/model-setup", "Modelle für QA-Lanes einrichten", or "configure QA models". Under Claude Code, explain the haiku/sonnet/opus mapping only and write no files.
license: Apache-2.0
---
# /model-setup — consumer QA model lanes
Identify the active harness first. The routing policy is:
| Route | Lane |
|---|---|
| Fast path / low risk | cheap |
| Complex path / low or medium risk | standard |
| High risk / escalated | deep |
| Direct path / no risk | standard |
## Claude Code
Under Claude Code, only explain the mapping: **cheap = haiku**, **standard =
sonnet**, **deep = opus**. Apply the routing table above with those names. Do
not run the helper and do not create or edit any configuration file.
## opencode
1. Use the actual session directory as the consumer. The only config target is
`<session>/opencode.json`. Never edit the blueprint checkout, its
`opencode/agents/*.md`, `opencode/opencode.template.jsonc`, global opencode
config, or top-level `model`/`small_model` choices. The helper preserves
unrelated config, MCP, permission, and model keys and backs up an existing
consumer file to `opencode.json.bak`.
2. Let the user choose three model IDs and any supported variants from
`opencode models`. Never claim a model or variant is available from memory
or assumption. If a variant is unknown or not shown as supported, recommend
omitting it; do not write it blindly.
3. Show the routing table and confirm the selected cheap, standard, and deep
assignments. Use the session cwd explicitly:
```bash
python3 .claude/scripts/model-setup.py --cwd <session> --cheap <provider/model> --standard <provider/model> --deep <provider/model>
```
Add `--cheap-variant <v>`, `--standard-variant <v>`, or `--deep-variant <v>`
only for user-selected supported variants. An omitted or empty variant
removes that lane's existing variant. Use `--dry-run` for a write-free
preview. Model IDs use `provider/model`; provider-qualified model IDs may
contain further slashes in the model portion.
4. The command sets these consumer `agent` overrides:
`test-executor-cheap`, `test-executor`, `test-executor-deep`,
`test-automator-cheap`, `test-automator`, and `test-automator-deep`.
**Optional judge roles** (the adversarial verdict court, `docs/pipeline/judge.md`):
`--judge <provider/model>` sets both `verdict-prosecutor` and `verdict-defender`;
`--failure-analyst <provider/model>` sets the analyst. These are additive and
optional — omitted, those roles inherit the caller's model (the working default).
You may set lanes, judges, or both in one call. Inspect read-only with:
```bash
python3 .claude/scripts/model-setup.py --cwd <session> --check
```
5. Tell the user to restart opencode so the overrides take effect.
6. Optionally offer a small `opencode run --model <provider/model> "Reply with OK"`
smoke test for a selected model. Run it only after the user explicitly
confirms the smoke run and its model; never run it silently. A smoke run is
optional verification, not proof that an unlisted variant is supported.
## Model guidance (recommendation, never a requirement)
The blueprint pins nothing (D6); `inherit` always works. When the user does choose:
- **Judge roles deserve a strong, independent model.** The verdict court catches
false-greens the executor missed — give it a capable model, ideally a *different*
one than the executor lanes (cross-model independence). The helper warns (never
blocks) when `--judge` equals an executor lane model.
- **Lanes by risk:** cheap = a fast/flash model, standard = a balanced model, deep =
the strongest reasoning model available.
- **OpenRouter free models:** when the provider is OpenRouter, free tiers
(`<model>:free`, or `opencode/...-free`) are a legitimate cost option for the cheap
lane and smoke tests. They are often weaker — do **not** default the judge or deep
lane to a free model; quality-critical roles need capability. Verify availability
from `opencode models`, never from memory.
The helper uses Python's standard library only. It accepts JSON and JSONC with
comments, escaped strings, and trailing commas. It performs no network,
provider, or subprocess calls and never prints unrelated config values or
secrets.