Agent skill
codex-bridge
Quellcode ansehen: yigitkonur/codex-bridge
Installation
npx skills add yigitkonur/codex-bridge --skill codex-bridge13
Installationen
EU-hosted inference API
Power your AI agent skills with open-source models.
Drop-in OpenAI-compatible API. No data leaves Europe.
MiniMax
MiniMax M3
$0.40 / $1.40
per M tokens
Z.ai
GLM 5.3 Flash
$0.20 / $0.60
per M tokens
MoonshotAI
Kimi K3
$4.00 / $18.00
per M tokens
DeepSeek
DeepSeek V4.1 Flash
$0.40 / $1.40
per M tokens
codex-bridge
a claude code plugin for handing real work to openai codex without losing track of the job.
claude stays the orchestrator. codex does the implementation, review, follow-up, and long-running work through the local codex app-server. codex-bridge adds the parts you usually end up wanting once this gets serious: background jobs, event logs, worktree isolation, structured briefs, review artifacts, verdicts, and gated merge.
<p align="center"> <a href="https://github.com/yigitkonur/codex-bridge/actions/workflows/build.yml"><img alt="build" src="https://github.com/yigitkonur/codex-bridge/actions/workflows/build.yml/badge.svg"></a> <a href="https://github.com/yigitkonur/codex-bridge/releases/latest"><img alt="release" src="https://img.shields.io/github/v/release/yigitkonur/codex-bridge?sort=semver"></a> <a href="#license"><img alt="license" src="https://img.shields.io/badge/license-mit-blue"></a> <img alt="node" src="https://img.shields.io/badge/node-%E2%89%A522-brightgreen"> </p>what you get
/codex-bridge:taskfor delegating implementation, debugging, refactors, and multi-step work./codex-bridge:reviewfor codex's normal code review./codex-bridge:adversarial-reviewfor a steerable review that challenges the design and risk profile./codex-bridge:iteratefor task -> review -> verdict -> follow-up loops./codex-bridge:status,/codex-bridge:events,/codex-bridge:wait,/codex-bridge:result, and/codex-bridge:cancelfor background jobs./codex-bridge:verdict,/codex-bridge:verdicts, and/codex-bridge:mergefor branch-bound review and gated landing.
the official openai codex plugin is still the clean default if you only want /codex:* reviews and simple delegation. codex-bridge is the heavier tool: use it when you want durable artifacts, worktree isolation, monitor-ready event streams, and explicit merge control.
requirements
- claude code with plugin support.
- node.js 22 or later.
- git.
- the codex cli on your path.
- a working codex login or provider config.
install codex if you do not already have it:
npm install -g @openai/codex
codex logininstall
install the plugin in claude code:
/plugin marketplace add yigitkonur/codex-bridge
/plugin install codex-bridge@codex-bridge
/reload-pluginsthen run:
/codex-bridge:setupsetup checks node, npm, codex, auth, backend capability support, and the optional stop review gate. if it says ready, you are good.
why two commands? claude code installs plugins from marketplaces. yigitkonur/codex-bridge is the github repo that provides the marketplace, and codex-bridge@codex-bridge means "install the codex-bridge plugin from the codex-bridge marketplace." @... is the marketplace name, not the github owner.
if you see this:
marketplace "yigitkonur" not foundyou used the old owner-as-marketplace install shape. add the marketplace first, then install from it with @codex-bridge.
for a local checkout while developing:
/plugin marketplace add /absolute/path/to/codex-bridge
/plugin install codex-bridge@codex-bridge
/reload-pluginsif you are migrating from the old standalone skill under ~/.agents/skills/codex-bridge/, read migration.md.
contributors and agents use GSD under .planning/ as the only workflow
authority; public docs here are for install and runtime usage.
quick start
review your current work:
/codex-bridge:review --background
/codex-bridge:status
/codex-bridge:resulthand off an implementation task:
/codex-bridge:task fix the failing auth tests with the smallest safe patchfor file-changing work you want isolated from your main checkout:
/codex-bridge:task --write --worktree-auto --background fix the failing auth tests with the smallest safe patchfor non-trivial work, pair a brief with a real prompt:
/codex-bridge:task --write --worktree-auto --background --brief @brief.json implement the task described in the structured briefrun a stricter review:
/codex-bridge:adversarial-review --base main focus on race conditions, data loss, and rollback safetyrun the closed loop:
/codex-bridge:iterate add retry/backoff to the upstream fetcher, cover it with tests, and stop when review approvesmain commands
/codex-bridge:task
starts a codex task. by default the bridge uses plan mode, the configured sandbox, and the auto review pipeline.
use it for implementation, debugging, refactors, and bigger investigations. write-mode work should use worktree isolation; active plugin hooks surface Monitor/status context and may route Agent calls through the bridge, but the installed hook manifest does not currently register a Bash preflight gate.
useful patterns:
/codex-bridge:task --background investigate why ci is failing
/codex-bridge:task --write --worktree-auto add pagination to the export endpoint
/codex-bridge:task --resume continue the previous thread without creating a new worktree--resume and --resume-last are thread-only. they are rejected with--worktree-auto; use /codex-bridge:iterate task-abc123 when follow-up work
must continue from an existing task worktree.
/codex-bridge:review
runs codex's normal reviewer against the working tree, a branch diff, or a task worktree.
/codex-bridge:review
/codex-bridge:review --base main
/codex-bridge:review --task task-abc123 --jsonthis command is review-only. it does not fix code.
/codex-bridge:adversarial-review
runs the bridge's structured adversarial reviewer. use this when you want codex to question the approach, not just scan the diff.
/codex-bridge:adversarial-review --base main question the caching design
/codex-bridge:adversarial-review --task task-abc123 --json
/codex-bridge:adversarial-review --brief @brief.json --concern "watch for non-retryable 4xx handling"--brief and --concern feed the review focus channel as untrusted data, so you can steer the review without letting arbitrary text become instructions.
/codex-bridge:iterate
runs a task, reviews the result, writes a verdict, and starts follow-up work until the task is approved or the max iteration limit is reached.
/codex-bridge:iterate implement the settings migration and keep going until review approves
/codex-bridge:iterate task-abc123 --max 3the output includes the next action. approved work still does not auto-merge.
use this instead of task --resume-last --worktree-auto for follow-up fixes.
/codex-bridge:status, /events, /wait, /result, /cancel
these are the job controls.
/codex-bridge:status
/codex-bridge:events task-abc123 --follow
/codex-bridge:wait task-abc123 --timeout-ms 1800000
/codex-bridge:wait --any task-a task-b task-c --json
/codex-bridge:result task-abc123
/codex-bridge:cancel task-abc123wait --any is the fan-out/fan-in primitive: it returns the first terminal job
with winner.jobId, winner.threadId, winner.terminalTag, andwinner.eventsPath.
events are written in a monitor-friendly format, so background work can be tailed without flooding the parent context.
/codex-bridge:verdict and /codex-bridge:merge
write-mode work lands only after review and approval.
/codex-bridge:verdict task-abc123 --set approved --summary "tests green; review concerns handled"
/codex-bridge:merge task-abc123merge is intentionally strict. it refuses stale approvals, unapproved verdicts, dirty worktrees, and non-fast-forward branches.
structured briefs
for non-trivial work, use a brief. it gives codex a clean assignment and gives the reviewer the same context later.
{
"goal": "add retry/backoff to the upstream fetcher",
"worker_assignment": "implement exponential backoff with jitter, max 3 attempts; preserve the public api; cover it with a unit test.",
"specific_concerns": [
"do not swallow non-retryable 4xx upstream errors",
"keep the timeout configurable through the existing config object"
],
"acceptance_criteria": [
"npm test passes",
"public api stays compatible"
]
}use it like this:
/codex-bridge:task --write --worktree-auto --brief @brief.json --background implement the task described in the structured brief
/codex-bridge:adversarial-review --brief @brief.json --task task-abc123 --json- schema: plugin/schemas/brief.schema.json
- brief guidance: plugin/skills/codex-bridge/references/brief-composition.md
artifacts
each task gets a registry directory under ~/.codex-bridge/jobs/<task_id>/.
meta.json
brief.json
brief.md
events.jsonl
diff.patch
review.json
verdict.json
lockthat is the audit trail. use /codex-bridge:result, /codex-bridge:events, and /codex-bridge:verdict before digging into the files directly.
config
config is merged in this order:
- built-in defaults.
- install-root
config.yaml. - workspace-root
config.yaml. - cwd
config.yaml.
inspect the effective config:
/codex-bridge:config showthe shipped defaults are intentionally agent-heavy: plan mode, gpt-5.4, xhigh effort, auto review on, danger-full-access sandbox, and meta-skill skipping. config show --json also reports unknown keys and invalid values by source layer, so typos are visible instead of silently confusing a run.
cleanup and forensics defaults:
/codex-bridge:status --cleanup --dry-run --json
/codex-bridge:status --cleanup --retention-days 30 --retention-jobs 50session files also get a portable alias at<session_dir>/by-task/<task_id>.json, so a task id is enough to find the
thread events, ndjson, and diff paths.
hooks and safety
codex-bridge ships claude code hooks for the stuff that should be enforced by runtime, not vibes:
- pre-tool agent routing for supported delegation cases.
- post-tool bash/agent monitor hints for background jobs.
- session lifecycle cleanup and status context.
- optional stop-time review gate.
the stop review gate is opt-in:
/codex-bridge:setup --enable-review-gate
/codex-bridge:setup --disable-review-gateif the official openai codex plugin is enabled, codex-bridge suppresses its own stop gate and leaves that path to the official plugin.
emergency bypass:
CODEX_BRIDGE_HOOK_DISABLE=all claudeor bypass one hook:
CODEX_BRIDGE_HOOK_DISABLE=pre-tool-agent claudecodex integration
codex-bridge uses your local codex cli and the codex app-server. it does not create a second codex account, auth store, or remote runtime.
that means:
- your existing codex login applies.
- your codex provider config applies.
- usage counts against whatever codex account or provider you configured.
- static tests can prove local contracts, but real task/review round trips need a working codex install.
faq
should i use this or the official openai codex plugin?
use the official plugin for the straightforward path. use codex-bridge when you want stronger orchestration: background task tracking, worktree isolation, durable artifacts, review/verdict records, and gated merge.
does codex-bridge edit my current checkout?
it can, but write-mode task work is meant to run in per-task git worktrees. merge back only after review approval.
does review fix code?
no. review and adversarial-review are read-only. task and iterate are the write paths.
where do i see what happened?
start with:
/codex-bridge:status
/codex-bridge:result <task_id>
/codex-bridge:events <task_id> --followthen inspect ~/.codex-bridge/jobs/<task_id>/ if you need the raw artifacts.
how do i verify the install from a shell?
node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-bridge.mjs" setup --json
node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-bridge.mjs" version --jsonlinks
license
mit.
Installationen
Sicherheitsprüfung
Quellcode ansehen
yigitkonur/codex-bridge
Mehr aus dieser Quelle
Give agents clean web context
Search and extract the public web as Markdown or structured JSON through one API or hosted MCP server.
So verwenden Sie diesen Skill
Install codex-bridge by running npx skills add yigitkonur/codex-bridge --skill codex-bridge in your project directory. Führen Sie den obigen Installationsbefehl in Ihrem Projektverzeichnis aus. Die Skill-Datei wird von GitHub heruntergeladen und in Ihrem Projekt platziert.
Keine Konfiguration erforderlich. Ihr KI-Agent (Claude Code, Cursor, Windsurf usw.) erkennt installierte Skills automatisch und nutzt sie als Kontext bei der Code-Generierung.
Der Skill verbessert das Verständnis Ihres Agenten für codex-bridge, und hilft ihm, etablierte Muster zu befolgen, häufige Fehler zu vermeiden und produktionsreifen Code zu erzeugen.
Was Sie erhalten
Skills sind Klartext-Anweisungsdateien — kein ausführbarer Code. Sie kodieren Expertenwissen über Frameworks, Sprachen oder Tools, das Ihr KI-Agent liest, um seine Ausgabe zu verbessern. Das bedeutet null Laufzeit-Overhead, keine Abhängigkeitskonflikte und volle Transparenz: Sie können jede Anweisung vor der Installation lesen und prüfen.
Kompatibilität
Dieser Skill funktioniert mit jedem KI-Coding-Agenten, der das skills.sh-Format unterstützt, einschließlich Claude Code (Anthropic), Cursor, Windsurf, Cline, Aider und anderen Tools, die projektbezogene Kontextdateien lesen. Skills sind auf Transportebene framework-agnostisch — der Inhalt bestimmt, für welche Sprache oder welches Framework er gilt.