codex-exec

codex-exec is a skill for Claude Code, Codex from boshu2/agentops. It costs 41 tokens per session (2,012 once invoked), scanned A, original, Apache-2.0.

A one-shot adapter for running one Codex command without interactive input and saving its result. Non-interactive means the command runs without waiting for someone to type during execution.

In plain words
What is it for?
Use it to run a supplied Codex prompt, capture its output, choose an appropriate sandbox, and collect evidence from a single invocation.
Why use it?
It creates one traceable result for one prompt, making the run easier to audit. It also prevents the process from hanging on open input or using more access than the task needs.

Skill for Claude CodeCodex

Written for Claude Code and Codex: user-invocable in frontmatter, but also reads $CODEX_HOME. Also seen: runs codex exec; mentions Codex.

Part of the agentops plugin — 25 skills shipped together

Good fit Use it to run a supplied Codex prompt, capture its output, choose an appropriate sandbox, and collect evidence from a single invocation.

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

Made for: Claude Code, Codex.

Or install agentops, the plugin that ships this one along with the rest of its 25 skills.

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-exec

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/boshu2/agentops/codex-exec"><img src="https://agentmods.dev/badge/skills/boshu2/agentops/codex-exec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,012 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Excessive Agency · line 91
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
  • medium Rogue Agent · line 88
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 90
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00041 $0.02012
Opus 5.5 $0.00016 $0.00805
Sonnet 5.5 $0.00008 $0.00402
Haiku 4.5 $0.00004 $0.00201

Measured yesterday against content hash cae94e4fa571, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codex-exec 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 yesterday.

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.

plugin/skills/codex-exec/SKILL.md · 154 lines

How it starts

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

Codex Exec — one-shot runtime adapter

Run exactly one caller-supplied Codex prompt as one process and capture its result. This skill does not choose work, retry, validate or continue. It worked when the command closes stdin, uses the sandbox the declared effects need, runs under one deadline fixed before the first attempt, and the report names the exit code's meaning instead of calling a timeout a result.

Rules that change the command

  • Sandbox from declared effects. -s read-only for review or analysis, workspace-write only for authorized edits, and network or wider access only when the caller explicitly requires those effects. "In case it needs it" is not a declared effect. -s limits only Codex's shell commands; MCP servers still start from the user's config.toml and from installed Codex plugins. For review and CI add --ignore-user-config (skips config.toml; auth still loads) and, when the run needs no plugin skill, --disable plugins. On codex-cli 0.163.0 --ignore-user-config alone still started the servers that plugins declare; --disable plugins stopped them and also removed every plugin skill from the run. Report any MCP server the run can still start as an undeclared effect. A permission denial inside the run (EPERM, "Operation not permitted") shows only what the mode blocks, not whether the host or the code would fail. Quote it and list the check under not_as_briefed as sandbox-limited: neither a pass nor a failed check. A host-side observation still stands; a host run is the caller's decision.
  • Persist the transcript a receipt needs. --ephemeral writes no session file under $CODEX_HOME/sessions. A validator whose judgment receipt the caller requires runs without --ephemeral, and the caller copies that run's rollout-*.jsonl into protected evidence storage. Add --ephemeral only when no receipt is required.
  • Close stdin. codex exec reads the prompt from stdin when no prompt argument is given, and appends piped stdin to a prompt argument. A non-TTY run (CI, a script) with an open stdin can wait forever: the stdin hang. Feed the prompt on stdin and let it end, or redirect </dev/null.
  • One deadline, never renewed. Fix one absolute deadline before the first attempt. Each invocation, including any retry the caller decides to make, gets only the time left before that deadline. A retry never gets a fresh budget: a loop that gives each attempt its own new timeout has silently multiplied the caller's bound. A missing, zero, negative or malformed bound prevents launch; an expired deadline stops before dispatch.
  • No retry here. Report a timeout, error or empty output as it is. Another invocation is the caller's decision, under the same deadline.
  • Capped capture, typed exit. Capture output to a file under a byte cap and report the exit status. A timeout is not a result.

Read the full file on GitHub · 154 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. yesterday Changed · +4 lines cae94e4fa571
  2. 19d ago Changed · +12 lines 77f02bb34d01
  3. 29d ago Changed · +5 lines d1855a2ea7d1
  4. 1mo ago Changed · -5 lines 16883b194198
  5. 1mo ago Changed · +6 lines c411c68b637c
  6. 1mo ago Changed · +24 lines · +4 tokens per session f50662be1f0d
  7. 2mo ago Changed · -28 lines 7fac0de15d58
  8. 2mo ago Changed 9043f68a5164
  9. 2mo ago Changed · +9 lines 288ff510f561
  10. 2mo ago First seen · 127 lines · 37 tokens per session scan A 10e37759bc8a

Subscribe to this mod's changes

codex-exec is a skill published in the GitHub repository boshu2/agentops (464 stars, last pushed yesterday), licensed Apache-2.0. It adds 41 tokens to every session and 2,012 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-30.

Related

codex-exec compared with skills from other repositories

codex-exec next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codex-execboshu2/agentopsSkill464yesterdayApache-2.0A41Claude Code, Codex
brainstormOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A85Claude Code, Codex
audit-projectOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A50Claude Code, Codex
commit-push-prOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A46Claude Code, Codex
commitOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A46Claude Code, Codex
duetOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A28Claude Code, Codex
prototypeOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A36Claude Code, Codex