run-codex

run-codex is a skill for Claude Code from agentprism/agentprism-workflows. It costs 39 tokens per session (631 once invoked), scanned A, original, Apache-2.0.

A development skill that runs a real Codex session with a supplied prompt and captures its events and results.

In plain words
What is it for?
Use it to test event handlers, debug event processing, inspect response order and usage data, and validate implementation changes.
Why use it?
It helps developers check how Codex actually responds instead of relying only on mocked or assumed behavior.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Codex.

Good fit Use it to test event handlers, debug event processing, inspect response order and usage data, and validate implementation changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agentprism/agentprism-workflows/run-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 agentprism/agentprism-workflows --skill run-codex
Clone the repo
git clone --depth 1 https://github.com/agentprism/agentprism-workflows

Made for: Claude Code.

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 run-codex

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentprism/agentprism-workflows/run-codex"><img src="https://agentmods.dev/badge/skills/agentprism/agentprism-workflows/run-codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 631 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.00039 $0.00631
Opus 5.5 $0.00016 $0.00252
Sonnet 5.5 $0.00008 $0.00126
Haiku 4.5 $0.00004 $0.00063

Measured 1mo ago against content hash 96a1215812d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

run-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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/run-codex-test.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

packages/codex-acp/.claude/skills/run-codex/SKILL.md · 75 lines

How it starts

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

Run Real Codex Test

This skill runs real Codex with a prompt and captures all events for analysis during development.

When to Use

  • Testing new event handlers
  • Debugging event processing issues
  • Understanding Codex response format and event order
  • Validating implementation changes against real Codex behavior
  • Seeing actual token usage, rate limits, and other metadata

How to Run

Execute the test script using npm:

npm run codex-test -- -p "Your prompt here"

Options

Option Short Description Default
--prompt -p Prompt to send to Codex (required) -
--cwd -c Working directory for the session Current dir
--output -o Output format: all, codex, acp, summary all
--json - Output events as JSON false
--help -h Show help message -

Examples

# See all events for a simple prompt
npm run codex-test -- -p "What files are in this directory?"

# Test with specific working directory
npm run codex-test -- -p "Read the README" -c /path/to/project

# See only Codex events (raw server notifications)
npm run codex-test -- -p "Hello" -o codex

# See only summary (token usage, timing, event counts)
npm run codex-test -- -p "Hello" -o summary

# Get JSON output for analysis with jq
npm run codex-test -- -p "Hello" --json | jq '.method'

Output

The script outputs events in real-time as they arrive:

  1. Codex Events ([CODEX]): Raw events from Codex app server

    • thread/started, turn/started, turn/completed
    • item/started, item/completed, item/agentMessage/delta
    • thread/tokenUsage/updated, account/rateLimits/updated
  2. ACP Events ([ACP]): Events sent to ACP connection

    • sessionUpdate with various update types
  3. Summary: Aggregated statistics

    • Stop reason, duration, event counts
    • Token usage breakdown (input, cached, output, reasoning, total)
    • Event type frequency

Read the full file on GitHub · 75 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 75 lines · 39 tokens per session scan A 96a1215812d8

Subscribe to this mod's changes

run-codex is a skill published in the GitHub repository agentprism/agentprism-workflows (7 stars, last pushed yesterday), licensed Apache-2.0. It adds 39 tokens to every session and 631 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-08-31.

Related

Other skills, from other repositories

rpa-init

Run when the user invokes /rpa-init or asks to onboard or warm up context on a repository. The agent studies code, reads documentation and test code, sets up the dev environment as the project expects, runs tests, and writes a short project report. No extra user brief is required.

coddy-project/coddy-agent · 63 tokens

rpa-gen-rules

Use when the user invokes /rpa-gen-rules or asks to create, refresh, audit, or synchronize project instructions such as root AGENTS.md, Cursor .cursor/rules, or Claude Code .claude/rules, especially when existing rule trees have drifted.

coddy-project/coddy-agent · 61 tokens

rpa-feat

Run when the user invokes /rpa-feat together with a clear feature description (for example issue text). BDD workflow: plan, failing tests, implementation, green tests, full suite, docs and examples, linter at the end. Will not work correctly without the user supplying what to build.

coddy-project/coddy-agent · 66 tokens

rpa-bugfix

Run when the user invokes /rpa-bugfix together with a clear bug description (expected vs actual, reproduction). Reproduction test first, then fix, full test suite, short report. Will not work correctly without the bug details.

coddy-project/coddy-agent · 54 tokens

add-test

Scaffold a test file for an existing tool, resource, or service. Use when the user asks to add tests, improve coverage, or when a definition exists without a matching test file.

cyanheads/obsidian-mcp-server · 41 tokens

ultra-adlc

End-to-end delivery orchestration for explicitly requested, very large software changes that must be completely implemented and independently proven. Use when the user invokes "ultra-adlc" or asks for an Ultra-ADLC-scale full delivery; do not use for ordinary features, small fixes, reviews, or ad hoc parallel work.

KonghaYao/peri · 69 tokens