universal-memory: Instructions file for Claude Code

AGENTS.md

universal-memory AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from goldenwo/universal-memory. It costs 173 tokens per session, scanned A, original, MIT.

Project instructions for an AI coding agent working in the universal-memory repository. They define where session state is kept and which general rules apply.

In plain words
What is it for?
Use them to preserve context between sessions and guide the agent's state updates, handoffs, required actions, and actions that need prior approval.
Why use it?
They give coding sessions a consistent place to find their objective, current focus, handoff notes, and project-specific boundaries.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: SessionStart hook event, but also reads ~/.codex or $CODEX_HOME. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

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

Reuse

Borrowing it

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

Made for: Claude Code, 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 universal-memory AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/goldenwo/universal-memory/agents-md"><img src="https://agentmods.dev/badge/instructions/goldenwo/universal-memory/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 173 This file is loaded in full into every session.
When invoked 173 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.00173 $0.00173
Opus 5 $0.00086 $0.00086
Sonnet 5 $0.00035 $0.00035
Haiku 4.5 $0.00017 $0.00017

Measured 3d ago against content hash cda9515f5c69, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

universal-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 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 · 15 lines

What it actually says

Project conventions for AI agents

Universal rules live in ~/.claude/CLAUDE.md (Claude Code) and its generated mirror ~/.codex/AGENTS.md (Codex CLI) and apply to every repo on this machine. This file is project framing only.

State

  • .claude/state.json holds the objective, current focus, and deliverables. The SessionStart hook prints a WHERE YOU ARE block from it on both tools; update it with the update-state skill and write .claude/handoffs/latest.md with handoff before a session ends.

Always do / Never do / Ask first

  • (project-specific rules go here — see .claude/CLAUDE.md if one is added later)
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 · 15 lines · 173 tokens per session scan A cda9515f5c69

Subscribe to this mod's changes

universal-memory AGENTS.md is an instructions file published in the GitHub repository goldenwo/universal-memory (2 stars, last pushed 3d ago), licensed MIT. It adds 173 tokens to every session, about $0.0009 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-09-08.

Related

Other instructions, from other repositories