用途:为 pstack 配置每个角色使用的模型与推理预算,写入始终生效的规则文件。
主要能力:
- 写入路径:Cursor 为 ~/.cursor/rules/pstack-models.mdc(含 frontmatter,alwaysApply: true);其他 harness(Claude Code、Codex、Pi、OpenCode 等)为 ~/.agents/pstack-models.md。读取时两个路径都检查,用存在的那个。
- 提供四个预算选项:unlimited(max)、large(xhigh)、medium(high)、small(medium),据此设置各真实 slug 的 effort token。
- 可配置的角色包括 feature、refactoring、bug-fix、perf-issue、hillclimb、judgment and prose、hardest tasks、how explorer/explainer、why investigators/synthesizer、reflect 相关、arena runners、arena cross-judge pool、swarm workers、architect runners、interrogate reviewers。
- 列表角色(panel 类)支持多个条目,每条目运行一个子代理;arena cross-judge pool 从中选一个与父模型家族不同的模型。
- 别名 inherit-parent 与 auto 始终有效,表示该角色沿用父会话模型。
使用方式:先枚举本会话可传给子代理的模型 slug(如 opencode models、pi --list-models),检测不到则请用户提供;读取现有配置作为当前状态;询问并应用预算;展示角色与模型让人确认;校验每个真实 slug 均在检测集中;整体覆盖写入配置文件;告知写入路径。可重复运行以更新。
限制:不得写入未经确认可用的真实 slug;Grok 系列最高到 xhigh,unlimited 下回退为 xhigh;未检测到的模型会标记为需要选择。
可选步骤:若项目缺少验证方式,可一次性询问是否用 /create-verification-skill 生成项目本地验证技能。