claude-mpm 4.14.2 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,32 +2,147 @@
2
2
 
3
3
  A powerful orchestration framework for **Claude Code (CLI)** that enables multi-agent workflows, session management, and real-time monitoring through a streamlined Rich-based interface.
4
4
 
5
- > **⚠️ Important**: Claude MPM extends **Claude Code (CLI)**, not Claude Desktop (app). All MCP integrations work with Claude Code's CLI interface only.
5
+ > **⚠️ Important**: Claude MPM **requires Claude Code CLI** (v1.0.92+), not Claude Desktop (app). All MCP integrations work with Claude Code's CLI interface only.
6
+ >
7
+ > **Don't have Claude Code?** Install from: https://docs.anthropic.com/en/docs/claude-code
8
+ >
9
+ > **Version Requirements:**
10
+ > - Minimum: v1.0.92 (hooks support)
11
+ > - Recommended: v2.0.30+ (latest features)
6
12
 
7
- > **Quick Start**: See [QUICKSTART.md](QUICKSTART.md) to get running in 5 minutes!
13
+ > **Quick Start**: See [docs/user/getting-started.md](docs/user/getting-started.md) to get running in 5 minutes!
14
+
15
+ ## 🚀 What's New in v5.0
16
+
17
+ ### Git Repository Integration for Agents & Skills
18
+
19
+ Claude MPM now supports **Git repositories** for distributing and managing agents and skills - the most requested feature from our community!
20
+
21
+ **🎯 Key Highlights:**
22
+ - **📦 Massive Library**: 47+ agents and hundreds of skills deployed automatically from curated repositories
23
+ - **🏢 Official Content**: Anthropic's official skills repository included by default
24
+ - **🔧 Fully Extensible**: Add your own agent/skill repositories with immediate testing
25
+ - **🌳 Smart Organization**: Hierarchical BASE-AGENT.md inheritance for shared templates
26
+ - **📊 Clear Visibility**: Two-phase progress bars show sync and deployment status
27
+ - **✅ Fail-Fast Testing**: Test repositories before they cause startup issues
28
+
29
+ #### Quick Start: Add Your Own Repository
30
+
31
+ ```bash
32
+ # Add custom agent repository (with immediate testing)
33
+ claude-mpm agent-source add https://github.com/yourorg/your-agents
34
+
35
+ # Add custom skill repository
36
+ claude-mpm skill-source add https://github.com/yourorg/your-skills
37
+
38
+ # Test repository without saving
39
+ claude-mpm agent-source add https://github.com/yourorg/your-agents --test
40
+
41
+ # List all configured sources
42
+ claude-mpm agent-source list
43
+ ```
44
+
45
+ #### Default Repositories
46
+
47
+ **Agents** (47+ agents):
48
+ - 🏢 System: `bobmatnyc/claude-mpm-agents` - Core agent templates
49
+
50
+ **Skills** (hundreds of skills):
51
+ - 🏢 System: `bobmatnyc/claude-mpm-skills` - Community skills
52
+ - 🎯 Official: `anthropics/skills` - Anthropic's official skills (14+ skills)
53
+
54
+ **What This Means:**
55
+ - ✅ **Automatic Setup**: Everything deploys on first run
56
+ - ✅ **Always Updated**: Git repositories sync on startup
57
+ - ✅ **Nested Support**: Repositories with subdirectories are automatically flattened
58
+ - ✅ **Template Inheritance**: BASE-AGENT.md files cascade from parent directories
59
+ - ✅ **Priority System**: Control which sources win when multiple repos provide the same agent/skill
60
+
61
+ #### Hierarchical Organization Example
62
+
63
+ Support for BASE-AGENT.md enables powerful template inheritance:
64
+
65
+ ```
66
+ your-agents/
67
+ BASE-AGENT.md # Root shared content (all agents inherit)
68
+ engineering/
69
+ BASE-AGENT.md # Engineering-specific (engineering/* agents inherit)
70
+ python/
71
+ fastapi-engineer.md # Inherits both BASE files
72
+ ```
73
+
74
+ See [docs/features/hierarchical-base-agents.md](docs/features/hierarchical-base-agents.md) for complete guide.
8
75
 
9
76
  ## Features
10
77
 
