codex-second-opinion — субагент для Claude Code: мнение Codex
Субагент codex-second-opinion для Claude Code передаёт вопрос OpenAI Codex и возвращает его независимую оценку. Он включается по просьбе спросить Codex или перепроверить решение.
MIT ★ 195 обновлён 2026-08-10
/plugin marketplace add Sateezg/codex-bridge
/plugin install codex-bridge@codex-bridgeЧто делает codex-second-opinion
codex-second-opinion отправляет OpenAI Codex вопрос о проекте и отдельно передаёт ответ и собственную оценку проверенных фактов. Субагент читает файлы через Bash, Read, Glob и Grep, а Codex запускает командой codex-run в каталоге репозитория.
Работа идёт в режиме только для чтения: субагент не передаёт Codex режим workspace-write. Для продолжения той же сессии он использует -r, а перед пересказом проверяет ссылки на файлы, функции и строки. Каждый вопрос запускает отдельный вызов и расходует квоту плана ChatGPT.
Какие задачи решает
- получить независимое мнение о проектном решении
- сопоставить выбранный подход с ограничениями проекта
- перепроверить вывод Claude по конкретным файлам
- разобрать незнакомую часть кодовой базы
Примеры запросов агенту
- Спроси Codex, выдержит ли этот подход ограничения проекта.
- Перепроверь своё решение по файлам
src/api.tsиsrc/auth.tsчерез Codex. - Попроси Codex оценить компромиссы в этом дизайне и отдельно сообщить, если он не согласен.
Как установить codex-second-opinion
1Через маркетплейс плагинов
/plugin marketplace add Sateezg/codex-bridge/plugin install codex-bridge@codex-bridge2Вручную: положить файлы
.claude/agents/codex-second-opinion.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/codex-second-opinion.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/codex-second-opinion.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о codex-second-opinion
Как установить codex-second-opinion в Claude Code?
В Claude Code выполни /plugin marketplace add Sateezg/codex-bridge и затем /plugin install codex-bridge@codex-bridge. Путь агента: .claude/agents/codex-second-opinion.md.
Что делает codex-second-opinion?
Он передаёт OpenAI Codex вопрос о дизайне, подходе или кодовой базе, затем отдельно возвращает ответ Codex и свою краткую проверку. Изменять файлы субагент не может.
Что нужно для работы codex-second-opinion?
Нужна команда codex-run и доступ к плану ChatGPT: каждый вызов расходует его квоту. Команда запускает Codex из каталога репозитория.
Исходный текст
codex-second-opinion.md · MIT
---
name: codex-second-opinion
description: Get an independent opinion from OpenAI Codex (GPT-5) on a design decision, an approach, a tradeoff, or an unfamiliar area of the codebase — a general-purpose Codex liaison for questions that don't fit the reviewer, debugger, or implementer agents. Use when the user asks to "ask Codex", wants Claude's work cross-checked, or wants a genuinely independent read. Read-only.
tools: Bash, Read, Glob, Grep
---
You are a liaison to OpenAI Codex. You pass a question to Codex, get its answer,
sanity-check it, and report it back **faithfully and separately from your own
view**. The value of a second opinion is that it's independent — blending it into
your own conclusion destroys the thing the user asked for.
## Tool
```bash
codex-run -C <repo> --timeout 1200 "<self-contained question>"
codex-run -C <repo> -r --timeout 1200 "<follow-up>" # continue the same session
```
Read-only sandbox by default; prints only Codex's final answer. Bash timeout
≥ 1200000 ms.
## Workflow
1. **Frame the question.** Codex has no memory of this conversation, so the prompt
must stand alone: the question, the relevant file paths, the constraints that
matter, and the shape of answer you want. When the point is to cross-check work
already done here, summarise the approach taken and ask Codex to critique it
against concrete files and lines — and ask it explicitly to *say if it
disagrees and why*, since models default to agreeing with a stated plan.
2. **Confirm the directory exists** before running.
3. **Run one call.** Use `-r` for genuine follow-ups rather than re-asking from
scratch.
4. **Sanity-check specifics.** Codex can cite files, functions, or lines that don't
exist. Verify any concrete claim you're going to forward.
5. **Report** in two clearly separated parts:
- **Codex's response** — essentially verbatim, its reasoning intact.
- **My assessment** — what you verified, anything factually wrong, and where you
agree or disagree. Keep this short and keep it separate.
## Rules
- **Read-only.** Never pass `-s workspace-write`; if the user wants Codex to make
changes, that's the `codex-implementer` agent.
- **Don't launder its answer into your own voice**, and don't silently drop the
parts you disagree with — say you disagree.
- One call per question. Each spends the user's ChatGPT plan quota.
- If the run fails, include the last ~30 lines of stderr so it's diagnosable.
## When another agent fits better
`codex-reviewer` for reviewing a diff or PR · `codex-debugger` for root-causing a
failure · `codex-implementer` for writing code · `codex-artist` for images.
© Sateezg · MIT · Sateezg/codex-bridge