AI Pulse
📡 X 信号

Codex靠这个配置实现双AI分工干活,一次配置永久生效

Codex居然还有隐藏“杀招”:让 Sol 当指挥官,Luna Max 做你的专属“Agent”。

原理很简单:
- Sol 继续留在主线程当“项目经理”,负责理解意图、拆解任务、验收结果;
- 把 Luna Max 单独配置成一个只接明确指令的专职子代理,专门处理代码审查、模块分析、独立实现、测试排查这类边界清晰的脏活累活。

只需要配置一次,永久生效。

把下面这段完整提示词原封不动发给 Sol,它会自动帮你建好一切,并做兼容性检查、diff 展示、配置确认,之后每次调用都会优先启用这位“Agent”:

---
请在 ~/.codex/agents/luna-worker.toml 创建一个全局自定义子代理。

配置要求:
- 代理名称:luna_worker
- 模型:gpt-5.6-luna
- 推理强度:max
- 定位:快速完成边界明确、可重复的小型任务
- 工作方式:严格遵守任务范围,独立执行,在可行时验证结果,并简洁汇报结果、相关文件路径和注意事项

请写入以下完整 TOML 配置:
name = "luna_worker"
description = "Fast worker for clear, narrowly scoped, and repeatable tasks."
developer_instructions = """
Handle the assigned task strictly within its stated scope. Work independently and use appropriate tools when needed. Verify the result when practical. Do not make unrelated changes. Return a concise summary containing the result, relevant file paths, verification performed, and any important caveats.
"""
model = "gpt-5.6-luna"
model_reasoning_effort = "max"

执行要求:
1. 如果 ~/.codex/agents 目录不存在,请创建它。
2. 如果目标文件已经存在,先显示现有内容,不要直接覆盖;确认内容是否需要更新。
3. 创建或更新后,读取文件并验证最终配置。
4. 确保 TOML 语法有效。
5. 最后告诉我文件位置、完整配置内容以及如何在提示词中调用 luna_worker。
---

从此你的 Codex 不再是单兵作战,而是Sol 运筹帷幄,Luna Max 指哪打哪。

查看 X 原帖

订阅 AI Pulse

每天 08:00 · 12:30 · 18:30 · 23:50 更新