consult-codex
Skill2.7k starsChanged 6 months agoMITView on GitHub
Dual-AI code analysis pairing OpenAI Codex with Claude code-searcher — the lightest consult variant, two citation-verified perspectives. Use for a quick second opinion on a code question.
- Installs packages
1 other project uses a version of this.
Trending
More talk lately.about the whole repository
Most recently taken up by
- yamadashy/skillstheir own version, first seen Jul 11, 2026
Who's talking about centminmod/my-claude-code-setup
- @georgesl.bsky.social“Claude Code created images using my ai-image-creator Skill that leverages Google Gemini Nano Banana 2, Flux …”Bluesky · Mar 31, 2026 · 4 likes
- @georgesl.bsky.social“Claude Code + using GLM 4.7 Pro coding plan with Claude Code Github Actions for auto reviewing pull …”Bluesky · Jan 19, 2026 · 4 likes
- @georgesl.bsky.social“Updated my Claude Code statusline.sh script and starter Github template repo github.com/centminmod/m... …”Bluesky · Jan 13, 2026 · 4 likes
- @georgesl.bsky.social“Updated my Claude Code custom slash commands with /secure-prompts to detect prompt injections and malicious …”Bluesky · Jul 18, 2025 · 4 likes
- @georgesl.bsky.social“Updated my Claude Code ai-image-creator SKILL to my Claude Code starter template GitHub repo at …”Bluesky · Mar 25, 2026 · 3 likes
The biggest 5 of 56 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 56
Talked about on Bluesky, GitHub and Hacker News (56 times).
On Bluesky · 50
- Mar 31, 2026Claude Code created images using my ai-image-creator Skill that leverages Google Gemini Nano Banana 2, Flux 2, Riverflow V2 Pro, Bytedance… — @georgesl.bsky.social4 likes and reposts · 1 reply
- Jan 19, 2026Claude Code + using GLM 4.7 Pro coding plan with Claude Code Github Actions for auto reviewing pull requests. How to configure GLM 4.7 for… — @georgesl.bsky.social4 likes and reposts
- Jan 13, 2026Updated my Claude Code statusline.sh script and starter Github template repo github.com/centminmod/m... with new Claude Code 2.1.6 status… — @georgesl.bsky.social4 likes and reposts
- Jul 18, 2025Updated my Claude Code custom slash commands with /secure-prompts to detect prompt injections and malicious payloads in prompts… — @georgesl.bsky.social4 likes and reposts · 1 reply
- Mar 25, 2026Updated my Claude Code ai-image-creator SKILL to my Claude Code starter template GitHub repo at github.com/centminmod/m... so Claude can… — @georgesl.bsky.social3 likes and reposts · 2 replies
45 more on Bluesky
- Mar 1, 2026OpenAI ChatGPT users migrating to Claude Code might find my Claude Code starter template repo useful - currently at over 1900+ GitHub stars… — @georgesl.bsky.social3 likes and reposts · 1 reply
- Jan 24, 2026Been supplementing my Claude Code Max $100 plan usage with a heavily discounted ZAI GLM Coding Pro plan $10.80/month… — @georgesl.bsky.social3 likes and reposts · 1 reply
- Jan 23, 2026Coincidentally, I was watching Theo's YouTube video while using Claude Code with my Claude Skill, consult-codex to have Opus 4.5 and… — @georgesl.bsky.social3 likes and reposts
- Jan 21, 2026Compared on same GitHub repo Claude Code GitHub Action + GLM 4.7 pull request vs Kilo Code Reviews with OpenAI GPT-5.2-codex, Claude Code… — @georgesl.bsky.social3 likes and reposts
- Jan 16, 2026ZAI GLM 4.7 coding plan has heavy discount offers that stack - 10% off invite code + 60% yearly plan discount. Invite code and guide to… — @georgesl.bsky.socialsays it tested it3 likes and reposts
- Aug 18, 2025My Claude Code starter template repo is quite popular - now approaching 900 GitHub stars soon with CLAUDE.md, hooks, subagents and custom… — @georgesl.bsky.social3 likes and reposts
- Jul 28, 2025Created new Claude Code code-search subagent with its own separate context from main context in my Claude Code starter template repo at… — @georgesl.bsky.social3 likes and reposts
- Jul 25, 2025Claude Code /ccusage-daily slash command parsing and analysing ccusage metrics github.com/centminmod/m... 🤓 #claudecode #claude #ai — @georgesl.bsky.social3 likes and reposts
- Jul 25, 2025Claude Code /ccusage-daily slash command parsing and analysing ccusage metrics github.com/centminmod/m... 🤓 #claudecode #claude #ai — @georgesl.bsky.social3 likes and reposts · 1 reply
- Jul 19, 2025If we are borrowing each others prompts, might want to check them first. Updated my Claude Code custom slash commands with /secure-prompts… — @georgesl.bsky.social3 likes and reposts
- Jul 16, 2025My Claude Code /refactor-code slash prompt is nailing large Python files code refactoring and breaking down large monolith files to modules… — @georgesl.bsky.social3 likes and reposts · 2 replies
- Apr 3, 2026Updated my Claude Code ai-image-creator skill to support analysing images with Gemini 3.1 Flash Image Lite and GPT-5 Nano… — @georgesl.bsky.social2 likes and reposts
- Mar 31, 2026Claude Code ai-image-creator Skill using Google Gemini Nano Banana 2 github.com/centminmod/m... to created my Claude Code token usage… — @georgesl.bsky.social2 likes and reposts · 1 reply
- Mar 31, 2026Claude Code created images using my ai-image-creator Skill that leverages Google Gemini Nano Banana 2, Flux 2, Riverflow V2 Pro, Bytedance… — @georgesl.bsky.social2 likes and reposts · 1 reply
- Mar 25, 2026And costs for my Claude Code ai-image-creator SKILL at github.com/centminmod/m... where Claude generated images using: - Google Nano Banana… — @georgesl.bsky.social2 likes and reposts
- Mar 25, 2026Added Claude Code ai-image-creator SKILL to my Claude Code starter template GitHub repo at github.com/centminmod/m... so that Claude… — @georgesl.bsky.social2 likes and reposts · 1 reply
- Feb 11, 2026Claude Code Opus 4.6 waiting on my consult-codex GPT-5.3 skill's 2nd opinion github.com/centminmod/m... 🤓 — @georgesl.bsky.social2 likes and reposts
- Jan 23, 2026I use my Claude Code Skill, consult-codex so can leverage OpenAI GPT-5.2 + my Claude Opus 4.5 code-searcher agent to get a 2nd opinion for… — @georgesl.bsky.social2 likes and reposts
- Nov 2, 2025Added Claude claude-docs-consultant SKILL to my Claude Code start template to selectively consult official Claude Code documentation when… — @georgesl.bsky.social2 likes and reposts · 2 replies
- Aug 24, 2025How well AI understands your code? Test Kilo Code in Visual Studio Code to analyse my codebase with various LLM models, asked Claude Code -… — @georgesl.bsky.social2 likes and reposts
- Aug 14, 2025Asked Claude Code for all known subagents to see if there are any more undocumented subagents github.com/anthropics/c.... There is a… — @georgesl.bsky.social2 likes and reposts
- Aug 14, 2025Asked Claude Code for all known subagents see if there are any more undocumented subagents github.com/anthropics/c.... Seems there is a… — @georgesl.bsky.social2 likes and reposts · 1 reply
- Jul 31, 2025Created Threads API client that can also generate Threads Insight dashboard using Claude Code subagents, code-searcher, ux-design-expert… — @georgesl.bsky.social2 likes and reposts
- Jul 30, 2025Built Threads API client that can also generate Threads Insight dashboard using Claude Code subagents, code-searcher, ux-design-expert and… — @georgesl.bsky.social2 likes and reposts
- Jul 30, 2025Built Threads API client that can also generate Threads Insight dashboard using Claude Code subagents, code-searcher, ux-design-expert and… — @georgesl.bsky.social2 likes and reposts · 1 reply
- Jul 30, 2025Claude Code code-search subagent with its own separate context from the main context in my Claude Code starter template repo at… — @georgesl.bsky.social2 likes and reposts
- Jul 16, 2025My Claude Code /refactor-code slash prompt is nailing large Python files code refactoring and breaking down large monolith files to modules… — @georgesl.bsky.social2 likes and reposts
- Jul 16, 2025My Claude Code /refactor-code slash prompt is nailing large Python files code refactoring and breaking down large monolith files to… — @georgesl.bsky.social2 likes and reposts
- Jul 8, 2025Uploaded the Claude Code command slash prompt /cleanup-context markdown file and Claude Code hooks to my Claude Code starter repo at… — @georgesl.bsky.social2 likes and reposts
- Apr 1, 2026Claude Code created images using my ai-image-creator Skill that leverages Google Gemini Nano Banana 2 Flux 2, Riverflow V2 Pro Bytedance… — @georgesl.bsky.social1 likes and repost
- Mar 31, 2026Claude Code ai-image-creator Skill using Google Gemini Nano Banana 2 github.com/centminmod/m... to created my Claude Code token usage… — @georgesl.bsky.social1 likes and repost
- Mar 31, 2026Claude Code ai-image-creator Skill using Google Gemini Nano Banana 2 github.com/centminmod/m... to created my Claude Code token usage… — @georgesl.bsky.social1 likes and repost · 2 replies
- Mar 31, 2026Claude Code created images using my ai-image-creator Skill that leverages Google Gemini Nano Banana 2, Flux 2, Riverflow V2 Pro, Bytedance… — @georgesl.bsky.social1 likes and repost
- Mar 25, 2026Added Claude Code ai-image-creator SKILL to my Claude Code starter template GitHub repo at github.com/centminmod/m... so that Claude… — @georgesl.bsky.social1 likes and repost
- Feb 11, 2026ZAI GLM-5 in the house 😎 Using GLM 5 LLM model with my Claude Code setup github.com/centminmod/m... 🤓 — @georgesl.bsky.social1 likes and repost
- Jan 28, 2026OpenAI ChatGPT Plus $20/m plan definitely not going to make it for this week's usage limits with 3+ days to go 😅 Been using Codex CLI… — @georgesl.bsky.social1 likes and repost
- Jan 26, 2026I use my Claude Code Skill, consult-codex so I can leverage OpenAI GPT-5.2 + my Claude Opus 4.5 or, in this case, ZAI GLM 4.7 code-searcher… — @georgesl.bsky.social1 likes and repost
- Jan 24, 2026Been supplementing my Claude Code Max $100 plan usage with a heavily discounted ZAI GLM Coding Pro plan $10.80/month… — @georgesl.bsky.social1 likes and repost
- Jan 13, 2026Updated my Claude Code starter templates with consult-zai & consult-codex skill/agent pairs to invoke Claude Code and consult ZAI GLM 4.7… — @georgesl.bsky.social1 likes and repost · 1 reply
- Jan 13, 2026My Claude Code starter template GitHub repo has 1600+ GitHub stars now and at least ~1000 visitors/week. I wanted to rewrite my repo's… — @georgesl.bsky.social1 likes and repost
- Jan 12, 2026Claude Code + ZAI Pro AI plan with stacked discount with 10% invite discount + current 50% yearly discount 🚀 z.ai/subscribe?ic... reduces… — @georgesl.bsky.socialsays it tested it1 likes and repost
- Jan 9, 2026What Claude Code plugins are you using? Mine from my Claude Code setup at github.com/centminmod/m... 🤓 — @georgesl.bsky.social1 likes and repost
- Jan 9, 2026Updated my Claude Code starter template repo with Z.AI + Claude Code config instructions at github.com/centminmod/m... — @georgesl.bsky.social1 likes and repost
- Jan 2, 2026My Claude Code AI coding starter template setup Github repo just broke 1500 Github stars github.com/centminmod/m... 😎 Here's to more… — @georgesl.bsky.social1 likes and repost · 1 reply
- Dec 28, 2025Amazed by Claude Code CLI ability to complete tasks flawlessly. Taking advantage of 2x usage limits revisiting my 5 month old or-cli code… — @georgesl.bsky.social1 likes and repost
On GitHub · 5
- Oct 3, 2026agent-skills.github.centminmod.my-claude-code-setup: 0-unstable-2026-09-22 → 0-unstable-2026-09-28 — sudosubin/agents.nix0 reactions
- Sep 26, 2026agent-skills.github.centminmod.my-claude-code-setup: init at 0-unstable-2026-09-22 — sudosubin/agents.nix0 reactions
- Apr 18, 2026Audit candidate: centminmod/my-claude-code-setup — xiaolai/nlpm0 reactions · 2 comments
- Apr 4, 2026feat: .worktreeinclude 自動生成 hook で worktree .env コピーを完全自動化 — it-all-playpark/skills0 reactions
- Oct 15, 2025How hard would it be to aggregate all skills into one repo? — obra/superpowers-skills0 reactions · 3 comments
On Hacker News · 1
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- yamadashy/skills★ 7same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ai-image-creatorSkill
- audit-session-metricsSkill
- claude-docs-consultantSkill
- consult-zaiSkill
- session-metricsSkill
- task-breakdownSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
When the user asks a code question:
- Distinctive: line 30
Problem-restate pre-flight (non-blocking): Before building the prompt, emit ONE line restating the code question you are about to dispatch …
- Distinctive: line 82
Finding nothing is a valid, valuable result: If the code is correct, say so plainly with one verifying note — do NOT manufacture issues to …
- Very specific: line 159
Do not pass -m: inherit the model and reasoning effort from Codex configuration (~/.codex/config.toml — this installation is configured for …
- Distinctive: line 167
Step 1: Write the enhanced prompt to a temp file using the Write tool:
- Very specific: line 215
For Code-Searcher: Use Agent tool with subagent_type: "code-searcher" with the same enhanced prompt (plus the orchestrator-gated Severity …
- Distinctive: line 310
After processing the Codex response (success or failure), clean up the temp files:
- Distinctive: line 320
If one agent fails or times out, still present the successful agent's response
- Distinctive: line 326
Use this exact format:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Dual-AI Consultation: Codex vs Code-Searcher
You orchestrate consultation between OpenAI's Codex and Claude's code-searcher to provide comprehensive analysis with comparison.
When to Use This Skill
High value queries:
- Complex code analysis requiring multiple perspectives
- Debugging difficult issues
- Architecture/design questions
- Code review requests
- Finding specific implementations across a codebase
Lower value (single AI may suffice):
- Simple syntax questions
- Basic file lookups
- Straightforward documentation queries
Workflow
When the user asks a code question:
1. Build Enhanced Prompt
Problem-restate pre-flight (non-blocking). Before building the prompt, emit ONE line restating the code question you are about to dispatch (and, only if genuinely ambiguous, the alternative reading), then proceed:
Reading this as: «one-line restatement» (alt: «other reading», if any) — proceeding to consult; interrupt now to correct the framing.
Emit-and-proceed — do not ask-and-wait (the orchestrator can't reliably detect its own misframing). One line, and it guards the whole dispatch against a wrong-framing run.
Wrap the user's question with structured output requirements:
[USER_QUESTION]
=== Analysis Guidelines ===
**Structure your response with:**
1. **Summary:** 2-3 sentence overview
2. **Key Findings:** bullet points of discoveries
3. **Evidence:** file paths with line numbers (format: `file:line` or `file:start-end`)
4. **Confidence:** High/Medium/Low with reasoning
5. **Limitations:** what couldn't be determined
**Line Number Requirements:**
- ALWAYS include specific line numbers when referencing code
- Use format: `path/to/file.ext:42` or `path/to/file.ext:42-58`
- For multiple references: list each on a SEPARATE line with its own file path
(avoid comma-separated multi-citation like `file.ts:45, 67, 98`)
- Include brief code snippets for key findings
**Examples of good citations:**
- "The authentication check at `src/auth/validate.ts:127-134`"
- "Configuration loaded from `config/settings.json:15`"
- "Error handling in `lib/errors.ts:45`, `lib/errors.ts:67-72`, and `lib/errors.ts:98`"
**Citations Index (required):** end your response with a fenced block, one line per
Key Finding (repeat each block entry's `file:line` inline in the finding as usual):
```citations
<finding #> — path/to/file.ext:LINE[-END]
```Severity / no-manufacture block — ORCHESTRATOR-GATED. Append the block below to both agents' prompts identically ONLY when the query is a defect hunt / code review (bug, security audit, "what's wrong with…", "review this"). OMIT it for explanatory / "how does X work" questions, where "found nothing" is not meaningful. The orchestrator — which knows the query type — makes this include/omit decision once, BEFORE writing the prompt files; do not leave it to each agent to self-classify. When included, append exactly these two bullets (the text only — no leading marker):
- Tag each finding with a **Severity** — Critical (wrong/broken on expected inputs) · Warning (fails on unusual but valid inputs) · Info (noteworthy, not actionable). Severity is *impact*, orthogonal to the Confidence field (*certainty*).
- **Finding nothing is a valid, valuable result.** If the code is correct, say so plainly with one verifying note — do NOT manufacture issues to look thorough.2. Invoke Both Analyses in Parallel
Setup (run first). $CLAUDE_PROJECT_DIR is not always exported into the Bash
tool shell, so resolve it with a $PWD fallback and ensure the tmp dir exists.
Substitute the resolved literal path for $PROJECT_DIR, and a freshly generated
RUN_ID (seconds-resolution + 4-char nonce, e.g. run-2026-05-25-143052-a7f3),
into every command below. The RUN_ID in temp filenames prevents collisions
between two concurrent invocations sharing $PROJECT_DIR/tmp.
PROJECT_DIR="${CLAUDE_PROJECT_DIR:-$PWD}"
# Validate BEFORE creating tmp — `mkdir -p` would otherwise make the check pass even
# for a bad path (it creates the dir, then `[ -d ]` always succeeds).
[ -d "$PROJECT_DIR" ] || { echo "ERROR: PROJECT_DIR '$PROJECT_DIR' is not a directory" >&2; exit 1; }
mkdir -p "$PROJECT_DIR/tmp"
# Pre-flight (fail fast, not after a 10-min hang). jq is a HARD dependency — output
# parsing needs it — so abort now rather than warn-and-continue into opaque failures.
command -v jq >/dev/null 2>&1 || { echo "ERROR: 'jq' not found — required for output parsing; aborting" >&2; exit 1; }
# codex is a soft dependency — the CODEX_BIN resilience block below resolves or SKIPs it.
command -v codex >/dev/null 2>&1 || \
zsh -i -c "type codex" >/dev/null 2>&1 || \
bash -i -c "type codex" >/dev/null 2>&1 || \
echo "WARNING: 'codex' not found — will attempt nvm resolution below, else SKIP"
# Sweep stale orphans (>60 min) from crashed prior runs (best-effort, age-based —
# can theoretically delete a live run's files if it paused >60 min; acceptable).
find "$PROJECT_DIR/tmp" -maxdepth 1 -name '*-prompt-*.txt' -mmin +60 -delete 2>/dev/null
find "$PROJECT_DIR/tmp" -maxdepth 1 -name '*-output-*.jsonl' -mmin +60 -delete 2>/dev/nullCodex binary resilience (run once, before dispatch). An nvm-managed codex
can be a symlink whose @openai/codex install is broken (deleted vendor binary →
spawn ... ENOENT), and a broken version can sit EARLIER on PATH than a working
one. command -v / zsh -i return the broken path, so detect by RUNNING the
binary. If the PATH-resolved codex fails, hunt all nvm node installs for one whose
--version succeeds and emit its absolute path. Emit CODEX_BIN=SKIP if none work.
CODEX_BIN=""; INTERACTIVE_SHELL=zsh
# Capture WHICH interactive shell resolves codex (nvm may be in only one of
# ~/.zshrc / ~/.bashrc). The dispatch below uses $INTERACTIVE_SHELL so a
# .bashrc-only setup on macOS still works (prior bug: probe accepted bash,
# dispatch hardcoded zsh).
if zsh -i -c 'codex --version' >/dev/null 2>&1; then CODEX_BIN="codex"; INTERACTIVE_SHELL=zsh # codex resolves via zsh
elif bash -i -c 'codex --version' >/dev/null 2>&1; then CODEX_BIN="codex"; INTERACTIVE_SHELL=bash # codex resolves via bash
else
# Match symlinks too (-type l): nvm/npm install codex as a bin/ symlink, which -type f misses.
CODEX_BIN=$(find "$HOME/.nvm/versions/node" -maxdepth 5 -name codex \( -type f -o -type l \) 2>/dev/null | while IFS= read -r p; do
"$p" --version >/dev/null 2>&1 && { printf '%s\n' "$p"; break; }
done)
[ -z "$CODEX_BIN" ] && CODEX_BIN="SKIP"
fi
echo "CODEX_BIN=$CODEX_BIN" # MUST echo: shell vars don't persist across Bash tool calls
echo "INTERACTIVE_SHELL=$INTERACTIVE_SHELL" # the interactive shell that resolves codex; substitute into the dispatch below
# Resolve the timeout binary used to wrap the Codex gen dispatch (§Step 2 below) so a
# hung CLI is bounded rather than running unbounded — the harness may auto-background
# the dispatch, letting it escape the Bash tool's own timeout. Probe BOTH names:
# Homebrew coreutils installs GNU timeout as `gtimeout`; plain `timeout` exists only
# when the coreutils gnubin PATH is on. If neither exists, TIMEOUT_CMD stays empty and
# the dispatch runs UNWRAPPED (best-effort Bash-tool timeout; `brew install coreutils`
# restores the hard guard).
TIMEOUT_CMD=""
if command -v timeout >/dev/null 2>&1; then TIMEOUT_CMD="timeout"
elif command -v gtimeout >/dev/null 2>&1; then TIMEOUT_CMD="gtimeout"
fi
echo "TIMEOUT_CMD=$TIMEOUT_CMD" # substitute into the §Step-2 Codex dispatch (when empty: omit the wrap)Two-phase dispatch (required). Tool calls in one message run concurrently, so emitting the Codex prompt-file Write and the Codex dispatch together races the dispatch ahead of the file (Codex errors on a missing prompt file). Use two messages: message 1 writes the Codex prompt file (Step 1 below); message 2 issues the Codex dispatch (Step 2) and the Code-Searcher Agent call in parallel:
Gen-dispatch timeout watchdog (GEN_TIMEOUT=1200). Each $TIMEOUT_CMD -k 10 1200-prefixed CLI gen below — SIGTERM at 1200s (20 min), SIGKILL 10s later (-k 10, which also reaps orphaned Node/MCP children) — is bounded against a hung provider CLI that would otherwise run unbounded (the harness may auto-background the dispatch, so the Bash tool's own timeout is not a reliable cap). When TIMEOUT_CMD is empty (no timeout/gtimeout): omit the $TIMEOUT_CMD -k 10 1200 prefix and dispatch unwrapped (the existing §Setup fallback) — set the Bash tool's own timeout parameter to 1300000 ms as a best-effort cap, and brew install coreutils to restore the hard guard. On a timed-out gen (exit 124 = SIGTERM, 137 = SIGKILL): the output file is empty/truncated, so the existing [ -z … ] parse guard already drops the agent — additionally surface Agent X timed out after 1200s (distinct from an auth failure, which leaves non-empty stderr) and re-count against the §Setup minimum-agent guard. Do not retry. Code-Searcher (Agent tool) carries no $TIMEOUT_CMD -k 10 1200 prefix — it is bounded by its own mechanism, not this watchdog.
For Codex:
Model ownership — the model is CONFIG-OWNED, never named by this skill. Do not pass
-m: inherit the model and reasoning effort from Codex configuration (~/.codex/config.toml— this installation is configured forgpt-5.6-sol, high effort). Report the agent as plain "Codex" everywhere in the report; never a hardcoded version string. A hardcoded label silently misreports the model the moment the config changes: this skill advertisedGPT-5.6-terrain seven places while every dispatch had been runninggpt-5.6-sol, because the dispatch carries no-mand never did (corrected 2026-08-01).Step 1: Write the enhanced prompt to a temp file using the Write tool:
Write to $PROJECT_DIR/tmp/codex-prompt-RUN_ID.txt with the ENHANCED_PROMPT contentStep 2: Execute Codex (allow ~10 min; Codex can be slow). Pipe the prompt via stdin and capture the JSONL event stream to a file.
Pick the form based on
CODEX_BINfrom Setup:CODEX_BIN=codex→ use the interactive-shell form below ($INTERACTIVE_SHELLresolved in Setup).CODEX_BINis an absolute path → use the absolute-path form (calls the binary directly so PATH ordering can't shadow it again).CODEX_BIN=SKIP→ no working codex; skip this dispatch, present only the Code-Searcher response. Label the report a degraded single-AI run — Code-Searcher is the sole agent, so there is no cross-comparison — and note that a direct Read or a lighter path would have been cheaper. Record the skip in §4 (error handling) / §5 (comparison report).
macOS/Linux (
CODEX_BIN=codex;$INTERACTIVE_SHELL= thezsh|bashliteral resolved in Setup):cat "$PROJECT_DIR/tmp/codex-prompt-RUN_ID.txt" \ | $TIMEOUT_CMD -k 10 1200 $INTERACTIVE_SHELL -i -c "codex exec -s read-only --json -C '$PROJECT_DIR' 2>&1" \ > "$PROJECT_DIR/tmp/codex-output-RUN_ID.jsonl"Absolute-path (
CODEX_BINresolved to a path — macOS & Linux): substitute the literal absolute path forCODEX_BIN_LITERAL; no shell wrapper needed.cat "$PROJECT_DIR/tmp/codex-prompt-RUN_ID.txt" \ | $TIMEOUT_CMD -k 10 1200 CODEX_BIN_LITERAL exec -s read-only --json -C "$PROJECT_DIR" \ > "$PROJECT_DIR/tmp/codex-output-RUN_ID.jsonl" 2>&1Why this exact form (each piece prevents a failure seen in practice):
-s read-onlyis the portable Codex sandbox flag — it needs no~/.codex/config.toml[profiles.readonly]entry, unlike-p readonly(which silently misbehaves when that profile is absent).- stdin pipe (
cat … | …) instead of"$(cat …)"avoids theReading additional input from stdin...hang (Codex waits on stdin when the prompt is passed as a positional) and ARG_MAX limits on large prompts. -C '$PROJECT_DIR'— outer-shell single-quote expansion of an absolute path — gives Codex project context. Do NOT pass the dir via an inner-shell positional (-C "$0"/literal placeholders): besides being fragile, a skill loaded WITH user arguments has its$0/$1/$2rewritten by Claude Code's argument substitution, so a wrong-bound$0produces a crypticError: No such file or directory (os error 2).
Parse
$PROJECT_DIR/tmp/codex-output-RUN_ID.jsonlwith the §2a recipes.- For Code-Searcher: Use Agent tool with
subagent_type: "code-searcher"with the same enhanced prompt (plus the orchestrator-gated Severity block above on defect-hunt runs)- No sub-agent fan-out — append this VERBATIM to the code-searcher prompt: "Do this analysis YOURSELF — do NOT spawn sub-agents. Do not use the Agent/Task tool to fan out to
code-searcher,Explore,general-purpose, or any other subagent; use Read/Grep/Glob/Bash directly, however many calls that takes." Code-searcher runs with all tools and fans out unprompted on Sonnet 5 (reported live 2026-08-01); a sub-agent inherits none of this run's constraints, and the Agent-tool call carries no dispatch watchdog — a stalled fan-out underneath it stalls the whole consult. (consult-panel§1d carries the full form of this guard.)
- No sub-agent fan-out — append this VERBATIM to the code-searcher prompt: "Do this analysis YOURSELF — do NOT spawn sub-agents. Do not use the Agent/Task tool to fan out to
This parallel execution significantly improves response time.
2a. Parse Codex --json Output Files (jq Recipes)
Codex CLI with --json typically emits newline-delimited JSON events (JSONL). Some environments may prefix lines with terminal escape sequences; these recipes strip everything before the first { and then fromjson? safely.
Set a variable first:
FILE="$PROJECT_DIR/tmp/codex-output-RUN_ID.jsonl" # the file the §2 dispatch redirected toList event types (top-level .type)
jq -Rr 'sub("^[^{]*";"") | fromjson? | .type // empty' "$FILE" | sort | uniq -c | sort -nrList item types (nested .item.type on item.completed)
jq -Rr 'sub("^[^{]*";"") | fromjson? | select(.type=="item.completed") | .item.type? // empty' "$FILE" | sort | uniq -c | sort -nrExtract only “reasoning” and “agent_message” text (human-readable)
jq -Rr '
sub("^[^{]*";"")
| fromjson?
| select(.type=="item.completed" and (.item.type? | IN("reasoning","agent_message")))
| "===== \(.item.type) \(.item.id) =====\n\(.item.text // "")\n"
' "$FILE"Extract ALL agent_message events (Codex frequently emits multiple; extracting only the last would truncate the answer)
out=$(jq -Rr '
sub("^[^{]*";"")
| fromjson?
| select(.type=="item.completed" and .item.type?=="agent_message")
| .item.text // empty
' "$FILE")
[ -z "$out" ] && echo "ERROR: Codex produced no agent_message events — check the raw output for errors" >&2
printf '%s\n' "$out"Build a clean JSON array for downstream tools
jq -Rn '
[inputs
| sub("^[^{]*";"")
| fromjson?
| select(.type=="item.completed" and (.item.type? | IN("reasoning","agent_message")))
| {type:.item.type, id:.item.id, text:(.item.text // "")}
]
' "$FILE"Extract command executions (command + exit code), avoiding huge stdout/stderr
Codex JSON schemas vary slightly; this tries multiple common field names.
jq -Rr '
sub("^[^{]*";"")
| fromjson?
| select(.type=="item.completed" and .item.type?=="command_execution")
| [
(.item.id // ""),
(.item.command // .item.cmd // .item.command_line // "<no command field>"),
(.item.exit_code // .item.exitCode // "<no exit>")
]
| @tsv
' "$FILE"Discover actual fields present in command_execution for your environment
jq -Rr '
sub("^[^{]*";"")
| fromjson?
| select(.type=="item.completed" and .item.type?=="command_execution")
| (.item | keys | @json)
' "$FILE" | head -n 53. Cleanup Temp Files
After processing the Codex response (success or failure), clean up the temp files:
rm -f "$PROJECT_DIR/tmp/codex-prompt-RUN_ID.txt" "$PROJECT_DIR/tmp/codex-output-RUN_ID.jsonl"This prevents stale prompts from accumulating and avoids potential confusion in future runs.
4. Handle Errors
- If one agent fails or times out, still present the successful agent's response
- Note the failure in the comparison: "Agent X failed to respond: [error message]"
- Provide analysis based on the available response
5. Create Comparison Analysis
Use this exact format:
Codex Response
[Raw output from codex-cli agent]
Code-Searcher (Claude) Response
[Raw output from code-searcher agent]
Comparison Table
(MANDATORY — always render this table on a multi-agent run; it is the at-a-glance visual diff readers rely on, so never skip it. Omit only in a degraded single-AI run, where there is nothing to compare.)
| Aspect | Codex | Code-Searcher (Claude) |
| File paths | [Specific/Generic/None] | [Specific/Generic/None] |
| Line numbers | [Provided/Missing] | [Provided/Missing] |
| Code snippets | [Yes/No + details] | [Yes/No + details] |
| Unique findings | [List any] | [List any] |
| Accuracy | [Note discrepancies] | [Note discrepancies] |
| Strengths | [Summary] | [Summary] |
Agreement Level
- High Agreement: Both AIs reached similar conclusions - Higher confidence in findings
- Partial Agreement: Some overlap with unique findings - Investigate differences
- Disagreement: Contradicting findings - Manual verification recommended
[State which level applies and explain]
Findings by Corroboration
Bucket each distinct finding by how many agents independently reached it:
- Corroborated — both agents report it. Highest trust as a consensus signal — this dual has no citation-verification stage, so it is agreement, not verified correctness.
- Solo — reported by one agent only. Plausible but unconfirmed.
- Disputed — the agents contradict on the point. Flag for manual verification.
(Cluster findings across agents by their claim + file:line — the Citations Index blocks
make this pairing mechanical. On a defect-hunt run, tag each listed finding with its
agent-assigned Severity — Critical/Warning/Info.)
Key Differences
- Codex: [unique findings, strengths, approach]
- Code-Searcher: [unique findings, strengths, approach]
Synthesized Summary
[Combine the best insights from both sources into unified analysis. Prioritize findings that are:
- Corroborated by both agents
- Supported by specific file:line citations
- Include verifiable code snippets]
Recommendation
[Which source was more helpful for this specific query and why. Consider:
- Accuracy of file paths and line numbers
- Quality of code snippets provided
- Completeness of analysis
- Unique insights offered]
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

