codex-context-management-template AGENTS.md

codex-context-management-template AGENTS.md is an instructions file for Codex, OpenCode from YANZi26/codex-context-management-template. It costs 210 tokens per session, scanned A, original, MIT.

A repository instruction file for coding agents working on the Codex context-management template.

In plain words
What is it for?
Use it to guide project startup, architecture changes, documentation-only edits, uncertainty handling, and updates to task and handoff records.
Why use it?
It gives the agent a fixed reading order, limits work to the current request, and prevents handling private configuration or customer data.

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/yanzi26/codex-context-management-template/agents-md
Clone the repo
git clone --depth 1 https://github.com/YANZi26/codex-context-management-template

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 codex-context-management-template AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/yanzi26/codex-context-management-template/agents-md.svg)](https://agentmods.dev/instructions/yanzi26/codex-context-management-template/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/yanzi26/codex-context-management-template/agents-md"><img src="https://agentmods.dev/badge/instructions/yanzi26/codex-context-management-template/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 210 This file is loaded in full into every session.
When invoked 210 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.00210 $0.00210
Opus 5 $0.00105 $0.00105
Sonnet 5 $0.00042 $0.00042
Haiku 4.5 $0.00021 $0.00021

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

Security

Grade A, and why

codex-context-management-template 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 3d 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 · 14 lines

What it actually says

AGENTS.md

Rules for AI coding agents working in this repository.

  • Start each session by reading docs/ai/PROJECT_BRIEF.md, docs/ai/MAP.md, docs/ai/TASKS.md, and docs/ai/HANDOFF.md.
  • Before changing behavior, read docs/ai/ARCHITECTURE.md, docs/ai/DECISIONS.md, and docs/ai/VERIFICATION.md.
  • Do not inspect, print, copy, or store private access values, production configuration, real logs, customer data, or environment-specific private files.
  • Keep edits scoped to the current request.
  • For documentation-only tasks, modify only documentation files.
  • Prefer targeted inspection based on docs/ai/MAP.md.
  • If a fact is uncertain, write Unknown or TODO instead of guessing.
  • Before ending substantial work or when context is getting full, update docs/ai/HANDOFF.md and docs/ai/TASKS.md.
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. 3d ago First seen · 14 lines · 210 tokens per session scan A 0535f51fdd67

Subscribe to this mod's changes

codex-context-management-template AGENTS.md is an instructions file published in the GitHub repository YANZi26/codex-context-management-template (2 stars, last pushed 3mo ago), licensed MIT. It adds 210 tokens to every session, about $0.0011 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.

Related

Other instructions, from other repositories

project-brain copilot-instructions.md

Instructions for Ethan-YS/project-brain, covering on session start, single-workstream, multi-workstream, update behavior and project red lines.

Ethan-YS/project-brain · 480 tokens

Iron-mem CLAUDE.md

Instructions for BMC-INC/Iron-mem, a project described as: Agent-native memory infrastructure for AI coding assistants. Governed session capture, LLM compression, hybrid retrieval (FTS + vector + RRF), temporal knowledge graph, content-addressed storage, compliance-grade classification. Single Rust binary, MCP server.…

BMC-INC/Iron-mem · 9 tokens

repomemory CLAUDE.md

Claude Code instructions for PraveenJayaprakash-JP/repomemory, covering claude.md — repomemory, project overview, architecture, commands and root (next.js web app).

PraveenJayaprakash-JP/repomemory · 1,643 tokens

cortex-md AGENTS.md

Instructions for AlfonsoM0/cortex-md, covering base operating instructions for the agent (system prompt), 1. base behavioral guidelines, 2. repository context, 3. continuous memory system (cortex-md) and mandatory operational workflows.

AlfonsoM0/cortex-md · 1,826 tokens

context-router CLAUDE.md

Claude Code instructions for mohankrishnaalavala/context-router, covering context-router, quick orientation, where docs live — one rule, session workflow and development flow.

mohankrishnaalavala/context-router · 1,395 tokens

context-router AGENTS.md

AGENTS.md instructions for mohankrishnaalavala/context-router, covering agents.md — context-router, 1. in a terminal, 2. in your agent session, first call: searchmemory(query=" ") and second call: getcontextpack(mode="handover").

mohankrishnaalavala/context-router · 281 tokens