codex

codex is a skill for Claude Code, Codex from markus-global/markus. It costs 22 tokens per session (1,996 once invoked), scanned B, original, Apache-2.0.

A guide for using the Codex command-line program to make focused code changes or run automation. It describes non-interactive execution, structured JSON output, and the setup needed for authentication.

In plain words
What is it for?
Use it for quick fixes, targeted edits, and automated coding tasks. It covers installing Codex, checking its setup, logging in, and running it in fully automatic mode.
Why use it?
It helps another agent invoke Codex consistently when nobody is available to approve commands at a terminal. It also explains the flags needed for automated runs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads ~/.codex paths; runs codex exec; mentions AGENTS.md.

Good fit Use it for quick fixes, targeted edits, and automated coding tasks. It covers installing Codex, checking its setup, logging in, and running it in fully automatic mode.

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

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/markus-global/markus/codex/github.svg)](https://agentmods.dev/skills/markus-global/markus/codex)
Your own site
<a href="https://agentmods.dev/skills/markus-global/markus/codex"><img src="https://agentmods.dev/badge/skills/markus-global/markus/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/markus-global/markus/codex"><img src="https://agentmods.dev/badge/skills/markus-global/markus/codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,996 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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: 4 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 24
    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.
  • high Agent Snooping · line 43
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
  • medium Excessive Agency · line 29
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Excessive Agency · line 195
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.00022 $0.01996
Opus 5.5 $0.00009 $0.00798
Sonnet 5.5 $0.00004 $0.00399
Haiku 4.5 $0.00002 $0.00200

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

Security

Grade B, and why

codex scanned grade B with 1 finding 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.

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.

Reads agent configuration directoriesmediumAgent snooping

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

**Note:** `OPENAI_BASE_URL` is deprecated and no longer supported by Codex CLI. Custom endpoint configuration should use `~/.codex/config.toml`.
templates/skills/codex/SKILL.md · 218 lines

How it starts

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

Codex

Codex (codex binary) is OpenAI's agentic coding CLI. Markus invokes it via invoke_coding_tool({ tool: "codex", ... }). Use it for fast, focused changes where speed and non-interactive automation matter more than deep multi-turn exploration.

Installation

npm install -g @openai/codex
codex --version

Verify with markus doctor. Requires authentication via codex login or CODEX_API_KEY env var for non-interactive mode.

How Markus Invokes Codex

Markus runs Codex in fully automated, non-interactive mode:

codex exec --full-auto --json --skip-git-repo-check "<prompt>"
Flag Purpose
exec --full-auto Non-interactive mode — auto-approves all file edits and shell commands
--json Emits JSONL events for structured progress parsing
--skip-git-repo-check Allows running outside strict git repo requirements

Additional args can be configured via CodingToolConfig.defaultArgs.

Full-Auto Approval Mode

In a Markus agent session, there is no human at the terminal to approve Codex actions. The exec --full-auto mode is essential:

  • Codex can edit files and run commands without prompting
  • All actions happen within the sandbox (see below)
  • If Codex would normally ask "Allow this edit?", it proceeds automatically

Note: OPENAI_BASE_URL is deprecated and no longer supported by Codex CLI. Custom endpoint configuration should use ~/.codex/config.toml.

Implication: Write precise prompts with clear scope boundaries. Codex will act autonomously on whatever the prompt authorizes.

AGENTS.md Context File

Codex reads project-level instruction files to understand repo conventions. The standard file is AGENTS.md in the repository root — a markdown file describing:

  • Project structure and architecture
  • Coding conventions and patterns
  • Test commands and CI expectations
  • Areas that are off-limits or require caution

If the repo already has AGENTS.md, Codex uses it automatically. Ensure it stays accurate for the project.

Read the full file on GitHub · 218 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 · 218 lines · 22 tokens per session scan B b43b4c5025e5

Subscribe to this mod's changes

codex is a skill published in the GitHub repository markus-global/markus (205 stars, last pushed today), licensed Apache-2.0. It adds 22 tokens to every session and 1,996 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

muse-governance

Governance behavior for Muse agents governed by DashClaw. Teaches the governance protocol over REST: when to call guard, how to interpret allow/warn/block/requireapproval, recording actions and outcomes, plan-first execution with preflight approval, and waiting for human review. Trigger on: governed agent, dashclaw…

ucsandman/DashClaw · 88 tokens

openai-whisper-api

Transcribe audio via OpenAI Audio Transcriptions API (Whisper).

spinabot/brigade · 20 tokens

ppt-review

Read this skill before the first deck or output quality review, so its criteria are available when the rendered images arrive. Apply the criteria to current officereview structural output and relevant rendered images. Do not use source code, a tool success flag, or the first-slide preview as a substitute for deck…

Orkas-AI/Orkas · 2 tokens

seo-crawl

Agent-wide core connector rule: when any connected search console is used, discover its operations with listconnectortools and invoke each selected operation through callconnectortool; naming listsites or an analytics operation without the core invocation is not execution.

Orkas-AI/Orkas · 3 tokens

material-organizer

Organize only the materials the user has already provided or explicitly pointed to. The job is to make messy inputs easier to scan, reuse, archive, or continue from later while preserving source traceability.

Orkas-AI/Orkas · 3 tokens

swiftui-dev

Use this skill for SwiftUI development, architecture, structure, performance, and Apple native app profiling. It combines.

Orkas-AI/Orkas · 3 tokens