ReMe: Instructions file for Codex

AGENTS.md

ReMe AGENTS.md is an instructions file for Codex, OpenCode from agentscope-ai/ReMe. It costs 2,721 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for agents working on the ReMe project, a local-first file-based memory system for agents. They describe project principles, sources of truth, and the repository layout.

In plain words
What is it for?
Orienting work in the ReMe codebase, deciding which implementation or documentation to trust, and following its guidance on workspace paths, configuration, and service boundaries.
Why use it?
They help an agent make small, testable changes while preserving user-owned files and treating indexes, caches, and generated metadata as rebuildable.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md; built for openclaw.

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

About the project

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.

agentscope-ai/ReMe · 3,754 stars · on GitHub · reme.agentscope.io

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/agentscope-ai/ReMe/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/agentscope-ai/ReMe

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/agentscope-ai/reme/agents-md/github.svg)](https://agentmods.dev/instructions/agentscope-ai/reme/agents-md)
Your own site
<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.

agentmods 80×15 button for ReMe AGENTS.md

Your own site · 80×15
<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>
Per session 2,721 This file is loaded in full into every session.
When invoked 2,721 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.02721 $0.02721
Opus 5.5 $0.01088 $0.01088
Sonnet 5.5 $0.00544 $0.00544
Haiku 4.5 $0.00272 $0.00272

Measured 21d ago against content hash 7ca5763c1637, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

AGENTS.md · 222 lines

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:

  1. Current code and public Pydantic schemas.
  2. Tests that describe supported behavior.
  3. CLI behavior and the built-in configuration.
  4. 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; dispatches start, 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 in reme/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 published reme_studio Python package and @agentscope-ai/reme_studio npm 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_memory calls ReMe, while other skills may use separate tools or direct-file conventions.
  • benchmark/ and cookbook/: 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 under docs/; .generated/ and dist/ are disposable.

Read the full file on GitHub · 222 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. 21d ago Changed · +8 tokens per session 7ca5763c1637
  2. 22d ago Changed · +3 lines · +63 tokens per session caa2fa0d22da
  3. 1mo ago Changed · -10 tokens per session 017b2b6e1c7e
  4. 1mo ago Changed · -1 lines · -26 tokens per session 66151e43cd44
  5. 2mo ago Changed · +5 lines · +113 tokens per session cb2faab191b0
  6. 2mo ago First seen · 215 lines · 2,573 tokens per session scan A d8b51fa0cb71

Subscribe to this mod's changes

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.

Related

ReMe AGENTS.md compared with instructions from other repositories

ReMe AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ReMe AGENTS.mdagentscope-ai/ReMeInstructions file3.8ktodayApache-2.0A2,721Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode