codex

codex is a skill for Claude Code, Codex from timurgaleev/vibestack. It costs 29 tokens per session (21,258 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; mentions Claude Code.

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 21,258 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.21258
Opus 5.5 $0.00012 $0.08503
Sonnet 5.5 $0.00006 $0.04252
Haiku 4.5 $0.00003 $0.02126

Measured 22d ago against content hash 1e2bfbd40bd5, 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 22d 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.

- **`model_unusable`** — stop: "Codex refused the model: <DETAIL>." Name the model — the `-m` value, else the `model =` pin in `~/.codex/config.toml` — and give the fix: drop the pin to use the CLI default, pick a model
skills/codex/SKILL.md · 1,426 lines

How it starts

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

If this session was compacted, the copy of this skill in context may be cut off. Read ${CLAUDE_SKILL_DIR}/SKILL.md from disk and resume at the step you are on.

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,426 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. 22d ago Changed · +48 lines 1e2bfbd40bd5
  2. 23d ago Changed 56365b675c6e
  3. 1mo ago Changed · +22 lines · -37 tokens per session 789499f2913d
  4. 1mo ago Changed · +456 lines scan B → C 0978b5709613
  5. 2mo ago Changed · +173 lines scan A → B 952bf8056825
  6. 3mo 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 (8 stars, last pushed 20d ago), licensed MIT. It adds 29 tokens to every session and 21,258 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.

Related

codex compared with skills from other repositories

codex next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codextimurgaleev/vibestackSkill820d agoMITC29Claude Code, Codex
sage-reviewkirodotdev/KiroCrewSkill5.2ktodayApache-2.0A68Claude Code, Codex
learn-from-sagekirodotdev/KiroCrewSkill5.2ktodayApache-2.0A56Claude Code, Codex
kiro-reviewgotalab/cc-sddSkill3.8k1mo agoMITA39Codex
kiro-validate-gapgotalab/cc-sddSkill3.8k1mo agoMITA15Claude Code, Codex
kiro-validate-designgotalab/cc-sddSkill3.8k1mo agoMITA13Claude Code, Codex
blind-spot-passemaraschio/cursor-commandsSkill914d agoMITA138Claude Code, Cursor