agentleFS
SpillwaveSolutionsSpillwaveSolutions/agent-brain/agent-brain-plugin/AGENTS.md

agent-brain / agent-brain-plugin

AGENTS.md120 starsChanged 6 months agoMITView on GitHub

Agent-facing instructions for Grok Build, Codex, Cursor, and any host that loads this directory as a Claude-compatible or Agent Plugins 1.0 plugin. This is one plugin with one payload. commands/, agents/, and skills/ are shared by every host. Do not add host-specific copies of a skill. Host manifests point at the shared directories. Give the coding agent a local, project-scoped memory of the docs and code it works on: Plugin root variable in Claude and Grok plugin context: ${CLAUDE_PLUGIN_ROOT}. See…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository6 other files it gives its agents.

The file

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

5 rules. About 0 are common, 1 is distinctive, and 4 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.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Search with BM25, vector, hybrid, graph, or multi mode.

    line 23
  2. Very specific:

    Search before you read. Run agent-brain query "<question>" or the search_documents MCP tool, then open only the files the results name.

    line 38
  3. Very specific:

    Check agent-brain status before a search.

    line 40
  4. Very specific:

    Never edit .agent-brain/. It holds server state, indexes, and the API key.

    line 42
  5. Very specific:

    Do not commit .agent-brain/.

    line 43

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.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
AGENTS.md

AGENTS.md: agent-brain plugin

Agent-facing instructions for Grok Build, Codex, Cursor, and any host that loads this directory as a Claude-compatible or Agent Plugins 1.0 plugin.

Host compatibility

HostHow this plugin loads
Claude CodeNative plugin: .claude-plugin/plugin.json, commands/, agents/, skills/
Grok BuildZero-config Claude plugin load. .grok-plugin/marketplace.json pins marketplace identity
Cursor.cursor-plugin/plugin.json plus .cursor/rules/agent-brain.mdc. agent-brain install-agent --agent cursor writes .cursor/plugins/agent-brain/
Codex.codex-plugin/plugin.json. agent-brain install-agent --agent codex writes .codex/skills/agent-brain/ and an AGENTS.md block at the project root
OpenCodeagent-brain install-agent --agent opencode writes .opencode/plugins/agent-brain/
Agent Plugins 1.0Root plugin.json, skills/, and mcp.json

This is one plugin with one payload. commands/, agents/, and skills/ are shared by every host. Do not add host-specific copies of a skill. Host manifests point at the shared directories.

Mission

Give the coding agent a local, project-scoped memory of the docs and code it works on:

  • Index Markdown, PDF, and source code into one corpus per project (.agent-brain/).
  • Search with BM25, vector, hybrid, graph, or multi mode.
  • Serve the corpus over REST, Unix domain socket, and MCP (stdio or Streamable HTTP with OAuth 2.1).

Component map

  • Skills: skills/using-agent-brain/SKILL.md (search) and skills/configuring-agent-brain/SKILL.md (setup)
  • Commands: commands/agent-brain-*.md, one slash command per CLI operation
  • Agents: agents/search-assistant.md, agents/research-assistant.md, agents/setup-assistant.md
  • MCP: mcp.json declares the agent-brain-mcp stdio server. AGENT_BRAIN_STATE_DIR selects the project
  • Cursor rules: .cursor/rules/agent-brain.mdc

Plugin root variable in Claude and Grok plugin context: ${CLAUDE_PLUGIN_ROOT}.

Operating principles

  1. Search before you read. Run agent-brain query "<question>" or the search_documents MCP tool, then open only the files the results name.
  2. Pick the mode by question type: bm25 for exact symbols, vector for concepts, hybrid by default, graph for callers and relationships, multi for a broad first pass.
  3. Check agent-brain status before a search. Start the server with agent-brain start from the project root when it is down.
  4. Reindex after large file moves: agent-brain index <folder> --include-code.
  5. Never edit .agent-brain/. It holds server state, indexes, and the API key.
  6. Do not commit .agent-brain/. Keep it in .gitignore.

Skill routing

User languageSkill or command
search, find, where is, who callsusing-agent-brain, /agent-brain-search
install, set up, configure provider, API keyconfiguring-agent-brain, /agent-brain-setup
index, reindex, add folder/agent-brain-index, /agent-brain-folders
server down, status, jobs/agent-brain-status, /agent-brain-start, /agent-brain-jobs

Install

  • Claude Code: claude plugins marketplace add SpillwaveSolutions/agent-brain then claude plugins install agent-brain@agent-brain-marketplace
  • Grok Build: zero-config Claude plugin load
  • Cursor, Codex, OpenCode: agent-brain install-agent --agent <host> --with-mcp

See docs/HOSTS.md in the repository for the manifest each host reads and the MCP config target it writes.

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.