使用 Github:Codeg (开启多智能体协同的情况下)在 claude code 进行开发,在一个会话里使用 skill 和不使用 skill 的区别效果:
使用 skill 后任务完成会由 codex 自动 review ,有问题直接修复,解决了我以前手动来回倒腾的问题。这是 skill 内容(如果使用其它子智能体 review 的话,可以把 skill 里面的 codex 替换一下),可以直接在 skills 管理里面添加,欢迎大佬们使用反馈,或者创作分享:
Use Codex as an independent reviewer after work that can modify artifacts or behavior. Loop until the latest result is production-ready.
Core principle: Work is not complete until Codex approves the latest fixed version as production-ready.
delegate_to_agent with agent_type: "codex", absolute working_dir, and a self-contained task containing the request, changed files or diff/SHAs, checks run, and constraints.receiving-code-review: verify claims, fix valid feedback, and push back with evidence on invalid or out-of-scope feedback.Do not use an ordinary in-session Task/general-purpose reviewer as a substitute.
If delegate_to_agent is missing, Codeg MCP is not injected/enabled, the call fails, or the Codex child session fails, tell the human and leave the task incomplete or blocked. Do not self-review instead.
{
"agent_type": "codex",
"working_dir": "<absolute current working directory>",
"task": "<complete review prompt; child cannot see this conversation>"
}
Review these completed changes as Codex.
Quality bar: production-ready. Do not approve while in-scope correctness,
security, reliability, data, API, UX, performance, test, or maintainability
issues remain.
User request:
<request>
Changes to review:
<diff, changed files, or BASE_SHA..HEAD_SHA>
Verification already run:
<commands and results>
Return:
- Verdict: APPROVED or CHANGES_REQUESTED
- Critical / Important / Minor issues
- Required verification
For re-review, add:
Re-review the latest state after fixes against the same production-ready quality
bar. Do not approve unless the current version is ready to ship.
| Situation | Required action |
|---|---|
| Artifact/behavior-changing task is done | Call delegate_to_agent before final response |
| Codex finds valid issues | Fix, verify, send back to Codex |
| Feedback seems wrong | Verify, push back with evidence |
| Minor issues remain | Fix valid ones unless they expand scope or risk |
| Codex approves latest version | Final response may be sent after checks pass |
Rationalizations:
| Mistake | Fix |
|---|---|
| Reviewing the original diff after fixes | Ask Codex to review the latest state |
| Blindly applying feedback | Verify with codebase evidence first |
| Stopping after fixes | Re-dispatch Codex after changes |
| Treating tests as a replacement for review | Run tests and Codex review |
| Using an in-session reviewer | Use Codeg MCP delegate_to_agent |
Final response is allowed only after implementation and accepted fixes are done, relevant checks pass or limitations are stated, Codex approves the latest version, and no known valid production-readiness issue remains in scope.
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.