Dispatch coding tasks to the local OpenAI Codex CLI with background execution, status polling, and answerable clarifying questions. Use when OpenClaw should...
Delegate coding tasks from OpenClaw to the local codex CLI and manage them asynchronously.
This skill provides a file-based bridge so OpenClaw can:
~/.openclaw/skills/codex-bridge/codex-bridge-dispatch.sh \
--task-id <descriptive-name> \
--workdir <project-directory> \
--prompt "<detailed coding task>"
Include:
Example:
~/.openclaw/skills/codex-bridge/codex-bridge-dispatch.sh \
--task-id scripts-csv-parser \
--workdir ~/projects/data-tools \
--prompt "Create parse_orders.py. Read orders CSV, keep shipped rows, group by customer_id, and write summary CSV with columns customer_id, order_count, total_amount. Use pandas. Add basic CLI args and error handling."
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id <id>
Common status commands:
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --list
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id <id> --output
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id <id> --question
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id <id> --result
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id <id> --log
When status is waiting_for_answer, read the pending question and send a response:
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id <id> --question
~/.openclaw/skills/codex-bridge/codex-bridge-answer.sh --task-id <id> --answer "<answer text>"
The bridge resumes the same Codex session after the answer is written.
waiting_for_answer, read --question, relay to user, then write answer with --answer.complete, read --result and summarize outcomes.error, inspect --log and --output.codex CLI (codex exec and codex exec resume).~/.codex-bridge/tasks/<task-id>/.--workdir.ZIP package — ready to use