mikeng-io/agent-skills/bridge-codex
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Reference adapter for Codex multi-agent review. Read by any orchestrating skill via the Read tool. MCP server path (preferred) with auto-setup option, CLI path as fallback, interactive pre-flight advisory when not configured, correct flags embedded. Usable by deep-council, deep-review, deep-audit, or any future skill that needs Codex-based review.
Install
npx vskill@latest install mikeng-io/agent-skills/bridge-codexSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Bridge: Codex Multi-Agent Adapter
This file is a REFERENCE DOCUMENT. Any orchestrating skill reads it via the Read tool and embeds its instructions directly into Task agent prompts. It is not invoked as a standalone skill — it is a reusable set of instructions for Codex review dispatch via MCP server or CLI.
Input schema, output schema, verdict logic, artifact format, and status semantics are defined in `bridge-commons/SKILL.md`. This file covers Codex-specific connection detection, reasoning level, prompt adaptation, and execution.
Bridge Identity
Step 1: Pre-Flight — Connection Detection
MUST read `bridge-commons/tool-discovery.md` first to understand the discovery protocol.
Step 1.0: Discover Execution Context
Before checking connection paths, discover what dispatch methods are available in the CURRENT execution context.
Primary detection: Native Codex execution
If running INSIDE Codex with multi-agent enabled:
→ Use native dispatch (Step 3N). This allows Codex to spawn parallel domain experts internally.
If NOT running inside Codex, proceed to Check A.
Check A: Native Dispatch?
If the executor is Codex CLI with multi-agent support enabled, this is the preferred path — spawn parallel Codex agents rather than routing through MCP or CLI.
If in a Codex session AND multi-agent is enabled → use native dispatch (Step 3N).
This is an experimental feature. If multi-agent is not enabled, or the executor is not Codex → proceed to Check B.
Check B: MCP Server Configured?
Look for a codex entry in the active MCP configuration:
If found → use MCP path (Step 3A). No further pre-flight needed — MCP server handles auth internally.
Check C: CLI Available?
If found → proceed to Check D.
If not found → no connection available — go to Step 2 (Advisory).
Check D: Authenticated? (CLI path only)
Exit code 0 → authenticated. Other → go to Step 2 (Advisory) with reason: not_authenticated.
Check E: Multi-Agent Feature Enabled? (CLI path only — optional)
Look for multi_agent marked as enabled.
- If enabled → proceed with parallel multi-agent dispatch (one sub-agent per domain)
- If not enabled → proceed in single-agent mode (one Codex session reviews all domains together)
Multi-agent is a progressive enhancement. Single-agent mode is a valid fallback — do not halt.
Record multi_agent_enabled: true/false in output for caller transparency.
→ Use CLI path (Step 3B).
Step 2: Advisory — Halt and Present Options
Do not skip silently. Surface the appropriate message to the user and wait for a choice.
Advisory: MCP Server Not Configured + CLI Not Found
If user chooses [1] — Auto-setup MCP server:
Write (or merge) into .mcp.json:
Then verify the server is reachable. If successful → continue with MCP path (Step 3A). If verification fails → tell the user and offer options [2]/[3]/[4] again.
If user chooses [2]: Return status: HALTED, halt_reason: cli_not_installed. Show install command.
If user chooses [3]: Return status: SKIPPED, skip_reason: user_chose_skip.
If user chooses [4]: Return status: ABORTED. Calling orchestrator must stop entire review.
Advisory: CLI Found But Not Authenticated
Return status: HALTED, halt_reason: not_authenticated.
Non-Interactive Environments (Automated Pipelines)
If no interactive context is available, return status: HALTED with the full advisory text in halt_message. Never silently skip in a way that hides a configuration gap.
Reasoning Level Selection
Evaluate the review context and select the Codex reasoning level before building the prompt. This applies to both MCP and CLI paths.
Decision Signals
| Signal | Reasoning Level | |
|---|---|---|
| Security audit, cryptographic review, financial compliance | xhigh | |
| Multi-component architecture, 3+ CRITICAL findings expected, complex dependency chains | high | |
| Standard code review, single-domain analysis, routine audit | medium |
Evaluate in this order:
- If request explicitly mentions "critical", "security", "cryptographic", "financial", "compliance" →
xhigh - If scope covers 20+ files OR 3+ domains with HIGH risk signals →
high - Otherwise →
medium
Xhigh Alert (MANDATORY)
When xhigh is selected, alert the user before proceeding:
If user declines → fall back to high. Return reasoning_level: "high" in output.
Embedding Reasoning Level
MCP path (Step 3A): pass as reasoning parameter CLI path (Step 3B): pass as --config reasoning-effort={level} (config override)
Store selected level in reasoning_level output field.
Step 3: Build Domain Prompt
Codex's multi-agent capability means the prompt is addressed to a coordinator, not a single domain expert. This differs from the bridge-commons Agent Prompt Template (which addresses one expert per call). Adapt as follows:
In single-agent mode, drop the coordinator framing and use the bridge-commons Agent Prompt Template directly, covering all domains in one prompt.
Timeout Estimation
Use bridge-commons base timeout table and intensity multiplier. Codex multi-agent adds sub-agent spawn overhead — apply a higher base when multi-agent is enabled:
No separate bridge multiplier otherwise.
Step 3A: Execute via MCP Server (Preferred)
Use the codex MCP tool directly. The MCP server runs codex mcp-server and exposes two tools:
Model Selection — Check Latest at Runtime
Before calling either MCP or CLI, determine the current latest Codex model:
Do NOT hardcode a model name. If model discovery fails, omit the model parameter and let the server select its default.
Tool: codex — Start a session
Resolve the MCP sandbox from bridge-commons:
inspectprofile → choose the non-mutating Codex sandboxmodifyprofile → choose the write-capable Codex sandbox allowed by the executor
The bridge contract is capability-driven. Codex sandbox values are runtime details, not the policy itself.
Capture structuredContent.threadId from response for multi-turn use.
Tool: codex-reply — Continue session (if needed)
The codex-reply call implements the bridge-commons Post-Analysis Protocol for the MCP path. Use codex-reply for each subsequent round — the thread maintains full Round 1 history, so only inject the context packet:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/bridge-codex/SKILL.md
Popularity
- Repository stars
- 5
- 7-day trend score
- 9
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 Mar 2026, 7 months ago.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mikeng-io/agent-skills/bridge-codex)