v0.10: add automated Codex orchestration and deployment check
This commit is contained in:
@@ -529,16 +529,20 @@ OpenCode 的坑:如果只是在主会话里装样子地写"让 X agent 做",
|
||||
**已落地的共享层**:
|
||||
- 新增 `scripts/dr.py` 平台无关 CLI:支持 `status`、`prompt`、`glossary`、`finalize`。
|
||||
- 新增 `scripts/install_codex_adapter.py`:从 `codex_adapter_templates/codex/**` 安装 `.codex/**`,并把 `.opencode/skills/**` 复制到 `.agents/skills/**`。
|
||||
- 新增 `codex_adapter_templates/codex/**`:包含 Codex 项目配置、8 个 custom agents 和 7 个命令模板。
|
||||
- 新增 `scripts/deploy_check.py`:新环境部署自检;必要时用 `--repair --force` 从模板重建 `.codex/**` 并同步 `.agents/skills/**`。
|
||||
- 新增 `codex_adapter_templates/codex/**`:包含 Codex 项目配置、8 个 custom agents 和命令模板;`dr-run` 是主入口,用 Codex 主线程承担 PM 调度,阶段命令只作为调试和人工接管入口。
|
||||
- `configs/model_profiles.yaml` 新增 `codex_native` profile,使用 OpenAI 原生 `gpt-5.4` / `gpt-5.4-mini` 角色映射。
|
||||
- `docs/codex-usage.md` 重写为 Codex native adapter 使用说明。
|
||||
|
||||
**设计约定**:
|
||||
- Codex 默认走 OpenAI 原生模型,不依赖 ZenMux provider。
|
||||
- Phase 1-3 由 Codex custom agents + command prompt 执行;Phase 4 由 `scripts/dr.py finalize` 调确定性 Python 流水线。
|
||||
- Codex 不会因 custom agent 文件存在而自动启动 subagent;`dr-run` prompt 必须明确要求主线程 spawn / wait / consolidate。
|
||||
- Phase 1-3 由 `dr-run` 主线程调度 Codex custom agents 执行;Phase 4 由 `scripts/dr.py finalize` 调确定性 Python 流水线。
|
||||
- `.opencode/**` 不改不删,避免破坏 OpenCode 已可用流程。
|
||||
- `.opencode/skills` 将复制到 `.agents/skills`,而非软链接,以保证 Git 与跨机器可移植。
|
||||
|
||||
**安装方式**:
|
||||
- 在本机运行 `uv run python scripts/install_codex_adapter.py --force`。
|
||||
- 安装后运行 `/debug-config` 确认 `.codex/config.toml` 被 Codex 加载。
|
||||
- 自动化研究默认权限:`sandbox_mode = "workspace-write"`、`approval_policy = "never"`、`web_search = "live"`、`sandbox_workspace_write.network_access = true`。
|
||||
- Tavily / Brave / Exa MCP server 在模板中默认 `enabled = true` 且 `required = false`;确认本机 key、npm 与网络可用可直接使用,某个服务异常时再单独关闭。
|
||||
|
||||
Reference in New Issue
Block a user