agentleFS
prakrititzprakrititz/relayBrain/CLAUDE.md

relayBrain

CLAUDE.md32 starsChanged 43 days agoMITView on GitHub

This project uses Relay for cross-agent memory. Do not ask the user to configure agent files manually. Every session — read first: .relay/AGENT_BOOTSTRAP.md Stop hooks: Cursor, Claude Code, Codex, Copilot CLI, Antigravity — installed by relay add / relay init. Relay MCP: relay_room_brief, locks, chat history — installed into each agent's MCP config by relay add. These are not built-in slash commands. They are a project convention — phrases the user types so agents recognize Relay intent. When the user…

The file

We split this CLAUDE.md into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When you make an architectural or design decision, call relay_report_decision with decision and the files it affects.

    line 21
  2. Distinctive:

    When a claim is denied, the reason says what the holder is working on.

    line 22
  3. Very specific:

    When the user sends any of these phrases (with or without a leading /), treat them as Relay instructions — not casual chat:

    line 29
  4. Very specific:

    Use npx relay if the relay command is not on PATH.

    line 38

≈ “Common” is an estimate: at least 1 in 5 of the 28,633 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md
<!-- BEGIN:relay-os -->

Relay (auto-installed)

This project uses Relay for cross-agent memory. Do not ask the user to configure agent files manually.

Every session — read first: .relay/AGENT_BOOTSTRAP.md

PhaseAction
Session startRead .relay/relay_context.md (handoff). Never paste raw transcripts.
After agent workYou update .relay/*.md from compile_brief.md (stop hook triggers this)
Background syncrelay watch . keeps memory.json + compile_brief.md fresh
Not installed?Run relay add . or relay init in project root

Stop hooks: Cursor, Claude Code, Codex, Copilot CLI, Antigravity — installed by relay add / relay init. Relay MCP: relay_room_brief, locks, chat history — installed into each agent's MCP config by relay add.

Shared memory graph (Relay MCP)

  • Before editing files you have not touched in this session, call relay_session_brief with their paths. It tells you who is editing them right now and why, past collisions, decisions, and the prompts behind recent changes from every agent and teammate. Respect what it says.
  • When you make an architectural or design decision, call relay_report_decision with decision and the files it affects.
  • When a claim is denied, the reason says what the holder is working on. Pick other work, or ask the user.
  • To explain why code looks the way it does, call relay_graph_query with query: "file_story" and the path.

Relay pseudo-commands (user chat)

These are not built-in slash commands. They are a project convention — phrases the user types so agents recognize Relay intent.

When the user sends any of these phrases (with or without a leading /), treat them as Relay instructions — not casual chat:

User saysYou do
/relay update or relay updaterelay sync . → relay compile . → read .relay/compile_brief.md → update .relay/project.md, current_task.md, decisions.md, failures.md → relay context . → confirm "Relay updated."
/relay context or relay contextRead .relay/relay_context.md (run relay context . first if stale). Summarize handoff briefly.
/relay ask or relay askCall Relay MCP tool relay_room_brief (MCP server relay). Required on Cursor, Claude Code, Codex, Copilot CLI, and Antigravity — not a terminal command for the human. Summarize teammate chat, code edits, locks, and file-sync notes. Tell the user before you edit shared files. If relay MCP is missing, say so and suggest relay add . + agent restart (do not ask the user to run relay ask).
/relay init or relay initRun relay init in project root if .relay/ missing; else confirm already installed.

Use npx relay if the relay command is not on PATH. Do not ask the user to edit agent config files manually.

Cursor: @relay-sync skill at .cursor/skills/relay-sync/.

<!-- END:relay-os -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.