KC

kevin7qi/codex-collab

Developer tools
95 stars Качество 40 Тренд 40

Collaborate with Codex from Claude Code. Run tasks, get code reviews, do parallel research, all without leaving your Claude session.

Обзор

Collaborate with Codex from Claude Code. Run tasks, get code reviews, do parallel research, all without leaving your Claude session.

README

codex-collab

English | 中文

Collaborate with Codex from Claude Code. Run tasks, get code reviews, do parallel research, all without leaving your Claude session.

codex-collab is a Claude Code skill that drives Codex through its app server JSON-RPC protocol. It manages threads, streams structured events, handles tool-call approvals, and lets you resume conversations.

Why

  • Structured communication — Talks to Codex via JSON-RPC over stdio. Every event is typed and parseable.
  • Event-driven progress — Streams progress lines as Codex works, so Claude sees what’s happening in real time.
  • Review automation — One command to run code reviews for PRs, uncommitted changes, or specific commits in a read-only sandbox.
  • Thread reuse — Resume existing threads to send follow-up prompts, build on previous responses, or steer the work in a new direction.
  • Approval control — Configurable approval policies for tool calls: auto-approve, interactive, deny, or Codex’s Guardian auto-reviewer (--approval auto).
  • Two-way ask channel — Codex can ask a question mid-turn (ask) and keep working once the answer arrives (answer); next blocks until something needs attention. Fail-open: an unanswered question never stalls a run.
  • Live observability — run --detach hands a long task to a detached runner; follow --watch is a purpose-built live view that tracks every run in a terminal pane.
  • Memory isolation — Threads created by codex-collab are excluded from Codex’s memory feature by default, so agent-driven sessions don’t shape Codex’s learned picture of how you work. Opt back in with --memory (see Options for details).

Installation

Requires Bun >= 1.0 and Codex CLI (npm install -g @openai/codex) on your PATH. Tested on Linux (Ubuntu 22.04), macOS, and Windows 10.

git clone https://github.com/Kevin7Qi/codex-collab.git
cd codex-collab

Linux / macOS

./install.sh

Windows

powershell -ExecutionPolicy Bypass -File install.ps1

After installation, run codex-collab health to verify. If the command is not found, ~/.local/bin is not on your PATH yet: reopen your terminal, add the export line the installer prints, or use the full path ~/.local/bin/codex-collab health.

[!TIP] You can hand the install to an agent. Running it outside Claude Code, for example from Codex, means the skill is ready the next time you start Claude. It will ask permission to write outside the repository.

Upgrading

An installed codex-collab can update itself — no manual git pull needed:

codex-collab update            # show the latest release and changelog, confirm, then install
codex-collab update --check    # report only, install nothing

update fetches the latest release, rebuilds it locally, and reinstalls. Nothing is installed without your confirmation: an interactive y/N prompt, or an explicit --yes when there is no terminal to ask. run, review, and health print a one-line notice when a newer release exists, but never install anything themselves.

Upgrading manually still works, and is the only way to update a dev install (install.sh --dev):

git pull
./install.sh    # Windows: powershell -ExecutionPolicy Bypass -File install.ps1
codex-collab health

Quick Start

# Run a prompted task
codex-collab run "what does this project do?" -s read-only --content-only

# Code review
codex-collab review --content-only

# Resume a thread
codex-collab run --resume  "now check error handling" --content-only

# Long task: detach it, watch it live in another pane
codex-collab run "large refactor" --detach --approval auto
codex-collab follow --watch

CLI Commands

Command Description
run "prompt" [opts] Start a thread, send a prompt, wait, print the output (run - reads the prompt from stdin)
review [opts] Code review (PR, uncommitted, or a specific commit)
threads [--json] [--all] List threads (--discover scans the server, --session limits to this session)
follow [id] Live view of a running thread in your own terminal pane. Without an ID it attaches to the active run; --watch keeps following each new run
output [--last] Full log for a thread (--last: only the latest turn’s output)
kill [--clear] Stop a running thread. An active goal is paused first; --clear abandons it

Defaults & Configuration

By default, codex-collab auto-selects the latest model (the server’s default, followed up its upgrade chain, preferring a -codex variant where one exists) and the highest reasoning effort that model supports, up to xhigh. No configuration needed — it stays current as new models are released.

The max and ultra tiers are opt-in rather than auto-selected: reach for them with -r max / -r ultra on a single run, or make one the standing default with codex-collab config reasoning.

To override defaults persistently, use codex-collab config:

# Show current config
codex-collab config

# Set a preferred model
codex-collab config model gpt-5.6-sol

# Set default reasoning effort
codex-collab config reasoning high

# Unset a key (return to auto-detection)
codex-collab config model --unset

# Unset all keys
codex-collab config --unset

Available keys: model, reasoning, sandbox, approval, timeout, memory

CLI flags always take precedence over config, and config takes precedence over auto-detection:

CLI flag  >  config file  >  auto-detected

Config is stored in ~/.codex-collab/config.json.

Contributing

See CONTRIBUTING.md for development setup and guidelines. This project follows the Contributor Covenant code of conduct.

See also

For simpler interactions, you can also check out the official Codex MCP server. OpenAI also ships an official Codex plugin for Claude Code, built around slash commands you invoke yourself. codex-collab asks less of you. Tell Claude what you want in your own words and it handles the rest, running Codex in the background and coming back with what it found.

Thanks to the LINUX DO community for the feedback and support.

View this README on GitHub

Рекомендуемые инструменты

Попробуйте другой запрос или уберите фильтр.

Установка

npx skillfish add kevin7qi/codex-collab