refactor: drop 12 runtimes, keep Claude, Codex, OpenCode, Cursor, ZCode, Antigravity
Removes kilo, kimi, kimi-code, copilot, windsurf, augment, trae, qwen, hermes, cline, codebuddy and pi end to end: capability descriptors, installer branches and converters (bin/install.js 14.9k -> 11.2k lines), TypeScript converters, hook surfaces and runtime homes, review lanes qwen/kimi-code, the two pi migrations, Kimi payload normalization in the hook guards, dead hostBehaviors vocabulary, launcher home probes, fixtures, runtime-specific tests and the prose that presented them as supported. Installer output for the six kept runtimes is byte-identical to before the prune. The Kimi tool-vocabulary tests in workflow-guard, read-guard and read-injection-scanner are left in place pending a decision.
This commit is contained in:
@@ -143,7 +143,7 @@ MSD 将项目设置存储在 `.planning/config.json` 中。该文件在 `/msd-ne
|
||||
| `mode` | enum | `interactive`, `yolo` | `interactive` | `yolo` 自动批准决策;`interactive` 在每个步骤进行确认 |
|
||||
| `granularity` | enum | `coarse`, `standard`, `fine` | `standard` | 控制阶段数量:`coarse`(3-5 个)、`standard`(5-8 个)、`fine`(8-12 个) |
|
||||
| `model_profile` | enum | `quality`, `balanced`, `budget`, `adaptive`, `inherit` | `balanced` | 每个 agent 的模型层级(参见[模型配置文件](#模型配置文件))。`adaptive` 根据 [#1713](https://github.com/open-gsd/gsd-core/issues/1713) / [#1806](https://github.com/open-gsd/gsd-core/issues/1806) 添加,在运行时感知的配置文件下与其他层级以相同方式解析。 |
|
||||
| `runtime` | string | `claude`, `codex` 或任意字符串 | (无) | [运行时感知配置文件解析](#运行时感知配置文件-2517)的活跃运行时。设置后,配置文件层级(opus/sonnet/haiku)解析为运行时原生模型 ID。目前仅 Codex 安装路径通过此解析器为每个 agent 生成模型 ID;其他运行时(`opencode`、`gemini`、`qwen`、`copilot` 等)在 spawn 时消费该解析器,并在 [#2612](https://github.com/open-gsd/gsd-core/issues/2612) 中获得专用安装路径支持。未设置时(默认),行为与之前版本相同。v1.39 新增 |
|
||||
| `runtime` | string | `claude`, `codex` 或任意字符串 | (无) | [运行时感知配置文件解析](#运行时感知配置文件-2517)的活跃运行时。设置后,配置文件层级(opus/sonnet/haiku)解析为运行时原生模型 ID。目前仅 Codex 安装路径通过此解析器为每个 agent 生成模型 ID;其他运行时(`opencode`、`gemini` 等)在 spawn 时消费该解析器,并在 [#2612](https://github.com/open-gsd/gsd-core/issues/2612) 中获得专用安装路径支持。未设置时(默认),行为与之前版本相同。v1.39 新增 |
|
||||
| `model_profile_overrides.<runtime>.<tier>` | string \| object | 按运行时的层级覆盖 | (无) | 覆盖特定 `(runtime, tier)` 的运行时感知层级映射。层级为 `opus`、`sonnet`、`haiku` 之一。值为模型 ID 字符串(如 `"gpt-5-pro"`)或 `{ model, reasoning_effort }`。参见[运行时感知配置文件](#运行时感知配置文件-2517)。v1.39 新增 |
|
||||
| `model_policy.provider` | string | `openai`, `anthropic`, `anthropic-fable`, `google`, `qwen`, `generic` | (无) | 声明模型提供商。已知提供商(`openai`、`anthropic`、`anthropic-fable`、`google`、`qwen`)启用基于目录的预设。`generic` 将所有模型 ID 视为不透明字符串——无前缀推断,无推理努力默认值。`model_policy.runtime_tiers` 在旧版 `model_profile_overrides` 之前解析。参见[模型策略预设](#模型策略预设-model_policy--v142-新增)。v1.42 新增([#49](https://github.com/open-gsd/gsd-core/issues/49)) |
|
||||
| `model_policy.budget` | enum | `high`, `medium`, `low` | (无) | 使用已知提供商时选择预算层级。MSD 在解析时将匹配的目录预设具体化为显式层级映射。当 `provider` 为 `generic` 或 `custom` 时忽略。v1.42 新增([#49](https://github.com/open-gsd/gsd-core/issues/49)) |
|
||||
@@ -678,14 +678,13 @@ msd-tools query config-set features.thinking_partner false
|
||||
| `review.models.claude` | string | (CLI 默认) | 调用 `--claude` 审查器时使用的模型 |
|
||||
| `review.models.codex` | string | (CLI 默认) | 调用 `--codex` 审查器时使用的模型 |
|
||||
| `review.models.opencode` | string | (CLI 默认) | 调用 `--opencode` 审查器时使用的模型 |
|
||||
| `review.models.qwen` | string | (CLI 默认) | 调用 `--qwen` 审查器时使用的模型 |
|
||||
| `review.models.cursor` | string | (CLI 默认) | 调用 `--cursor` 审查器时使用的模型 |
|
||||
| `review.models.ollama` | string | (服务器默认) | 调用 `--ollama` 审查器时传递给 Ollama 的模型名称。未设置时使用服务器报告的第一个可用模型(如 `llama3`)。设置为特定标签:`msd config-set review.models.ollama codellama` |
|
||||
| `review.models.lm_studio` | string | (服务器默认) | 调用 `--lm-studio` 审查器时传递给 LM Studio 的模型名称。未设置时使用服务器报告的第一个可用模型。 |
|
||||
| `review.models.llama_cpp` | string | (服务器默认) | 调用 `--llama-cpp` 审查器时传递给 llama.cpp 的模型名称。未设置时使用 `/v1/models` 报告的第一个模型。 |
|
||||
| `review.default_reviewers` | string[] \| null | (所有已检测审查器) | 无标志 `/msd-review` 的默认审查器子集。示例:`["codex","claude"]`。显式标志和 `--all` 覆盖此设置。 |
|
||||
| `review.max_prompt_tokens` | number\|null | null | 组装审查提示词的默认最大预估 token 数。设置后,在发送给每个审查器之前对提示词进行确定性裁剪。按审查器覆盖通过 `review.max_prompt_tokens_per_reviewer` 优先。null = 不裁剪(当前行为)。 |
|
||||
| `review.max_prompt_tokens_per_reviewer` | object | {} | 按审查器的 token 预算覆盖。键为审查器 slug(ollama、llama_cpp、lm_studio、claude、codex、opencode、qwen、cursor)。值覆盖该审查器的 `review.max_prompt_tokens`。推荐用于本地模型服务器。 |
|
||||
| `review.max_prompt_tokens_per_reviewer` | object | {} | 按审查器的 token 预算覆盖。键为审查器 slug(ollama、llama_cpp、lm_studio、claude、codex、opencode、cursor)。值覆盖该审查器的 `review.max_prompt_tokens`。推荐用于本地模型服务器。 |
|
||||
| `review.ollama_host` | string | `http://localhost:11434` | Ollama 服务器的基础 URL。在非默认端口或远程主机上运行 Ollama 时覆盖:`msd config-set review.ollama_host http://192.168.1.10:11434` |
|
||||
| `review.lm_studio_host` | string | `http://localhost:1234` | LM Studio 本地服务器的基础 URL。使用非默认端口时覆盖。 |
|
||||
| `review.llama_cpp_host` | string | `http://localhost:8080` | llama.cpp 服务器(`llama-server`)的基础 URL。使用非默认端口时覆盖。 |
|
||||
@@ -700,8 +699,7 @@ msd-tools query config-set features.thinking_partner false
|
||||
{
|
||||
"review": {
|
||||
"models": {
|
||||
"agy": "gemini-3.1-pro-preview",
|
||||
"qwen": "qwen-max"
|
||||
"agy": "gemini-3.1-pro-preview"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -782,7 +780,7 @@ msd-tools query config-set features.thinking_partner false
|
||||
|
||||
有效的覆盖值:`opus`、`sonnet`、`haiku`、`inherit`,或任何完全限定的模型 ID(如 `"openai/o3"`、`"google/gemini-2.5-pro"`)。
|
||||
|
||||
`model_overrides` 可以设置在 `.planning/config.json`(按项目)或 `~/.msd/defaults.json`(全局)中。按项目条目在冲突时优先,不冲突的全局条目被保留,因此可以在一个仓库中调整单个 agent 的模型而无需重新设置全局默认值。这在 Claude Code、Codex、OpenCode、Kilo 和其他支持的运行时中统一适用。在 Codex 和 OpenCode 上,解析后的模型在安装时嵌入每个 agent 的静态配置中——`spawn_agent` 和 OpenCode 的 `task` 接口不接受内联 `model` 参数,因此编辑 `model_overrides` 后需要运行 `msd install <runtime>` 才能使更改生效。参见 issue #2256。
|
||||
`model_overrides` 可以设置在 `.planning/config.json`(按项目)或 `~/.msd/defaults.json`(全局)中。按项目条目在冲突时优先,不冲突的全局条目被保留,因此可以在一个仓库中调整单个 agent 的模型而无需重新设置全局默认值。这在 Claude Code、Codex、OpenCode 和其他支持的运行时中统一适用。在 Codex 和 OpenCode 上,解析后的模型在安装时嵌入每个 agent 的静态配置中——`spawn_agent` 和 OpenCode 的 `task` 接口不接受内联 `model` 参数,因此编辑 `model_overrides` 后需要运行 `msd install <runtime>` 才能使更改生效。参见 issue #2256。
|
||||
|
||||
### 按阶段类型的模型(`models`)— v1.41 新增
|
||||
|
||||
@@ -1064,7 +1062,7 @@ minimal < low < medium < high < xhigh < max
|
||||
|
||||
---
|
||||
|
||||
### 非 Claude 运行时(Codex、OpenCode、Antigravity CLI、Kilo)
|
||||
### 非 Claude 运行时(Codex、OpenCode、Antigravity CLI)
|
||||
|
||||
> **Codex CLI 最低支持版本:`0.130.0`**(issue [#3562](https://github.com/open-gsd/gsd-core/issues/3562))。
|
||||
>
|
||||
@@ -1103,7 +1101,7 @@ minimal < low < medium < high < xhigh < max
|
||||
|-------|----------|----------|
|
||||
| `false`(默认) | 返回 Claude 别名(`opus`、`sonnet`、`haiku`) | 使用原生 Anthropic API 的 Claude Code |
|
||||
| `true` | 将别名映射到完整 Claude 模型 ID(`claude-opus-4-8`) | 使用需要完整 ID 的 API 的 Claude Code |
|
||||
| `"omit"` | 返回空字符串(运行时选择其默认值) | 非 Claude 运行时(Codex、OpenCode、Antigravity CLI、Kilo) |
|
||||
| `"omit"` | 返回空字符串(运行时选择其默认值) | 非 Claude 运行时(Codex、OpenCode、Antigravity CLI) |
|
||||
|
||||
### 运行时感知配置文件(#2517)
|
||||
|
||||
@@ -1118,11 +1116,8 @@ minimal < low < medium < high < xhigh < max
|
||||
| `claude` | `claude-opus-4-8` | `claude-sonnet-5` | `claude-haiku-4-5` | (不使用) |
|
||||
| `codex` | `gpt-5.6-sol` | `gpt-5.6-terra` | `gpt-5.6-luna` | `xhigh` / `medium` / `medium` |
|
||||
| `gemini` | `gemini-3-pro` | `gemini-3-flash` | `gemini-2.5-flash-lite` | (不使用) |
|
||||
| `qwen` | `qwen3-max-2026-01-23` | `qwen3-coder-plus` | `qwen3-coder-next` | (不使用) |
|
||||
| `opencode` | `anthropic/claude-opus-4-8` | `anthropic/claude-sonnet-5` | `anthropic/claude-haiku-4-5` | (不使用) |
|
||||
| `copilot` | `claude-opus-4-8` | `claude-sonnet-5` | `claude-haiku-4-5` | (不使用) |
|
||||
| `hermes` | `anthropic/claude-opus-4-8` | `anthropic/claude-sonnet-5` | `anthropic/claude-haiku-4-5` | (不使用) |
|
||||
| B 组(`kilo`、`cline`、`cursor`、`windsurf`、`augment`、`trae`、`codebuddy`、`antigravity`) | (无内置默认——您的运行时处理模型选择) | | | |
|
||||
| B 组(`cursor`、`zcode`、`antigravity`) | (无内置默认——您的运行时处理模型选择) | | | |
|
||||
|
||||
**Codex 示例** — 单个配置,分层模型,无大型 `model_overrides` 块:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user