agentleFS
raysonmengraysonmeng/agent-bridge/AGENTS.md

agent-bridge

AGENTS.md370 starsChanged 8 months agoMITView on GitHub

You are working in a multi-agent environment powered by AgentBridge. Another AI agent (Claude, by Anthropic) is available in a parallel session on this machine. Communication happens via AgentBridge MCP tools — Claude has reply and get_messages tools. IMPORTANT: This project has a knowledge graph. ALWAYS use the code-review-graph MCP tools BEFORE using Grep/Glob/Read to explore the codebase. The graph is faster, cheaper (fewer tokens), and gives you structural context (callers, dependents, test coverage) that file scanning cannot. Fall back…

  • 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 repository2 other files it gives its agents.

The file

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

8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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. Distinctive:

    Collaborate: when the task benefits from a second perspective, parallel execution, or capabilities the other agent has.

    line 9
  2. Distinctive:

    When in doubt, propose a task split to Claude rather than doing everything yourself.

    line 11
  3. Distinctive:

    When you receive a complex task, proactively propose a division of labor.

    line 24
  4. Distinctive:

    Ask for Claude's agreement or counter-proposal before proceeding.

    line 26
  5. Distinctive:

    After task completion, cross-review each other's work.

    line 27
  6. Very specific:

    Use detect_changes for code review.

    line 65
  7. Very specific:

    Use get_affected_flows to understand impact.

    line 66
  8. Very specific:

    Use query_graph pattern="tests_for" to check coverage.

    line 67

≈ “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
<!-- AgentBridge:start -->

AgentBridge — Multi-Agent Collaboration

You are working in a multi-agent environment powered by AgentBridge. Another AI agent (Claude, by Anthropic) is available in a parallel session on this machine. Communication happens via AgentBridge MCP tools — Claude has reply and get_messages tools.

When to collaborate vs. work solo

  • Collaborate when the task benefits from a second perspective, parallel execution, or capabilities the other agent has.
  • Work solo for simple, self-contained tasks where the coordination overhead isn't worth it.
  • When in doubt, propose a task split to Claude rather than doing everything yourself.

Capability comparison

CapabilityCodex (you)Claude
Sandboxed code executionYesNo
Reproduce & verify bugsStrongLimited
Architecture & planningModerateStrong
Code review & analysisStrongStrong
Web search & docsLimitedYes
File editing & refactoringYes (via sandbox)Yes (via tools)

How to start collaborating

  1. When you receive a complex task, proactively propose a division of labor.
  2. State what you'll handle and what you'd like Claude to take on.
  3. Ask for Claude's agreement or counter-proposal before proceeding.
  4. After task completion, cross-review each other's work.
<!-- AgentBridge:end --><!-- code-review-graph MCP tools -->

MCP Tools: code-review-graph

IMPORTANT: This project has a knowledge graph. ALWAYS use the code-review-graph MCP tools BEFORE using Grep/Glob/Read to explore the codebase. The graph is faster, cheaper (fewer tokens), and gives you structural context (callers, dependents, test coverage) that file scanning cannot.

When to use graph tools FIRST

  • Exploring code: semantic_search_nodes or query_graph instead of Grep
  • Understanding impact: get_impact_radius instead of manually tracing imports
  • Code review: detect_changes + get_review_context instead of reading entire files
  • Finding relationships: query_graph with callers_of/callees_of/imports_of/tests_for
  • Architecture questions: get_architecture_overview + list_communities

Fall back to Grep/Glob/Read only when the graph doesn't cover what you need.

Key Tools

ToolUse when
detect_changesReviewing code changes — gives risk-scored analysis
get_review_contextNeed source snippets for review — token-efficient
get_impact_radiusUnderstanding blast radius of a change
get_affected_flowsFinding which execution paths are impacted
query_graphTracing callers, callees, imports, tests, dependencies
semantic_search_nodesFinding functions/classes by name or keyword
get_architecture_overviewUnderstanding high-level codebase structure
refactor_toolPlanning renames, finding dead code

Workflow

  1. The graph auto-updates on file changes (via hooks).
  2. Use detect_changes for code review.
  3. Use get_affected_flows to understand impact.
  4. Use query_graph pattern="tests_for" to check coverage.

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.