codex

codex is a skill for Claude Code, Codex from timurgaleev/vibestack. It costs 29 tokens per session (19,964 once invoked), scanned C, original, MIT.

A wrapper around the OpenAI Codex command-line tool that provides code reviews, adversarial tests, and follow-up consultations. It gives a second AI opinion on your work.

In plain words
What is it for?
Use it to review code changes, challenge an implementation by trying to break it, or ask technical questions while keeping a conversation going.
Why use it?
It helps catch bugs, weak assumptions, and missed problems that the original author or reviewer may overlook.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also reads $CODEX_HOME. Also seen: reads .claude/ paths; names the AskUserQuestion tool; positional $N argument.

Good fit Use it to review code changes, challenge an implementation by trying to break it, or ask technical questions while keeping a conversation going.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/timurgaleev/vibestack/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.

Any agent
npx skills add timurgaleev/vibestack --skill codex
Clone the repo
git clone --depth 1 https://github.com/timurgaleev/vibestack

Made for: Claude Code, Codex.

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 codex

README.md
[![agentmods](https://agentmods.dev/badge/skills/timurgaleev/vibestack/codex/github.svg)](https://agentmods.dev/skills/timurgaleev/vibestack/codex)
Your own site
<a href="https://agentmods.dev/skills/timurgaleev/vibestack/codex"><img src="https://agentmods.dev/badge/skills/timurgaleev/vibestack/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 codex

Your own site · 80×15
<a href="https://agentmods.dev/skills/timurgaleev/vibestack/codex"><img src="https://agentmods.dev/badge/skills/timurgaleev/vibestack/codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 19,964 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00029 $0.19964
Opus 5.5 $0.00012 $0.07986
Sonnet 5.5 $0.00006 $0.03993
Haiku 4.5 $0.00003 $0.01996

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

Security

Grade C, and why

codex scanned grade C with 2 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 7d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

mkdir -p "$_VT" && chmod 700 "$_VT" || { echo "Not run: cannot create $_VT for the prompt file." >&2; exit 1; }

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- **`error`** or anything else — stop: "Codex failed a one-word probe. The usual cause is a `model =` pin in `~/.codex/config.toml` this account cannot reach (see Error Handling). Run `vibe-codex-probe --refresh` after f
skills/codex/SKILL.md · 1,378 lines

How it starts

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

When to invoke

Use when asked to "codex review", "codex challenge", "ask codex", "second opinion", or "consult codex".

Preamble

eval "$("${VIBESTACK_HOME:-$HOME/.vibestack}/bin/vibe-slug" 2>/dev/null)" 2>/dev/null || SLUG="unknown"
_LEARN_FILE="${VIBESTACK_HOME:-$HOME/.vibestack}/projects/${SLUG:-unknown}/learnings.jsonl"
if [ -f "$_LEARN_FILE" ]; then
  _LEARN_COUNT=$(wc -l < "$_LEARN_FILE" 2>/dev/null | tr -d ' ')
  echo "LEARNINGS: $_LEARN_COUNT entries loaded"
  if [ "$_LEARN_COUNT" -gt 5 ] 2>/dev/null; then
    "${VIBESTACK_HOME:-$HOME/.vibestack}/bin/vibe-learnings-search" --limit 5 2>/dev/null || true
  fi
else
  echo "LEARNINGS: none yet"
fi

{{include lib/snippets/session-host.md}}

{{include lib/snippets/decision-brief.md}}

{{include lib/snippets/working-protocols.md}}

{{include lib/snippets/state-protocols.md}}

/codex — Multi-AI Second Opinion

You are running the /codex skill. This wraps the OpenAI Codex CLI to get an independent, brutally honest second opinion from a different AI system.

Codex is a direct, terse, technically precise reviewer — challenges assumptions, catches things you might miss. Present its output faithfully, not summarized.


Step 0.4: Check codex binary

CODEX_BIN=$(command -v codex 2>/dev/null || echo "")
[ -z "$CODEX_BIN" ] && echo "NOT_FOUND" || echo "FOUND: $CODEX_BIN"

If NOT_FOUND: stop and tell the user: "Codex CLI not found. Install it: npm install -g @openai/codex or see https://github.com/openai/codex"


Step 0.5: Nesting probe + usability probe + version check

Before building expensive prompts, verify this session is not already running inside Codex, that Codex actually answers, and that the installed CLI version isn't in the known-bad list.

Running-under-Codex probe. A live Codex session exports CODEX_THREAD_ID and CODEX_SANDBOX into every shell it spawns, so this block can tell that the host IS Codex. vibestack ships Codex as a first-class runtime, which makes that a normal case rather than an exotic one — and the entire value of this skill is a second opinion from a different model. Spawning codex exec from inside Codex is the same model reviewing its own work, at full token cost and with zero cross-model signal.

Read the full file on GitHub · 1,378 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. 7d ago Changed · +22 lines · -37 tokens per session 789499f2913d
  2. 8d ago Changed · +456 lines scan B → C 0978b5709613
  3. 1mo ago Changed · +173 lines scan A → B 952bf8056825
  4. 1mo ago First seen · 727 lines · 66 tokens per session scan A ad112646f539

Subscribe to this mod's changes

codex is a skill published in the GitHub repository timurgaleev/vibestack (7 stars, last pushed yesterday), licensed MIT. It adds 29 tokens to every session and 19,964 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 2 findings (asks for root, reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.