setup-pstack
Setup pstack
Write ~/.agents/rules/pstack-models.md, an always-applied rule that sets pstack's model per role. The legacy ~/.cursor/rules/pstack-models.mdc path still works as a fallback.
Steps
1. Detect available models
Enumerate the model identifiers your harness lets you pass to a subagent; if your harness offers no model choice, skip the rule and roles fall back to the parent model. That enumeration is the dependable source, and if your harness also exposes a models API or CLI that lists the user's entitled models, prefer it for completeness. If you cannot detect any, ask the user to paste the identifiers they have access to. Never write a real identifier you have not confirmed is available. The aliases inherit-parent and auto are always valid even though they are not detected identifiers.
2. Load current state
The default role-to-model mapping is the rule shape shown in step 5 below. If ~/.agents/rules/pstack-models.md already exists, read it and treat its values as the current choices; when that portable path is absent, read the legacy ~/.cursor/rules/pstack-models.mdc as a fallback. Otherwise start from those defaults.
3. Map and confirm
Show every role with its current model, marking any real slug not in the detected set as needing a choice. Ask whether to accept as-is or change specific roles, offering the detected models plus inherit-parent and auto (both mean: this role runs on the parent chat model, which is how Auto users stay on Auto) as the options. Prefer your harness's structured question tool over free text, if it has one (for example AskQuestion); otherwise ask in plain text. For panel roles (arena runners, architect runners, interrogate reviewers, multi-phase lanes) the value is a list, and one subagent runs per entry, alias entries included, so the list length sets the count. arena cross-judge pool is also a list, but Arena selects one value from it whose model family differs from the parent's when possible. swarm workers is the default model for every worker unless a race or comparison assigns another model per arm.