Skip to content

/ask-codex

Ask OpenAI Codex (GPT-5) a one-off question about the current repo and get its answer back, without spinning up a subagent. Use when the user says "ask codex", "what does GPT think", "get a second opinion on this", or when you want an independent read on a design call, a tricky

From plugin
codex-bridge
1966 skills5 agents

Claude Code

$ npx -y skills add Sateezg/codex-bridge --skill ask-codex --agent claude-code

SKILL.md

ask-codex.SKILL.md
description: Ask OpenAI Codex (GPT-5) a one-off question about the current repo and get its answer back, without spinning up a subagent. Use when the user says "ask codex", "what does GPT think", "get a second opinion on this", or when you want an independent read on a design call, a tricky bug, or an unfamiliar area of the codebase.

Ask Codex a question

For a single question with a single answer. Anything multi-step or long-running belongs to a subagent (`codex-second-opinion`, `codex-reviewer`, `codex-debugger`).

codex-run -C <repo-dir> "<self-contained question>"

`codex-run` prints **only Codex's final answer** on stdout (it captures the final message via `codex exec -o` rather than dumping the whole event log). It defaults to a read-only sandbox, so Codex can read the repo but cannot change anything.

Writing the question

Codex has zero knowledge of this conversation. Every question must stand alone:

  • Name the files or directories it should look at.
  • State what you already know or already tried.
  • Say what shape of answer you want ("name the single most likely cause and the

line to look at", "answer yes/no then justify in three sentences").

codex-run -C /path/to/repo \
  "In src/auth/session.ts, refreshToken() occasionally returns a token that fails validation immediately. I suspect a clock-skew issue in the exp comparison. Read that file plus src/auth/jwt.ts and tell me the single most likely root cause and the exact line. Be concise."

Useful options

-s workspace-write   let Codex modify files (only when the user asked for that)
-m gpt-5-codex       model override
-r                   continue the previous codex session (follow-up question)
--timeout 1800       raise the 900s default for a big repo sweep
--raw                also print Codex's full event log to stderr, for debugging

Use `-r` for a genuine follow-up — it keeps Codex's own context and avoids paying to re-read the repo:

codex-run -C /path/to/repo -r "Now show me the minimal patch for that."

Rules

1. **Bash timeout ≥ 600000 ms** (10 min) — Codex explores the repo before answering. 2. **Report its answer as Codex's**, not as your own conclusion. Quote it, then add your own take separately if you disagree — the value here is having two independent opinions, and blending them destroys that. 3. **Sanity-check it.** Codex can confidently cite files or lines that don't exist. Verify any specific claim against the repo before acting on it. 4. **Read-only unless told otherwise.** Don't pass `-s workspace-write` on your own initiative. 5. Each call spends the user's ChatGPT plan quota. One question, one call.

Read more
@sateezg
Ships withcodex-bridge

Give Claude Code image generation and a team of GPT-5 subagents — using the Codex CLI login you already have. Claude Code can't generate images, and everything it does runs on your Claude quota.

Stars on GitHub

Momentum

stars in total
196
Star history of Sateezg/codex-bridge on GitHub, a chart by star-history.com

Other skills on codex-bridge.

asset-set
Auto-invoked

asset-set

Generate a complete, style-consistent set of image assets for a web or app project in one pass — favicons, app icons, OG/social…

codex-delegate
Auto-invoked

codex-delegate

Offer to hand heavy work to Codex (GPT-5) as a subagent so it runs on the ChatGPT plan quota instead of burning Claude context…

codex-review
Auto-invoked

codex-review

Get an independent code review from OpenAI Codex (GPT-5) on uncommitted changes, a branch diff, a PR, or a specific module —…

edit-image
Auto-invoked

edit-image

Edit, restyle, or vary an EXISTING image file using OpenAI gpt-image-2 through the Codex CLI — change one thing and keep the…

generate-image
Auto-invoked

generate-image

Generate images (icons, logos, banners, illustrations, mockups, photos, textures, diagrams-as-art) with OpenAI gpt-image-2…

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw7d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca5d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip6d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about ask-codex.

Which coding agents can use ask-codex?
ask-codex installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.