claude-mpm 4.7.4__py3-none-any.whl → 4.18.2__py3-none-any.whl
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.
- claude_mpm/VERSION +1 -1
- claude_mpm/agents/BASE_AGENT_TEMPLATE.md +118 -0
- claude_mpm/agents/BASE_ENGINEER.md +286 -0
- claude_mpm/agents/BASE_PM.md +106 -1
- claude_mpm/agents/OUTPUT_STYLE.md +329 -11
- claude_mpm/agents/PM_INSTRUCTIONS.md +397 -459
- claude_mpm/agents/agent_loader.py +17 -5
- claude_mpm/agents/frontmatter_validator.py +284 -253
- claude_mpm/agents/templates/README.md +465 -0
- claude_mpm/agents/templates/agent-manager.json +4 -1
- claude_mpm/agents/templates/agentic-coder-optimizer.json +13 -3
- claude_mpm/agents/templates/api_qa.json +11 -2
- claude_mpm/agents/templates/circuit_breakers.md +638 -0
- claude_mpm/agents/templates/clerk-ops.json +12 -2
- claude_mpm/agents/templates/code_analyzer.json +8 -2
- claude_mpm/agents/templates/content-agent.json +358 -0
- claude_mpm/agents/templates/dart_engineer.json +15 -2
- claude_mpm/agents/templates/data_engineer.json +15 -2
- claude_mpm/agents/templates/documentation.json +10 -2
- claude_mpm/agents/templates/engineer.json +21 -1
- claude_mpm/agents/templates/gcp_ops_agent.json +12 -2
- claude_mpm/agents/templates/git_file_tracking.md +584 -0
- claude_mpm/agents/templates/golang_engineer.json +270 -0
- claude_mpm/agents/templates/imagemagick.json +4 -1
- claude_mpm/agents/templates/java_engineer.json +346 -0
- claude_mpm/agents/templates/local_ops_agent.json +1227 -6
- claude_mpm/agents/templates/memory_manager.json +4 -1
- claude_mpm/agents/templates/nextjs_engineer.json +141 -133
- claude_mpm/agents/templates/ops.json +12 -2
- claude_mpm/agents/templates/php-engineer.json +270 -174
- claude_mpm/agents/templates/pm_examples.md +474 -0
- claude_mpm/agents/templates/pm_red_flags.md +240 -0
- claude_mpm/agents/templates/product_owner.json +338 -0
- claude_mpm/agents/templates/project_organizer.json +14 -4
- claude_mpm/agents/templates/prompt-engineer.json +13 -2
- claude_mpm/agents/templates/python_engineer.json +174 -81
- claude_mpm/agents/templates/qa.json +11 -2
- claude_mpm/agents/templates/react_engineer.json +16 -3
- claude_mpm/agents/templates/refactoring_engineer.json +12 -2
- claude_mpm/agents/templates/research.json +34 -21
- claude_mpm/agents/templates/response_format.md +583 -0
- claude_mpm/agents/templates/ruby-engineer.json +129 -192
- claude_mpm/agents/templates/rust_engineer.json +270 -0
- claude_mpm/agents/templates/security.json +10 -2
- claude_mpm/agents/templates/svelte-engineer.json +225 -0
- claude_mpm/agents/templates/ticketing.json +10 -2
- claude_mpm/agents/templates/typescript_engineer.json +116 -125
- claude_mpm/agents/templates/validation_templates.md +312 -0
- claude_mpm/agents/templates/vercel_ops_agent.json +12 -2
- claude_mpm/agents/templates/version_control.json +12 -2
- claude_mpm/agents/templates/web_qa.json +11 -2
- claude_mpm/agents/templates/web_ui.json +15 -2
- claude_mpm/cli/__init__.py +34 -614
- claude_mpm/cli/commands/agent_manager.py +25 -12
- claude_mpm/cli/commands/agent_state_manager.py +186 -0
- claude_mpm/cli/commands/agents.py +235 -148
- claude_mpm/cli/commands/agents_detect.py +380 -0
- claude_mpm/cli/commands/agents_recommend.py +309 -0
- claude_mpm/cli/commands/aggregate.py +7 -3
- claude_mpm/cli/commands/analyze.py +9 -4
- claude_mpm/cli/commands/analyze_code.py +7 -2
- claude_mpm/cli/commands/auto_configure.py +570 -0
- claude_mpm/cli/commands/config.py +47 -13
- claude_mpm/cli/commands/configure.py +419 -1571
- claude_mpm/cli/commands/configure_agent_display.py +261 -0
- claude_mpm/cli/commands/configure_behavior_manager.py +204 -0
- claude_mpm/cli/commands/configure_hook_manager.py +225 -0
- claude_mpm/cli/commands/configure_models.py +18 -0
- claude_mpm/cli/commands/configure_navigation.py +167 -0
- claude_mpm/cli/commands/configure_paths.py +104 -0
- claude_mpm/cli/commands/configure_persistence.py +254 -0
- claude_mpm/cli/commands/configure_startup_manager.py +646 -0
- claude_mpm/cli/commands/configure_template_editor.py +497 -0
- claude_mpm/cli/commands/configure_validators.py +73 -0
- claude_mpm/cli/commands/local_deploy.py +537 -0
- claude_mpm/cli/commands/memory.py +54 -20
- claude_mpm/cli/commands/mpm_init.py +585 -196
- claude_mpm/cli/commands/mpm_init_handler.py +37 -3
- claude_mpm/cli/commands/search.py +170 -4
- claude_mpm/cli/commands/upgrade.py +152 -0
- claude_mpm/cli/executor.py +202 -0
- claude_mpm/cli/helpers.py +105 -0
- claude_mpm/cli/interactive/__init__.py +3 -0
- claude_mpm/cli/interactive/skills_wizard.py +491 -0
- claude_mpm/cli/parsers/__init__.py +7 -1
- claude_mpm/cli/parsers/agents_parser.py +9 -0
- claude_mpm/cli/parsers/auto_configure_parser.py +245 -0
- claude_mpm/cli/parsers/base_parser.py +110 -3
- claude_mpm/cli/parsers/local_deploy_parser.py +227 -0
- claude_mpm/cli/parsers/mpm_init_parser.py +65 -5
- claude_mpm/cli/shared/output_formatters.py +28 -19
- claude_mpm/cli/startup.py +481 -0
- claude_mpm/cli/utils.py +52 -1
- claude_mpm/commands/mpm-agents-detect.md +168 -0
- claude_mpm/commands/mpm-agents-recommend.md +214 -0
- claude_mpm/commands/mpm-agents.md +75 -1
- claude_mpm/commands/mpm-auto-configure.md +217 -0
- claude_mpm/commands/mpm-help.md +163 -0
- claude_mpm/commands/mpm-init.md +148 -3
- claude_mpm/commands/mpm-version.md +113 -0
- claude_mpm/commands/mpm.md +1 -0
- claude_mpm/config/agent_config.py +2 -2
- claude_mpm/config/model_config.py +428 -0
- claude_mpm/constants.py +1 -0
- claude_mpm/core/base_service.py +13 -12
- claude_mpm/core/enums.py +452 -0
- claude_mpm/core/factories.py +1 -1
- claude_mpm/core/instruction_reinforcement_hook.py +2 -1
- claude_mpm/core/interactive_session.py +9 -3
- claude_mpm/core/log_manager.py +2 -0
- claude_mpm/core/logging_config.py +6 -2
- claude_mpm/core/oneshot_session.py +8 -4
- claude_mpm/core/optimized_agent_loader.py +3 -3
- claude_mpm/core/output_style_manager.py +12 -192
- claude_mpm/core/service_registry.py +5 -1
- claude_mpm/core/types.py +2 -9
- claude_mpm/core/typing_utils.py +7 -6
- claude_mpm/dashboard/static/js/dashboard.js +0 -14
- claude_mpm/dashboard/templates/index.html +3 -41
- claude_mpm/hooks/__init__.py +20 -0
- claude_mpm/hooks/claude_hooks/event_handlers.py +4 -2
- claude_mpm/hooks/claude_hooks/response_tracking.py +35 -1
- claude_mpm/hooks/claude_hooks/services/connection_manager_http.py +23 -2
- claude_mpm/hooks/failure_learning/__init__.py +60 -0
- claude_mpm/hooks/failure_learning/failure_detection_hook.py +235 -0
- claude_mpm/hooks/failure_learning/fix_detection_hook.py +217 -0
- claude_mpm/hooks/failure_learning/learning_extraction_hook.py +286 -0
- claude_mpm/hooks/instruction_reinforcement.py +7 -2
- claude_mpm/hooks/kuzu_enrichment_hook.py +263 -0
- claude_mpm/hooks/kuzu_memory_hook.py +37 -12
- claude_mpm/hooks/kuzu_response_hook.py +183 -0
- claude_mpm/models/resume_log.py +340 -0
- claude_mpm/services/agents/__init__.py +18 -5
- claude_mpm/services/agents/auto_config_manager.py +796 -0
- claude_mpm/services/agents/deployment/agent_configuration_manager.py +1 -1
- claude_mpm/services/agents/deployment/agent_record_service.py +1 -1
- claude_mpm/services/agents/deployment/agent_validator.py +17 -1
- claude_mpm/services/agents/deployment/async_agent_deployment.py +1 -1
- claude_mpm/services/agents/deployment/interface_adapter.py +3 -2
- claude_mpm/services/agents/deployment/local_template_deployment.py +1 -1
- claude_mpm/services/agents/deployment/pipeline/steps/agent_processing_step.py +7 -6
- claude_mpm/services/agents/deployment/pipeline/steps/base_step.py +7 -16
- claude_mpm/services/agents/deployment/pipeline/steps/configuration_step.py +4 -3
- claude_mpm/services/agents/deployment/pipeline/steps/target_directory_step.py +5 -3
- claude_mpm/services/agents/deployment/pipeline/steps/validation_step.py +6 -5
- claude_mpm/services/agents/deployment/refactored_agent_deployment_service.py +9 -6
- claude_mpm/services/agents/deployment/validation/__init__.py +3 -1
- claude_mpm/services/agents/deployment/validation/validation_result.py +1 -9
- claude_mpm/services/agents/local_template_manager.py +1 -1
- claude_mpm/services/agents/memory/agent_memory_manager.py +5 -2
- claude_mpm/services/agents/observers.py +547 -0
- claude_mpm/services/agents/recommender.py +568 -0
- claude_mpm/services/agents/registry/modification_tracker.py +5 -2
- claude_mpm/services/command_handler_service.py +11 -5
- claude_mpm/services/core/__init__.py +33 -1
- claude_mpm/services/core/interfaces/__init__.py +90 -3
- claude_mpm/services/core/interfaces/agent.py +184 -0
- claude_mpm/services/core/interfaces/health.py +172 -0
- claude_mpm/services/core/interfaces/model.py +281 -0
- claude_mpm/services/core/interfaces/process.py +372 -0
- claude_mpm/services/core/interfaces/project.py +121 -0
- claude_mpm/services/core/interfaces/restart.py +307 -0
- claude_mpm/services/core/interfaces/stability.py +260 -0
- claude_mpm/services/core/memory_manager.py +11 -24
- claude_mpm/services/core/models/__init__.py +79 -0
- claude_mpm/services/core/models/agent_config.py +381 -0
- claude_mpm/services/core/models/health.py +162 -0
- claude_mpm/services/core/models/process.py +235 -0
- claude_mpm/services/core/models/restart.py +302 -0
- claude_mpm/services/core/models/stability.py +264 -0
- claude_mpm/services/core/models/toolchain.py +306 -0
- claude_mpm/services/core/path_resolver.py +23 -7
- claude_mpm/services/diagnostics/__init__.py +2 -2
- claude_mpm/services/diagnostics/checks/agent_check.py +25 -24
- claude_mpm/services/diagnostics/checks/claude_code_check.py +24 -23
- claude_mpm/services/diagnostics/checks/common_issues_check.py +25 -24
- claude_mpm/services/diagnostics/checks/configuration_check.py +24 -23
- claude_mpm/services/diagnostics/checks/filesystem_check.py +18 -17
- claude_mpm/services/diagnostics/checks/installation_check.py +30 -29
- claude_mpm/services/diagnostics/checks/instructions_check.py +20 -19
- claude_mpm/services/diagnostics/checks/mcp_check.py +50 -36
- claude_mpm/services/diagnostics/checks/mcp_services_check.py +38 -33
- claude_mpm/services/diagnostics/checks/monitor_check.py +23 -22
- claude_mpm/services/diagnostics/checks/startup_log_check.py +9 -8
- claude_mpm/services/diagnostics/diagnostic_runner.py +6 -5
- claude_mpm/services/diagnostics/doctor_reporter.py +28 -25
- claude_mpm/services/diagnostics/models.py +19 -24
- claude_mpm/services/infrastructure/monitoring/__init__.py +1 -1
- claude_mpm/services/infrastructure/monitoring/aggregator.py +12 -12
- claude_mpm/services/infrastructure/monitoring/base.py +5 -13
- claude_mpm/services/infrastructure/monitoring/network.py +7 -6
- claude_mpm/services/infrastructure/monitoring/process.py +13 -12
- claude_mpm/services/infrastructure/monitoring/resources.py +7 -6
- claude_mpm/services/infrastructure/monitoring/service.py +16 -15
- claude_mpm/services/infrastructure/resume_log_generator.py +439 -0
- claude_mpm/services/local_ops/__init__.py +163 -0
- claude_mpm/services/local_ops/crash_detector.py +257 -0
- claude_mpm/services/local_ops/health_checks/__init__.py +28 -0
- claude_mpm/services/local_ops/health_checks/http_check.py +224 -0
- claude_mpm/services/local_ops/health_checks/process_check.py +236 -0
- claude_mpm/services/local_ops/health_checks/resource_check.py +255 -0
- claude_mpm/services/local_ops/health_manager.py +430 -0
- claude_mpm/services/local_ops/log_monitor.py +396 -0
- claude_mpm/services/local_ops/memory_leak_detector.py +294 -0
- claude_mpm/services/local_ops/process_manager.py +595 -0
- claude_mpm/services/local_ops/resource_monitor.py +331 -0
- claude_mpm/services/local_ops/restart_manager.py +401 -0
- claude_mpm/services/local_ops/restart_policy.py +387 -0
- claude_mpm/services/local_ops/state_manager.py +372 -0
- claude_mpm/services/local_ops/unified_manager.py +600 -0
- claude_mpm/services/mcp_config_manager.py +9 -4
- claude_mpm/services/mcp_gateway/core/__init__.py +1 -2
- claude_mpm/services/mcp_gateway/core/base.py +18 -31
- claude_mpm/services/mcp_gateway/main.py +30 -0
- claude_mpm/services/mcp_gateway/tools/external_mcp_services.py +206 -32
- claude_mpm/services/mcp_gateway/tools/health_check_tool.py +30 -28
- claude_mpm/services/mcp_gateway/tools/kuzu_memory_service.py +25 -5
- claude_mpm/services/mcp_service_verifier.py +1 -1
- claude_mpm/services/memory/failure_tracker.py +563 -0
- claude_mpm/services/memory_hook_service.py +165 -4
- claude_mpm/services/model/__init__.py +147 -0
- claude_mpm/services/model/base_provider.py +365 -0
- claude_mpm/services/model/claude_provider.py +412 -0
- claude_mpm/services/model/model_router.py +453 -0
- claude_mpm/services/model/ollama_provider.py +415 -0
- claude_mpm/services/monitor/daemon_manager.py +3 -2
- claude_mpm/services/monitor/handlers/dashboard.py +2 -1
- claude_mpm/services/monitor/handlers/hooks.py +2 -1
- claude_mpm/services/monitor/management/lifecycle.py +3 -2
- claude_mpm/services/monitor/server.py +2 -1
- claude_mpm/services/project/__init__.py +23 -0
- claude_mpm/services/project/detection_strategies.py +719 -0
- claude_mpm/services/project/toolchain_analyzer.py +581 -0
- claude_mpm/services/self_upgrade_service.py +342 -0
- claude_mpm/services/session_management_service.py +3 -2
- claude_mpm/services/session_manager.py +205 -1
- claude_mpm/services/shared/async_service_base.py +16 -27
- claude_mpm/services/shared/lifecycle_service_base.py +1 -14
- claude_mpm/services/socketio/handlers/__init__.py +5 -2
- claude_mpm/services/socketio/handlers/hook.py +13 -2
- claude_mpm/services/socketio/handlers/registry.py +4 -2
- claude_mpm/services/socketio/server/main.py +10 -8
- claude_mpm/services/subprocess_launcher_service.py +14 -5
- claude_mpm/services/unified/analyzer_strategies/code_analyzer.py +8 -7
- claude_mpm/services/unified/analyzer_strategies/dependency_analyzer.py +6 -5
- claude_mpm/services/unified/analyzer_strategies/performance_analyzer.py +8 -7
- claude_mpm/services/unified/analyzer_strategies/security_analyzer.py +7 -6
- claude_mpm/services/unified/analyzer_strategies/structure_analyzer.py +5 -4
- claude_mpm/services/unified/config_strategies/validation_strategy.py +13 -9
- claude_mpm/services/unified/deployment_strategies/cloud_strategies.py +10 -3
- claude_mpm/services/unified/deployment_strategies/local.py +6 -5
- claude_mpm/services/unified/deployment_strategies/utils.py +6 -5
- claude_mpm/services/unified/deployment_strategies/vercel.py +7 -6
- claude_mpm/services/unified/interfaces.py +3 -1
- claude_mpm/services/unified/unified_analyzer.py +14 -10
- claude_mpm/services/unified/unified_config.py +2 -1
- claude_mpm/services/unified/unified_deployment.py +9 -4
- claude_mpm/services/version_service.py +104 -1
- claude_mpm/skills/__init__.py +21 -0
- claude_mpm/skills/bundled/__init__.py +6 -0
- claude_mpm/skills/bundled/api-documentation.md +393 -0
- claude_mpm/skills/bundled/async-testing.md +571 -0
- claude_mpm/skills/bundled/code-review.md +143 -0
- claude_mpm/skills/bundled/database-migration.md +199 -0
- claude_mpm/skills/bundled/docker-containerization.md +194 -0
- claude_mpm/skills/bundled/express-local-dev.md +1429 -0
- claude_mpm/skills/bundled/fastapi-local-dev.md +1199 -0
- claude_mpm/skills/bundled/git-workflow.md +414 -0
- claude_mpm/skills/bundled/imagemagick.md +204 -0
- claude_mpm/skills/bundled/json-data-handling.md +223 -0
- claude_mpm/skills/bundled/nextjs-local-dev.md +807 -0
- claude_mpm/skills/bundled/pdf.md +141 -0
- claude_mpm/skills/bundled/performance-profiling.md +567 -0
- claude_mpm/skills/bundled/refactoring-patterns.md +180 -0
- claude_mpm/skills/bundled/security-scanning.md +327 -0
- claude_mpm/skills/bundled/systematic-debugging.md +473 -0
- claude_mpm/skills/bundled/test-driven-development.md +378 -0
- claude_mpm/skills/bundled/vite-local-dev.md +1061 -0
- claude_mpm/skills/bundled/web-performance-optimization.md +2305 -0
- claude_mpm/skills/bundled/xlsx.md +157 -0
- claude_mpm/skills/registry.py +286 -0
- claude_mpm/skills/skill_manager.py +310 -0
- claude_mpm/storage/state_storage.py +15 -15
- claude_mpm/tools/code_tree_analyzer.py +177 -141
- claude_mpm/tools/code_tree_events.py +4 -2
- claude_mpm/utils/agent_dependency_loader.py +40 -20
- claude_mpm/utils/display_helper.py +260 -0
- claude_mpm/utils/git_analyzer.py +407 -0
- claude_mpm/utils/robust_installer.py +73 -19
- {claude_mpm-4.7.4.dist-info → claude_mpm-4.18.2.dist-info}/METADATA +129 -12
- {claude_mpm-4.7.4.dist-info → claude_mpm-4.18.2.dist-info}/RECORD +295 -193
- claude_mpm/dashboard/static/css/code-tree.css +0 -1639
- claude_mpm/dashboard/static/index-hub-backup.html +0 -713
- claude_mpm/dashboard/static/js/components/code-tree/tree-breadcrumb.js +0 -353
- claude_mpm/dashboard/static/js/components/code-tree/tree-constants.js +0 -235
- claude_mpm/dashboard/static/js/components/code-tree/tree-search.js +0 -409
- claude_mpm/dashboard/static/js/components/code-tree/tree-utils.js +0 -435
- claude_mpm/dashboard/static/js/components/code-tree.js +0 -5869
- claude_mpm/dashboard/static/js/components/code-viewer.js +0 -1386
- claude_mpm/hooks/claude_hooks/hook_handler_eventbus.py +0 -425
- claude_mpm/hooks/claude_hooks/hook_handler_original.py +0 -1041
- claude_mpm/hooks/claude_hooks/hook_handler_refactored.py +0 -347
- claude_mpm/services/agents/deployment/agent_lifecycle_manager_refactored.py +0 -575
- claude_mpm/services/project/analyzer_refactored.py +0 -450
- {claude_mpm-4.7.4.dist-info → claude_mpm-4.18.2.dist-info}/WHEEL +0 -0
- {claude_mpm-4.7.4.dist-info → claude_mpm-4.18.2.dist-info}/entry_points.txt +0 -0
- {claude_mpm-4.7.4.dist-info → claude_mpm-4.18.2.dist-info}/licenses/LICENSE +0 -0
- {claude_mpm-4.7.4.dist-info → claude_mpm-4.18.2.dist-info}/top_level.txt +0 -0
claude_mpm/commands/mpm-help.md
CHANGED
|
@@ -66,6 +66,15 @@ Available Commands:
|
|
|
66
66
|
/mpm-agents [list|deploy|remove] [name]
|
|
67
67
|
Manage agent deployment
|
|
68
68
|
|
|
69
|
+
/mpm-auto-configure [--preview] [--yes]
|
|
70
|
+
🤖 NEW! Automatically configure agents based on your project
|
|
71
|
+
|
|
72
|
+
/mpm-agents-detect
|
|
73
|
+
🤖 NEW! Detect project toolchain and frameworks
|
|
74
|
+
|
|
75
|
+
/mpm-agents-recommend
|
|
76
|
+
🤖 NEW! Show recommended agents for your project
|
|
77
|
+
|
|
69
78
|
/mpm-config [validate|view|status]
|
|
70
79
|
Manage configuration settings
|
|
71
80
|
|
|
@@ -81,6 +90,9 @@ Available Commands:
|
|
|
81
90
|
/mpm-monitor [start|stop|restart|status|port]
|
|
82
91
|
Manage Socket.IO monitoring server and dashboard
|
|
83
92
|
|
|
93
|
+
/mpm-version
|
|
94
|
+
Display comprehensive version information including project version, all agents with versions, and all skills with versions
|
|
95
|
+
|
|
84
96
|
Use '/mpm-help <command>' for detailed help on a specific command.
|
|
85
97
|
```
|
|
86
98
|
|
|
@@ -118,6 +130,157 @@ Related Commands:
|
|
|
118
130
|
/mpm-config Manage configuration
|
|
119
131
|
```
|
|
120
132
|
|
|
133
|
+
## Auto-Configuration Commands (NEW!)
|
|
134
|
+
|
|
135
|
+
### /mpm-auto-configure - Automatic Agent Configuration
|
|
136
|
+
|
|
137
|
+
**Description:**
|
|
138
|
+
Automatically detects your project's toolchain and frameworks, then recommends and optionally deploys the most appropriate agents for your stack.
|
|
139
|
+
|
|
140
|
+
**Usage:**
|
|
141
|
+
```
|
|
142
|
+
/mpm-auto-configure [options]
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
**Options:**
|
|
146
|
+
- `--preview` - Show what would be configured without making changes
|
|
147
|
+
- `--yes` - Skip confirmation prompts and apply automatically
|
|
148
|
+
- `--force` - Force reconfiguration even if agents already deployed
|
|
149
|
+
|
|
150
|
+
**Examples:**
|
|
151
|
+
```
|
|
152
|
+
/mpm-auto-configure --preview # Preview recommendations
|
|
153
|
+
/mpm-auto-configure # Interactive configuration
|
|
154
|
+
/mpm-auto-configure --yes # Auto-apply recommendations
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
**What it detects:**
|
|
158
|
+
- Programming languages (Python, Node.js, Rust, Go, Java)
|
|
159
|
+
- Frameworks (FastAPI, Flask, Next.js, React, Vue, Express)
|
|
160
|
+
- Testing tools (pytest, Jest, Vitest, Playwright)
|
|
161
|
+
- Build tools (Vite, Webpack, Rollup)
|
|
162
|
+
- Package managers (npm, yarn, pnpm, pip, poetry)
|
|
163
|
+
- Deployment platforms (Vercel, Railway, Docker)
|
|
164
|
+
|
|
165
|
+
**Recommended agents by stack:**
|
|
166
|
+
- **Python + FastAPI**: fastapi-engineer, python-engineer, api-qa
|
|
167
|
+
- **Next.js**: nextjs-engineer, react-engineer, web-qa
|
|
168
|
+
- **React**: react-engineer, web-qa
|
|
169
|
+
- **Full-stack**: Combination of backend + frontend agents
|
|
170
|
+
- **Testing**: playwright-qa, api-qa based on detected test tools
|
|
171
|
+
|
|
172
|
+
### /mpm-agents-detect - Toolchain Detection
|
|
173
|
+
|
|
174
|
+
**Description:**
|
|
175
|
+
Scans your project to detect programming languages, frameworks, tools, and configuration files.
|
|
176
|
+
|
|
177
|
+
**Usage:**
|
|
178
|
+
```
|
|
179
|
+
/mpm-agents-detect
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
**Output:**
|
|
183
|
+
- Detected languages and versions
|
|
184
|
+
- Frameworks and their configurations
|
|
185
|
+
- Testing tools and test frameworks
|
|
186
|
+
- Build tools and bundlers
|
|
187
|
+
- Package managers
|
|
188
|
+
- Deployment configurations
|
|
189
|
+
|
|
190
|
+
**Example:**
|
|
191
|
+
```
|
|
192
|
+
/mpm-agents-detect
|
|
193
|
+
|
|
194
|
+
Detected Project Stack:
|
|
195
|
+
======================
|
|
196
|
+
Languages: Python 3.11, Node.js 20.x
|
|
197
|
+
Frameworks: FastAPI 0.104.0, React 18.2.0
|
|
198
|
+
Testing: pytest, Playwright
|
|
199
|
+
Build: Vite 5.0.0
|
|
200
|
+
Package Manager: poetry, npm
|
|
201
|
+
Deployment: Docker, Vercel
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### /mpm-agents-recommend - Agent Recommendations
|
|
205
|
+
|
|
206
|
+
**Description:**
|
|
207
|
+
Based on detected toolchain, shows which agents are recommended for your project with explanations.
|
|
208
|
+
|
|
209
|
+
**Usage:**
|
|
210
|
+
```
|
|
211
|
+
/mpm-agents-recommend
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
**Output:**
|
|
215
|
+
- Recommended agents with rationale
|
|
216
|
+
- Agent capabilities and when to use them
|
|
217
|
+
- Suggested deployment order
|
|
218
|
+
- Complementary agent combinations
|
|
219
|
+
|
|
220
|
+
**Example:**
|
|
221
|
+
```
|
|
222
|
+
/mpm-agents-recommend
|
|
223
|
+
|
|
224
|
+
Recommended Agents for Your Project:
|
|
225
|
+
===================================
|
|
226
|
+
|
|
227
|
+
Essential Agents:
|
|
228
|
+
✓ fastapi-engineer - Detected FastAPI framework
|
|
229
|
+
✓ python-engineer - Python 3.11 project
|
|
230
|
+
✓ api-qa - API testing and validation
|
|
231
|
+
|
|
232
|
+
Recommended Agents:
|
|
233
|
+
○ react-engineer - React frontend detected
|
|
234
|
+
○ web-qa - Web UI testing
|
|
235
|
+
○ playwright-qa - Playwright tests found
|
|
236
|
+
|
|
237
|
+
Optional Agents:
|
|
238
|
+
○ docker-ops - Docker configuration found
|
|
239
|
+
○ vercel-ops - Vercel deployment detected
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
## Quick Start with Auto-Configuration
|
|
243
|
+
|
|
244
|
+
For new projects or first-time setup:
|
|
245
|
+
|
|
246
|
+
1. **Preview what would be configured:**
|
|
247
|
+
```
|
|
248
|
+
/mpm-auto-configure --preview
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
2. **Review recommendations:**
|
|
252
|
+
```
|
|
253
|
+
/mpm-agents-recommend
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
3. **Apply configuration:**
|
|
257
|
+
```
|
|
258
|
+
/mpm-auto-configure
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
Or skip straight to auto-apply:
|
|
262
|
+
```
|
|
263
|
+
/mpm-auto-configure --yes
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
## Supported Technology Stacks
|
|
267
|
+
|
|
268
|
+
**Python:**
|
|
269
|
+
- FastAPI, Flask, Django, Starlette
|
|
270
|
+
- pytest, unittest
|
|
271
|
+
- uvicorn, gunicorn
|
|
272
|
+
|
|
273
|
+
**JavaScript/TypeScript:**
|
|
274
|
+
- Next.js, React, Vue, Svelte
|
|
275
|
+
- Express, Nest.js, Fastify
|
|
276
|
+
- Jest, Vitest, Playwright
|
|
277
|
+
- Vite, Webpack, Rollup
|
|
278
|
+
|
|
279
|
+
**Other:**
|
|
280
|
+
- Rust (Cargo, Actix, Rocket)
|
|
281
|
+
- Go (modules, Gin, Echo)
|
|
282
|
+
- Java (Maven, Gradle, Spring Boot)
|
|
283
|
+
|
|
121
284
|
## Related Commands
|
|
122
285
|
|
|
123
286
|
- All other `/mpm-*` commands - Access help for any command
|
claude_mpm/commands/mpm-init.md
CHANGED
|
@@ -7,6 +7,9 @@ Initialize or intelligently update your project for optimal use with Claude Code
|
|
|
7
7
|
```
|
|
8
8
|
/mpm-init # Auto-detects and offers update or create
|
|
9
9
|
/mpm-init update # Lightweight update based on recent git activity
|
|
10
|
+
/mpm-init context # Intelligent context analysis from git history
|
|
11
|
+
/mpm-init context --days 14 # Analyze last 14 days of git history
|
|
12
|
+
/mpm-init catchup # Quick commit history display (no analysis)
|
|
10
13
|
/mpm-init --review # Review project state without changes
|
|
11
14
|
/mpm-init --update # Full update of existing CLAUDE.md
|
|
12
15
|
/mpm-init --organize # Organize project structure
|
|
@@ -17,7 +20,11 @@ Initialize or intelligently update your project for optimal use with Claude Code
|
|
|
17
20
|
|
|
18
21
|
## Description
|
|
19
22
|
|
|
20
|
-
This command
|
|
23
|
+
This command has two primary modes:
|
|
24
|
+
- **Project initialization/updates**: Delegates to the Agentic Coder Optimizer agent for documentation, tooling, and workflow setup
|
|
25
|
+
- **Context analysis** (context/catchup): Provides intelligent project context from git history for resuming work
|
|
26
|
+
|
|
27
|
+
**Note**: The `resume` subcommand is deprecated. Use `context` instead. The `resume` command still works for backward compatibility but will be removed in a future version.
|
|
21
28
|
|
|
22
29
|
**Quick Update Mode**: Running `/mpm-init update` performs a lightweight update focused on recent git activity. It analyzes recent commits, generates an activity report, and updates documentation with minimal changes. Perfect for quick refreshes after development sprints.
|
|
23
30
|
|
|
@@ -54,6 +61,46 @@ This command delegates to the Agentic Coder Optimizer agent to establish clear,
|
|
|
54
61
|
- `--no-preserve-custom`: Don't preserve custom sections
|
|
55
62
|
- `--skip-archive`: Skip archiving existing files before updating
|
|
56
63
|
|
|
64
|
+
## Context Analysis
|
|
65
|
+
|
|
66
|
+
**Purpose**: Provide intelligent project context for resuming work by analyzing git history.
|
|
67
|
+
|
|
68
|
+
### Commands
|
|
69
|
+
|
|
70
|
+
#### `/mpm-init context` (Primary)
|
|
71
|
+
```bash
|
|
72
|
+
/mpm-init context # Analyze last 7 days of git history
|
|
73
|
+
/mpm-init context --days 14 # Analyze last 14 days
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Analyzes recent git commits to identify:
|
|
77
|
+
- **Active work streams**: What was being worked on (themes from commit patterns)
|
|
78
|
+
- **Intent and motivation**: Why this work matters (from commit messages)
|
|
79
|
+
- **Risks and blockers**: What needs attention (stalled work, conflicts, anti-patterns)
|
|
80
|
+
- **Recommended next actions**: What to work on next (logical continuations)
|
|
81
|
+
|
|
82
|
+
**How it works**:
|
|
83
|
+
1. Parses git history (default: last 7 days)
|
|
84
|
+
2. PM delegates to Research agent with structured prompt
|
|
85
|
+
3. Research analyzes work streams, intent, risks, recommendations
|
|
86
|
+
4. PM presents intelligent summary for seamless work resumption
|
|
87
|
+
|
|
88
|
+
**NOT session state**: This does NOT save/restore conversation state like Claude Code. Instead, it reconstructs project context from git history using conventional commits and commit message analysis.
|
|
89
|
+
|
|
90
|
+
#### `/mpm-init resume` [DEPRECATED]
|
|
91
|
+
Alias for `context`. Use `context` instead.
|
|
92
|
+
|
|
93
|
+
### `/mpm-init catchup` (Simple Git History)
|
|
94
|
+
```bash
|
|
95
|
+
/mpm-init catchup
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Quick display of last 25 commits across all branches. No analysis - just raw git log output with authors and dates. Use this for quick "what happened recently?" checks.
|
|
99
|
+
|
|
100
|
+
**Distinction**:
|
|
101
|
+
- **catchup**: Quick commit history (instant, no analysis)
|
|
102
|
+
- **context**: Intelligent work resumption (10-30s, deep analysis)
|
|
103
|
+
|
|
57
104
|
## What This Command Does
|
|
58
105
|
|
|
59
106
|
### Auto-Detection (NEW)
|
|
@@ -146,6 +193,53 @@ Fast update based on recent 30-day git activity. Generates activity report and u
|
|
|
146
193
|
|
|
147
194
|
**Note**: Typing `/mpm-init update` executes `claude-mpm mpm-init --quick-update` automatically.
|
|
148
195
|
|
|
196
|
+
### Context Analysis (Intelligent Resumption)
|
|
197
|
+
|
|
198
|
+
Get intelligent context for resuming work based on git history analysis:
|
|
199
|
+
|
|
200
|
+
**Standard Context Analysis:**
|
|
201
|
+
```bash
|
|
202
|
+
/mpm-init context # Analyze last 7 days (default)
|
|
203
|
+
/mpm-init context --days 14 # Analyze last 14 days
|
|
204
|
+
/mpm-init context --days 30 # Analyze last 30 days
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
This provides intelligent analysis including:
|
|
208
|
+
- **Work stream identification** from commit patterns
|
|
209
|
+
- **Intent analysis** (why work was done)
|
|
210
|
+
- **Risk detection** (stalled work, conflicts, etc.)
|
|
211
|
+
- **Recommended next actions** for seamless continuation
|
|
212
|
+
|
|
213
|
+
**How it works:**
|
|
214
|
+
1. Parses git history (7 days default)
|
|
215
|
+
2. PM delegates to Research agent with structured prompt
|
|
216
|
+
3. Research agent provides deep analysis
|
|
217
|
+
4. PM presents intelligent summary
|
|
218
|
+
|
|
219
|
+
**NOT session state**: This reconstructs context from git history, not saved conversation state.
|
|
220
|
+
|
|
221
|
+
**Backward Compatibility:**
|
|
222
|
+
```bash
|
|
223
|
+
/mpm-init resume # Still works but deprecated
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
The old `resume` command redirects to `context` with a deprecation warning.
|
|
227
|
+
|
|
228
|
+
### Quick Git History (Catchup)
|
|
229
|
+
|
|
230
|
+
Display recent commit history without analysis:
|
|
231
|
+
|
|
232
|
+
```bash
|
|
233
|
+
/mpm-init catchup
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
Shows:
|
|
237
|
+
- Last 25 commits from all branches
|
|
238
|
+
- Author attribution and timestamps
|
|
239
|
+
- Contributor activity summary
|
|
240
|
+
|
|
241
|
+
Use this for quick "what happened recently?" checks. For intelligent analysis, use `context` instead.
|
|
242
|
+
|
|
149
243
|
### Review Project State
|
|
150
244
|
```bash
|
|
151
245
|
/mpm-init --review
|
|
@@ -193,6 +287,49 @@ Quick initialization without code analysis.
|
|
|
193
287
|
|
|
194
288
|
This command routes between different modes:
|
|
195
289
|
|
|
290
|
+
### Context Analysis Commands
|
|
291
|
+
|
|
292
|
+
**IMPORTANT**: Context analysis commands (`/mpm-init context`, `/mpm-init catchup`) have distinct behaviors:
|
|
293
|
+
|
|
294
|
+
**`/mpm-init context` - Delegates to PM**:
|
|
295
|
+
```bash
|
|
296
|
+
claude-mpm mpm-init context --days 7
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
This command delegates work to the PM framework:
|
|
300
|
+
1. Parses git history (7 days default)
|
|
301
|
+
2. PM constructs structured Research delegation prompt
|
|
302
|
+
3. PM presents prompt for Research agent to analyze
|
|
303
|
+
4. Research identifies work streams, intent, risks, recommendations
|
|
304
|
+
5. PM synthesizes for user
|
|
305
|
+
|
|
306
|
+
This is intelligent analysis requiring Research agent expertise.
|
|
307
|
+
|
|
308
|
+
**How the PM delegates to Research:**
|
|
309
|
+
The PM creates a delegation prompt that asks Research to analyze:
|
|
310
|
+
- **Work Stream Identification**: Groups related commits into themes
|
|
311
|
+
- **Intent Analysis**: Infers why work was done from commit messages
|
|
312
|
+
- **Risk Detection**: Identifies stalled work, conflicts, and blockers
|
|
313
|
+
- **Recommended Actions**: Suggests logical next steps for continuation
|
|
314
|
+
|
|
315
|
+
**`/mpm-init catchup` - Direct CLI execution**:
|
|
316
|
+
```bash
|
|
317
|
+
claude-mpm mpm-init catchup
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
This executes directly via CLI without agent delegation:
|
|
321
|
+
- Displays last 25 commits from all branches
|
|
322
|
+
- Shows authors, dates, commit messages
|
|
323
|
+
- Instant output (no analysis)
|
|
324
|
+
|
|
325
|
+
This is a simple git log display utility.
|
|
326
|
+
|
|
327
|
+
---
|
|
328
|
+
|
|
329
|
+
### Project Initialization/Update Commands
|
|
330
|
+
|
|
331
|
+
**IMPORTANT**: Standard initialization and update commands delegate to the Agentic Coder Optimizer agent.
|
|
332
|
+
|
|
196
333
|
**Quick Update Mode** (`/mpm-init update`):
|
|
197
334
|
```bash
|
|
198
335
|
claude-mpm mpm-init --quick-update
|
|
@@ -251,12 +388,20 @@ The command delegates to the Agentic Coder Optimizer agent which:
|
|
|
251
388
|
## Notes
|
|
252
389
|
|
|
253
390
|
- **Quick Update vs Full Update**: Use `/mpm-init update` for fast activity-based updates (30 days), or `/mpm-init --update` for comprehensive doc refresh
|
|
391
|
+
- **Context Analysis**: Use `/mpm-init context` to analyze git history and get intelligent resumption context from Research agent
|
|
392
|
+
- **Quick History**: Use `/mpm-init catchup` for instant commit history display without analysis
|
|
393
|
+
- **Deprecation Notice**: The `resume` command is deprecated. Use `context` instead. The old command still works but shows a warning.
|
|
254
394
|
- **Smart Mode**: Automatically detects existing CLAUDE.md and offers update vs recreate
|
|
255
395
|
- **Safe Updates**: Previous versions always archived before updating
|
|
256
396
|
- **Custom Content**: Your project-specific sections are preserved by default
|
|
257
|
-
- **Git Integration**: Analyzes recent commits to understand project evolution
|
|
397
|
+
- **Git Integration**: Analyzes recent commits to understand project evolution and provide work context
|
|
398
|
+
- **Backward Compatibility**: All existing `resume` commands redirect to `context` with deprecation warning
|
|
258
399
|
- **Argument Processing**: The slash command processes the `update` argument and routes to `--quick-update` flag
|
|
259
|
-
-
|
|
400
|
+
- **Agent Delegation**:
|
|
401
|
+
- Project initialization and updates use the Agentic Coder Optimizer agent
|
|
402
|
+
- Context analysis (`context`) delegates to PM, who coordinates with Research agent
|
|
403
|
+
- Simple git history (`catchup`) executes directly via CLI without agent delegation
|
|
404
|
+
- **NOT Session State**: Context analysis reconstructs project understanding from git history, not saved conversation state
|
|
260
405
|
- AST analysis is enabled by default for comprehensive documentation
|
|
261
406
|
- Priority rankings help AI agents focus on critical instructions first
|
|
262
407
|
- The holistic review ensures documentation quality and completeness
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# Display Claude MPM Version Information
|
|
2
|
+
|
|
3
|
+
Show comprehensive version information for Claude MPM project, agents, and skills.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
/mpm-version
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Display version information including:
|
|
14
|
+
- Project version and build number
|
|
15
|
+
- All deployed agents with their versions (grouped by tier: system/user/project)
|
|
16
|
+
- All available skills with their versions (grouped by source: bundled/user/project)
|
|
17
|
+
- Summary statistics
|
|
18
|
+
|
|
19
|
+
## Implementation
|
|
20
|
+
|
|
21
|
+
When you run `/mpm-version`, the PM will:
|
|
22
|
+
|
|
23
|
+
1. **Collect Version Information**
|
|
24
|
+
- Use VersionService to gather all version data
|
|
25
|
+
- Project version from pyproject.toml
|
|
26
|
+
- Build number from BUILD_NUMBER file
|
|
27
|
+
- Agent versions from AgentRegistry
|
|
28
|
+
- Skills versions from SkillRegistry
|
|
29
|
+
|
|
30
|
+
2. **Format Output**
|
|
31
|
+
- Hierarchical display: Project → Agents → Skills
|
|
32
|
+
- Grouped by tier/source for clarity
|
|
33
|
+
- Sorted alphabetically within groups
|
|
34
|
+
- Summary statistics at the end
|
|
35
|
+
|
|
36
|
+
3. **Display Results**
|
|
37
|
+
- Well-formatted tree structure
|
|
38
|
+
- Easy to scan and read
|
|
39
|
+
- Includes totals and counts
|
|
40
|
+
|
|
41
|
+
## Example Output
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
Claude MPM Version Information
|
|
45
|
+
==============================
|
|
46
|
+
|
|
47
|
+
Project Version: 4.16.3
|
|
48
|
+
Build: 481
|
|
49
|
+
|
|
50
|
+
Agents (35 total)
|
|
51
|
+
-----------------
|
|
52
|
+
|
|
53
|
+
System Agents (30):
|
|
54
|
+
├─ agent-manager (1.0.0)
|
|
55
|
+
├─ engineer (3.9.1)
|
|
56
|
+
├─ research-agent (4.5.1)
|
|
57
|
+
├─ documentation (2.1.0)
|
|
58
|
+
├─ qa (2.0.3)
|
|
59
|
+
└─ ... (25 more)
|
|
60
|
+
|
|
61
|
+
User Agents (3):
|
|
62
|
+
├─ custom-agent (1.0.0)
|
|
63
|
+
├─ testing-agent (0.5.0)
|
|
64
|
+
└─ prototype-agent (0.1.0)
|
|
65
|
+
|
|
66
|
+
Project Agents (2):
|
|
67
|
+
├─ project-specific (2.0.0)
|
|
68
|
+
└─ domain-expert (1.1.0)
|
|
69
|
+
|
|
70
|
+
Skills (20 total)
|
|
71
|
+
-----------------
|
|
72
|
+
|
|
73
|
+
Bundled Skills (20):
|
|
74
|
+
├─ test-driven-development (0.1.0)
|
|
75
|
+
├─ systematic-debugging (0.1.0)
|
|
76
|
+
├─ async-testing (0.1.0)
|
|
77
|
+
├─ performance-profiling (0.1.0)
|
|
78
|
+
├─ security-scanning (0.1.0)
|
|
79
|
+
└─ ... (15 more)
|
|
80
|
+
|
|
81
|
+
User Skills (0):
|
|
82
|
+
(none)
|
|
83
|
+
|
|
84
|
+
Project Skills (0):
|
|
85
|
+
(none)
|
|
86
|
+
|
|
87
|
+
Summary
|
|
88
|
+
-------
|
|
89
|
+
• Project: v4.16.3 (build 481)
|
|
90
|
+
• Agents: 35 total (30 system, 3 user, 2 project)
|
|
91
|
+
• Skills: 20 total (20 bundled, 0 user, 0 project)
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## PM Implementation Instructions
|
|
95
|
+
|
|
96
|
+
To execute this command, PM should:
|
|
97
|
+
|
|
98
|
+
1. Import and use VersionService:
|
|
99
|
+
```python
|
|
100
|
+
from claude_mpm.services.version_service import VersionService
|
|
101
|
+
|
|
102
|
+
service = VersionService()
|
|
103
|
+
summary = service.get_version_summary()
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
2. Format output following the example structure above
|
|
107
|
+
3. Handle missing data gracefully (show "unknown" for missing versions)
|
|
108
|
+
4. Include all tiers/sources even if counts are zero
|
|
109
|
+
|
|
110
|
+
## Related Commands
|
|
111
|
+
|
|
112
|
+
- `/mpm-help` - Show all available MPM commands
|
|
113
|
+
- `/mpm-status` - Show system status information
|
claude_mpm/commands/mpm.md
CHANGED
|
@@ -8,6 +8,7 @@ Available MPM commands:
|
|
|
8
8
|
- /mpm-help - Show command help
|
|
9
9
|
- /mpm-status - Show MPM status
|
|
10
10
|
- /mpm-config - Manage configuration
|
|
11
|
+
- /mpm-version - Display version information for project, agents, and skills
|
|
11
12
|
|
|
12
13
|
Claude MPM extends Claude Code with:
|
|
13
14
|
- Multi-agent orchestration
|
|
@@ -242,7 +242,7 @@ class AgentConfig:
|
|
|
242
242
|
Path.cwd() / get_path_manager().CONFIG_DIR / "agent_config.yaml"
|
|
243
243
|
)
|
|
244
244
|
if project_config.exists():
|
|
245
|
-
logger.
|
|
245
|
+
logger.debug(f"Loading project agent config from {project_config}")
|
|
246
246
|
file_config = cls.from_file(project_config)
|
|
247
247
|
# Merge with environment config (env takes precedence)
|
|
248
248
|
config = cls._merge_configs(config, file_config)
|
|
@@ -252,7 +252,7 @@ class AgentConfig:
|
|
|
252
252
|
if user_config_dir:
|
|
253
253
|
user_config = user_config_dir / "agent_config.yaml"
|
|
254
254
|
if user_config.exists():
|
|
255
|
-
logger.
|
|
255
|
+
logger.debug(f"Loading user agent config from {user_config}")
|
|
256
256
|
file_config = cls.from_file(user_config)
|
|
257
257
|
config = cls._merge_configs(config, file_config)
|
|
258
258
|
|