agent-memory: Instructions file for Codex

AGENTS.md

agent-memory AGENTS.md is an instructions file for Codex, OpenCode from vuau/agent-memory. It costs 486 tokens per session, scanned A, original, MIT.

Project instructions for agents using vuau/agent-memory, including startup reading, memory updates, task tracking, and rule priority.

In plain words
What is it for?
Reading session memory, recording approved decisions, updating architecture notes, and tracking unfinished work.
Why use it?
They keep important project decisions and working context available across coding sessions.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is vuau/agent-memory's own configuration. It tells Codex and OpenCode how to work on agent-memory 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-memory configures →

Reuse

Borrowing it

Nothing to install: this file belongs to vuau/agent-memory. 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/vuau/agent-memory/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/vuau/agent-memory

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/vuau/agent-memory/agents-md"><img src="https://agentmods.dev/badge/instructions/vuau/agent-memory/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 486 This file is loaded in full into every session.
When invoked 486 The same file — it is already loaded in full.
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.00486 $0.00486
Opus 5.5 $0.00194 $0.00194
Sonnet 5.5 $0.00097 $0.00097
Haiku 4.5 $0.00049 $0.00049

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

Security

Grade A, and why

agent-memory 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 2mo 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 · 54 lines

How it starts

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

@vuau/agent-memory - AGENTS

Router file for coding agents.

Note: This file is automatically managed by @vuau/agent-memory. Do not add project-specific rules here, as they may be overwritten by agent-memory update.

👉 For project-specific rules, context, and document mapping, see .agents/CUSTOM.md

Priority

  1. User request first.
  2. The rules in .agents/CUSTOM.md.
  3. This AGENTS.md.
  4. Spec files in .agents/spec/.
  5. If conflict remains, choose smallest safe change and state assumption.

Memory Protocol

Session Start

  • Read .agents/MEMORY.md before starting any task.

When to write

  • User approves a decision or pattern → append to .agents/MEMORY.md
  • Explore codebase/architecture → update relevant .agents/spec/*.md
  • Start/finish a large task → update .agents/TASKS.md

MEMORY.md entry format

- YYYY-MM-DD: <1-line decision or pattern> → detail

Place under the appropriate category. Add → detail pointer when full context exists in MEMORY-DETAIL.md.

TASKS.md update

Before ending a session with unfinished work, move items to ## In Progress or ## Up Next.

Rules

  • Keep MEMORY.md entries to 1 line each. Details go in spec files.
  • If MEMORY.md > 150 lines, archive old entries.
  • Do not create additional memory files outside .agents/.

Coding Principles

  • State assumptions before implementing. If ambiguous, ask — don't pick silently.
  • Surgical changes: touch only what's needed, match existing style.
  • Remove only dead code YOUR changes created. Mention pre-existing issues, don't fix.
  • Every changed line must trace to user's request.
  • Complex tasks: define success criteria, verify before done.
  • Full details: .agents/spec/coding-principles.md

Response Style

  • Concrete, implementation-focused, caveman style (minimum words, zero fluff).
  • Propose the simplest solution first (KISS & YAGNI) before writing code.
  • If uncertain, say I don't know, then give fastest verification step.
  • Do not invent files, APIs, or command outputs.

Read the full file on GitHub · 54 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. 2mo ago First seen · 54 lines · 486 tokens per session scan A de30b899d8ac

Subscribe to this mod's changes

agent-memory AGENTS.md is an instructions file published in the GitHub repository vuau/agent-memory (2 stars, last pushed 4mo ago), licensed MIT. It adds 486 tokens to every session, about $0.0019 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-08-31.

Related

agent-memory AGENTS.md compared with instructions from other repositories

agent-memory AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-memory AGENTS.mdvuau/agent-memoryInstructions file24mo agoMITA486Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode