/mpm - Claude MPM Framework Guide
What is Claude MPM?
Claude MPM (Multi-Agent Project Manager) extends Claude Code with multi-agent orchestration, project-specific PM instructions, persistent agent memory, real-time monitoring via a WebSocket dashboard, and automation hooks. A PM agent coordinates specialized agents to complete work through structured delegation using the Task tool. MPM manages skills deployment, agent selection, session continuity, and cross-project messaging.
How Delegation Works
The PM receives user requests and delegates to specialized agents via the Task tool:
Task(description="[what to do]", subagent_type="[agent-type]")
- PM analyzes the request, breaks it into subtasks, and selects the right agent for each
- Each agent focuses on its specialty and returns results to PM
- Parallel execution when tasks are independent (e.g., frontend + backend simultaneously)
- Sequential execution when tasks depend on each other (e.g., implement, then test, then deploy)
- Agents should focus on their delegated task and return clear results -- PM handles orchestration
- If an agent needs help from another specialty, it reports back to PM rather than self-delegating
Typical workflow: Research -> Engineer -> Ops (deploy) -> Ops (verify) -> QA -> Documentation
Available Agents
Core Agents (always deployed)
| Agent |
subagent_type |
Role |
| Engineer |
engineer |
Code implementation, refactoring, debugging |
| Research |
Research |
Investigation, analysis, codebase exploration |
| QA |
qa |
Testing, validation, quality assurance |
| Documentation |
documentation |
Docs generation, API specs, guides |
| Ops |
ops |
Deployment, infrastructure, operations |
| Security |
security |
Vulnerability assessment, security review |
| Ticketing |
ticketing |
Ticket tracking and workflow management |
Extended Agents (deployed per project)
| Agent |
subagent_type |
Role |
| Version Control |
version-control |
Git operations, PR management, tagging |
| Code Analyzer |
code-analyzer |
Codebase analysis, architecture review |
| Code Review |
code-review |
PR review, semantic analysis |
| Data Engineer |
data-engineer |
Database management, API integrations |
| Product Owner |
product-owner |
Requirements, user stories, prioritization |
Language-Specific Engineers
Deployed automatically based on project toolchain detection:
python-engineer, typescript-engineer, javascript-engineer, golang-engineer, rust-engineer, java-engineer, ruby-engineer, php-engineer, dart-engineer
Framework specialists: nextjs-engineer, react-engineer, svelte-engineer, tauri-engineer, phoenix-engineer
Platform Ops
local-ops (local dev, PM2, Docker), vercel-ops, gcp-ops, digitalocean-ops, clerk-ops, railway-ops
Specialized Agents
api-qa, web-qa, code-review, code-analyzer, refactoring-engineer, prompt-engineer, content-agent, imagemagick, memory-manager
Skills System
Skills are markdown files deployed to .claude/skills/{name}/SKILL.md that provide agents with specialized knowledge and procedures.
- User-invocable skills respond to
/skill-name slash commands (e.g., /mpm, /mpm-help)
- Non-invocable skills activate automatically based on context triggers
- Skills have frontmatter with:
name, description, user-invocable, version, category, tags
- Categories:
mpm-command, pm-workflow, pm-reference, toolchains-*, universal-*
- Progressive disclosure: Metadata loads first; full content loads on trigger
- Skills can include
references/ subdirectories for detailed supplementary content
Memory System
Agent memories provide persistent context across sessions.
- Storage:
.claude-mpm/memories/{agent_id}_memories.md
- PM manages memory files directly (read, consolidate, save)
- Each agent has domain-specific memory categories
- Trigger phrases: "remember", "don't forget", "always", "never", "going forward"
- Size limit: 80KB per file (~20k tokens)
- Routing: Keyword-based routing sends memories to the appropriate agent
- Memories are automatically loaded when an agent is delegated work
Hooks and Dashboard
Claude Code hooks capture tool usage, responses, and agent activity in real-time.
Event flow: Hook -> Connection Manager -> Monitor Server -> Dashboard
Dashboard at http://localhost:8765/ shows:
- Tools being used and files being read/written
- Agent delegations and completions
- Session timeline and activity feed
Monitor commands: /mpm-monitor start, /mpm-monitor stop, /mpm-monitor status
Available Commands
| Command |
Description |
/mpm |
This guide -- MPM overview and framework reference |
/mpm-help |
Detailed help for MPM commands |
/mpm-init |
Initialize or update a project for MPM |
/mpm-status |
System health and status |
/mpm-doctor |
Run diagnostic checks |
/mpm-config |
Manage configuration |
/mpm-monitor |
Control monitoring server and dashboard |
/mpm-version |
Version information |
/mpm-message |
Cross-project messaging |
/mpm-organize |
Intelligent file consolidation |
/mpm-ticket-view |
Ticketing workflow management |
/mpm-session-pause |
Save session state for later |
/mpm-session-resume |
Resume from paused session |
/mpm-postmortem |
Analyze session errors |
Cross-Project Messaging
/mpm-message sends asynchronous messages between Claude MPM instances running in different projects on the same machine.
- Messages stored in a shared SQLite database at
~/.claude-mpm/messaging.db
- Checked periodically: on session start, every 10 commands, every 30 minutes
- Message types:
task, request, notification, reply
- Always use the
MessageService API or claude-mpm message CLI -- never query the database directly
For Agents: How to Work Within MPM
When you receive a delegated task from PM:
- Focus on your delegated task -- PM handles orchestration and coordination
- Return clear results with evidence: file paths created/modified, test counts and pass rates, URLs, error details
- Your agent memory is loaded automatically -- reference it for project-specific conventions and past decisions
- If you need another specialty, report back to PM with what you need rather than self-delegating
- Track files you create or modify -- PM will handle git operations and file tracking
- Follow project patterns -- check your memory and existing code conventions before implementing
- Escalate blockers immediately -- do not silently fail or produce partial results without explanation
1---2name: mpm-33description: Access Claude MPM functionality and manage multi-agent orchestration4---56# /mpm - Claude MPM Framework Guide78## What is Claude MPM?910Claude MPM (Multi-Agent Project Manager) extends Claude Code with multi-agent orchestration, project-specific PM instructions, persistent agent memory, real-time monitoring via a WebSocket dashboard, and automation hooks. A **PM agent** coordinates specialized agents to complete work through structured delegation using the Task tool. MPM manages skills deployment, agent selection, session continuity, and cross-project messaging.1112## How Delegation Works1314The PM receives user requests and delegates to specialized agents via the **Task tool**:1516```17Task(description="[what to do]", subagent_type="[agent-type]")18```1920- PM analyzes the request, breaks it into subtasks, and selects the right agent for each21- Each agent focuses on its specialty and returns results to PM22- **Parallel execution** when tasks are independent (e.g., frontend + backend simultaneously)23- **Sequential execution** when tasks depend on each other (e.g., implement, then test, then deploy)24- Agents should focus on their delegated task and return clear results -- PM handles orchestration25- If an agent needs help from another specialty, it reports back to PM rather than self-delegating2627**Typical workflow**: Research -> Engineer -> Ops (deploy) -> Ops (verify) -> QA -> Documentation2829## Available Agents3031### Core Agents (always deployed)3233| Agent | subagent_type | Role |34|-------|---------------|------|35| Engineer | `engineer` | Code implementation, refactoring, debugging |36| Research | `Research` | Investigation, analysis, codebase exploration |37| QA | `qa` | Testing, validation, quality assurance |38| Documentation | `documentation` | Docs generation, API specs, guides |39| Ops | `ops` | Deployment, infrastructure, operations |40| Security | `security` | Vulnerability assessment, security review |41| Ticketing | `ticketing` | Ticket tracking and workflow management |4243### Extended Agents (deployed per project)4445| Agent | subagent_type | Role |46|-------|---------------|------|47| Version Control | `version-control` | Git operations, PR management, tagging |48| Code Analyzer | `code-analyzer` | Codebase analysis, architecture review |49| Code Review | `code-review` | PR review, semantic analysis |50| Data Engineer | `data-engineer` | Database management, API integrations |51| Product Owner | `product-owner` | Requirements, user stories, prioritization |5253### Language-Specific Engineers5455Deployed automatically based on project toolchain detection:5657`python-engineer`, `typescript-engineer`, `javascript-engineer`, `golang-engineer`, `rust-engineer`, `java-engineer`, `ruby-engineer`, `php-engineer`, `dart-engineer`5859**Framework specialists**: `nextjs-engineer`, `react-engineer`, `svelte-engineer`, `tauri-engineer`, `phoenix-engineer`6061### Platform Ops6263`local-ops` (local dev, PM2, Docker), `vercel-ops`, `gcp-ops`, `digitalocean-ops`, `clerk-ops`, `railway-ops`6465### Specialized Agents6667`api-qa`, `web-qa`, `code-review`, `code-analyzer`, `refactoring-engineer`, `prompt-engineer`, `content-agent`, `imagemagick`, `memory-manager`6869## Skills System7071**Skills** are markdown files deployed to `.claude/skills/{name}/SKILL.md` that provide agents with specialized knowledge and procedures.7273- **User-invocable skills** respond to `/skill-name` slash commands (e.g., `/mpm`, `/mpm-help`)74- **Non-invocable skills** activate automatically based on context triggers75- Skills have **frontmatter** with: `name`, `description`, `user-invocable`, `version`, `category`, `tags`76- **Categories**: `mpm-command`, `pm-workflow`, `pm-reference`, `toolchains-*`, `universal-*`77- **Progressive disclosure**: Metadata loads first; full content loads on trigger78- Skills can include `references/` subdirectories for detailed supplementary content7980## Memory System8182Agent memories provide persistent context across sessions.8384- **Storage**: `.claude-mpm/memories/{agent_id}_memories.md`85- PM manages memory files directly (read, consolidate, save)86- Each agent has domain-specific memory categories87- **Trigger phrases**: "remember", "don't forget", "always", "never", "going forward"88- **Size limit**: 80KB per file (~20k tokens)89- **Routing**: Keyword-based routing sends memories to the appropriate agent90- Memories are automatically loaded when an agent is delegated work9192## Hooks and Dashboard9394Claude Code hooks capture tool usage, responses, and agent activity in real-time.9596**Event flow**: Hook -> Connection Manager -> Monitor Server -> Dashboard9798**Dashboard** at `http://localhost:8765/` shows:99- Tools being used and files being read/written100- Agent delegations and completions101- Session timeline and activity feed102103**Monitor commands**: `/mpm-monitor start`, `/mpm-monitor stop`, `/mpm-monitor status`104105## Available Commands106107| Command | Description |108|---------|-------------|109| `/mpm` | This guide -- MPM overview and framework reference |110| `/mpm-help` | Detailed help for MPM commands |111| `/mpm-init` | Initialize or update a project for MPM |112| `/mpm-status` | System health and status |113| `/mpm-doctor` | Run diagnostic checks |114| `/mpm-config` | Manage configuration |115| `/mpm-monitor` | Control monitoring server and dashboard |116| `/mpm-version` | Version information |117| `/mpm-message` | Cross-project messaging |118| `/mpm-organize` | Intelligent file consolidation |119| `/mpm-ticket-view` | Ticketing workflow management |120| `/mpm-session-pause` | Save session state for later |121| `/mpm-session-resume` | Resume from paused session |122| `/mpm-postmortem` | Analyze session errors |123124## Cross-Project Messaging125126`/mpm-message` sends asynchronous messages between Claude MPM instances running in different projects on the same machine.127128- Messages stored in a shared SQLite database at `~/.claude-mpm/messaging.db`129- Checked periodically: on session start, every 10 commands, every 30 minutes130- Message types: `task`, `request`, `notification`, `reply`131- Always use the `MessageService` API or `claude-mpm message` CLI -- never query the database directly132133## For Agents: How to Work Within MPM134135When you receive a delegated task from PM:1361371. **Focus on your delegated task** -- PM handles orchestration and coordination1382. **Return clear results with evidence**: file paths created/modified, test counts and pass rates, URLs, error details1393. **Your agent memory is loaded automatically** -- reference it for project-specific conventions and past decisions1404. **If you need another specialty**, report back to PM with what you need rather than self-delegating1415. **Track files you create or modify** -- PM will handle git operations and file tracking1426. **Follow project patterns** -- check your memory and existing code conventions before implementing1437. **Escalate blockers immediately** -- do not silently fail or produce partial results without explanation