Reverie AGENTS.md

Reverie AGENTS.md is an instructions file for Codex, OpenCode from seabearDEV/Reverie. It costs 862 tokens per session, scanned B, original, MIT.

A repository instruction file for Reverie, a system that stores useful project knowledge between agent sessions. It explains how agents should read and update that shared knowledge through the `rvr` command-line tool.

In plain words
What is it for?
Use it to guide agents working in a Reverie-enabled project, including how to inspect context, search stored knowledge, and write durable updates.
Why use it?
It helps agents recover relevant project context without relying only on the current conversation and keeps updates attributable and machine-readable.

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/seabeardev/reverie/agents-md
Clone the repo
git clone --depth 1 https://github.com/seabearDEV/Reverie

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/seabeardev/reverie/agents-md.svg)](https://agentmods.dev/instructions/seabeardev/reverie/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/seabeardev/reverie/agents-md"><img src="https://agentmods.dev/badge/instructions/seabeardev/reverie/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 862 This file is loaded in full into every session.
When invoked 862 The same file — it is already loaded in full.
Security scan B 1 finding. 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.00862 $0.00862
Opus 5 $0.00431 $0.00431
Sonnet 5 $0.00172 $0.00172
Haiku 4.5 $0.00086 $0.00086

Measured 4d ago against content hash 4ee59c98fe52, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

Reverie AGENTS.md scanned grade B with 1 finding 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 4d 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.

Reads MCP configurationmediumAgent snooping

mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.

- **MCP server** (`rvr mcp-server`) — for shell-less surfaces only (e.g. Claude Cowork/Desktop), registered at the app level. Do not add project-level MCP config (`.mcp.json`); shell agents use the CLI.
AGENTS.md · 52 lines

How it starts

The opening of the file, as written. The whole thing — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Reverie — agent guide

Reverie store

This project keeps durable, cross-session knowledge in a Reverie store (.reverie/). Fleet policy: transport follows capability.

  • rvr CLI — the uniform surface for every shell-capable agent (Claude Code, Codex, …): rvr context, rvr get, rvr set, rvr find, … Pipe --json output (e.g. through jq) so only the distilled answer enters context. Run rvr manifest --json for the full command map and rvr config llm-instructions --surface cli for CLI specifics (the --json envelope, scope flags, confirm flow, RVR_SESSION).
  • MCP server (rvr mcp-server) — for shell-less surfaces only (e.g. Claude Cowork/Desktop), registered at the app level. Do not add project-level MCP config (.mcp.json); shell agents use the CLI.

Attribution: each agent's harness sets RVR_AGENT_NAME (sol = Codex, fable = Claude Code) so audit/telemetry rows identify the writer.

CLI commands emit a single machine-readable envelope with --json (or RVR_OUTPUT=json): { "reverie": "1", "ok": true, "command": "…", "result": …, "error": { "code": … }, "warnings": [] }. Branch on error.code, not on prose. (One exception: rvr audit --follow --json streams raw NDJSON rows, no envelope.)

Never hand-edit .reverie/*.json directly — that bypasses audit logging, alias resolution, interpolation, and staleness metadata (see conventions.editSurface in the store). Use rvr (or, on shell-less surfaces, the MCP tools) only.

Bootstrap

  1. Load all stored project knowledge first — rvr context.
  2. If this is a git repo, run gh issue list --state open and read any issue related to the user's request before coding.

Before exploring code

Check the store before globbing/grepping or reading code — rvr get <key>:

  • files.<name> before searching for a source file.
  • arch.<area> before reading code to understand a subsystem.
  • conventions.<topic> before making style/pattern decisions.

Write back

When you discover something non-obvious (a gotcha, an architectural decision, a pattern), store it — rvr set <key> <value> — before the session ends. At session end, consider a context.next_session handoff note for the next session's bootstrap banner.

Read the full file on GitHub · 52 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. 4d ago First seen · 52 lines · 862 tokens per session scan B 4ee59c98fe52

Subscribe to this mod's changes

Reverie AGENTS.md is an instructions file published in the GitHub repository seabearDEV/Reverie (1 stars, last pushed 10d ago), licensed MIT. It adds 862 tokens to every session, about $0.0043 per session on Opus 5. A static security scan graded it B with 1 finding (reads mcp configuration). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.