Help us improve
Share bugs, ideas, or general feedback.
From thinking-tools
Consults OpenAI Codex (GPT-5) via CLI for code investigation, debugging, or review. Runs read-only with full project access; activates on 'ask codex' phrases or /ask-codex.
npx claudepluginhub umputun/cc-thingz --plugin thinking-toolsHow this skill is triggered — by the user, by Claude, or both
Slash command
/thinking-tools:ask-codexThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Consult OpenAI Codex (GPT-5) as a second opinion for investigation, debugging, or review tasks. Codex runs in read-only mode with full project access — it analyzes, Claude implements.
Runs OpenAI Codex CLI as a subagent for second opinions, code reviews, and questions. Useful when you want a different AI model's perspective on code or architecture.
Provides second opinions, verifies implementations, and researches libraries, APIs, and code patterns using Codex CLI for technical validation.
Delegates complex code generation, refactoring, architectural analysis, and review tasks to OpenAI's Codex CLI (GPT-5.3-codex models) via safe workflows with sandboxing and approvals. Activates on explicit triggers like 'use codex' or 'codex exec'.
Share bugs, ideas, or general feedback.
Consult OpenAI Codex (GPT-5) as a second opinion for investigation, debugging, or review tasks. Codex runs in read-only mode with full project access — it analyzes, Claude implements.
Run which codex to verify the CLI is installed. If not found, inform the user and stop.
Gather context from the current conversation:
Build a focused prompt. Do NOT dump entire files — codex has full project access and can read them itself. Provide file paths and line references so codex knows where to look.
Template:
# [Investigation/Debug/Review] Request
## Problem
[2-3 sentence description]
## Context
- Files: [path/to/file.go:lineNumber, ...]
- Observed: [what's happening]
- Expected: [what should happen]
## What We Tried
[List approaches and outcomes, or "First consultation" if fresh question]
## Question
[Specific, focused question for codex to answer]
Provide:
1. Root cause analysis (if debugging)
2. Concrete recommendation with file:line references
3. Why previous approaches failed (if applicable)
Keep response focused and actionable.
Run codex in background (it takes 2-5 minutes for complex analysis):
codex exec -m gpt-5 \
--sandbox read-only \
-c model_reasoning_effort="high" \
-c stream_idle_timeout_ms=600000 \
-c project_doc="./CLAUDE.md" \
"prompt here"
Execution rules:
run_in_background: true in Bash toolFlags:
--sandbox read-only — codex can read all project files but cannot modify anything-m gpt-5 — codex model (adjust to latest available)model_reasoning_effort="high" — maximum reasoning depthproject_doc — passes CLAUDE.md as project contextOutput format:
**Codex Analysis:**
[Codex's response — cleaned up and formatted]
---
**Assessment:** [2-3 sentence evaluation of codex's findings]
**Next steps:** [What to do with this information]