ReMe AGENTS.md

ReMe AGENTS.md is an instructions file for Codex, OpenCode from agentscope-ai/ReMe. It costs 2,573 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

Install

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.

agentmods
npx agentmods add instructions/agentscope-ai/reme/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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,573 This file is loaded in full into every session.
When invoked 2,573 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.02573 $0.02573
Opus 5 $0.01287 $0.01287
Sonnet 5 $0.00515 $0.00515
Haiku 4.5 $0.00257 $0.00257

Measured 3d ago against content hash d8b51fa0cb71, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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 · 215 lines

How it starts

The opening of the file, as written. The whole thing — 215 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, benchmark, 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.
  • typescript/: the independently published @agentscope-ai/reme package, including the shared TypeScript client and DeepSeek Harness and OpenClaw adapters.
  • plugins/: installable ReMe extensions, such as Auto Fin.
  • integrations/: adapters that connect ReMe to external agent hosts, such as Claude Code, DSH, and Hermes Agent.
  • 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.

Read the full file on GitHub · 215 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. 3d 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,383 stars, last pushed 2d ago), licensed Apache-2.0. It adds 2,573 tokens to every session, about $0.0129 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.