codex-second-opinion

codex-second-opinion is an agent for coding agents from Sateezg/codex-bridge. It costs 91 tokens per session (655 once invoked), scanned A, original, MIT.

A liaison that asks OpenAI Codex, an AI coding assistant, for an independent view of a technical question. It returns Codex's answer separately from the local assistant's opinion.

In plain words
What is it for?
Use it to review a proposed solution, compare tradeoffs, inspect an unfamiliar area of a repository, or challenge work that has already been done.
Why use it?
It gives you a second assessment when choosing between designs, approaches, or unfamiliar codebase decisions.

Agent

Part of the codex-bridge plugin — 6 skills, 5 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/sateezg/codex-bridge/codex-second-opinion
Clone the repo
git clone --depth 1 https://github.com/Sateezg/codex-bridge

Or install codex-bridge, the plugin that ships this one along with the rest of its 6 skills, 5 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codex-second-opinion

README.md
[![agentmods](https://agentmods.dev/badge/agents/sateezg/codex-bridge/codex-second-opinion.svg)](https://agentmods.dev/agents/sateezg/codex-bridge/codex-second-opinion)
Your own site
<a href="https://agentmods.dev/agents/sateezg/codex-bridge/codex-second-opinion"><img src="https://agentmods.dev/badge/agents/sateezg/codex-bridge/codex-second-opinion.svg" alt="Measured on agentmods" height="20"></a>
Per session 91 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 655 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00091 $0.00655
Opus 5 $0.00046 $0.00328
Sonnet 5 $0.00018 $0.00131
Haiku 4.5 $0.00009 $0.00065

Measured 4d ago against content hash 29820fdd4299, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

codex-second-opinion scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/codex-second-opinion.md · 53 lines

How it starts

The opening of the file, as written. The whole thing — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

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.

Read the full file on GitHub · 53 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 53 lines · 91 tokens per session scan A 29820fdd4299

Subscribe to this mod's changes

codex-second-opinion is an agent published in the GitHub repository Sateezg/codex-bridge (252 stars, last pushed 24d ago), licensed MIT. It adds 91 tokens to every session and 655 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.