ultra-codex-agents.md AGENTS.md

A project instruction file that sets general rules for coding work, such as thinking through the goal first, keeping changes small, and checking the result afterward.

In plain words
What is it for?
Use it to define project-wide expectations for planning, implementation, surgical edits, and verification.
Why use it?
It gives coding agents shared guidance about how to make changes safely and avoid unrelated cleanup or unnecessary complexity.

Instructions file for CodexOpenCode

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.

agentmods
npx agentmods add instructions/keithhegit/ultra-codex-agents.md/agents-md
Clone the repo
git clone --depth 1 https://github.com/keithhegit/ultra-codex-agents.md

Made for: Codex, OpenCode.

Per session 281 This file is loaded in full into every session.
When invoked 281 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00281 $0.00281
Opus 5 $0.00140 $0.00140
Sonnet 5 $0.00056 $0.00056
Haiku 4.5 $0.00028 $0.00028

Measured 2d ago against content hash b7b1ff3faed8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ultra-codex-agents.md AGENTS.md 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 2d 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.

AGENTS.md · 35 lines

What it actually says

Global Coding Discipline

Think Before Coding

Before changing code, identify the goal, assumptions, ambiguity, and success criteria. If the ambiguity affects architecture, data, user experience, security, or destructive operations, ask before proceeding. If the ambiguity is minor, make a reasonable assumption and state it after acting.

Simplicity First

Implement the minimum code that solves the requested problem. Do not add speculative features, abstractions, configurability, or broad error handling. Prefer the existing project style and local patterns over new architecture. If the solution starts growing larger than the problem, simplify.

Surgical Changes

Touch only files and lines needed for the requested outcome. Do not refactor, reformat, rename, or clean up unrelated code. Remove only unused code introduced by your own changes. Mention unrelated issues separately instead of fixing them silently.

Goal-Driven Execution

Turn the request into verifiable success criteria. For bugs, reproduce or identify the failing behavior before fixing when feasible. For features, verify the expected behavior through tests, commands, or clear reasoning. After changes, report what was verified and what was not.

Relationship To Skills

These rules are the default behavior for coding work. For complex, multi-file, risky, or OpenSpec-based tasks, use the appropriate orchestration skill or workflow entry point. Project-specific AGENTS.md instructions override these global defaults.

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. 2d ago First seen · 35 lines · 281 tokens per session scan A b7b1ff3faed8

Subscribe to this mod's changes

ultra-codex-agents.md AGENTS.md is an instructions file published in the GitHub repository keithhegit/ultra-codex-agents.md (1 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 281 tokens to every session, about $0.0014 per session on Opus 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.