Agent: Instructions file for Codex

AGENTS.md

Agent AGENTS.md is an instructions file for Codex, OpenCode from joymin5655/Agent. It costs 2,179 tokens per session, scanned B, original, MIT.

Repository instructions for AI coding agents working on Agent, an AI-agnostic framework of rules, hooks, agents, skills, and automation for several coding-agent runtimes.

In plain words
What is it for?
Use it when changing the Agent framework so work follows its planning and sanitization rules.
Why use it?
It tells agents what the repository contains and requires them to plan certain changes and keep the framework neutral across domains.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is joymin5655/Agent's own configuration. It tells Codex and OpenCode how to work on Agent itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Agent configures →

Reuse

Borrowing it

Nothing to install: this file belongs to joymin5655/Agent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/joymin5655/Agent/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/joymin5655/Agent

Made for: Codex, OpenCode.

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 Agent AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/joymin5655/agent/agents-md/github.svg)](https://agentmods.dev/instructions/joymin5655/agent/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/joymin5655/agent/agents-md"><img src="https://agentmods.dev/badge/instructions/joymin5655/agent/agents-md/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 Agent AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/joymin5655/agent/agents-md"><img src="https://agentmods.dev/badge/instructions/joymin5655/agent/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,179 This file is loaded in full into every session.
When invoked 2,179 The same file — it is already loaded in full.
Security scan B 1 finding. 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.02179 $0.02179
Opus 5.5 $0.00872 $0.00872
Sonnet 5.5 $0.00436 $0.00436
Haiku 4.5 $0.00218 $0.00218

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

Security

Grade B, and why

Agent AGENTS.md 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 today.

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.

The repo itself is the framework. Consumers `git clone` it and run `setup.sh` to install configs into their AI runtime (`~/.claude/`, `~/.codex/`, and with `--antigravity` `~/.gemini/config/plugins/`) and optionally scaf
AGENTS.md · 189 lines

How it starts

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

AGENTS.md

This file follows the agents.md spec so any AI coding agent (Codex CLI, OpenAI Assistants, Cursor, etc.) can understand how to work in this repo.

For Claude Code, see also CLAUDE.md (if present) or use this file as the primary instructions.

For Antigravity CLI (agy), see also GEMINI.md (if present) or use this file.


What this repo is

An AI-agnostic agent framework: rules, hooks, agents, skills, and automation with shared policy across Claude Code / Codex CLI / Antigravity CLI. Runtime enforcement coverage differs; see docs/cross-runtime-harness-design.md.

The repo itself is the framework. Consumers git clone it and run setup.sh to install configs into their AI runtime (~/.claude/, ~/.codex/, and with --antigravity ~/.gemini/config/plugins/) and optionally scaffold a target project.


Operating mode for AI agents working IN this repo

When an AI agent works on improving the framework itself (this repo, not a consumer project):

1. Plan before code

For any change touching 3+ files or any change to core/hooks/, adapters/, or rules/: write a plan to /tmp/agent-plan-<slug>.md before editing. Discuss tradeoffs with the user before implementation.

2. Sanitize discipline

This repo MUST stay domain-neutral. The original maintainer ported it from a prior domain-specific project (the v0 mirror of it is preserved on the archive/v0-mirror tag, out of the shipped tree; later trim snapshots stay under legacy/). Before committing any file under core/, rules/, agents/, skills/, templates/, docs/, or root:

# Run the sanitize audit — must return zero matches outside legacy/
bash core/tests/sanitize-audit.sh

The audit script greps for known domain taint patterns (prior project name, prior-project domain terms, prior-project absolute paths) and machine-identity PII (real home paths, Apple .local device hostnames — see rules/public-repo.md § Machine-identity PII). The pattern list lives in core/tests/sanitize-audit.sh — update it if you introduce a new project-specific term that needs guarding.

Read the full file on GitHub · 189 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. today Changed · +4 lines · +65 tokens per session 72a5c2b8d208
  2. 6d ago Changed · +1 lines · +33 tokens per session scan A → B f66826142b6f
  3. 15d ago Changed · +1 lines · +18 tokens per session ea48f8029a37
  4. 21d ago Changed · +1 lines · +15 tokens per session 843ba3dcb330
  5. 1mo ago First seen · 182 lines · 2,048 tokens per session scan A f492dc204258

Subscribe to this mod's changes

Agent AGENTS.md is an instructions file published in the GitHub repository joymin5655/Agent (2 stars, last pushed today), licensed MIT. It adds 2,179 tokens to every session, about $0.0087 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-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,649 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,257 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,159 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens