multi-ai-consultant:consult-codex

multi-ai-consultant:consult-codex is a command for Claude Code from secondsky/claude-skills. It costs 49 tokens per session (2,359 once invoked), scanned A, original, MIT.

A command that sends a coding question or architecture decision to OpenAI Codex, an AI that can inspect a code repository, for a second opinion.

In plain words
What is it for?
Use it for general code review, refactoring suggestions, debugging, and software architecture decisions.
Why use it?
It provides another analysis for code problems and compares that response with the current reasoning instead of relying on one view.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; positional $N argument; runs codex exec.

Part of the multi-ai-consultant plugin — 1 skill, 4 commands shipped together

Good fit Use it for general code review, refactoring suggestions, debugging, and software architecture decisions.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/secondsky/claude-skills/consult-codex
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.

Clone the repo
git clone --depth 1 https://github.com/secondsky/claude-skills

Made for: Claude Code.

Or install multi-ai-consultant, the plugin that ships this one along with the rest of its 1 skill, 4 commands.

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 multi-ai-consultant:consult-codex

README.md
[![agentmods](https://agentmods.dev/badge/commands/secondsky/claude-skills/consult-codex/github.svg)](https://agentmods.dev/commands/secondsky/claude-skills/consult-codex)
Your own site
<a href="https://agentmods.dev/commands/secondsky/claude-skills/consult-codex"><img src="https://agentmods.dev/badge/commands/secondsky/claude-skills/consult-codex/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for multi-ai-consultant:consult-codex

Your own site · 80×15
<a href="https://agentmods.dev/commands/secondsky/claude-skills/consult-codex"><img src="https://agentmods.dev/badge/commands/secondsky/claude-skills/consult-codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,359 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00049 $0.02359
Opus 5.5 $0.00020 $0.00944
Sonnet 5.5 $0.00010 $0.00472
Haiku 4.5 $0.00005 $0.00236

Measured 8d ago against content hash fe6a99c9ba03, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

multi-ai-consultant:consult-codex 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 8d 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.

plugins/multi-ai-consultant/commands/consult-codex.md · 325 lines

How it starts

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

Consult OpenAI Codex

You are being asked to consult OpenAI's GPT 5.2 via the Codex CLI for a second opinion on a coding problem or architectural decision.

Your Task

  1. Pre-flight Check: Verify OpenAI API key is valid
  2. Navigate to Project: Change to project directory (Codex is repo-aware)
  3. Build Prompt: Create a clear, specific question
  4. Execute Consultation: Call Codex with auto-approval flags
  5. Parse Response: Read output from file
  6. Synthesize: Compare Codex's analysis with your own reasoning
  7. Present: Show 5-part synthesis to user
  8. Log Cost: Track tokens and cost

Step 1: Pre-flight Check

# Test if OpenAI API key is valid
if ! command -v openai &>/dev/null; then
  echo "⚠️  OpenAI CLI not installed (optional for pre-flight check)"
  echo "Attempting Codex consultation anyway..."
else
  if ! openai api models.list &>/dev/null 2>&1; then
    echo "❌ OpenAI API key not working"
    echo ""
    echo "Possible issues:"
    echo "1. API key not set: export OPENAI_API_KEY='sk-...'"
    echo "2. API key invalid: Check https://platform.openai.com/api-keys"
    echo ""
    echo "After fixing, try the consultation again."
    exit 1
  fi
fi

# Check if Codex CLI is installed
if ! command -v codex &>/dev/null; then
  echo "❌ Codex CLI not installed"
  echo ""
  echo "Install with: npm install -g codex"
  echo "Docs: https://www.npmjs.com/package/codex"
  echo ""
  exit 1
fi

If pre-flight check fails, stop here and show the error message to the user.


Step 2: Navigate to Project

Codex is repo-aware: It automatically scans the current directory for context.

# Get current project directory
PROJECT_DIR=$(pwd)

# Ensure we're in the right place
echo "📂 Consulting on project: $PROJECT_DIR"

Context behavior:

  • Codex reads all non-gitignored files in directory
  • Respects .gitignore automatically
  • No need for @<path> syntax
  • Will warn if not in Git repo (can override with --skip-git-repo-check)

Read the full file on GitHub · 325 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. 8d ago First seen · 325 lines · 49 tokens per session scan A fe6a99c9ba03

Subscribe to this mod's changes

multi-ai-consultant:consult-codex is a command published in the GitHub repository secondsky/claude-skills (257 stars, last pushed 8d ago), licensed MIT. It adds 49 tokens to every session and 2,359 once invoked, about $0.0002 per session on Opus 5.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-11-22.

Related

multi-ai-consultant:consult-codex compared with commands from other repositories

multi-ai-consultant:consult-codex next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
multi-ai-consultant:consult-codexsecondsky/claude-skillsCommand2578d agoMITA49Claude Code
checklistgithub/spec-kitCommand153k3d agoMITA13Claude Code
clarifygithub/spec-kitCommand153k3d agoMITA27Claude Code
analyzegithub/spec-kitCommand153k3d agoMITA26Claude Code
specifygithub/spec-kitCommand153k3d agoMITA13Claude Code
convergegithub/spec-kitCommand153k3d agoMITA35Claude Code
implementgithub/spec-kitCommand153k3d agoMITA14Claude Code