Borrowing it
Nothing to install: this file belongs to Lolaplex/agents-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.
curl -O https://raw.githubusercontent.com/Lolaplex/agents-memory/main/AGENTS.mdgit clone --depth 1 https://github.com/Lolaplex/agents-memoryWrote 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/lolaplex/agents-memory/agents-md)<a href="https://agentmods.dev/instructions/lolaplex/agents-memory/agents-md"><img src="https://agentmods.dev/badge/instructions/lolaplex/agents-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.
<a href="https://agentmods.dev/instructions/lolaplex/agents-memory/agents-md"><img src="https://agentmods.dev/badge/instructions/lolaplex/agents-memory/agents-md.svg" alt="Reviewed on agentmods" width="80" 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.01008 | $0.01008 |
| Opus 5.5 | $0.00403 | $0.00403 |
| Sonnet 5.5 | $0.00202 | $0.00202 |
| Haiku 4.5 | $0.00101 | $0.00101 |
Grade A, and why
agents-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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 41 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent install (this repo)
You are installing local agent memory for the human. Do every step yourself. Do not dump a command list for them to run.
CLAUDE.md at this repo root is a git symlink to this file — edit AGENTS.md only. Sync does not rewrite engine-root CLAUDE.md (installed always-on lives in ~/.agents/). On Windows without symlink privilege the checkout may be a short stub; enable Developer Mode or recreate the symlink from git. Installed always-on: ~/.agents/AGENTS.md; Gemini, Zed, and ~/.claude/AGENTS.md get a spliced <!-- agents-memory-sync --> block (existing text outside the comments stays). See abi/PLATFORM.md.
Live store is ~/.agents/memory (user) plus <repo>/.agents/memory (project). Never commit those live files. This clone's examples/*.example.* are scaffolding only. Run python -m agents_memory consolidate if live markdown leaked into memory/ or examples/.
Python is a package: src/agents_memory/. After pip install -e ., use python -m agents_memory (or agents-memory on PATH).
Procedure
- Install with the same interpreter you will keep using:
python -m pip install -e .- Windows:
py -3is fine if that is what your Agent uses. macOS/Linux:python3ifpythonis missing.
- First
python -m agents_memory sync --initcopies examples into~/.agents/memoryif missing, and runsconsolidate_repo_leaks()so nothing live stays in this clone. - Ask the human once (one short question batch):
- name / work
- how agents should talk
- stack defaults
- which folders hold their repos (absolute paths or
~/...) - any monorepo parents whose child repos should also be tracked →
expand_children
- Write
~/.agents/memory/USER.md(real identity, not emptyName:) andscan.json(rootsmust exist on disk).agent_rule_namedefaultuser-rules.mdcis fine. - Run
python -m agents_memory sync --initfrom this repo root.- Copies examples only if live files are missing (never overwrites filled
USER.md). - Writes your Agent always-on inject + canonical
~/.agents/AGENTS.mdwithCLAUDE.mdbound to it (Gemini,~/.claude/AGENTS.md). Does not create.agents/or.cursor/inside this engine clone. - Ensures each registered repo has
.agents/memory/files only (README.md,staging/captured.md) andprojects/<slug>/README.mdas a link. No empty subfolders. No.cursor/in repos (scan skips.cursor). - Merges
agents-memoryinto host MCP config (~/.cursor/mcp.jsonwhen your Agent uses it) using this Python (sys.executable -m agents_memory.mcp_server). Other MCP servers stay. - Merges host MCP servers into Zed
context_serversand mirrors user skills into~/.agents/skills.
- Copies examples only if live files are missing (never overwrites filled
- Run
python -m agents_memory inventory. For each unknown folder: register (slug, path, role, stack) or--ignore. For missing: ask before deleting. - Run
python -m agents_memory ingest catalogto (re)build~/.agents/memory/chats-index.mdfrom local chat stores (Open AI GDPR export, Cursor, VS Code, Antigravity, Pi, …). Titles + paths only. Optional:python -m agents_memory ingest extract(Python filters → staging). Distill with MCPdistill_batch/ skillmemory-distill. - If you edited
USER.md/scan.jsonafter--init, runpython -m agents_memory syncagain. - Tell the human one thing: reload your Agent (MCP). You cannot do that for them.
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.
- 1mo ago Changed · -3 tokens per session 486f5d39895c
- 1mo ago First seen · 41 lines · 1,011 tokens per session scan A 2d4ed0659c80
agents-memory AGENTS.md is an instructions file published in the GitHub repository Lolaplex/agents-memory (5 stars, last pushed 8d ago), licensed MIT. It adds 1,008 tokens to every session, about $0.0040 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.
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).
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.
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).
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.
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).
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.