← 返回
开发者工具 中文

Codex Delegate

Decide when to delegate code-heavy, multi-file, or repo-intensive tasks to Codex while keeping final judgment and context in the main agent.
决定何时将代码量大、多文件或仓库密集的任务委托给 Codex,同时在主代理中保留最终判断和上下文。
g-hanasq g-hanasq 来源
开发者工具 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 617
下载
💾 7
安装
1
版本
#codex#latest#openclaw#workflow

概述

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.
  2. Ask: is this mainly technical execution or human-facing judgment?
  3. If mainly technical execution, delegate the heavy part to Codex.
  4. Require Codex output to stay structured and narrow.
  5. Bring back only the useful result.
  6. 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 加十

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-29 20:00 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

article-idea-capture

g-hanasq
Record公众号文章灵感、选题、半成品观点,并持续整理成可写的大纲或初稿。Use when the user says they have an article idea, topic, inspiration,选题, 钩子, 标题想法,
★ 0 📥 684
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,385 📥 320,915
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,086 📥 814,083