GPT-5.6 Luna · prompt
把“Reddit Codex:解决 Luna 子代理兼容性的诊断与验证提示词”整理为可执行的任务入口,明确输入、运行环境、交付格式和验收边界;使用前确认模型版本与来源限制。
检查 {{CLIENT_VERSION}} 的 Luna 子代理配置,先使用 {{CONFIG_BACKUP}},核对 {{MODEL_DIRECTORY}},再用 {{VALIDATION_TASK}} 验证并保留 diff。运行前仍需替换: {{CLIENT_VERSION}}, {{CONFIG_BACKUP}}, {{MODEL_DIRECTORY}}, {{VALIDATION_TASK}}
诊断 Luna 子代理配置是否与当前 Codex 版本兼容,并用可回滚步骤验证。
需要 Codex 客户端版本、配置备份、模型目录和只读验证任务;不能直接覆盖未知配置。
记录版本;备份配置;检查 Multi-Agent V1/V2 与 leaf model 支持;只改最小字段;运行验证任务并保存 diff。
示例交付包含版本判断、备份位置、改动 diff 和验证结果;验收失败时能恢复原配置。
版本已修复时不要套用旧补丁;验证失败立即回滚并报告缺失能力,不声称子代理已成功运行。
社区帖子针对特定旧版本/桌面端边界;原帖不是当前官方兼容矩阵,需重新核对。
帖子讨论 Codex 中 Sol/Terra 的 Multi-Agent V2 与 Luna V1 兼容问题。原文给出一段“先检查、备份、修改、验证、报告”的完整提示词,要求不要只描述方案,而是检查实际版本和模型目录。评论区后来有人指出,Codex CLI 0.147.0 已修复 leaf model 支持,因此这段配置补丁可能只适用于旧版或桌面端。
Fix the Codex Sol-V2/Luna-V1 subagent incompatibility on this machine using a
reversible V1 model-catalog override.
Do the work, do not merely describe it.
Requirements:
1. Inspect the current state first:
- Run `codex --version`.
- Run `codex debug models`.
- Inspect the active global `~/.codex/config.toml`.
- Determine the real absolute Codex home path.
- Confirm whether Sol and Terra have `multi_agent_version = "v2"` while
Luna has `"v1"`.
- Preserve all unrelated configuration and user files.
2. Before editing anything, create a timestamped backup directory under
`~/.codex/backups/` and copy the active config there.
3. Generate a new model catalog from the COMPLETE output of
`codex debug models`, not a hand-written or partial catalog.
4. Validate the result:
- Parse config.toml as TOML.
- Parse the model catalog as JSON.
- Run `codex features list`.
- Run `codex debug models` and confirm the effective model versions.
- Run `codex doctor --summary`.
- Report exact files, backups, validation results, and warnings.这段提示词会修改用户配置,不应直接在生产环境执行。原帖后来出现“CLI 0.147.0 已修复”的更新信息;使用前必须先查看当前 Codex 版本、备份并验证,不要盲目修改模型目录。
Reddit,r/codex · 原文日期: 未公开 · 编辑日期: 2026-09-20
阅读原始来源GPT-5.6 Luna
请在上方所列环境中运行本指南。下载不会自动传入模板,也不代表账户已开放该模型。