codex-collab — скилл
Скилл для Claude Code управляет Codex по JSON-RPC: задачи, ревью кода, параллельные исследования и общение двух агентов.
- 99 ★ репозитория
- Последний коммит
Расширенный доступ
Почему такой уровень
- Codex выполняет команды и правит файлы, а режим подтверждений auto убирает запросы.
- Установщик собирает бинарный файл и пишет в `~/.local/bin`.
Установка
- Работает в
В терминале, через SkillFoxx CLI
npx skillfoxx add skills/codex-collabОпределит агенты на машине, покажет уровень доступа и зафиксирует версию.
Другие способы установки
Доступ и проверки
Как мы проверяемРасширенный доступИнструмент запускает код или ходит в сеть, а внешние данные только читает.
- Codex выполняет команды и правит файлы, а режим подтверждений auto убирает запросы.
- Установщик собирает бинарный файл и пишет в `~/.local/bin`.
Это чужой код. Посмотрите файлы в репозитории перед установкой.
Что делает
codex-collab дает Claude Code возможность поручать работу Codex, не выходя из сеанса Claude. Скилл управляет Codex через протокол JSON-RPC сервера приложения: ведет потоки, получает типизированные события, обрабатывает подтверждения вызовов инструментов и возобновляет разговоры. Брокер рабочей области регистрирует Codex как участника обмена сообщениями между сеансами Claude Code, поэтому Claude пишет Codex напрямую, а Codex может задать Claude вопрос посреди задачи через инструмент `collab.consult`. Команда `codex-collab review` запускает ревью pull request, незафиксированных правок или коммита в песочнице только для чтения. Команда `codex-collab run` ставит задачу, а `--resume` продолжает старый поток. Ход работы выводится строками прогресса.
Для кого. Пользователям Claude Code с подпиской на Codex, которые хотят независимое ревью и параллельную работу второго агента.
Подходит, если
- Перед слиянием нужно получить ревью pull request от второго агента.
- Исследование кода надо поручить Codex, пока Claude продолжает основную работу.
- Агентам надо переписываться между собой, уточняя детали задачи.
- Долгий рефакторинг должен идти в фоне с настраиваемыми подтверждениями.
Не подходит, если
- Codex CLI на машине не установлен.
- Нужна работа без Bun или с версией ниже 1.0.
- Достаточно ревью одним агентом.
Пример запроса к агенту
Попроси Codex сделать ревью моих незафиксированных правок и дай мне краткий список проблем.Ограничения
Нужны Bun версии 1.0 или новее и Codex CLI в PATH (`npm install -g @openai/codex`). Проверено на Linux, macOS и Windows. Фоновые сеансы Claude Code начиная с версии 2.1.281 стартуют только в доверенных папках, поэтому репозиторий нужно заранее отметить как доверенный. Задачи с `--approval auto` выполняются без запросов, их стоит запускать в песочнице или на ветке. Установщик кладет скилл в `~/.claude/skills/codex-collab` и двоичный файл в `~/.local/bin`.
Как отключить. Удалите папку `~/.claude/skills/codex-collab` и бинарный файл из `~/.local/bin`. Codex CLI остается отдельным пакетом.
Частые вопросы
Как поставить?
Склонируйте репозиторий, выполните `./install.sh` (на Windows `install.ps1`) и проверьте `codex-collab health`.
Как запустить ревью?
Командой `codex-collab review --content-only`, она проверяет незафиксированные правки в песочнице только для чтения.
Как продолжить прошлый разговор?
Командой `codex-collab run --resume <id> "..."` с идентификатором потока.
Как запустить долгую задачу в фоне?
Добавьте `--detach` и политику подтверждений, например `--approval auto`.
Как обновить?
Командой `codex-collab update`: она показывает последний релиз и список изменений, просит подтверждение и ставит новую версию.
Обсуждение
Вопросов и отзывов пока нет.
Похожие
СкиллыКросс-ревью Claude Code и Codex
Claude-Codex Review Skill
Скилл для ревью плана или кода вторым агентом: Claude Code инициирует раунды, Codex проверяет, обмен идет через файлы
Скилл для Claude Code, который передает задачи в командную строку Codex от OpenAI для анализа, ревью и правок кода
Плагин Claude Code: Claude выполняет задачу, затем хук остановки запускает независимое ревью в Codex, и Claude правит замечания в той же сессии
Плагин Codex для Claude Code
Codex plugin for Claude Code
Официальный плагин OpenAI: ревью изменений силами Codex и передача задач в Codex прямо из сессии Claude Code
Плагин для Codex запускает Claude Code для ревью, спасения застрявших задач и фоновых отслеживаемых заданий, не покидая Codex
Codex MCP Tool (cexll)
Codex MCP Tool
MCP-сервер передает задачи Codex CLI из Claude Code и Cursor: разбор кода по ссылкам @, песочница, правки патчем, идеи
Коротко о README
Описание объясняет, как скилл связывает два агента через JSON-RPC и брокер сообщений, и перечисляет сильные стороны: структурные события, ревью, повторное использование потоков, контроль подтверждений. Ниже идут установка, команды и самообновление.
Бейдж для README
Исходный SKILL.md
--- name: codex-collab description: Use when the user asks to invoke, delegate to, or collaborate with Codex on any task. Also use PROACTIVELY when an independent, non-Claude perspective from Codex would add value — second opinions on code, plans, architecture, or design decisions. --- # codex-collab codex-collab is a bridge between Claude and Codex. It communicates with Codex via the `codex app-server` JSON-RPC protocol, giving you structured, event-driven access to Codex's capabilities — prompting, code review, tool use, and file editing. Requires bun and the codex CLI on PATH (`codex-collab health` to verify). <!-- MODE:peer --> ## Choosing a path `codex-collab peer up` (foreground, seconds, idempotent) prints the workspace's address, `codex(myproject-a1b2c3)`; `ListAgents` shows it plus one entry per ongoing conversation. `SendMessage` to any of them is the normal way to talk to Codex. Use the CLI instead for `review`, for a result you need within the current turn (`run` blocks and exits with a status code), and for `--goal`, `--template`, or interactive approval policies. Both paths produce the same threads: a CLI-started thread can be messaged afterwards, and a messaged conversation appears in `codex-collab threads`. <!-- /MODE:peer --> <!-- MODE:cli --> ## Choosing a path Drive Codex interactions through the `codex-collab` CLI — `run` for tasks, `review` for code review, `--resume` for follow-ups. The ask channel is how Codex reaches you mid-task; `next` watches for those events. <!-- /MODE:cli --> <!-- MODE:peer --> ## Native Peer Messaging `SendMessage` to `codex(myproject-a1b2c3)` starts or continues a conversation. Any message may open with a header block of `key: value` lines, stripped before Codex sees the text. `topic:` names or selects the conversation (a later `topic:` switches to that conversation, or starts it); `model:`, `effort:` and `timeout:` (seconds per turn; default 3600 or `config timeout`) set the conversation's settings and, on a later message, change them from the next turn; `sandbox:` and `approval:` are fixed when the conversation starts (`approval:` accepts only `auto`, Codex Guardian — interactive approval prompts route to CLI clients and cannot work over messaging). Parsing stops at the first line that is not a recognized key, so ordinary prose is never consumed as a header. ``` topic: auth refactor effort: xhigh sandbox: read-only Review the login flow and tell me what you would change. ``` Each conversation appears as its own entry in `ListAgents` under its name. Reply to a message's `from` address to continue that specific conversation; a message to a busy conversation is delivered into the running turn and answered when it ends. Messaging is asynchronous: after sending, end your turn — do not poll, sleep, or block waiting for a reply. The reply arrives on its own as a cross-session message that wakes your session, even if you are busy with other work when it lands. A reply that lands mid-turn is folded into your context and renders in the Claude Code terminal, but not on remote views of the session (phone, web). Relaying its substance is normally enough; `codex-collab output <id> --last` is only needed when the transcript itself must carry the verbatim text — for a remote reader, or a reply held back by the receiver's `crossSessionInbound` setting. Messaged conversations write the same run records as CLI runs, so `codex-collab progress <id>`, `output`, `follow` and `kill` work on them; the `<id>` is the short ID in the conversation's address (`peer-<id>.sock`), and `codex-collab threads` lists them alongside CLI runs. A turn that exceeds its limit is stopped and reported as a timeout, so silence means Codex is still working — use `progress` to see what it is doing, not to wait. Codex may send a `[consult]` message mid-task when it needs your judgment; reply to that address to answer. If you don't, Codex proceeds on its own after a timeout. If `peer up` reports messaging unavailable (Windows, or an older Claude Code), the CLI handles everything. <!-- /MODE:peer --> Codex can also reach you directly: `codex-collab send` from a Codex session delivers a message to your session from a transient peer of its own, `codex(<thread>-<hash>-<task>)`, one per message; the message's last line names the Codex thread. Reply with `SendMessage` to that address. The reply is kept for the Codex session however long the work takes, until the task expires four hours after it was sent, so the message carries no deadline. In a session codex-collab started, time spent at a prompt the user answers through Remote Control does not count toward those hours, and once they answer one there are at least 60 minutes (`config linger`) left to reply. If `send` found no Claude session in the workspace, it resumed the background one it had last stopped, conversation intact, or else started one — a `claude(<workspace>-<hash>)` session in the working directory with none of the user's conversation, running in `auto` permission mode so it can carry out the work Codex hands it, that stops after 60 idle minutes by default (`config linger`). ## Codex's Own App-Server