← Back to Skills Marketplace
abeperl

Codex Bridge

by Abraham Perl · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
369
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install codex-bridge
Description
Dispatch coding tasks to the local OpenAI Codex CLI with background execution, status polling, and answerable clarifying questions. Use when OpenClaw should...
README (SKILL.md)

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

~/.openclaw/skills/codex-bridge/codex-bridge-dispatch.sh \
  --task-id \x3Cdescriptive-name> \
  --workdir \x3Cproject-directory> \
  --prompt "\x3Cdetailed 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:

~/.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

~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id \x3Cid>

Common status commands:

~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --list
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id \x3Cid> --output
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id \x3Cid> --question
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id \x3Cid> --result
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id \x3Cid> --log

Answer Clarifying Questions

When status is waiting_for_answer, read the pending question and send a response:

~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id \x3Cid> --question
~/.openclaw/skills/codex-bridge/codex-bridge-answer.sh --task-id \x3Cid> --answer "\x3Canswer 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/\x3Ctask-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.
Usage Guidance
This skill appears to do what it claims: run the local 'codex' CLI on a project directory and mediate clarifying Q&A via files under ~/.codex-bridge. Before installing, consider: 1) Ensure you trust the local 'codex' CLI and its configuration/credentials (the bridge will invoke it in the chosen workdir and the CLI could read or modify files there). 2) Run the bridge only against project directories you are willing to let the Codex CLI access; avoid pointing it at sensitive system paths or your home directory. 3) Inspect or back up any files in the chosen workdir if you are worried about automated modifications. 4) Logs and task state are stored in ~/.codex-bridge/tasks/; review or remove that directory if you uninstall. If you want additional assurance, run the scripts manually in a safe test repo and observe behavior before enabling them in production workflows.
Capability Analysis
Type: OpenClaw Skill Name: codex-bridge Version: 1.0.0 The codex-bridge skill provides a mechanism for an AI agent to delegate arbitrary coding tasks to a local 'codex' CLI with background execution and automated status polling. While the implementation in bridge.py and the shell scripts appears to be a functional task-management wrapper, it grants the agent high-risk capabilities, including file modification and command execution via the codex CLI's --full-auto mode. Furthermore, the shell scripts (codex-bridge-status.sh, codex-bridge-answer.sh) are vulnerable to path traversal via the --task-id argument, which could be exploited by a malicious prompt to access files outside the intended tasks directory. No evidence of intentional malice or exfiltration was found, but the broad execution surface and lack of input sanitization warrant a suspicious classification.
Capability Assessment
Purpose & Capability
Name/description match the code and scripts: the bundle dispatches tasks to a local 'codex' CLI, requires python3 and codex binaries, stores state under ~/.codex-bridge, and manipulates files only within the declared task/workdir scope.
Instruction Scope
SKILL.md instructs the agent to dispatch, poll, ask/answer clarifying questions, and read results. The included bridge.py and helper scripts implement exactly those behaviors. The bridge reads/writes only under ~/.codex-bridge/tasks/<task-id>/ and launches the codex CLI in the specified workdir; it does not access unrelated system paths or external endpoints.
Install Mechanism
No install spec is provided (instruction-only with included scripts). Nothing is downloaded or written outside the skill's own task directory; no unexpected install sources are used.
Credentials
No environment variables or external credentials are required by the skill. Declared binary requirements (python3, codex) are appropriate for the functionality. Note: the codex CLI itself may require user credentials/config which are outside this skill's scope.
Persistence & Privilege
The skill does not request 'always: true', does not modify other skills or global agent settings, and keeps its state under ~/.codex-bridge. It runs background processes for dispatched tasks (normal for this purpose).
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install codex-bridge
  3. After installation, invoke the skill by name or use /codex-bridge
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
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.
Metadata
Slug codex-bridge
Version 1.0.0
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Codex Bridge?

Dispatch coding tasks to the local OpenAI Codex CLI with background execution, status polling, and answerable clarifying questions. Use when OpenClaw should... It is an AI Agent Skill for Claude Code / OpenClaw, with 369 downloads so far.

How do I install Codex Bridge?

Run "/install codex-bridge" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Codex Bridge free?

Yes, Codex Bridge is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Codex Bridge support?

Codex Bridge is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Codex Bridge?

It is built and maintained by Abraham Perl (@abeperl); the current version is v1.0.0.

💬 Comments