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.
npx agentmods add instructions/majiayu000/remem/agents-mdgit clone --depth 1 https://github.com/majiayu000/rememWrote 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.
[](https://agentmods.dev/instructions/majiayu000/remem/agents-md)<a href="https://agentmods.dev/instructions/majiayu000/remem/agents-md"><img src="https://agentmods.dev/badge/instructions/majiayu000/remem/agents-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01297 | $0.01297 |
| Opus 5 | $0.00648 | $0.00648 |
| Sonnet 5 | $0.00259 | $0.00259 |
| Haiku 4.5 | $0.00130 | $0.00130 |
Grade A, and why
remem 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.
remem Agent Instructions
Scope
This file applies to the whole repository unless a nested AGENTS.md overrides it.
remem 的目标是做最强的 Claude Code / Codex 记忆系统,不是最便宜的。所有设计决策优先判断:记忆质量是否提升。成本、延迟、依赖复杂度都排在记忆质量之后。
Start Here
- Run
git status --shortbefore changing files. This repo often has active staged and unstaged work. - Read
README.mdfor user-facing behavior anddocs/ARCHITECTURE.mdfor current runtime/data-flow context. - Read
docs/specs/README.mdbefore treating any olddocs/specs/*.mdfile as pending work. Most historical specs have been implemented, superseded, or absorbed into the current architecture. - For Codex plugin/runtime work, also read
plugins/remem/README.md,plugins/remem/skills/remem/SKILL.md, and the version-sync files listed below. - Use repo-local maintenance skills under
.agents/skills/when a task matches one. - Search existing code and docs before creating new files. Similar-file creation without search is not acceptable.
Core Rules
- Do not remove LLM extraction or automatic capture to save cost. Past zero-LLM direction weakened memory quality.
- Do not rely on agents voluntarily calling
save_memory; automatic hook capture is the primary path, manual save is only a supplement. - No silent degradation for missing or wrong memory/context. User-visible data loss must return an error or log at error level with enough detail to diagnose.
- Prefer current implementation truth over old spec text. When an old spec disagrees with code, verify with tests and update the spec index or spec status instead of reimplementing stale design.
- Keep changes scoped to the requested behavior. Avoid opportunistic refactors unless they are required for correctness.
Spec Routing
Use specs as contracts only after checking their status in docs/specs/README.md.
| Change | Required path |
|---|---|
| Small bugfix with clear root cause | Implement directly, add or update a focused regression test |
| User-facing behavior change | Update README.md and add/update a current spec if behavior is ambiguous |
| Multi-module runtime, DB, hook, or plugin change | Write or update a current docs/specs/<id>/PRODUCT.md and TECH.md pair before implementation |
Historical SPEC-*.md says "proposed" or "active" |
Check docs/specs/README.md and current code first; many are historical implementation references |
| Old refactor-step specs | Treat docs/specs/refactor-steps/ as completed historical split contracts unless current code proves drift |
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.
- yesterday Changed · +1 lines · +26 tokens per session da77aa9e3b12
- 5d ago First seen · 104 lines · 1,271 tokens per session scan A 3b56cff8ff94
remem AGENTS.md is an instructions file published in the GitHub repository majiayu000/remem (30 stars, last pushed today), licensed MIT. It adds 1,297 tokens to every session, about $0.0065 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-30.
Other instructions, from other repositories
scraps CLAUDE.md
Claude Code instructions for boykush/scraps, covering scraps development with claude code, project structure and development workflow.
intelligent-terminal rust.instructions.md
Concise Rust coding conventions for this repository.
agentgateway copilot-instructions.md
Copilot instructions for agentgateway/agentgateway: Do not check for, speculate about, or report compilation errors during code review. Compilation diagnostics from review are frequently incorrect; rely on CI to detect and report compilation failures.
mq commit.instructions.md
Instructions for harehare/mq: Use the following format for commit messages.
kin AGENTS.md
AGENTS.md instructions for firelock-ai/kin, covering agents.md, this repo's role, the inner loop, non-obvious behaviours and landing.
vespertide AGENTS.md
AGENTS.md instructions for dev-five-git/vespertide, covering vespertide knowledge base, structure, where to look, data flow and conventions.