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
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# Detect project toolchain and frameworks
|
|
2
|
+
|
|
3
|
+
Scan your project to detect programming languages, frameworks, tools, and configurations.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
/mpm-agents-detect
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
This command scans your project directory to automatically detect:
|
|
14
|
+
- Programming languages and their versions
|
|
15
|
+
- Web frameworks and libraries
|
|
16
|
+
- Testing tools and frameworks
|
|
17
|
+
- Build tools and bundlers
|
|
18
|
+
- Package managers
|
|
19
|
+
- Deployment configurations
|
|
20
|
+
|
|
21
|
+
This is useful for understanding what Claude MPM can detect in your project before running auto-configuration.
|
|
22
|
+
|
|
23
|
+
## Implementation
|
|
24
|
+
|
|
25
|
+
When you run `/mpm-agents-detect`, the PM will execute:
|
|
26
|
+
```bash
|
|
27
|
+
claude-mpm agents detect
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
This performs a comprehensive scan of your project looking for:
|
|
31
|
+
- Package manifests (package.json, requirements.txt, Cargo.toml, go.mod, pom.xml)
|
|
32
|
+
- Framework-specific files (next.config.js, fastapi imports, etc.)
|
|
33
|
+
- Test configurations (pytest.ini, jest.config.js, playwright.config.ts)
|
|
34
|
+
- Build configurations (vite.config.js, webpack.config.js, tsconfig.json)
|
|
35
|
+
- Deployment files (Dockerfile, vercel.json, railway.json)
|
|
36
|
+
|
|
37
|
+
## Expected Output
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
🔍 Project Toolchain Detection
|
|
41
|
+
================================
|
|
42
|
+
|
|
43
|
+
Languages:
|
|
44
|
+
✓ Python 3.11.5
|
|
45
|
+
✓ Node.js 20.10.0
|
|
46
|
+
✓ TypeScript 5.3.2
|
|
47
|
+
|
|
48
|
+
Frameworks:
|
|
49
|
+
✓ FastAPI 0.104.0
|
|
50
|
+
✓ React 18.2.0
|
|
51
|
+
✓ Next.js 14.0.4
|
|
52
|
+
|
|
53
|
+
Testing:
|
|
54
|
+
✓ pytest 7.4.3
|
|
55
|
+
✓ Jest 29.7.0
|
|
56
|
+
✓ Playwright 1.40.0
|
|
57
|
+
|
|
58
|
+
Build Tools:
|
|
59
|
+
✓ Vite 5.0.0
|
|
60
|
+
✓ TypeScript Compiler
|
|
61
|
+
|
|
62
|
+
Package Managers:
|
|
63
|
+
✓ poetry (Python)
|
|
64
|
+
✓ npm (Node.js)
|
|
65
|
+
|
|
66
|
+
Deployment:
|
|
67
|
+
✓ Docker (Dockerfile found)
|
|
68
|
+
✓ Vercel (vercel.json found)
|
|
69
|
+
✓ PM2 (ecosystem.config.js found)
|
|
70
|
+
|
|
71
|
+
Configuration Files Detected:
|
|
72
|
+
- pyproject.toml
|
|
73
|
+
- package.json
|
|
74
|
+
- tsconfig.json
|
|
75
|
+
- next.config.js
|
|
76
|
+
- pytest.ini
|
|
77
|
+
- jest.config.js
|
|
78
|
+
- playwright.config.ts
|
|
79
|
+
- Dockerfile
|
|
80
|
+
- vercel.json
|
|
81
|
+
|
|
82
|
+
Summary:
|
|
83
|
+
Full-stack project with Python backend (FastAPI) and
|
|
84
|
+
React/Next.js frontend, comprehensive testing setup,
|
|
85
|
+
and multiple deployment targets.
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## What Gets Detected
|
|
89
|
+
|
|
90
|
+
### Language Detection
|
|
91
|
+
- **Python**: Looks for .py files, requirements.txt, pyproject.toml, setup.py
|
|
92
|
+
- **JavaScript/TypeScript**: Looks for .js/.ts files, package.json, tsconfig.json
|
|
93
|
+
- **Rust**: Looks for Cargo.toml, .rs files
|
|
94
|
+
- **Go**: Looks for go.mod, .go files
|
|
95
|
+
- **Java**: Looks for pom.xml, build.gradle, .java files
|
|
96
|
+
|
|
97
|
+
### Framework Detection
|
|
98
|
+
**Python:**
|
|
99
|
+
- FastAPI (imports, decorator patterns)
|
|
100
|
+
- Flask (imports, app patterns)
|
|
101
|
+
- Django (settings.py, manage.py)
|
|
102
|
+
|
|
103
|
+
**JavaScript/TypeScript:**
|
|
104
|
+
- Next.js (next.config.js, pages/ or app/ directory)
|
|
105
|
+
- React (package.json dependencies, JSX usage)
|
|
106
|
+
- Vue (vue.config.js, .vue files)
|
|
107
|
+
- Express (imports, app patterns)
|
|
108
|
+
- Nest.js (nest-cli.json, decorators)
|
|
109
|
+
|
|
110
|
+
### Testing Detection
|
|
111
|
+
- pytest (pytest.ini, conftest.py)
|
|
112
|
+
- unittest (test_*.py patterns)
|
|
113
|
+
- Jest (jest.config.js)
|
|
114
|
+
- Vitest (vitest.config.js)
|
|
115
|
+
- Playwright (playwright.config.ts)
|
|
116
|
+
- Cypress (cypress.json)
|
|
117
|
+
|
|
118
|
+
### Build Tool Detection
|
|
119
|
+
- Vite (vite.config.js/ts)
|
|
120
|
+
- Webpack (webpack.config.js)
|
|
121
|
+
- Rollup (rollup.config.js)
|
|
122
|
+
- esbuild (esbuild configuration)
|
|
123
|
+
- Turbopack (next.config.js with turbopack)
|
|
124
|
+
|
|
125
|
+
### Deployment Detection
|
|
126
|
+
- Docker (Dockerfile, docker-compose.yml)
|
|
127
|
+
- Vercel (vercel.json, .vercel directory)
|
|
128
|
+
- Railway (railway.json, railway.toml)
|
|
129
|
+
- PM2 (ecosystem.config.js)
|
|
130
|
+
- Kubernetes (k8s/, kubernetes/ directories)
|
|
131
|
+
|
|
132
|
+
## Use Cases
|
|
133
|
+
|
|
134
|
+
1. **Before Auto-Configuration**: Run this to see what will be detected
|
|
135
|
+
2. **Troubleshooting**: Verify that your project setup is being recognized correctly
|
|
136
|
+
3. **Documentation**: Generate a summary of your project's tech stack
|
|
137
|
+
4. **Planning**: Understand what agents might be recommended
|
|
138
|
+
|
|
139
|
+
## Tips
|
|
140
|
+
|
|
141
|
+
1. **Run from project root**: Detection works best from your project's root directory
|
|
142
|
+
2. **Check detection accuracy**: Verify detected versions match your actual setup
|
|
143
|
+
3. **Missing detections**: If something isn't detected, you can still deploy agents manually
|
|
144
|
+
4. **Configuration files**: Detection relies on standard configuration files being present
|
|
145
|
+
|
|
146
|
+
## Common Issues
|
|
147
|
+
|
|
148
|
+
**Nothing detected?**
|
|
149
|
+
- Make sure you're in the project root directory
|
|
150
|
+
- Check that you have standard configuration files (package.json, requirements.txt, etc.)
|
|
151
|
+
- Some projects may need manual agent deployment
|
|
152
|
+
|
|
153
|
+
**Wrong versions detected?**
|
|
154
|
+
- Detection shows what's configured in manifest files
|
|
155
|
+
- Actual runtime versions may differ
|
|
156
|
+
- This doesn't affect agent functionality
|
|
157
|
+
|
|
158
|
+
**Framework not detected?**
|
|
159
|
+
- Some frameworks are harder to detect automatically
|
|
160
|
+
- You can still use auto-configure and manually select agents
|
|
161
|
+
- Or deploy specific agents manually with `/mpm-agents deploy <name>`
|
|
162
|
+
|
|
163
|
+
## Related Commands
|
|
164
|
+
|
|
165
|
+
- `/mpm-agents-recommend` - See agent recommendations based on detection
|
|
166
|
+
- `/mpm-auto-configure` - Automatically configure agents based on detection
|
|
167
|
+
- `/mpm-agents` - Manually manage agents
|
|
168
|
+
- `/mpm-help auto-configure` - Learn about auto-configuration
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
# Show recommended agents for detected project stack
|
|
2
|
+
|
|
3
|
+
Get intelligent agent recommendations based on your project's detected toolchain.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
/mpm-agents-recommend
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
This command analyzes your detected project stack and recommends the most appropriate agents, organized by priority:
|
|
14
|
+
- **Essential agents**: Core agents required for your primary stack
|
|
15
|
+
- **Recommended agents**: Complementary agents for full functionality
|
|
16
|
+
- **Optional agents**: Specialized agents for detected tools
|
|
17
|
+
|
|
18
|
+
Each recommendation includes an explanation of why that agent is suggested.
|
|
19
|
+
|
|
20
|
+
## Implementation
|
|
21
|
+
|
|
22
|
+
When you run `/mpm-agents-recommend`, the PM will execute:
|
|
23
|
+
```bash
|
|
24
|
+
claude-mpm agents recommend
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
This runs the detection phase and then applies recommendation rules to suggest the best agents for your specific technology stack.
|
|
28
|
+
|
|
29
|
+
## Expected Output
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
🤖 Agent Recommendations
|
|
33
|
+
=========================
|
|
34
|
+
|
|
35
|
+
Based on detected stack:
|
|
36
|
+
Python 3.11, FastAPI 0.104.0, pytest, Docker, Vercel
|
|
37
|
+
|
|
38
|
+
Essential Agents (Must Have):
|
|
39
|
+
✓ fastapi-engineer
|
|
40
|
+
Reason: FastAPI framework detected - specialized agent for FastAPI development
|
|
41
|
+
Capabilities: FastAPI routes, Pydantic models, async endpoints, dependency injection
|
|
42
|
+
|
|
43
|
+
✓ python-engineer
|
|
44
|
+
Reason: Python project - general Python development support
|
|
45
|
+
Capabilities: Python code, testing, debugging, package management
|
|
46
|
+
|
|
47
|
+
✓ api-qa
|
|
48
|
+
Reason: API testing for FastAPI backend
|
|
49
|
+
Capabilities: API endpoint testing, validation, load testing, contract testing
|
|
50
|
+
|
|
51
|
+
Recommended Agents (Strongly Suggested):
|
|
52
|
+
○ docker-ops
|
|
53
|
+
Reason: Docker configuration detected
|
|
54
|
+
Capabilities: Docker builds, container management, docker-compose orchestration
|
|
55
|
+
|
|
56
|
+
○ vercel-ops
|
|
57
|
+
Reason: Vercel deployment configuration found
|
|
58
|
+
Capabilities: Vercel deployments, serverless functions, domain management
|
|
59
|
+
|
|
60
|
+
○ playwright-qa
|
|
61
|
+
Reason: Comprehensive E2E testing capability
|
|
62
|
+
Capabilities: Browser automation, visual testing, API testing
|
|
63
|
+
|
|
64
|
+
Optional Agents (Nice to Have):
|
|
65
|
+
○ local-ops-agent
|
|
66
|
+
Reason: Local development and PM2 process management
|
|
67
|
+
Capabilities: Local server management, port handling, PM2 operations
|
|
68
|
+
|
|
69
|
+
○ security-agent
|
|
70
|
+
Reason: Security scanning and best practices
|
|
71
|
+
Capabilities: Dependency scanning, code security, auth patterns
|
|
72
|
+
|
|
73
|
+
Summary:
|
|
74
|
+
Recommended: 3 essential + 2 recommended = 5 agents
|
|
75
|
+
Optional: 2 additional agents for enhanced capabilities
|
|
76
|
+
|
|
77
|
+
Total recommended deployment: 5 agents
|
|
78
|
+
Maximum useful deployment: 7 agents
|
|
79
|
+
|
|
80
|
+
Next Steps:
|
|
81
|
+
1. Review recommendations above
|
|
82
|
+
2. Run '/mpm-auto-configure --preview' to see deployment plan
|
|
83
|
+
3. Run '/mpm-auto-configure' to deploy recommended agents
|
|
84
|
+
4. Or deploy individually: '/mpm-agents deploy <agent-name>'
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Recommendation Logic
|
|
88
|
+
|
|
89
|
+
### Python Projects
|
|
90
|
+
|
|
91
|
+
**If FastAPI detected:**
|
|
92
|
+
- Essential: fastapi-engineer, python-engineer, api-qa
|
|
93
|
+
- Recommended: docker-ops (if Docker), vercel-ops (if Vercel)
|
|
94
|
+
|
|
95
|
+
**If Flask detected:**
|
|
96
|
+
- Essential: flask-engineer, python-engineer, api-qa
|
|
97
|
+
- Recommended: docker-ops (if Docker)
|
|
98
|
+
|
|
99
|
+
**If Django detected:**
|
|
100
|
+
- Essential: django-engineer, python-engineer, api-qa
|
|
101
|
+
- Recommended: docker-ops (if Docker)
|
|
102
|
+
|
|
103
|
+
**If pytest detected:**
|
|
104
|
+
- Add to recommended: api-qa, playwright-qa
|
|
105
|
+
|
|
106
|
+
### JavaScript/TypeScript Projects
|
|
107
|
+
|
|
108
|
+
**If Next.js detected:**
|
|
109
|
+
- Essential: nextjs-engineer, react-engineer, web-qa
|
|
110
|
+
- Recommended: playwright-qa, vercel-ops (if Vercel)
|
|
111
|
+
|
|
112
|
+
**If React detected (without Next.js):**
|
|
113
|
+
- Essential: react-engineer, web-qa
|
|
114
|
+
- Recommended: playwright-qa
|
|
115
|
+
|
|
116
|
+
**If Vue detected:**
|
|
117
|
+
- Essential: vue-engineer, web-qa
|
|
118
|
+
- Recommended: playwright-qa
|
|
119
|
+
|
|
120
|
+
**If Express detected:**
|
|
121
|
+
- Essential: node-engineer, api-qa
|
|
122
|
+
- Recommended: docker-ops (if Docker)
|
|
123
|
+
|
|
124
|
+
**If Nest.js detected:**
|
|
125
|
+
- Essential: nestjs-engineer, node-engineer, api-qa
|
|
126
|
+
- Recommended: docker-ops (if Docker)
|
|
127
|
+
|
|
128
|
+
### Full-Stack Projects
|
|
129
|
+
|
|
130
|
+
**Python backend + React frontend:**
|
|
131
|
+
- Essential: fastapi-engineer (or flask-engineer), python-engineer, react-engineer, api-qa, web-qa
|
|
132
|
+
- Recommended: playwright-qa, docker-ops, local-ops-agent
|
|
133
|
+
|
|
134
|
+
**Node.js backend + React frontend:**
|
|
135
|
+
- Essential: node-engineer, react-engineer, api-qa, web-qa
|
|
136
|
+
- Recommended: playwright-qa, docker-ops
|
|
137
|
+
|
|
138
|
+
### Testing-Focused Projects
|
|
139
|
+
|
|
140
|
+
**If Playwright detected:**
|
|
141
|
+
- Add to recommended: playwright-qa
|
|
142
|
+
|
|
143
|
+
**If Jest/Vitest detected:**
|
|
144
|
+
- Ensure web-qa or api-qa in recommended
|
|
145
|
+
|
|
146
|
+
### Deployment-Focused Projects
|
|
147
|
+
|
|
148
|
+
**If Vercel detected:**
|
|
149
|
+
- Add to recommended: vercel-ops
|
|
150
|
+
|
|
151
|
+
**If Railway detected:**
|
|
152
|
+
- Add to recommended: railway-ops
|
|
153
|
+
|
|
154
|
+
**If Docker detected:**
|
|
155
|
+
- Add to recommended: docker-ops
|
|
156
|
+
|
|
157
|
+
**If PM2 detected:**
|
|
158
|
+
- Add to recommended: local-ops-agent
|
|
159
|
+
|
|
160
|
+
## Agent Descriptions
|
|
161
|
+
|
|
162
|
+
### Backend Specialists
|
|
163
|
+
- **fastapi-engineer**: FastAPI expert - routes, Pydantic, async, websockets
|
|
164
|
+
- **flask-engineer**: Flask expert - blueprints, extensions, templates
|
|
165
|
+
- **django-engineer**: Django expert - models, views, ORM, admin
|
|
166
|
+
- **node-engineer**: Node.js expert - Express, async, streams
|
|
167
|
+
- **nestjs-engineer**: NestJS expert - modules, decorators, DI
|
|
168
|
+
|
|
169
|
+
### Frontend Specialists
|
|
170
|
+
- **nextjs-engineer**: Next.js expert - app router, server components, SSR
|
|
171
|
+
- **react-engineer**: React expert - hooks, state, components
|
|
172
|
+
- **vue-engineer**: Vue expert - composition API, components
|
|
173
|
+
|
|
174
|
+
### QA Specialists
|
|
175
|
+
- **api-qa**: API testing expert - REST, GraphQL, validation
|
|
176
|
+
- **web-qa**: Web testing expert - fetch, integration, E2E
|
|
177
|
+
- **playwright-qa**: Browser automation expert - UI testing, visual regression
|
|
178
|
+
|
|
179
|
+
### Ops Specialists
|
|
180
|
+
- **docker-ops**: Docker expert - builds, compose, containers
|
|
181
|
+
- **vercel-ops**: Vercel deployment expert - serverless, edge
|
|
182
|
+
- **railway-ops**: Railway deployment expert
|
|
183
|
+
- **local-ops-agent**: Local development expert - PM2, ports, processes
|
|
184
|
+
|
|
185
|
+
## Use Cases
|
|
186
|
+
|
|
187
|
+
1. **Planning**: Understand what agents you should deploy before starting work
|
|
188
|
+
2. **Validation**: Verify that auto-configuration will suggest the right agents
|
|
189
|
+
3. **Learning**: Discover what capabilities are available for your stack
|
|
190
|
+
4. **Optimization**: Find additional agents that could enhance your workflow
|
|
191
|
+
|
|
192
|
+
## Tips
|
|
193
|
+
|
|
194
|
+
1. **Start here**: Run this before `/mpm-auto-configure` to preview recommendations
|
|
195
|
+
2. **Essential vs Optional**: Focus on essential agents first, add others as needed
|
|
196
|
+
3. **Stack-specific**: Recommendations are tailored to YOUR detected stack
|
|
197
|
+
4. **Flexible**: You can always deploy additional agents later or skip some
|
|
198
|
+
5. **Explanations**: Pay attention to the "Reason" for each recommendation
|
|
199
|
+
|
|
200
|
+
## Customizing Recommendations
|
|
201
|
+
|
|
202
|
+
After seeing recommendations, you can:
|
|
203
|
+
1. **Accept all**: Run `/mpm-auto-configure` to deploy all recommended agents
|
|
204
|
+
2. **Pick and choose**: Deploy specific agents with `/mpm-agents deploy <name>`
|
|
205
|
+
3. **Skip optional**: Deploy only essential and recommended agents
|
|
206
|
+
4. **Add more**: Deploy additional agents not in recommendations
|
|
207
|
+
|
|
208
|
+
## Related Commands
|
|
209
|
+
|
|
210
|
+
- `/mpm-agents-detect` - See what was detected in your project
|
|
211
|
+
- `/mpm-auto-configure` - Automatically deploy recommended agents
|
|
212
|
+
- `/mpm-agents deploy <name>` - Deploy specific agents manually
|
|
213
|
+
- `/mpm-agents` - View all available and deployed agents
|
|
214
|
+
- `/mpm-help agents` - Learn more about agent management
|
|
@@ -45,4 +45,78 @@ This will display all deployed agents that are currently available for use.
|
|
|
45
45
|
Alternatively, you can use these variations:
|
|
46
46
|
- `claude-mpm agents list --system` - Show system agents
|
|
47
47
|
- `claude-mpm agents list --by-tier` - Group agents by precedence tier
|
|
48
|
-
- `claude-mpm agents list --all` - Show all agents including undeployed
|
|
48
|
+
- `claude-mpm agents list --all` - Show all agents including undeployed
|
|
49
|
+
|
|
50
|
+
## Auto-Configuration Subcommands (NEW!)
|
|
51
|
+
|
|
52
|
+
### Quick Agent Setup
|
|
53
|
+
|
|
54
|
+
Claude MPM now includes intelligent auto-configuration that detects your project and recommends the right agents:
|
|
55
|
+
|
|
56
|
+
#### `agents detect`
|
|
57
|
+
Scan your project to detect toolchain and frameworks:
|
|
58
|
+
```bash
|
|
59
|
+
claude-mpm agents detect
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Shows detected:
|
|
63
|
+
- Programming languages (Python, Node.js, Rust, Go, etc.)
|
|
64
|
+
- Frameworks (FastAPI, Next.js, React, Express, etc.)
|
|
65
|
+
- Testing tools (pytest, Jest, Playwright, etc.)
|
|
66
|
+
- Build tools and package managers
|
|
67
|
+
- Deployment configurations
|
|
68
|
+
|
|
69
|
+
#### `agents recommend`
|
|
70
|
+
Get agent recommendations based on detected toolchain:
|
|
71
|
+
```bash
|
|
72
|
+
claude-mpm agents recommend
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Shows:
|
|
76
|
+
- Essential agents for your stack
|
|
77
|
+
- Recommended complementary agents
|
|
78
|
+
- Optional specialized agents
|
|
79
|
+
- Rationale for each recommendation
|
|
80
|
+
|
|
81
|
+
#### `auto-configure`
|
|
82
|
+
Automatically detect, recommend, and deploy agents:
|
|
83
|
+
```bash
|
|
84
|
+
claude-mpm auto-configure --preview # See what would be configured
|
|
85
|
+
claude-mpm auto-configure # Interactive configuration
|
|
86
|
+
claude-mpm auto-configure --yes # Auto-apply without prompts
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**Example workflow:**
|
|
90
|
+
1. Run `claude-mpm agents detect` to see what's detected
|
|
91
|
+
2. Run `claude-mpm agents recommend` to see suggestions
|
|
92
|
+
3. Run `claude-mpm auto-configure` to apply configuration
|
|
93
|
+
4. Or skip straight to `claude-mpm auto-configure --yes`
|
|
94
|
+
|
|
95
|
+
### Supported Stacks
|
|
96
|
+
|
|
97
|
+
**Python:**
|
|
98
|
+
- FastAPI, Flask, Django → fastapi-engineer, python-engineer
|
|
99
|
+
- pytest, unittest → api-qa, python-qa
|
|
100
|
+
|
|
101
|
+
**JavaScript/TypeScript:**
|
|
102
|
+
- Next.js → nextjs-engineer, react-engineer
|
|
103
|
+
- React, Vue, Svelte → react-engineer, web-qa
|
|
104
|
+
- Express, Nest.js → node-engineer, api-qa
|
|
105
|
+
- Jest, Vitest, Playwright → playwright-qa, web-qa
|
|
106
|
+
|
|
107
|
+
**Full-Stack Projects:**
|
|
108
|
+
Automatically recommends both frontend and backend agents based on your complete stack.
|
|
109
|
+
|
|
110
|
+
**Deployment:**
|
|
111
|
+
- Vercel → vercel-ops
|
|
112
|
+
- Railway → railway-ops
|
|
113
|
+
- Docker → docker-ops
|
|
114
|
+
- PM2 → local-ops-agent
|
|
115
|
+
|
|
116
|
+
## Related Commands
|
|
117
|
+
|
|
118
|
+
For more information on auto-configuration:
|
|
119
|
+
- `/mpm-help auto-configure` - Detailed auto-configuration help
|
|
120
|
+
- `/mpm-agents-detect` - Run detection via slash command
|
|
121
|
+
- `/mpm-agents-recommend` - Show recommendations via slash command
|
|
122
|
+
- `/mpm-auto-configure` - Run auto-configuration via slash command
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
# Automatically configure agents based on project detection
|
|
2
|
+
|
|
3
|
+
Automatically detect your project's toolchain and configure the most appropriate agents.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
/mpm-auto-configure [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
This command provides intelligent auto-configuration that:
|
|
14
|
+
1. Scans your project to detect programming languages, frameworks, and tools
|
|
15
|
+
2. Recommends the most appropriate agents for your stack
|
|
16
|
+
3. Optionally deploys the recommended agents with confirmation
|
|
17
|
+
|
|
18
|
+
This is the fastest way to get started with Claude MPM in any project!
|
|
19
|
+
|
|
20
|
+
## Options
|
|
21
|
+
|
|
22
|
+
- `--preview` - Show what would be configured without making any changes
|
|
23
|
+
- `--yes` - Automatically apply recommendations without prompting
|
|
24
|
+
- `--force` - Force reconfiguration even if agents are already deployed
|
|
25
|
+
|
|
26
|
+
## Implementation
|
|
27
|
+
|
|
28
|
+
When you run `/mpm-auto-configure`, the PM will:
|
|
29
|
+
|
|
30
|
+
1. **Detect Your Stack**:
|
|
31
|
+
- Scan for package.json, requirements.txt, Cargo.toml, go.mod, etc.
|
|
32
|
+
- Identify frameworks (FastAPI, Next.js, React, Express, etc.)
|
|
33
|
+
- Detect testing tools (pytest, Jest, Playwright, etc.)
|
|
34
|
+
- Find build tools and deployment configurations
|
|
35
|
+
|
|
36
|
+
2. **Recommend Agents**:
|
|
37
|
+
- **Essential agents**: Required for your primary stack
|
|
38
|
+
- **Recommended agents**: Complementary agents for full functionality
|
|
39
|
+
- **Optional agents**: Specialized agents for detected tools
|
|
40
|
+
|
|
41
|
+
3. **Deploy Agents** (with confirmation):
|
|
42
|
+
- Show what will be deployed
|
|
43
|
+
- Request confirmation (unless --yes is used)
|
|
44
|
+
- Deploy agents to your project
|
|
45
|
+
- Verify deployment success
|
|
46
|
+
|
|
47
|
+
## Examples
|
|
48
|
+
|
|
49
|
+
### Preview Mode (Recommended First Step)
|
|
50
|
+
```
|
|
51
|
+
/mpm-auto-configure --preview
|
|
52
|
+
```
|
|
53
|
+
Shows what would be configured without making changes. Great for understanding recommendations before applying.
|
|
54
|
+
|
|
55
|
+
### Interactive Configuration
|
|
56
|
+
```
|
|
57
|
+
/mpm-auto-configure
|
|
58
|
+
```
|
|
59
|
+
Detect, recommend, and prompt for confirmation before deploying.
|
|
60
|
+
|
|
61
|
+
### Automatic Configuration
|
|
62
|
+
```
|
|
63
|
+
/mpm-auto-configure --yes
|
|
64
|
+
```
|
|
65
|
+
Automatically apply all recommendations without prompting. Best for quick setup.
|
|
66
|
+
|
|
67
|
+
### Force Reconfiguration
|
|
68
|
+
```
|
|
69
|
+
/mpm-auto-configure --force
|
|
70
|
+
```
|
|
71
|
+
Reconfigure agents even if some are already deployed. Useful for stack changes.
|
|
72
|
+
|
|
73
|
+
## Expected Output
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
🤖 Auto-Configuration for Claude MPM
|
|
77
|
+
=====================================
|
|
78
|
+
|
|
79
|
+
Step 1: Detecting Project Stack
|
|
80
|
+
--------------------------------
|
|
81
|
+
✓ Detected Python 3.11
|
|
82
|
+
✓ Detected FastAPI 0.104.0
|
|
83
|
+
✓ Detected pytest 7.4.0
|
|
84
|
+
✓ Detected Docker configuration
|
|
85
|
+
✓ Detected Vercel deployment
|
|
86
|
+
|
|
87
|
+
Step 2: Agent Recommendations
|
|
88
|
+
------------------------------
|
|
89
|
+
Essential Agents (3):
|
|
90
|
+
✓ fastapi-engineer - FastAPI framework detected
|
|
91
|
+
✓ python-engineer - Python project support
|
|
92
|
+
✓ api-qa - API testing and validation
|
|
93
|
+
|
|
94
|
+
Recommended Agents (2):
|
|
95
|
+
○ docker-ops - Docker configuration found
|
|
96
|
+
○ vercel-ops - Vercel deployment detected
|
|
97
|
+
|
|
98
|
+
Optional Agents (1):
|
|
99
|
+
○ playwright-qa - Browser testing capability
|
|
100
|
+
|
|
101
|
+
Step 3: Deploy Agents
|
|
102
|
+
---------------------
|
|
103
|
+
Deploy 5 agents? (y/n): y
|
|
104
|
+
|
|
105
|
+
Deploying agents...
|
|
106
|
+
✓ fastapi-engineer deployed
|
|
107
|
+
✓ python-engineer deployed
|
|
108
|
+
✓ api-qa deployed
|
|
109
|
+
✓ docker-ops deployed
|
|
110
|
+
✓ vercel-ops deployed
|
|
111
|
+
|
|
112
|
+
🎉 Auto-configuration complete!
|
|
113
|
+
5 agents deployed successfully.
|
|
114
|
+
|
|
115
|
+
Next steps:
|
|
116
|
+
- Run /mpm-agents to see your deployed agents
|
|
117
|
+
- Start working with specialized agents for your stack
|
|
118
|
+
- Use /mpm-help for more information
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## What Gets Detected
|
|
122
|
+
|
|
123
|
+
### Languages
|
|
124
|
+
- Python (CPython, PyPy)
|
|
125
|
+
- JavaScript/TypeScript (Node.js, Deno, Bun)
|
|
126
|
+
- Rust
|
|
127
|
+
- Go
|
|
128
|
+
- Java
|
|
129
|
+
|
|
130
|
+
### Python Frameworks
|
|
131
|
+
- FastAPI
|
|
132
|
+
- Flask
|
|
133
|
+
- Django
|
|
134
|
+
- Starlette
|
|
135
|
+
- Pyramid
|
|
136
|
+
|
|
137
|
+
### JavaScript/TypeScript Frameworks
|
|
138
|
+
- Next.js
|
|
139
|
+
- React
|
|
140
|
+
- Vue
|
|
141
|
+
- Svelte
|
|
142
|
+
- Angular
|
|
143
|
+
- Express
|
|
144
|
+
- Nest.js
|
|
145
|
+
- Fastify
|
|
146
|
+
|
|
147
|
+
### Testing Tools
|
|
148
|
+
- pytest (Python)
|
|
149
|
+
- unittest (Python)
|
|
150
|
+
- Jest (JavaScript)
|
|
151
|
+
- Vitest (JavaScript)
|
|
152
|
+
- Playwright (Browser)
|
|
153
|
+
- Cypress (Browser)
|
|
154
|
+
|
|
155
|
+
### Build Tools
|
|
156
|
+
- Vite
|
|
157
|
+
- Webpack
|
|
158
|
+
- Rollup
|
|
159
|
+
- esbuild
|
|
160
|
+
- Turbopack
|
|
161
|
+
|
|
162
|
+
### Deployment Platforms
|
|
163
|
+
- Vercel
|
|
164
|
+
- Railway
|
|
165
|
+
- Docker
|
|
166
|
+
- PM2
|
|
167
|
+
- Kubernetes
|
|
168
|
+
|
|
169
|
+
## Agent Mapping Examples
|
|
170
|
+
|
|
171
|
+
### Python + FastAPI
|
|
172
|
+
**Essential:**
|
|
173
|
+
- fastapi-engineer
|
|
174
|
+
- python-engineer
|
|
175
|
+
- api-qa
|
|
176
|
+
|
|
177
|
+
**Recommended:**
|
|
178
|
+
- docker-ops (if Docker detected)
|
|
179
|
+
- vercel-ops (if Vercel detected)
|
|
180
|
+
|
|
181
|
+
### Next.js + React
|
|
182
|
+
**Essential:**
|
|
183
|
+
- nextjs-engineer
|
|
184
|
+
- react-engineer
|
|
185
|
+
- web-qa
|
|
186
|
+
|
|
187
|
+
**Recommended:**
|
|
188
|
+
- playwright-qa (if Playwright detected)
|
|
189
|
+
- vercel-ops (if Vercel detected)
|
|
190
|
+
|
|
191
|
+
### Full-Stack (FastAPI + React)
|
|
192
|
+
**Essential:**
|
|
193
|
+
- fastapi-engineer
|
|
194
|
+
- python-engineer
|
|
195
|
+
- react-engineer
|
|
196
|
+
- api-qa
|
|
197
|
+
- web-qa
|
|
198
|
+
|
|
199
|
+
**Recommended:**
|
|
200
|
+
- playwright-qa
|
|
201
|
+
- docker-ops
|
|
202
|
+
- local-ops-agent
|
|
203
|
+
|
|
204
|
+
## Tips
|
|
205
|
+
|
|
206
|
+
1. **Start with preview**: Always run with `--preview` first to see recommendations
|
|
207
|
+
2. **Review carefully**: Check that detected stack matches your project
|
|
208
|
+
3. **Customize later**: You can always deploy/remove agents manually after auto-config
|
|
209
|
+
4. **Re-run after changes**: Run again with `--force` if you add new frameworks
|
|
210
|
+
5. **Complementary commands**: Use `/mpm-agents-detect` and `/mpm-agents-recommend` for more details
|
|
211
|
+
|
|
212
|
+
## Related Commands
|
|
213
|
+
|
|
214
|
+
- `/mpm-agents-detect` - Just show detected toolchain
|
|
215
|
+
- `/mpm-agents-recommend` - Show recommendations without deploying
|
|
216
|
+
- `/mpm-agents` - Manage agents manually
|
|
217
|
+
- `/mpm-help agents` - Learn about manual agent management
|