agent-bridge
AGENTS.md341 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 code style.
Of the AGENTS.md files we read, the 33,398 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.
- CLAUDE.mdCLAUDE.md
- site/llms.txtllms.txt
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
- Distinctive: line 9
Collaborate: when the task benefits from a second perspective, parallel execution, or capabilities the other agent has.
- Distinctive: line 11
When in doubt, propose a task split to Claude rather than doing everything yourself.
- Distinctive: line 24
When you receive a complex task, proactively propose a division of labor.
- Distinctive: line 26
Ask for Claude's agreement or counter-proposal before proceeding.
- Distinctive: line 27
After task completion, cross-review each other's work.
- Very specific: line 65
Use detect_changes for code review.
- Very specific: line 66
Use get_affected_flows to understand impact.
- Very specific: line 67
Use query_graph pattern="tests_for" to check coverage.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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.
Files
<!-- 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
| Capability | Codex (you) | Claude |
| Sandboxed code execution | Yes | No |
| Reproduce & verify bugs | Strong | Limited |
| Architecture & planning | Moderate | Strong |
| Code review & analysis | Strong | Strong |
| Web search & docs | Limited | Yes |
| File editing & refactoring | Yes (via sandbox) | Yes (via tools) |
How to start collaborating
- When you receive a complex task, proactively propose a division of labor.
- State what you'll handle and what you'd like Claude to take on.
- Ask for Claude's agreement or counter-proposal before proceeding.
- 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_nodesorquery_graphinstead of Grep - Understanding impact:
get_impact_radiusinstead of manually tracing imports - Code review:
detect_changes+get_review_contextinstead of reading entire files - Finding relationships:
query_graphwith 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
| Tool | Use when |
detect_changes | Reviewing code changes — gives risk-scored analysis |
get_review_context | Need source snippets for review — token-efficient |
get_impact_radius | Understanding blast radius of a change |
get_affected_flows | Finding which execution paths are impacted |
query_graph | Tracing callers, callees, imports, tests, dependencies |
semantic_search_nodes | Finding functions/classes by name or keyword |
get_architecture_overview | Understanding high-level codebase structure |
refactor_tool | Planning renames, finding dead code |
Workflow
- The graph auto-updates on file changes (via hooks).
- Use
detect_changesfor code review. - Use
get_affected_flowsto understand impact. - Use
query_graphpattern="tests_for" to check coverage.
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
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.

