返回顶部
c

codex-bridge

Dispatch coding tasks to the local OpenAI Codex CLI with background execution, status polling, and answerable clarifying questions. Use when OpenClaw should delegate script building, code edits, refactors, or multi-step coding work to Codex from the command line.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
299
下载量
0
收藏
概述
安装方式
版本历史

codex-bridge

# Codex Bridge Delegate coding tasks from OpenClaw to the local `codex` CLI and manage them asynchronously. This skill provides a file-based bridge so OpenClaw can: - dispatch tasks - poll status and recent output - relay clarifying questions - send answers - collect final results ## When to Use - Build scripts (Python, Bash, etc.) - Implement or refactor code in an existing project - Run larger multi-file coding tasks in the background - Delegate coding work while keeping OpenClaw responsive - Handle tasks that may require clarifying questions mid-run ## When NOT to Use - Quick factual questions or explanations - Small code snippets that OpenClaw can write directly - Non-coding tasks - Tasks that should not invoke a local coding agent/CLI ## Dispatch a Task ```bash ~/.openclaw/skills/codex-bridge/codex-bridge-dispatch.sh \ --task-id <descriptive-name> \ --workdir <project-directory> \ --prompt "<detailed coding task>" ``` ### Prompt Writing Include: - what to build/fix - file paths if known - expected behavior/output - language/framework preferences - constraints (tests, style, no new deps, etc.) Example: ```bash ~/.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." ``` ## Check Status ```bash ~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id <id> ``` Common status commands: ```bash ~/.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 ``` ## Answer Clarifying Questions When status is `waiting_for_answer`, read the pending question and send a response: ```bash ~/.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. ## Workflow 1. Dispatch task with a clear prompt. 2. Report the task ID. 3. Poll status/output periodically. 4. If status becomes `waiting_for_answer`, read `--question`, relay to user, then write answer with `--answer`. 5. When status is `complete`, read `--result` and summarize outcomes. 6. If status is `error`, inspect `--log` and `--output`. ## Notes and Limits - Uses the local `codex` CLI (`codex exec` and `codex exec resume`). - Clarifying questions are implemented via a lightweight text marker protocol in the prompt wrapper. - Bridge state is stored in `~/.codex-bridge/tasks/<task-id>/`. - Commands run via Codex in the specified `--workdir`. - For unattended runs, the bridge times out after 10 minutes waiting for an answer and resumes with a default/sensible fallback.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 codex-bridge-1776207860 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 codex-bridge-1776207860 技能

通过命令行安装

skillhub install codex-bridge-1776207860

下载 Zip 包

⬇ 下载 codex-bridge v1.0.0

文件大小: 10.15 KB | 发布时间: 2026-4-15 10:37

v1.0.0 最新 2026-4-15 10:37
Initial release of codex-bridge skill.

- Enable OpenClaw to delegate complex coding tasks to the local OpenAI Codex CLI.
- Support for asynchronous task dispatch, background execution, and status polling.
- Relay clarifying questions and collect user answers to keep multi-step tasks interactive.
- Expose CLI commands for task dispatch, status checks, and answer submission.
- Designed for use cases needing script building, code refactoring, or multi-file project work beyond simple code completion.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部