Skill
by @fzhlian
Run Codex as a background local job with an immediate receipt, saved logs and patch artifacts, optional Telegram notifications, and explicit workdir support.
clawhub install codex-dev📖 About This Skill
name: codex-dev description: Run Codex as a background local job with an immediate receipt, saved logs and patch artifacts, optional Telegram notifications, and explicit workdir support.
codex-dev
Use this skill when the user wants asynchronous Codex execution instead of a long-lived interactive session.
当用户希望把 Codex 任务放到后台执行、先拿到作业回执、并在完成后查看摘要或接收 Telegram 通知时,使用这个 skill。
What it does | 功能说明
$HOME/.codex-dev/jobs// $HOME/.codex-dev/jobs// task.txt, status.json, codex.out.log, summary.txt, and patch.txttask.txt、status.json、codex.out.log、summary.txt、patch.txt--workdir--workdir 明确指定工作目录Files | 文件组成
scripts/codex-dev-dispatchscripts/codex-dev-dispatchscripts/codex-dev-workerscripts/codex-dev-workerscripts/telegram-notifyscripts/telegram-notifyscripts/install-local.shscripts/install-local.shreferences/local-setup.mdreferences/local-setup.mdWhen to use it | 适用场景
Prefer this skill for any request that should:
If the user only wants read-only inspection, a normal direct response is usually enough.
Common examples:
Invocation | 调用方式
Run the dispatcher script directly from the installed skill folder: 从已安装的 skill 目录直接运行分发脚本:
./scripts/codex-dev-dispatch "Inspect the repo and fix one issue."
Or with an explicit work directory: 或显式指定工作目录:
./scripts/codex-dev-dispatch --workdir /absolute/path "Fix the issue only in this directory."
Query status and summary: 查询状态和摘要:
./scripts/codex-dev-dispatch status
./scripts/codex-dev-dispatch show
./scripts/codex-dev-dispatch help
If installed with local wrappers, the same flow can be exposed as: 如果已安装本地包装命令,也可以这样使用:
codex-dev "Fix one issue and summarize the change."
codex-help
codex-dev-status
codex-dev-show
常见中文用法:
codex-dev "修复一个小问题并总结修改"
codex-dev --workdir /absolute/path "只在这个目录里完成修改"
codex-help
Environment | 环境变量
Optional environment variables: 可选环境变量:
CODEX_DEV_DEFAULT_WORKDIRCODEX_DEV_JOBS_ROOTCODEX_DEV_CHAT_IDTELEGRAM_BOT_TOKENCODEX_DEV_OPENCLAW_CONFIGIf TELEGRAM_BOT_TOKEN is unset, the worker will try to read botToken from CODEX_DEV_OPENCLAW_CONFIG and then from ~/.openclaw/openclaw.json.
如果 TELEGRAM_BOT_TOKEN 未设置,worker 会尝试先从 CODEX_DEV_OPENCLAW_CONFIG,再从 ~/.openclaw/openclaw.json 中读取 botToken。
Workdir behavior | 工作目录行为
--workdir must be an absolute existing pathpatch.txt is generated relative to the detected repo rootIdempotency | 幂等性
For write requests, prefer idempotent changes. If the requested content already exists, do not append or duplicate it; state that clearly in the summary. 对于写入型请求,优先保持幂等。如果目标内容已经存在,不要重复追加,并在摘要中明确说明。
Notes | 说明
references/local-setup.md when you need to wire the installed skill into a local OpenClaw agent