11
- - 🤖 **Multi-Agent System**: 15 specialized agents for comprehensive project management
12
- - 🧠 **Persistent Knowledge System**: Project-specific kuzu-memory integration for intelligent context retention
13
- - 🔄 **Session Management**: Resume previous sessions with `--resume`
14
- - 📊 **Real-Time Monitoring**: Live dashboard with `--monitor` flag
15
- - 🔌 **Smart MCP Services**: Interactive auto-install for mcp-vector-search on first use (pip/pipx choice)
16
- - 🔍 **Semantic Code Search**: Optional vector search with graceful fallback to grep/glob
17
- - 📁 **Multi-Project Support**: Per-session working directories with persistent knowledge graphs
18
- - 🔍 **Git Integration**: View diffs and track changes across projects
19
- - 🎯 **Smart Task Orchestration**: PM agent intelligently routes work to specialists
20
- - **Simplified Architecture**: ~3,700 lines removed for better performance and maintainability
21
- - 🔒 **Enhanced Security**: Comprehensive input validation and sanitization framework
78
+ ### 🎯 Multi-Agent Orchestration
79
+
80
+ - **47+ Specialized Agents**: Comprehensive coverage from Git repositories (Python, Rust, QA, Security, Ops, etc.)
81
+ - **Smart Task Routing**: PM agent intelligently delegates work to specialist agents
82
+ - **Session Management**: Resume previous sessions with `--resume`
83
+ - **Resume Log System**: Proactive context management with automatic 10k-token session logs at 70%/85%/95% thresholds
84
+
85
+ ### 📦 Git Repository Integration (NEW in v5.0)
86
+
87
+ - **🏢 Curated Content**: Default repositories with 47+ agents and hundreds of skills
88
+ - **🎯 Official Skills**: Anthropic's official skills included by default
89
+ - **🔧 Custom Repositories**: Add your own via CLI or configuration
90
+ - **🌳 Nested Support**: Automatic flattening of nested directory structures
91
+ - **📝 Template Inheritance**: BASE-AGENT.md for hierarchical organization
92
+ - **✅ Immediate Testing**: Fail-fast validation when adding repositories
93
+ - **📊 Progress Visibility**: Two-phase progress bars (sync + deployment)
94
+ - **⚡ Smart Caching**: ETag-based caching reduces bandwidth by 95%+
95
+
96
+ ### 🎯 Skills System
97
+
98
+ - **Hundreds of Skills**: Comprehensive skill library from curated repositories
99
+ - **Official Skills**: 14+ skills from Anthropic's official repository
100
+ - **Three-Tier Organization**: Bundled/user/project skills with priority resolution
101
+ - **Auto-Linking**: Skills automatically linked to relevant agents
102
+ - **Interactive Configuration**: Skills wizard via `claude-mpm configure`
103
+ - **Version Tracking**: Semantic versioning for all skills
104
+
105
+ ### 🔌 Advanced Integration
106
+
107
+ - **MCP Integration**: Full support for Model Context Protocol services
108
+ - **Real-Time Monitoring**: Live dashboard with `--monitor` flag
109
+ - **Multi-Project Support**: Per-session working directories
110
+ - **Git Integration**: View diffs and track changes across projects
111
+
112
+ ### ⚡ Performance & Security
113
+
114
+ - **Simplified Architecture**: ~3,700 lines removed for better performance
115
+ - **Enhanced Security**: Comprehensive input validation and sanitization
116
+ - **Intelligent Caching**: File-based instruction caching for optimal performance
117
+ - ✅ Eliminates ARG_MAX limits on Linux (exceeds by 19.1%) and Windows (exceeds by 476%)
118
+ - ✅ ~200ms faster agent startup with hash-based cache invalidation
119
+ - ✅ Automatic and transparent (no configuration required)
22
120
 
23
121
  ## Quick Installation
24
122
 
123
+ ### Prerequisites
124
+
125
+ **Before installing Claude MPM**, ensure you have:
126
+
127
+ 1. **Python 3.11+** (required for kuzu-memory dependency)
128
+ 2. **Claude Code CLI v1.0.92+** (required!)
129
+
130
+ ```bash
131
+ # Verify Claude Code is installed
132
+ claude --version
133
+
134
+ # If not installed, get it from:
135
+ # https://docs.anthropic.com/en/docs/claude-code
136
+ ```
137
+
138
+ ### Install Claude MPM
139
+
25
140
  ```bash
26
141
  # Basic installation
27
142
  pip install claude-mpm
28
143
 
29
- # Install with optional MCP services (recommended)
30
- pip install "claude-mpm[mcp]"
144
+ # Install with monitoring dashboard (recommended)
145
+ pip install "claude-mpm[monitor]"
31
146
  ```
32
147
 
33
148
  Or with pipx (recommended for isolated installation):
@@ -35,31 +150,175 @@ Or with pipx (recommended for isolated installation):
35
150
  # Basic installation
36
151
  pipx install claude-mpm
37
152
 
38
- # Install with optional MCP services (recommended)
39
- pipx install "claude-mpm[mcp]"
153
+ # Install with monitoring dashboard (recommended)
154
+ pipx install "claude-mpm[monitor]"
155
+ ```
156
+
157
+ ### Verify Installation
158
+
159
+ ```bash
160
+ # Check versions
161
+ claude-mpm --version
162
+ claude --version
163
+
164
+ # Run diagnostics (checks Claude Code compatibility)
165
+ claude-mpm doctor
40
166
 
41
- # Install with all features
42
- pipx install "claude-mpm[mcp,monitor]"
167
+ # Verify Git repositories are synced
168
+ ls ~/.claude/agents/ # Should show 47+ agents
169
+ ls ~/.claude/skills/ # Should show hundreds of skills
43
170
 
