agent-protocol
Skill35 starsChanged 8 months agoMITView on GitHub
Specification for making MUSE role files machine-readable as an Agent Protocol — enabling multi-agent coordination and tool interoperability
5 other projects use a version of this.
Adopted by
Most recently taken up by
- 2867203296/hermes-agenttheir own version, first seen Aug 19, 2026
- Hassaan146/claude-skillstheir own version, first seen Jul 25, 2026
- mahiunfiltered/claude-code-skillstheir own version, first seen Jul 8, 2026
- metraton/gaiatheir own version, first seen Jul 2, 2026
- Hussain-Elfalah/Agentic-Skillstheir own version, first seen Jun 4, 2026
Used with
Projects with it also use ai-act-readiness, andreessen and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Hussain-ElfalahSkillai-act-readiness
Also in 3 projects that use this
Hussain-ElfalahSkillandreessen
Also in 3 projects that use this
- +10 more from Hussain-Elfalah
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- Hassaan146/claude-skills★ 18same name
- metraton/gaia★ 4same name
- Hussain-Elfalah/Agentic-Skills★ 2same name
- mahiunfiltered/claude-code-skills★ 1same name
- 2867203296/hermes-agent★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository56 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- context-health-checkSkill
- layered-contextSkill
- muse-commandsSkill
- semantic-searchSkill
- strategic-compactSkill
- using-superpowersSkill
- verification-before-completionSkill
- growth-distributionSkill
- api-design-principlesSkill
- architect-agentSkill
- brainstormingSkill
- build-error-resolverSkill
- changelog-generatorSkill
- code-documentationSkill
- code-refactoringSkill
- code-reviewer-agentSkill
- coding-standardsSkill
- context7-mcpSkill
- coordinator-modeSkill
- creating-skillsSkill
- deep-diveSkill
- dispatching-parallel-agentsSkill
- doc-coauthoringSkill
- doc-updaterSkill
- e2e-runnerSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- frontend-designSkill
- git-commitSkill
- github-pr-creationSkill
- github-pr-mergeSkill
- github-pr-reviewSkill
- git-security-guardSkill
- iterative-retrievalSkill
- markitdownSkill
- planner-agentSkill
- ralph-wiggumSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- sciomcSkill
- security-reviewSkill
- skill-creatorSkill
- skills-updaterSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- tdd-workflowSkill
- theme-factorySkill
- traceSkill
- ui-ux-pro-maxSkill
- using-git-worktreesSkill
- webapp-testingSkill
- writing-plansSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Agent handoff: When switching between Agents (e.g., Claude → Gemini), context should be portable
- Distinctive: line 42
Every role file MUST have an L0 comment as its first line:
- Very specific: line 150
Cross-project directives: use PROJECT/ROLE targeting:
- Distinctive: line 176
Configuration: Add to your MCP client config:
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Protocol Specification
Inspired by MemOS (multi-agent isolation + sharing) and multi-agent-memory (cross-agent persistence). Adapted for MUSE's Markdown role records. Added in v2.12.0 (Batch 2 — competitive tech absorption).
Why
MUSE role files (.muse/*.md) currently work because AI Agents read Markdown and follow instructions. But as the ecosystem evolves toward multi-agent workflows (MCP servers, Claude Projects, multi-tool chains), role files need a machine-readable protocol — not just human-readable documents.
Problems this solves:
- Agent handoff: When switching between Agents (e.g., Claude → Gemini), context should be portable
- Multi-agent coordination: Multiple Agents working on the same project should respect role boundaries
- Tool interoperability: MCP servers, IDE plugins, and CLI tools should be able to read/write role files
Protocol: MUSE Role File Spec v1.0
File Discovery
.muse/
├── strategy.md # Strategy role
├── build.md # Build/Dev role
├── growth.md # Growth/Marketing role
├── qa.md # QA/Verification role
├── gm.md # General Manager role
├── ops.md # Operations role
├── research.md # Research role
├── fundraise.md # Fundraise role
└── archive/ # Archived content (not loaded)Discovery rule: Any .md file in .muse/ (excluding archive/) = a role file.
L0 Header (Machine-Readable Status Line)
Every role file MUST have an L0 comment as its first line:
<!-- L0: {version} | {top_priority} | {status_flags} -->Parsed fields:
| Field | Type | Description | Example |
version | semver | Current project version | v2.11.0 |
top_priority | string | Most important current task | P0=竞品技术吸收Batch2 |
status_flags | csv | Comma-separated status indicators | QA PASS, 3 pending directives |
L0 is the Agent's "at a glance" API — any tool can grep all L0 lines to get project status in ~400 tokens.
Section Protocol
Role files use Markdown headers as semantic sections. Tools should parse these:
| Section Header Pattern | Semantic Meaning | Agent Action |
## 📐 职责边界 | Role boundaries table | Respect: only act within listed responsibilities |
## ⏳ 待办 / ## 🎯 TODO | Pending tasks | Read for context; update checkboxes when completing |
## 📡 已接收战略指令 | Received directives | Check for pending work from other roles |
## 📡 QA→BUILD 通知 | Cross-role notifications | Process before starting new work |
## 🛠️ 技术栈 | Technology constraints | Respect in all code generation |
## 📋 CHANGELOG 维护规则 | Process rules | Follow during releases |
Directive Protocol (📡)
Directives are the message-passing API between roles:
📡 **S{NNN}→{TARGET}**: {STATUS} **{TITLE}**
> {BODY}| Field | Format | Example |
S{NNN} | Sequential ID | S041 |
{TARGET} | ROLE or PROJECT/ROLE | MUSE/BUILD, GROWTH |
{STATUS} | 🟡 (pending) / ✅ (received) | 🟡 = needs pickup |
{TITLE} | One-line summary | 竞品深度调研回传 |
{BODY} | Blockquote detail | Full directive content |
Pickup protocol:
- Target role's
/resumescans for 🟡 directives - On pickup: write to role file's
📡 已接收战略指令section - Change source 🟡 → ✅ with timestamp
Memory Protocol
memory/
├── YYYY-MM-DD.md # Daily log (short-term, raw)
├── archive/ # Old logs
MEMORIES.md # Long-term knowledge (distilled + auto-captured)| Memory Type | File | Write Method | Read Method |
| Short-term | memory/YYYY-MM-DD.md | /bye Step 4 | /resume Step ② |
| Long-term | MEMORIES.md | /distill (batch) + /bye Step 4.7 (auto-capture) | /resume Step ① |
| Constitutional | CLAUDE.md | Manual | Always loaded |
| User prefs | USER.md | /settings | /resume Step ④ |
Isolation Rules
┌─────────────────────────────────────────────┐
│ Agent Session (e.g., /resume build) │
│ │
│ ✅ CAN READ: │
│ - Own role file (.muse/build.md) │
│ - L0 lines of ALL role files │
│ - memory/*.md │
│ - MEMORIES.md, CLAUDE.md, USER.md │
│ - Source code & docs (on demand) │
│ │
│ ✅ CAN WRITE: │
│ - Own role file │
│ - memory/YYYY-MM-DD.md │
│ - MEMORIES.md (auto-capture only) │
│ - Source code (if build/dev role) │
│ │
│ ❌ MUST NOT: │
│ - Write to other role files directly │
│ - Create files outside .muse/ convention │
│ - Discuss other roles' topics in depth │
│ │
│ 📡 CROSS-ROLE COMMS: │
│ - Only via directive protocol (📡 S{NNN}) │
│ - Sender writes directive to OWN file │
│ - Receiver picks up during /resume │
└─────────────────────────────────────────────┘Multi-Project Protocol
For users managing multiple projects:
~/ProjectA/.muse/build.md ← ProjectA's build role
~/ProjectB/.muse/build.md ← ProjectB's build role
~/ProjectA/.muse/strategy.md ← May hold cross-project directivesCross-project directives use PROJECT/ROLE targeting:
📡 S041→MUSE/BUILD: 🟡 ... ← Targets MUSE project's BUILD role
📡 S040→DYA/GROWTH: ✅ ... ← Targets DYA project's GROWTH rolePath resolution: CLAUDE.md MAY specify absolute paths for cross-project strategy files:
> strategy.md 绝对路径: `${DYA_ROOT}/.muse/strategy.md`Integration Points
For MCP Servers
An MCP server implementing MUSE protocol is included — see scripts/mcp-server.sh (added in v2.15.0).
| Tool | Description | Status |
muse_get_status | Read all L0 lines → return project status | ✅ |
muse_list_roles | List role files with summaries | ✅ |
muse_get_role | Read a specific role file (L1) | ✅ |
muse_send_directive | Create a 📡 directive in a role file | ✅ |
muse_write_memory | Append to today's memory file | ✅ |
muse_search_memory | Search across memory files + MEMORIES.md | ✅ |
Configuration: Add to your MCP client config:
{
"mcpServers": {
"muse": {
"command": "/path/to/muse/scripts/mcp-server.sh",
"args": ["--project-root", "/path/to/project"]
}
}
}For CLI Tools
# Get project status (all L0 lines)
grep "<!-- L0:" .muse/*.md
# Check for pending directives
grep "🟡" /path/to/strategy.md
# Count role file lines (bloat check)
wc -l .muse/*.mdFor IDE Plugins
- Status bar: Show L0 summary of current role
- Sidebar: List pending directives (🟡)
- On save: Auto-update L0 line if role file changed
Version History
| Version | Date | Changes |
| v1.1 | 2026-03-15 | MCP server implemented (scripts/mcp-server.sh) |
| v1.0 | 2026-03-15 | Initial spec (Batch 2) |
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.

