ReMe is a local-first memory management system that turns conversations and other resources into searchable, editable Markdown knowledge shared across AI agents. It is for users and agent runtimes that need durable, interconnected knowledge they can inspect and maintain. The catalogue add-ons connect coding agents and other agents to ReMe through skills, hooks, plugins, MCP, and related interfaces.
Borrowing it
Nothing to install: this file belongs to agentscope-ai/ReMe. 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/agentscope-ai/ReMe/main/AGENTS.mdgit clone --depth 1 https://github.com/agentscope-ai/ReMeWrote 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/agentscope-ai/reme/agents-md)<a href="https://agentmods.dev/instructions/agentscope-ai/reme/agents-md"><img src="https://agentmods.dev/badge/instructions/agentscope-ai/reme/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/agentscope-ai/reme/agents-md"><img src="https://agentmods.dev/badge/instructions/agentscope-ai/reme/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.02721 | $0.02721 |
| Opus 5.5 | $0.01088 | $0.01088 |
| Sonnet 5.5 | $0.00544 | $0.00544 |
| Haiku 4.5 | $0.00272 | $0.00272 |
Grade A, and why
ReMe 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 21d 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 — 222 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
This file guides coding agents working in the ReMe repository. Keep changes small, testable, and consistent with the contracts expressed by the current code.
Project Principles
ReMe is a local-first, file-native memory system for agents.
- User-owned workspace files are the durable source of truth.
- Indexes, catalogs, graphs, caches, and generated metadata must remain rebuildable.
- Prefer transparent formats and predictable behavior over hidden state.
- Preserve user control over workspace paths, configuration, and service boundaries.
- Keep concepts focused on project intent; let code and schemas describe implementation.
When convenience conflicts with these principles, favor data ownership, recoverability, and explicit behavior.
Sources of Truth
Use this order when documentation and implementation disagree:
- Current code and public Pydantic schemas.
- Tests that describe supported behavior.
- CLI behavior and the built-in configuration.
- README files and other development documentation.
Do not duplicate large implementation descriptions in documentation. Express the stable contract and link to the relevant module where useful. When behavior changes intentionally, update the implementation, schemas, tests, defaults, and concise documentation together.
Repository Map
reme/reme.py: CLI entry point; dispatchesstart,find_reme, and client calls.reme/application.py: application assembly, dependency ordering, job execution, and lifecycle.reme/config/config_parser.py: YAML/JSON loading, environment expansion, dot-notation parsing, and deep config merging.reme/config/default.yaml: default service, jobs, steps, and components. Other files inreme/config/are named configuration variants.reme/schema/application_config.py: typed application, component, and job configuration.reme/schema/: request, response, streaming, memory, graph, and file contracts.reme/components/application_context.py: application-wide wiring and in-memory shared state.reme/components/runtime_context.py: request-scoped data, response, streaming queue, and stop event.reme/components/base_component.py: component lifecycle, dependency binding, and workspace helpers.reme/components/component_registry.py: the frozen built-in registry template and application-local registry factory.reme/components/job/: base, stream, background, and cron job implementations.reme/components/service/: local CLI, HTTP, and MCP service backends.reme/components/: agent wrappers, model adapters, stores, catalogs, graphs, indexes, clients, tokenizers, and outbound proxies.reme/steps/: registered job steps grouped by common, file I/O, index, evolve, cookbook, and transfer concerns.reme/utils/: shared utilities, including service discovery, logging, web-static resolution, session I/O, token accounting, and wikilink handling.tests/unit/: primary fast, isolated validation suite.tests/integration/: service/model tests that may need credentials or external processes.reme_studio/: ReMe Studio frontend source plus the independently publishedreme_studioPython package and@agentscope-ai/reme_studionpm static distribution.plugins/: installable ReMe extensions, including Auto Fin and LME/BEAM plugins.integrations/: adapters that connect ReMe to external agent hosts, including the independent, self-contained DSH and OpenClaw TypeScript plugins plus the Claude Code and Hermes Agent integrations.skills/: standalone skills;reme_memorycalls ReMe, while other skills may use separate tools or direct-file conventions.benchmark/andcookbook/: runnable evaluations and example workflows.docs/: README-linked supporting pages and figures.github-pages/: VitePress build shell, generated-content assembly, documentation checks, and GitHub Pages output. The canonical theme and guides remain underdocs/;.generated/anddist/are disposable.
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.
- 21d ago Changed · +8 tokens per session 7ca5763c1637
- 22d ago Changed · +3 lines · +63 tokens per session caa2fa0d22da
- 1mo ago Changed · -10 tokens per session 017b2b6e1c7e
- 1mo ago Changed · -1 lines · -26 tokens per session 66151e43cd44
- 2mo ago Changed · +5 lines · +113 tokens per session cb2faab191b0
- 2mo ago First seen · 215 lines · 2,573 tokens per session scan A d8b51fa0cb71
ReMe AGENTS.md is an instructions file published in the GitHub repository agentscope-ai/ReMe (3,754 stars, last pushed today), licensed Apache-2.0. It adds 2,721 tokens to every session, about $0.0109 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-30.
ReMe AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ReMe AGENTS.mdagentscope-ai/ReMe | Instructions file | 3.8k | today | Apache-2.0 | A | 2,721 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |