Codex Framework

Codex Framework is a skill for Claude Code, Codex from nxtg-ai/forge-plugin. It costs 118 tokens per session (1,754 once invoked), scanned A, original, MIT.

Reference material for making a project work with the Codex command-line tool. It explains how Codex finds project instructions and reusable skills.

In plain words
What is it for?
Use it to understand AGENTS.md files, project instruction order, and the .agents/skills directory when configuring Codex compatibility.
Why use it?
It removes guesswork when adding Codex support or sharing instructions between coding-agent tools.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also reads $CODEX_HOME. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Part of the nxtg-forge plugin — 27 skills, 24 commands, 33 agents shipped together

Good fit Use it to understand AGENTS.md files, project instruction order, and the .agents/skills directory when configuring Codex compatibility.

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

Made for: Claude Code, Codex.

Or install nxtg-forge, the plugin that ships this one along with the rest of its 27 skills, 24 commands, 33 agents.

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 Framework

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nxtg-ai/forge-plugin/codex-framework"><img src="https://agentmods.dev/badge/skills/nxtg-ai/forge-plugin/codex-framework.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,754 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.00118 $0.01754
Opus 5.5 $0.00047 $0.00702
Sonnet 5.5 $0.00024 $0.00351
Haiku 4.5 $0.00012 $0.00175

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

Security

Grade A, and why

Codex Framework 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.

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.

plugins/nxtg-forge/skills/codex-framework/SKILL.md · 121 lines

How it starts

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

Codex CLI — Reference Knowledge

REFERENCE ONLY. Do NOT create AGENTS.md, AGENTS.override.md, SKILLS.md, or .agents/ on your own initiative. NXTG-Forge delivers agents and skills through the Claude Code plugin system, not Codex-style files. Only scaffold Codex files when the user explicitly asks to add Codex support (see the worked example below).

How Codex CLI discovers instructions (AGENTS.md)

Codex builds one instruction chain per run by concatenating files from two layers, joined by blank lines — it does NOT pick a single "winning" file:

  1. Home layer (~/.codex, or $CODEX_HOME): reads AGENTS.override.md if present, else AGENTS.md. First non-empty file at this level only.
  2. Project layer: from the project root (usually the git root) walking down to the current working directory, in each directory it takes at most one of: AGENTS.override.md, then AGENTS.md, then any name in project_doc_fallback_filenames (config-driven). All matched files are concatenated root-first.

A nested AGENTS.md in a subdirectory adds to (does not replace) the root one — closer files come later in the concatenation, so they refine rather than override.

Rough Claude Code analogues (not 1:1 — see Gotchas):

  • CLAUDE.md ↔ AGENTS.md (repo-wide instruction file)
  • .claude/agents/*.md ↔ persona/role blocks written inline in AGENTS.md
  • .claude/skills/*/SKILL.md ↔ .agents/skills/*/SKILL.md

How Codex discovers skills

Codex reads skills from repository, user, admin, and system locations. For a repo, it scans .agents/skills in every directory from the current working directory up to the repo root. Each skill is a folder with a SKILL.md:

.agents/skills/
  skill-name/
    SKILL.md    # YAML frontmatter (name, description) + instructions

Codex uses the same progressive-disclosure model as Claude Code: it loads each skill's name, description, and file path up front, and only reads the full SKILL.md body when it decides to use that skill. So a good Codex description is a routing rule, exactly as in this plugin.

Read the full file on GitHub · 121 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. 1mo ago First seen · 121 lines · 118 tokens per session scan A 7546640d17ca

Subscribe to this mod's changes

Codex Framework is a skill published in the GitHub repository nxtg-ai/forge-plugin (6 stars, last pushed 4d ago), licensed MIT. It adds 118 tokens to every session and 1,754 once invoked, about $0.0005 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-09-03.

Related

Other skills, from other repositories

rag-retrieval

Retrieval-Augmented Generation patterns for grounded LLM responses. Use when building RAG pipelines, embedding documents, implementing hybrid search, contextual retrieval, HyDE, agentic RAG, multimodal RAG, query decomposition, reranking, or pgvector search.

yonatangross/orchestkit · 58 tokens

error-analysis

Evals-first error analysis for LLM apps: clusters real Langfuse or JSONL traces into a human-confirmed failure taxonomy with counts, then recommends binary pass/fail evals for recurring named modes. Use to learn what to measure before writing evals. Not for CI failures.

yonatangross/orchestkit · 61 tokens

dev

One-command dev loop boot. Spins up portless (named HTTPS subdomain), emulate (stateful API mocks), the project's dev server, and an agent-browser session, all keyed to the current git branch. Use when starting a feature branch, switching worktrees, or returning to a project after a break. Skips silently with install…

yonatangross/orchestkit · 76 tokens

testing-llm

LLM and AI testing patterns — mock responses, evaluation with DeepEval/RAGAS, structured output validation, and agentic test patterns (generator, healer, planner). Use when testing AI features, validating LLM outputs, or building evaluation pipelines.

yonatangross/orchestkit · 55 tokens

accessibility

Accessibility patterns for WCAG 2.2 compliance, keyboard focus management, React Aria component patterns, cognitive inclusion, native HTML-first philosophy, and user preference honoring. Use when implementing screen reader support, keyboard navigation, ARIA patterns, focus traps, accessible component libraries…

yonatangross/orchestkit · 65 tokens

manage-schemas

Creates, views, edits, deletes, and validates note schemas for the MCP Task Orchestrator in .taskorchestrator/config.yaml — the templates that define which notes agents must fill at each workflow phase. Also recommends schema designs from a library of workflow patterns (autonomous coding loops, spec-driven teams…

jpicklyk/task-orchestrator · 212 tokens