Codex Delegate
Use this skill to decide whether Codex should be used, what part should be delegated, and what must remain with the main agent.
Core rule
Codex is a specialist executor, not the long-term owner of the human relationship.
Use Codex for heavy technical work, isolated analysis, and context offloading.
Keep final judgment, risk trade-offs, environment acceptance, and user-facing conclusion in the main agent.
When to delegate to Codex
Delegate when the task is:
- - code-heavy
- repo-heavy
- multi-file
- CLI-heavy
- deep review / audit work
- likely to consume too much token/context in the main thread
- better handled in an isolated, clean context
Typical examples:
- - repository analysis
- skill/package review
- deep code review
- bug investigation
- patch drafting
- dependency and config analysis
- log/error analysis
When NOT to delegate fully
Do not fully hand off tasks that depend on:
- - long-term memory
- user preference and tone alignment
- final risk judgment
- environment acceptance across shell / gateway / cron / LaunchAgent
- upgrade timing and change management
- whether a temporary workaround becomes the official solution
Codex may assist, but the main agent must still decide.
Delegation split
Codex should do
- - static inspection
- file and repo structure analysis
- code/package consistency checks
- focused error analysis
- technical option comparison
- isolated patch or remediation proposals
- heavy token-consuming analysis that would otherwise bloat the main session
Main agent should do
- - define the real goal
- set scope and constraints
- choose whether Codex is the right tool
- evaluate user risk tolerance and workflow fit
- validate dynamic/runtime reality
- decide whether something is truly "done"
- deliver the final recommendation in the human's context
Validation rule
Never confuse these layers:
- - reviewed by Codex
- technically plausible
- works in current shell
- works in gateway
- works in cron
- accepted as the official solution
The first three can often be delegated.
The last three require main-agent ownership.
Token discipline
Delegation is not just about capability. It is also about saving token and protecting the main thread.
Delegate when:
- - the task would create a large technical detour
- the analysis is mostly local and mechanical
- the result can be brought back as a short conclusion
Do not delegate when the cost of coordination exceeds the saved context.
Lightweight workflow
- 1. Define the task in one sentence.
- Ask: is this mainly technical execution or human-facing judgment?
- If mainly technical execution, delegate the heavy part to Codex.
- Require Codex output to stay structured and narrow.
- Bring back only the useful result.
- Do final validation and decision in the main agent.
Output structure
When using this skill, report with:
- - conclusion
- should delegate or not
- what Codex should handle
- what the main agent must keep
- validation level required before calling it done
Keep it short. Prefer good routing over long explanation.
Attribution
- - Author: 石屹
- For: 加十
- Affiliation: 为加十工作流设计
- Note: built for 加十
Codex 委托
使用此技能来决定是否应使用 Codex、哪些部分应被委托,以及哪些必须保留在主代理中。
核心规则
Codex 是一个专业执行者,而非人际关系的长期持有者。
将繁重的技术工作、独立分析和上下文卸载交给 Codex。
将最终判断、风险权衡、环境接受度以及面向用户的结论保留在主代理中。
何时委托给 Codex
当任务满足以下条件时进行委托:
- - 代码密集
- 仓库密集
- 多文件
- CLI 密集
- 深度审查/审计工作
- 可能消耗主线程过多 token/上下文
- 更适合在隔离、干净的环境中处理
典型示例:
- - 仓库分析
- 技能/包审查
- 深度代码审查
- Bug 调查
- 补丁起草
- 依赖与配置分析
- 日志/错误分析
何时不完全委托
不要完全移交依赖于以下方面的任务:
- - 长期记忆
- 用户偏好与语气对齐
- 最终风险判断
- 跨 shell/gateway/cron/LaunchAgent 的环境接受度
- 升级时机与变更管理
- 临时解决方案是否会成为官方方案
Codex 可以协助,但主代理仍需做出决定。
委托分工
Codex 应做
- - 静态检查
- 文件和仓库结构分析
- 代码/包一致性检查
- 针对性错误分析
- 技术方案对比
- 隔离的补丁或修复建议
- 会膨胀主会话的 token 密集型分析
主代理应做
- - 定义真正目标
- 设定范围与约束
- 判断 Codex 是否为合适工具
- 评估用户风险承受能力与工作流适配度
- 验证动态/运行时现实
- 决定某事是否真正完成
- 在用户语境中交付最终建议
验证规则
切勿混淆以下层级:
- - 经 Codex 审查
- 技术上可行
- 在当前 shell 中可用
- 在 gateway 中可用
- 在 cron 中可用
- 被接受为官方方案
前三个通常可以委托。
后三个需要主代理负责。
Token 纪律
委托不仅关乎能力,也关乎节省 token 和保护主线程。
在以下情况委托:
- - 任务会造成大量技术绕路
- 分析主要是本地化和机械化的
- 结果可以以简短结论带回
当协调成本超过节省的上下文时,不要委托。
轻量级工作流
- 1. 用一句话定义任务。
- 提问:这主要是技术执行还是面向人类的判断?
- 如果主要是技术执行,将繁重部分委托给 Codex。
- 要求 Codex 输出保持结构化和聚焦。
- 只带回有用的结果。
- 在主代理中完成最终验证和决策。
输出结构
使用此技能时,报告应包含:
- - 结论
- 是否应委托
- Codex 应处理的内容
- 主代理必须保留的内容
- 在宣布完成前所需的验证级别
保持简洁。优先选择良好的路由,而非冗长的解释。
归属
- - 作者:石屹
- 为:加十
- 所属:为加十工作流设计
- 备注:为加十构建