44
- # Configure MCP for pipx users:
45
- claude-mpm mcp-pipx-config
171
+ # Check agent sources
172
+ claude-mpm agent-source list
173
+
174
+ # Check skill sources
175
+ claude-mpm skill-source list
46
176
  ```
47
177
 
178
+ **What You Should See:**
179
+ - ✅ 47+ agents deployed to `~/.claude/agents/`
180
+ - ✅ Hundreds of skills deployed to `~/.claude/skills/`
181
+ - ✅ Two agent sources configured (system + official)
182
+ - ✅ Two skill sources configured (system + official)
183
+ - ✅ Progress bars showing sync and deployment phases
184
+
48
185
  **💡 Optional Dependencies**:
49
- - `[mcp]` - Include MCP services (mcp-vector-search, mcp-browser, mcp-ticketer)
50
186
  - `[monitor]` - Full monitoring dashboard with Socket.IO and async web server components
51
- - **Combine both**: Use `"claude-mpm[mcp,monitor]"` to install all features
52
- - **Note**: kuzu-memory is now a required dependency, always included with Claude MPM
53
- - **Auto-Install**: mcp-vector-search offers interactive installation on first use (pip/pipx choice)
54
- - Without pre-installed MCP dependencies, services install on-demand with user confirmation
187
+ - `[mcp]` - Additional MCP services (mcp-browser, mcp-ticketer) - most users won't need this
55
188
 
56
189
  **🎉 Pipx Support Now Fully Functional!** Recent improvements ensure complete compatibility:
57
190
  - ✅ Socket.IO daemon script path resolution (fixed)
58
- - ✅ Commands directory access (fixed)
191
+ - ✅ Commands directory access (fixed)
59
192
  - ✅ Resource files properly packaged for pipx environments
60
193
  - ✅ Python 3.13+ fully supported
61
194
 
62
- **That's it!** See [QUICKSTART.md](QUICKSTART.md) for immediate usage or [docs/user/installation.md](docs/user/installation.md) for advanced options.
195
+ ## 🤝 Recommended Partner Products
196
+
197
+ Claude MPM works excellently with these complementary MCP tools. While optional, we **strongly recommend** installing them for enhanced capabilities:
198
+
199
+ ### kuzu-memory - Advanced Memory Management
200
+
201
+ **What it does**: Provides persistent, project-specific knowledge graphs that enable agents to learn and retain context across sessions. Your agents will remember project patterns, architectural decisions, and important context automatically.
202
+
203
+ **Installation:**
204
+ ```bash
205
+ pipx install kuzu-memory
206
+ ```
207
+
208
+ **Benefits with Claude MPM:**
209
+ - 🧠 **Persistent Context**: Agents remember project-specific patterns and decisions across sessions
210
+ - 🎯 **Intelligent Prompts**: Automatically enriches agent prompts with relevant historical context
211
+ - 📊 **Knowledge Graphs**: Structured storage of project knowledge, not just flat memory
212
+ - 🔄 **Seamless Integration**: Works transparently in the background with zero configuration
213
+ - 💡 **Smart Learning**: Agents improve over time as they learn your project's patterns
214
+
215
+ **Perfect for**: Long-running projects, teams needing consistent context, complex codebases with deep architectural patterns.
216
+
217
+ **Learn more**: [kuzu-memory on PyPI](https://pypi.org/project/kuzu-memory/) | [GitHub Repository](https://github.com/bobmatnyc/kuzu-memory)
218
+
219
+ ---
220
+
221
+ ### mcp-vector-search - Semantic Code Search
222
+
223
+ **What it does**: Enables semantic code search across your entire codebase using AI embeddings. Find code by what it *does*, not just what it's *named*. Search for "authentication logic" and find relevant functions even if they're named differently.
224
+
225
+ **Installation:**
226
+ ```bash
227
+ pipx install mcp-vector-search
228
+ ```
229
+
230
+ **Benefits with Claude MPM:**
231
+ - 🔍 **Semantic Discovery**: Find code by intent and functionality, not just keywords
232
+ - 🎯 **Context-Aware**: Understand code relationships and similarities automatically
233
+ - ⚡ **Fast Indexing**: Efficient vector embeddings for large codebases
234
+ - 🔄 **Live Updates**: Automatically tracks code changes and updates index
235
+ - 📊 **Pattern Recognition**: Discover similar code patterns and potential refactoring opportunities
236
+
237
+ **Use with**: `/mpm-search "authentication logic"` command in Claude Code sessions or `claude-mpm search` CLI command.
238
+
239
+ **Perfect for**: Large codebases, discovering existing functionality, finding similar implementations, architectural exploration.
240
+
241
+ **Learn more**: [mcp-vector-search on PyPI](https://pypi.org/project/mcp-vector-search/) | [GitHub Repository](https://github.com/bobmatnyc/mcp-vector-search)
242
+
243
+ ---
244
+
245
+ ### Quick Setup - Both Tools
246
+
247
+ Install both recommended tools in one go:
248
+
249
+ ```bash
250
+ pipx install kuzu-memory
251
+ pipx install mcp-vector-search
252
+ ```
253
+
254
+ Then verify they're working:
255
+
256
+ ```bash
257
+ claude-mpm verify
258
+ ```
259
+
260
+ **That's it!** These tools integrate automatically with Claude MPM once installed. No additional configuration needed.
261
+
262
+ **That's it!** See [docs/user/getting-started.md](docs/user/getting-started.md) for immediate usage.
263
+
264
+ ## Cache Management
265
+
266
+ Claude MPM maintains a local cache of agent templates at `~/.claude-mpm/cache/remote-agents/`.
267
+
268
+ ### Cache Structure
269
+
270
+ ```
271
+ ~/.claude-mpm/cache/remote-agents/
272
+ └── bobmatnyc/
273
+ └── claude-mpm-agents/
274
+ ├── .git/ # Git repository
275
+ ├── agents/ # 45+ agent templates
276
+ └── docs/
277
+ ```
278
+
279
+ ### Git Workflow (Optional)
280
+
281
+ If your cache is a git repository, you can manage agents with git operations:
282
+
283
+ ```bash
284
+ # Check cache status
285
+ claude-mpm agents cache-status
286
+
287
+ # Pull latest agents
288
+ claude-mpm agents cache-pull
289
+
290
+ # Commit local changes
291
+ claude-mpm agents cache-commit --message "feat: update agents"
292
+
293
+ # Push changes
294
+ claude-mpm agents cache-push
295
+
296
+ # Full sync workflow
297
+ claude-mpm agents cache-sync
298
+ ```
299
+
300
+ **Or use Makefile targets:**
301
+
302
+ ```bash
303
+ make agents-cache-status # Show git status
304
+ make agents-cache-pull # Pull latest
305
+ make agents-cache-sync # Full sync (pull + commit + push)
306
+ make deploy-agents # Deploy with auto-pull
307
+ ```
308
+
309
+ ### HTTP Sync Fallback
310
+
311
+ If cache is not a git repository, Claude MPM automatically falls back to HTTP sync with GitHub API.
312
+
313
+ ### Migration from Legacy Cache
314
+
315
+ If you have an old `cache/agents/` directory, run the migration script:
316
+
317
+ ```bash
318
+ python scripts/migrate_cache_to_remote_agents.py
319
+ ```
320
+
321
+ **See also:** [docs/CACHE_MANAGEMENT.md](docs/CACHE_MANAGEMENT.md) for comprehensive cache management guide.
63
322
 
64
323
  ## Quick Usage
65
324
 
@@ -104,18 +363,200 @@ claude-mpm verify --json
104
363
 
105
364
  # Manage memory for large conversation histories
106
365
  claude-mpm cleanup-memory
366
+
367
+ # Check for updates (including Claude Code compatibility)
368
+ claude-mpm doctor --checks updates
369
+ ```
370
+
371
+ **💡 Update Checking**: Claude MPM automatically checks for updates and verifies Claude Code compatibility on startup. Configure in `~/.claude-mpm/configuration.yaml` or see [docs/update-checking.md](docs/update-checking.md).
372
+
373
+ See [docs/user/getting-started.md](docs/user/getting-started.md) for complete usage examples.
374
+
375
+ ## Managing Agent & Skill Repositories
376
+
377
+ Claude MPM uses **Git repositories** to distribute and manage agents and skills. This provides automatic updates, version control, and easy sharing of agent/skill libraries.
378
+
379
+ ### Quick Start
380
+
381
+ ```bash
382
+ # Add custom agent repository
383
+ claude-mpm agent-source add https://github.com/yourorg/your-agents
384
+
385
+ # Add custom skill repository
386
+ claude-mpm skill-source add https://github.com/yourorg/your-skills
387
+
388
+ # Test repository without saving (fail-fast validation)
389
+ claude-mpm agent-source add https://github.com/yourorg/your-agents --test
390
+
391
+ # List configured sources
392
+ claude-mpm agent-source list
393
+ claude-mpm skill-source list
394
+
395
+ # Update from all sources
396
+ claude-mpm agent-source update
397
+ claude-mpm skill-source update
398
+ ```
399
+
400
+ ### Priority System
401
+
402
+ When multiple sources provide the same agent/skill, priority controls which one wins:
403
+
404
+ - **Lower number = Higher precedence** (priority 10 beats priority 100)
405
+ - **Local agents/skills** (`.claude-mpm/agents/`, `.claude-mpm/skills/`) always override
406
+ - **System defaults** provide fallback
407
+
408
+ **Example Configuration:**
409
+
410
+ ```yaml
411
+ # ~/.claude-mpm/config/agent_sources.yaml
412
+ repositories:
413
+ - url: https://github.com/myteam/agents
414
+ priority: 10 # Highest precedence (custom agents)
415
+
416
+ - url: https://github.com/bobmatnyc/claude-mpm-agents
417
+ priority: 100 # System default (official agents)
418
+ ```
419
+
420
+ ### Hierarchical Organization with BASE-AGENT.md
421
+
422
+ Support for BASE-AGENT.md enables powerful template inheritance:
423
+
424
+ ```
425
+ your-agents/
426
+ BASE-AGENT.md # Root shared content (all agents inherit)
427
+ engineering/
428
+ BASE-AGENT.md # Engineering-specific (engineering/* inherit)
429
+ python/
430
+ fastapi-engineer.md # Inherits both BASE files
431
+ django-engineer.md # Inherits both BASE files
432
+ rust/
433
+ systems-engineer.md # Inherits both BASE files
434
+ ```
435
+
436
+ **How It Works:**
437
+ 1. **Cascading Inheritance**: Each agent inherits from all BASE-AGENT.md files in parent directories
438
+ 2. **Automatic Flattening**: Nested repositories are automatically flattened during deployment
439
+ 3. **DRY Templates**: Share common instructions across related agents
440
+ 4. **Maintainability**: Update shared content in one place
441
+
442
+ See [docs/features/hierarchical-base-agents.md](docs/features/hierarchical-base-agents.md) for complete guide.
443
+
444
+ ### Configuration via YAML
445
+
446
+ Edit configuration files directly:
447
+ - **Agents**: `~/.claude-mpm/config/agent_sources.yaml`
448
+ - **Skills**: `~/.claude-mpm/config/skill_sources.yaml`
449
+
450
+ **Example agent_sources.yaml:**
451
+
452
+ ```yaml
453
+ repositories:
454
+ - url: https://github.com/bobmatnyc/claude-mpm-agents
455
+ priority: 100
456
+ enabled: true
457
+
458
+ - url: https://github.com/yourorg/custom-agents
459
+ priority: 10
460
+ enabled: true
461
+ ```
462
+
463
+ ### Benefits
464
+
465
+ ✅ **Always Up-to-Date**: Repositories sync automatically on startup
466
+ ✅ **Bandwidth Efficient**: ETag-based caching reduces network usage by 95%+
467
+ ✅ **Version Control**: Track changes through Git history
468
+ ✅ **Immediate Testing**: Fail-fast validation prevents startup issues
469
+ ✅ **Nested Support**: Automatic flattening of directory structures
470
+ ✅ **Template Inheritance**: BASE-AGENT.md for DRY principles
471
+ ✅ **Progress Visibility**: Two-phase progress bars (sync + deployment)
472
+ ✅ **Community Access**: Latest improvements available immediately
473
+ ✅ **Organization Libraries**: Share team-specific content across projects
474
+
475
+ ### Documentation
476
+
477
+ - **[Agent Sources User Guide](docs/user/agent-sources.md)** - Complete guide with examples
478
+ - **[CLI Reference](docs/reference/cli-agent-source.md)** - All `agent-source` commands
479
+ - **[Hierarchical BASE-AGENT.md](docs/features/hierarchical-base-agents.md)** - Template inheritance guide
480
+ - **[Migration Guide](docs/migration/agent-sources-git-default-v4.5.0.md)** - Upgrading from v4.4.x
481
+ - **[Troubleshooting](docs/user/troubleshooting.md#agent-source-issues)** - Common issues and solutions
482
+
483
+ ## Skills Deployment
484
+
485
+ Skills are automatically deployed from Git repositories, just like agents. Claude MPM includes **hundreds of skills** from curated repositories:
486
+
487
+ - **System Skills**: Community skills from `bobmatnyc/claude-mpm-skills`
488
+ - **Official Skills**: Anthropic's official skills from `anthropics/skills`
489
+ - **Custom Skills**: Add your own skill repositories
490
+
491
+ ### Quick Usage
492
+
493
+ ```bash
494
+ # Skills are automatically deployed on first run
495
+ # No manual deployment needed!
496
+
497
+ # Add custom skill repository
498
+ claude-mpm skill-source add https://github.com/yourorg/custom-skills
499
+
500
+ # List configured skill sources
501
+ claude-mpm skill-source list
502
+
503
+ # Update skills from all sources
504
+ claude-mpm skill-source update
505
+ ```
506
+
507
+ ### How Skills Work
508
+
509
+ 1. **Automatic Deployment**: All skills from configured repositories deploy on startup
510
+ 2. **Three-Tier Organization**:
511
+ - **Bundled**: System and official skills (hundreds)
512
+ - **User**: Custom skills in `~/.config/claude-mpm/skills/`
513
+ - **Project**: Project-specific skills in `.claude-mpm/skills/`
514
+ 3. **Priority Resolution**: Project → User → Bundled (local always wins)
515
+ 4. **Auto-Linking**: Skills automatically linked to relevant agents
516
+ 5. **Version Tracking**: All skills support semantic versioning
517
+
518
+ ### Technology → Skills Mapping
519
+
520
+ The Research agent automatically analyzes your project and recommends relevant skills:
521
+
522
+ | Your Technology | Auto-Recommended Skills |
523
+ |-----------------|-------------------------|
524
+ | Python + pytest | test-driven-development, python-style |
525
+ | FastAPI/Flask | backend-engineer |
526
+ | React/Next.js | frontend-development, web-frameworks |
527
+ | Docker | docker-workflow |
528
+ | GitHub Actions | ci-cd-pipeline-builder |
529
+ | Playwright | webapp-testing |
530
+
531
+ ### Interactive Management
532
+
533
+ ```bash
534
+ # Interactive skills wizard
535
+ claude-mpm configure
536
+ # Choose option 2: Skills Management
537
+
538
+ # Features:
539
+ # - View all deployed skills
540
+ # - Configure skill assignments to agents
541
+ # - Auto-link skills based on agent roles
542
+ # - Manage custom skill repositories
107
543
  ```
108
544
 
109
- See [QUICKSTART.md](QUICKSTART.md) for complete usage examples.
545
+ ### Important Notes
110
546
 
547
+ - ⚠️ Skills load at **Claude Code startup only** - restart required after adding repositories
548
+ - ✅ Batch add related skill repositories to minimize restarts
549
+ - ✅ Research agent automatically recommends missing skills during project analysis
550
+ - See [Skills Deployment Guide](docs/guides/skills-deployment-guide.md) for comprehensive details
551
+ - See [Skills Quick Reference](docs/reference/skills-quick-reference.md) for command reference
111
552
 
112
- ## Architecture (v4.4.1)
113
553
 
114
- Following Phase 3 architectural simplification in v4.4.1, Claude MPM features:
554
+ ## Architecture
555
+
556
+ Claude MPM features a clean, service-oriented architecture:
115
557
 
116
558
  - **Streamlined Rich Interface**: Removed complex TUI system (~2,500 lines) for cleaner user experience
117
- - **Optional MCP Services**: mcp-vector-search and kuzu-memory with automatic fallback installation
118
- - **Persistent Knowledge System**: Project-specific kuzu-memory databases with intelligent prompt enrichment
559
+ - **MCP Integration**: Full support for Model Context Protocol services with automatic detection
119
560
  - **Service-Oriented Architecture**: Simplified five specialized service domains
120
561
  - **Interface-Based Contracts**: All services implement explicit interfaces
121
562
  - **Enhanced Performance**: ~3,700 lines removed for better startup time and maintainability
@@ -131,11 +572,26 @@ Claude MPM includes 15 specialized agents:
131
572
 
132
573
  #### Core Development
133
574
  - **Engineer** - Software development and implementation
134
- - **Research** - Code analysis and research
575
+ - **Research** - Code analysis and research
135
576
  - **Documentation** - Documentation creation and maintenance
136
577
  - **QA** - Testing and quality assurance
137
578
  - **Security** - Security analysis and implementation
138
579
 
580
+ #### Language-Specific Engineers
581
+ - **Python Engineer (v2.3.0)** - Type-safe, async-first Python with SOA patterns for non-trivial applications
582
+ - Service-oriented architecture with ABC interfaces for applications
583
+ - Lightweight script patterns for automation and one-off tasks
584
+ - Clear decision criteria for when to use DI/SOA vs simple functions
585
+ - Dependency injection containers with auto-resolution
586
+ - Use for: Web applications, microservices, data pipelines (DI/SOA) or scripts, CLI tools, notebooks (simple functions)
587
+
588
+ - **Rust Engineer (v1.1.0)** - Memory-safe, high-performance systems with trait-based service architecture
589
+ - Dependency injection with traits (constructor injection, trait objects)
590
+ - Service-oriented architecture patterns (repository, builder)
591
+ - Decision criteria for when to use DI/SOA vs simple code
592
+ - Async programming with tokio and zero-cost abstractions
593
+ - Use for: Web services, microservices (DI/SOA) or CLI tools, scripts (simple code)
594
+
139
595
  #### Operations & Infrastructure
140
596
  - **Ops** - Operations and deployment with advanced git commit authority and security verification (v2.2.2+)
141
597
  - **Version Control** - Git and version management
@@ -157,6 +613,41 @@ Claude MPM includes 15 specialized agents:
157
613
  ### Agent Memory System
158
614
  Agents learn project-specific patterns using a simple list format and can update memories via JSON response fields (`remember` for incremental updates, `MEMORIES` for complete replacement). Initialize with `claude-mpm memory init`.
159
615
 
616
+ ### Skills System
617
+
618
+ Claude MPM includes a powerful skills system that eliminates redundant agent guidance through reusable skill modules:
619
+
620
+ **20 Bundled Skills** covering essential development workflows (all versioned starting at 0.1.0):
621
+ - Git workflow, TDD, code review, systematic debugging
622
+ - API documentation, refactoring patterns, performance profiling
623
+ - Docker containerization, database migrations, security scanning
624
+ - JSON/PDF/XLSX handling, async testing, ImageMagick operations
625
+ - Local development servers: Next.js, FastAPI, Vite, Express
626
+ - Web performance: Lighthouse metrics, Core Web Vitals optimization
627
+
628
+ **Three-Tier Organization:**
629
+ - **Bundled**: Core skills included with Claude MPM (~15,000 lines of reusable guidance)
630
+ - **User**: Custom skills in `~/.config/claude-mpm/skills/`
631
+ - **Project**: Project-specific skills in `.claude-mpm/skills/`
632
+
633
+ **Version Tracking:**
634
+ - All skills support semantic versioning (MAJOR.MINOR.PATCH)
635
+ - Check versions with `/mpm-version` command in Claude Code
636
+ - See [Skills Versioning Guide](docs/user/skills-versioning.md) for details
637
+
638
+ **Quick Access:**
639
+ ```bash
640
+ # Interactive skills management
641
+ claude-mpm configure
642
+ # Choose option 2: Skills Management
643
+
644
+ # Auto-link skills to agents based on their roles
645
+ # Configure custom skill assignments
646
+ # View current skill mappings
647
+ ```
648
+
649
+ Skills are automatically injected into agent prompts, reducing template size by 85% while maintaining full capability coverage.
650
+
160
651
  ### MCP Gateway (Model Context Protocol)
161
652
 
162
653
  Claude MPM includes a powerful MCP Gateway that enables:
@@ -179,10 +670,76 @@ claude-mpm cleanup-memory
179
670
  claude-mpm cleanup-memory --days 7
180
671
  ```
181
672
 
673
+ ### Resume Log System
674
+
675
+ **NEW in v4.17.2** - Proactive context management for seamless session continuity.
676
+
677
+ The Resume Log System automatically generates structured 10k-token logs when approaching Claude's context window limits, enabling you to resume work without losing important context.
678
+
679
+ **Key Features**:
680
+ - 🎯 **Graduated Thresholds**: Warnings at 70% (60k buffer), 85% (30k buffer), and 95% (10k buffer)
681
+ - 📋 **Structured Logs**: 10k-token budget intelligently distributed across 7 key sections
682
+ - 🔄 **Seamless Resumption**: Automatically loads previous session context on startup
683
+ - 📁 **Human-Readable**: Markdown format for both Claude and human review
684
+ - ⚙️ **Zero-Configuration**: Works automatically with sensible defaults
685
+
686
+ **How It Works**:
687
+ 1. Monitor token usage continuously throughout session
688
+ 2. Display proactive warnings at 70%, 85%, and 95% thresholds
689
+ 3. Automatically generate resume log when approaching limits
690
+ 4. Load previous resume log when starting new session
691
+ 5. Continue work seamlessly with full context preservation
692
+
693
+ **Example Resume Log Structure**:
694
+ ```markdown
695
+ # Session Resume Log: 20251101_115000
696
+
697
+ ## Context Metrics (500 tokens)
698
+ - Token usage and percentage
699
+
700
+ ## Mission Summary (1,000 tokens)
701
+ - Overall goal and purpose
702
+
703
+ ## Accomplishments (2,000 tokens)
704
+ - What was completed
705
+
706
+ ## Key Findings (2,500 tokens)
707
+ - Important discoveries
708
+
709
+ ## Decisions & Rationale (1,500 tokens)
710
+ - Why choices were made
711
+
712
+ ## Next Steps (1,500 tokens)
713
+ - What to do next
714
+
715
+ ## Critical Context (1,000 tokens)
716
+ - Essential state, IDs, paths
717
+ ```
718
+
719
+ **Configuration** (`.claude-mpm/configuration.yaml`):
720
+ ```yaml
721
+ context_management:
722
+ enabled: true
723
+ budget_total: 200000
724
+ thresholds:
725
+ caution: 0.70 # First warning - plan transition
726
+ warning: 0.85 # Strong warning - wrap up
727
+ critical: 0.95 # Urgent - stop new work
728
+ resume_logs:
729
+ enabled: true
730
+ auto_generate: true
731
+ max_tokens: 10000
732
+ storage_dir: ".claude-mpm/resume-logs"
733
+ ```
734
+
735
+ **QA Status**: 40/41 tests passing (97.6% coverage), APPROVED FOR PRODUCTION ✅
736
+
737
+ See [docs/user/resume-logs.md](docs/user/resume-logs.md) for complete documentation.
738
+
182
739
  ### Real-Time Monitoring
183
740
  The `--monitor` flag opens a web dashboard showing live agent activity, file operations, and session management.
184
741
 
185
- See [docs/MEMORY.md](docs/MEMORY.md) and [docs/developer/11-dashboard/README.md](docs/developer/11-dashboard/README.md) for details.
742
+ See [docs/reference/MEMORY.md](docs/reference/MEMORY.md) and [docs/developer/11-dashboard/README.md](docs/developer/11-dashboard/README.md) for details.
186
743
 
187
744
 
188
745
  ## 📚 Documentation
@@ -195,7 +752,7 @@ See [docs/MEMORY.md](docs/MEMORY.md) and [docs/developer/11-dashboard/README.md]
195
752
  - **[🚀 5-Minute Quick Start](docs/user/quickstart.md)** - Get running immediately
196
753
  - **[📦 Installation Guide](docs/user/installation.md)** - All installation methods
197
754
  - **[📖 User Guide](docs/user/README.md)** - Complete user documentation
198
- - **[❓ FAQ](docs/user/faq.md)** - Common questions answered
755
+ - **[❓ FAQ](docs/guides/FAQ.md)** - Common questions answered
199
756
 
200
757
  #### 💻 For Developers
201
758
  - **[🏗️ Architecture Overview](docs/developer/ARCHITECTURE.md)** - Service-oriented system design
@@ -217,19 +774,39 @@ See [docs/MEMORY.md](docs/MEMORY.md) and [docs/developer/11-dashboard/README.md]
217
774
  - **Single Entry Point**: [docs/README.md](docs/README.md) is your navigation hub
218
775
  - **Clear User Paths**: Organized by user type and experience level
219
776
  - **Cross-Referenced**: Links between related topics and sections
220
- - **Up-to-Date**: Version 4.3.3 with current information
221
-
222
- ## Recent Updates (v4.3.3)
223
-
224
- **Enhanced PM Instructions**: PM2 deployment support and mandatory web-qa verification for quality assurance.
225
-
226
- **Improved Version Management**: Better version comparison logic and agent override warnings for smoother operations.
227
-
228
- **Code Quality Improvements**: Auto-fix code formatting and import management with enhanced standard tools recognition.
229
-
230
- **Documentation Overhaul**: Unified documentation architecture with single entry point and clear navigation paths.
231
-
232
- **Performance Enhancements**: Continued 50-80% performance improvements through intelligent caching and lazy loading.
777
+ - **Up-to-Date**: Version 4.16.3 with web performance optimization skill
778
+
779
+ ## Recent Updates (v5.0) 🎉
780
+
781
+ **Major Release**: Git Repository Integration for Agents & Skills
782
+
783
+ **🚀 What's New:**
784
+ - **Git Repository Support**: Agents and skills now deploy from Git repositories
785
+ - **47+ Agents**: Comprehensive agent library from curated repositories
786
+ - **Hundreds of Skills**: System skills + Official Anthropic skills automatically deployed
787
+ - **Hierarchical BASE-AGENT.md**: Template inheritance for DRY principles
788
+ - **Nested Repository Support**: Automatic flattening of directory structures
789
+ - **Immediate Testing**: Fail-fast validation when adding repositories
790
+ - **Two-Phase Progress**: Clear visibility during sync and deployment
791
+ - **ETag Caching**: 95%+ bandwidth reduction with intelligent caching
792
+
793
+ **🔧 Repository Management:**
794
+ - `claude-mpm agent-source add/list/update` - Manage agent repositories
795
+ - `claude-mpm skill-source add/list/update` - Manage skill repositories
796
+ - Priority-based resolution for multiple sources
797
+ - YAML configuration support
798
+
799
+ **📚 Documentation:**
800
+ - Complete guides for Git repository integration
801
+ - Hierarchical BASE-AGENT.md documentation
802
+ - Migration guides for existing installations
803
+ - Troubleshooting and best practices
804
+
805
+ **🎯 Benefits:**
806
+ - Always up-to-date content from repositories
807
+ - Community-driven agent and skill libraries
808
+ - Easy sharing of organizational content
809
+ - Version control for all templates
233
810
 
234
811
  See [CHANGELOG.md](CHANGELOG.md) for full history and [docs/user/MIGRATION.md](docs/user/MIGRATION.md) for upgrade instructions.
235
812
 
@@ -256,7 +833,7 @@ The project uses automated code formatting and quality checks:
256
833
  See [docs/developer/CODE_FORMATTING.md](docs/developer/CODE_FORMATTING.md) for details.
257
834
 
258
835
  ### Contributing
259
- Contributions are welcome! Please see our [project structure guide](docs/STRUCTURE.md) and follow the established patterns.
836
+ Contributions are welcome! Please see our [project structure guide](docs/reference/STRUCTURE.md) and follow the established patterns.
260
837
 
261
838
  **Development Workflow**:
262
839
  1. Run `make dev-complete` to set up your environment
@@ -264,7 +841,7 @@ Contributions are welcome! Please see our [project structure guide](docs/STRUCTU
264
841
  3. All code must pass quality checks before merging
265
842
 
266
843
  ### Project Structure
267
- See [docs/STRUCTURE.md](docs/STRUCTURE.md) for codebase organization.
844
+ See [docs/reference/STRUCTURE.md](docs/reference/STRUCTURE.md) for codebase organization.
268
845
 
269
846
  ### License
270
847
  MIT License - see [LICENSE](LICENSE) file.
@@ -15,11 +15,11 @@ function checkPythonVersion(pythonCmd) {
15
15
  try {
16
16
  const versionOutput = execSync(`${pythonCmd} --version`, { encoding: 'utf8', stdio: 'pipe' });
17
17
  const versionMatch = versionOutput.match(/Python (\d+)\.(\d+)\.(\d+)/);
18
-
18
+
19
19
  if (!versionMatch) return false;
20
-
20
+
21
21
  const [, major, minor] = versionMatch.map(Number);
22
- return major > REQUIRED_PYTHON_VERSION[0] ||
22
+ return major > REQUIRED_PYTHON_VERSION[0] ||
23
23
  (major === REQUIRED_PYTHON_VERSION[0] && minor >= REQUIRED_PYTHON_VERSION[1]);
24
24
  } catch (error) {
25
25
  return false;
@@ -28,7 +28,7 @@ function checkPythonVersion(pythonCmd) {
28
28
 
29
29
  function findPython() {
30
30
  const pythonCommands = ['python3', 'python', 'python3.11', 'python3.10', 'python3.9', 'python3.8'];
31
-
31
+
32
32
  for (const cmd of pythonCommands) {
33
33
  if (checkPythonVersion(cmd)) {
34
34
  return cmd;
@@ -39,7 +39,7 @@ function findPython() {
39
39
 
40
40
  function main() {
41
41
  const pythonCmd = findPython();
42
-
42
+
43
43
  if (!pythonCmd) {
44
44
  console.error(`
45
45
  ❌ Error: Python ${REQUIRED_PYTHON_VERSION.join('.')}+ is required but not found.
@@ -77,9 +77,9 @@ Or using pip directly:
77
77
 
78
78
  // Launch claude-mpm with all arguments
79
79
  const args = process.argv.slice(2);
80
- const child = spawn(pythonCmd, ['-m', 'claude_mpm'].concat(args), {
80
+ const child = spawn(pythonCmd, ['-m', 'claude_mpm'].concat(args), {
81
81
  stdio: 'inherit',
82
- env: process.env
82
+ env: process.env
83
83
  });
84
84
 
85
85
  child.on('exit', (code) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-mpm",
3
- "version": "4.14.2",
3
+ "version": "5.3.0",
4
4
  "description": "NPM wrapper for claude-mpm Python package - Requires Python 3.8+. Orchestrate Claude with agent delegation and ticket tracking",
5
5
  "keywords": [
6
6
  "claude",