Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
win4r avatar

Codex Cli Dispatch

  • 1 installs
  • 12 repo stars
  • Updated March 4, 2026
  • win4r/codex-cli-dispatch

Helps with ai & agent building tasks.

About

codex-cli-dispatch is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.

  • codex-cli-dispatch
  • AI & Agent Building
  • AI-coding skill

Codex Cli Dispatch by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #14,102 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Jul 27, 2026 (Skillselion catalog sync)
npx skills add https://github.com/win4r/codex-cli-dispatch --skill codex-cli-dispatch

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
repo stars12
Last updatedMarch 4, 2026
Repositorywin4r/codex-cli-dispatch

What it does

Helps with ai & agent building tasks.

Files

SKILL.mdMarkdownGitHub ↗

Codex CLI Dispatch Skill

Dispatch development tasks to OpenAI's Codex CLI (codex exec) with automatic Telegram notification on completion.

When to Use

  • User asks to use Codex / OpenAI Codex to build, fix, or review code
  • User explicitly says "use Codex" or "codex cli"
  • Tasks that benefit from GPT-5.3-Codex model (OpenAI's coding agent)

Architecture

AGI (main session)
  → exec: dispatch.sh (background)
    → codex exec (headless, sandboxed)
    → on exit: notify via openclaw message send
    → write results to latest.json

Quick Reference

Dispatch a Task

bash /home/ubuntu/clawd/skills/codex-cli-dispatch/scripts/dispatch.sh \
  --prompt "Build a REST API with Express.js" \
  --task-name "express-api" \
  --workdir "/home/ubuntu/projects/express-api" \
  --telegram-group "-5006066016" \
  --model "gpt-5.3-codex" \
  --sandbox "workspace-write"

Parameters

FlagRequiredDefaultDescription
--promptYesTask instructions for Codex
--task-nameNocodex-<timestamp>Human-readable task name
--workdirNo/home/ubuntu/clawdWorking directory
--telegram-groupNoTelegram chat ID for notification
--modelNo(from config.toml)Model override
--sandboxNoworkspace-writeread-only, workspace-write, or danger-full-access
--full-autoNotrueSkip approvals (sandboxed)
--imageNoImage file(s) to attach

Dispatch Pattern (from AGI)

⚠️ MUST use `nohup` + background — dispatch.sh blocks until Codex finishes. Short exec timeout will SIGTERM the process.

# 1. Create project dir
mkdir -p /home/ubuntu/projects/my-project
cd /home/ubuntu/projects/my-project && git init

# 2. Dispatch (ALWAYS use nohup + &)
nohup bash /home/ubuntu/clawd/skills/codex-cli-dispatch/scripts/dispatch.sh \
  --prompt "..." \
  --task-name "my-task" \
  --workdir "/home/ubuntu/projects/my-project" \
  --telegram-group "-5006066016" \
  > /tmp/dispatch-codex.log 2>&1 &

Alternative: use exec with background=true so AGI doesn't block.

Result Files

FileContent
data/codex-results/latest.jsonLast task result (task_name, output, status)
data/codex-results/task-meta.jsonTask metadata (written before run)
data/codex-results/task-output.txtRaw Codex output

⚠️ Critical Gotchas

1. Codex needs a git repo — Use --skip-git-repo-check or git init the workdir first 2. `codex exec` is headless — No PTY wrapper needed (unlike Claude Code), it exits cleanly 3. Sandbox modes matterworkspace-write is safe default; danger-full-access for system tasks only 4. Auth — Codex uses ~/.codex/config.toml credentials. Run codex login if auth fails 5. Model — Default is gpt-5.3-codex; can override with --model o3 etc. 6. Output format — Use --json for JSONL event stream if needed for parsing

Code Review Mode

Codex has a built-in code review:

codex exec review --full-auto -C /path/to/repo

⚠️ Critical Gotchas (continued)

7. Don't poll and wait! dispatch.sh is a blocking script. After starting it with exec background=true, do not `process poll`. The script will automatically send a Telegram notification when finished. Polling just wastes agent turns (lesson learned: a security scan task was polled 20+ times) 8. Long tasks may be OOM killed — Codex's gpt-5.3-codex reasoning mode is memory-intensive; long-running scan tasks may be killed by the system (SIGKILL). Consider splitting large tasks or reducing reasoning effort

Debugging

# Check Codex version
codex --version

# Check auth
cat ~/.codex/config.toml

# View last result
cat /home/ubuntu/clawd/data/codex-results/latest.json | jq .

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.