claude-mpm 5.4.3__py3-none-any.whl → 5.4.21__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.

Potentially problematic release.


This version of claude-mpm might be problematic. Click here for more details.

Files changed (90) hide show
  1. claude_mpm/VERSION +1 -1
  2. claude_mpm/__init__.py +4 -0
  3. claude_mpm/agents/CLAUDE_MPM_TEACHER_OUTPUT_STYLE.md +1 -1
  4. claude_mpm/agents/PM_INSTRUCTIONS.md +166 -21
  5. claude_mpm/agents/agent_loader.py +3 -27
  6. claude_mpm/cli/__main__.py +4 -0
  7. claude_mpm/cli/chrome_devtools_installer.py +175 -0
  8. claude_mpm/cli/commands/agents.py +0 -31
  9. claude_mpm/cli/commands/auto_configure.py +210 -25
  10. claude_mpm/cli/commands/config.py +88 -2
  11. claude_mpm/cli/commands/configure.py +85 -43
  12. claude_mpm/cli/commands/configure_agent_display.py +3 -1
  13. claude_mpm/cli/commands/mpm_init/core.py +2 -45
  14. claude_mpm/cli/commands/skills.py +214 -189
  15. claude_mpm/cli/executor.py +3 -3
  16. claude_mpm/cli/parsers/agents_parser.py +0 -9
  17. claude_mpm/cli/parsers/auto_configure_parser.py +0 -138
  18. claude_mpm/cli/parsers/config_parser.py +153 -83
  19. claude_mpm/cli/parsers/skills_parser.py +3 -2
  20. claude_mpm/cli/startup.py +490 -41
  21. claude_mpm/commands/mpm-config.md +265 -0
  22. claude_mpm/commands/mpm-help.md +14 -95
  23. claude_mpm/commands/mpm-organize.md +350 -153
  24. claude_mpm/core/framework/formatters/content_formatter.py +3 -13
  25. claude_mpm/core/framework_loader.py +4 -2
  26. claude_mpm/core/logger.py +13 -0
  27. claude_mpm/hooks/claude_hooks/event_handlers.py +176 -76
  28. claude_mpm/hooks/claude_hooks/hook_handler.py +2 -0
  29. claude_mpm/hooks/claude_hooks/installer.py +33 -10
  30. claude_mpm/hooks/claude_hooks/memory_integration.py +26 -9
  31. claude_mpm/hooks/claude_hooks/response_tracking.py +2 -3
  32. claude_mpm/hooks/memory_integration_hook.py +46 -1
  33. claude_mpm/init.py +0 -19
  34. claude_mpm/scripts/claude-hook-handler.sh +58 -18
  35. claude_mpm/scripts/start_activity_logging.py +0 -0
  36. claude_mpm/services/agents/agent_recommendation_service.py +6 -7
  37. claude_mpm/services/agents/agent_review_service.py +280 -0
  38. claude_mpm/services/agents/deployment/agent_discovery_service.py +2 -3
  39. claude_mpm/services/agents/deployment/agent_template_builder.py +1 -0
  40. claude_mpm/services/agents/deployment/multi_source_deployment_service.py +78 -9
  41. claude_mpm/services/agents/deployment/remote_agent_discovery_service.py +13 -0
  42. claude_mpm/services/agents/git_source_manager.py +14 -0
  43. claude_mpm/services/agents/loading/base_agent_manager.py +1 -13
  44. claude_mpm/services/agents/toolchain_detector.py +6 -3
  45. claude_mpm/services/command_deployment_service.py +81 -8
  46. claude_mpm/services/git/git_operations_service.py +93 -8
  47. claude_mpm/services/self_upgrade_service.py +120 -12
  48. claude_mpm/services/skills/__init__.py +3 -0
  49. claude_mpm/services/skills/git_skill_source_manager.py +32 -2
  50. claude_mpm/services/skills/selective_skill_deployer.py +704 -0
  51. claude_mpm/services/skills/skill_to_agent_mapper.py +406 -0
  52. claude_mpm/services/skills_deployer.py +126 -9
  53. {claude_mpm-5.4.3.dist-info → claude_mpm-5.4.21.dist-info}/METADATA +47 -8
  54. {claude_mpm-5.4.3.dist-info → claude_mpm-5.4.21.dist-info}/RECORD +58 -82
  55. {claude_mpm-5.4.3.dist-info → claude_mpm-5.4.21.dist-info}/entry_points.txt +0 -3
  56. claude_mpm-5.4.21.dist-info/licenses/LICENSE +94 -0
  57. claude_mpm-5.4.21.dist-info/licenses/LICENSE-FAQ.md +153 -0
  58. claude_mpm/agents/BASE_AGENT_TEMPLATE.md +0 -292
  59. claude_mpm/agents/BASE_DOCUMENTATION.md +0 -53
  60. claude_mpm/agents/BASE_ENGINEER.md +0 -658
  61. claude_mpm/agents/BASE_OPS.md +0 -219
  62. claude_mpm/agents/BASE_PM.md +0 -480
  63. claude_mpm/agents/BASE_PROMPT_ENGINEER.md +0 -787
  64. claude_mpm/agents/BASE_QA.md +0 -167
  65. claude_mpm/agents/BASE_RESEARCH.md +0 -53
  66. claude_mpm/agents/base_agent.json +0 -31
  67. claude_mpm/agents/base_agent_loader.py +0 -601
  68. claude_mpm/cli/commands/agents_detect.py +0 -380
  69. claude_mpm/cli/commands/agents_recommend.py +0 -309
  70. claude_mpm/cli/ticket_cli.py +0 -35
  71. claude_mpm/commands/mpm-agents-auto-configure.md +0 -278
  72. claude_mpm/commands/mpm-agents-detect.md +0 -177
  73. claude_mpm/commands/mpm-agents-list.md +0 -131
  74. claude_mpm/commands/mpm-agents-recommend.md +0 -223
  75. claude_mpm/commands/mpm-config-view.md +0 -150
  76. claude_mpm/hooks/claude_hooks/__pycache__/__init__.cpython-313.pyc +0 -0
  77. claude_mpm/hooks/claude_hooks/__pycache__/correlation_manager.cpython-313.pyc +0 -0
  78. claude_mpm/hooks/claude_hooks/__pycache__/event_handlers.cpython-313.pyc +0 -0
  79. claude_mpm/hooks/claude_hooks/__pycache__/hook_handler.cpython-313.pyc +0 -0
  80. claude_mpm/hooks/claude_hooks/__pycache__/memory_integration.cpython-313.pyc +0 -0
  81. claude_mpm/hooks/claude_hooks/__pycache__/response_tracking.cpython-313.pyc +0 -0
  82. claude_mpm/hooks/claude_hooks/__pycache__/tool_analysis.cpython-313.pyc +0 -0
  83. claude_mpm/hooks/claude_hooks/services/__pycache__/__init__.cpython-313.pyc +0 -0
  84. claude_mpm/hooks/claude_hooks/services/__pycache__/connection_manager_http.cpython-313.pyc +0 -0
  85. claude_mpm/hooks/claude_hooks/services/__pycache__/duplicate_detector.cpython-313.pyc +0 -0
  86. claude_mpm/hooks/claude_hooks/services/__pycache__/state_manager.cpython-313.pyc +0 -0
  87. claude_mpm/hooks/claude_hooks/services/__pycache__/subagent_processor.cpython-313.pyc +0 -0
  88. claude_mpm-5.4.3.dist-info/licenses/LICENSE +0 -21
  89. {claude_mpm-5.4.3.dist-info → claude_mpm-5.4.21.dist-info}/WHEEL +0 -0
  90. {claude_mpm-5.4.3.dist-info → claude_mpm-5.4.21.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,265 @@
1
+ ---
2
+ namespace: mpm/config
3
+ command: config
4
+ aliases: [mpm-config]
5
+ migration_target: /mpm/config
6
+ category: config
7
+ deprecated_aliases: [mpm-config-view]
8
+ description: Unified configuration management with auto-detection and manual viewing
9
+ ---
10
+ # Unified configuration management
11
+
12
+ Manage Claude MPM configuration with auto-detection, manual viewing, validation, and status checks.
13
+
14
+ ## Usage
15
+
16
+ ```
17
+ /mpm-config [subcommand] [options]
18
+ /mpm-config # No args = auto (detect + recommend + preview)
19
+ /mpm-config view # Show current config
20
+ /mpm-config auto # Auto-configure: detect → recommend → deploy (with confirmation)
21
+ /mpm-config auto --yes # Auto-deploy without confirmation
22
+ ```
23
+
24
+ ## Description
25
+
26
+ This unified command provides comprehensive configuration management:
27
+
28
+ 1. **Auto-configuration** (default): Detect toolchain and recommend agents/skills
29
+ 2. **Manual viewing**: Display current configuration settings
30
+ 3. **Validation**: Ensure configuration correctness
31
+ 4. **Status checks**: Show system health
32
+
33
+ ## Subcommands
34
+
35
+ ### Auto-Configure (Default)
36
+
37
+ Automatically detect project toolchain and configure appropriate agents and skills.
38
+
39
+ ```
40
+ /mpm-config # Preview recommendations (default)
41
+ /mpm-config auto # Same as no args - detect and preview
42
+ /mpm-config auto --yes # Auto-deploy without confirmation
43
+ ```
44
+
45
+ **What it does:**
46
+ 1. Scans project to detect programming languages, frameworks, and tools
47
+ 2. Recommends agents for your stack (e.g., fastapi-engineer, react-engineer)
48
+ 3. Recommends skills based on agent types
49
+ 4. Shows preview of what will be configured
50
+ 5. Deploys with confirmation (unless `--yes` is used)
51
+
52
+ **Options:**
53
+ - `--yes`: Automatically deploy without prompting
54
+ - `--preview`: Show recommendations without deploying (default when no args)
55
+ - `--min-confidence FLOAT`: Minimum confidence threshold (default: 0.8)
56
+ - `--agents-only`: Only configure agents, skip skills
57
+ - `--skills-only`: Only configure skills, skip agents
58
+ - `--json`: Output results in JSON format
59
+
60
+ **Examples:**
61
+ ```
62
+ /mpm-config # Preview auto-configuration
63
+ /mpm-config auto # Same as above
64
+ /mpm-config auto --yes # Deploy automatically
65
+ /mpm-config auto --min-confidence 0.7 # Lower threshold
66
+ ```
67
+
68
+ **Detection Capabilities:**
69
+
70
+ **Languages:**
71
+ - Python (CPython, PyPy)
72
+ - JavaScript/TypeScript (Node.js, Deno, Bun)
73
+ - Rust, Go, Java
74
+
75
+ **Python Frameworks:**
76
+ - FastAPI, Flask, Django, Starlette, Pyramid
77
+
78
+ **JavaScript/TypeScript Frameworks:**
79
+ - Next.js, React, Vue, Svelte, Angular
80
+ - Express, Nest.js, Fastify
81
+
82
+ **Testing Tools:**
83
+ - pytest, unittest (Python)
84
+ - Jest, Vitest (JavaScript)
85
+ - Playwright, Cypress (Browser)
86
+
87
+ **Example Output:**
88
+ ```
89
+ 📊 Detected Toolchain:
90
+ ✓ Python 3.11 (100% confidence)
91
+ ✓ FastAPI 0.104.0 (95% confidence)
92
+ ✓ pytest 7.4.0 (90% confidence)
93
+
94
+ 🤖 Recommended Agents:
95
+ ✓ fastapi-engineer (95% confidence)
96
+ Reason: FastAPI framework detected
97
+ ✓ python-engineer (90% confidence)
98
+ Reason: Python project support
99
+ ✓ api-qa (85% confidence)
100
+ Reason: API testing and validation
101
+
102
+ 🎯 Recommended Skills:
103
+ ✓ toolchains-python-frameworks-fastapi
104
+ ✓ toolchains-python-testing-pytest
105
+ ✓ toolchains-universal-api-testing
106
+
107
+ Deploy 3 agent(s) and 3 skill(s)? (y/n/s for select):
108
+ ```
109
+
110
+ ### View Configuration
111
+
112
+ Display current configuration settings.
113
+
114
+ ```
115
+ /mpm-config view [--section SECTION] [--format FORMAT] [--show-defaults]
116
+ ```
117
+
118
+ **Options:**
119
+ - `--section SECTION`: Specific configuration section to view
120
+ - `--format FORMAT`: Output format (yaml, json, table)
121
+ - `--show-defaults`: Include default values in output
122
+
123
+ **Examples:**
124
+ ```
125
+ /mpm-config view
126
+ /mpm-config view --section agents --format json
127
+ /mpm-config view --show-defaults
128
+ ```
129
+
130
+ ### Validate Configuration
131
+
132
+ Validate configuration files for correctness and completeness.
133
+
134
+ ```
135
+ /mpm-config validate [--config-file PATH] [--strict] [--fix]
136
+ ```
137
+
138
+ **Options:**
139
+ - `--config-file PATH`: Validate specific config file (default: all)
140
+ - `--strict`: Use strict validation rules
141
+ - `--fix`: Attempt to fix validation errors automatically
142
+
143
+ **Example:**
144
+ ```
145
+ /mpm-config validate --strict
146
+ /mpm-config validate --config-file .claude/config.yaml --fix
147
+ ```
148
+
149
+ **Expected Output:**
150
+ ```
151
+ Validating configuration files...
152
+
153
+ ✓ .claude/config.yaml: Valid
154
+ ✓ .claude/agents/config.yaml: Valid
155
+ ✓ Configuration schema: Valid
156
+
157
+ Configuration is valid and ready to use.
158
+ ```
159
+
160
+ ### Configuration Status
161
+
162
+ Show configuration health and status.
163
+
164
+ ```
165
+ /mpm-config status [--verbose]
166
+ ```
167
+
168
+ **Options:**
169
+ - `--verbose`: Show detailed status information
170
+
171
+ **Example:**
172
+ ```
173
+ /mpm-config status --verbose
174
+ ```
175
+
176
+ **Expected Output:**
177
+ ```
178
+ Configuration Status
179
+ ====================
180
+
181
+ Files Found: 2
182
+ ✓ .claude/config.yaml
183
+ ✓ .claude/agents/config.yaml
184
+
185
+ Validation: Passed
186
+ Schema Version: 4.5
187
+ Last Modified: 2025-01-15 14:30:22
188
+
189
+ Active Settings:
190
+ - WebSocket Port: 8765
191
+ - Agent Deploy Mode: project
192
+ - Logging Level: INFO
193
+ ```
194
+
195
+ ## Implementation
196
+
197
+ This command executes:
198
+ ```bash
199
+ claude-mpm config [subcommand] [options]
200
+ ```
201
+
202
+ The slash command passes through to the actual CLI configuration management system.
203
+
204
+ ## Configuration Categories
205
+
206
+ Configuration is organized into sections:
207
+
208
+ - **agents**: Agent deployment and management settings
209
+ - **memory**: Memory system configuration
210
+ - **websocket**: WebSocket server settings (port, host)
211
+ - **hooks**: Hook service configuration
212
+ - **logging**: Logging levels and output
213
+ - **tickets**: Ticket tracking settings
214
+ - **monitor**: Dashboard and monitoring settings
215
+
216
+ ## Workflow Examples
217
+
218
+ ### Quick Start (New Project)
219
+ ```
220
+ /mpm-config # Preview recommendations
221
+ # Review output, then:
222
+ /mpm-config auto --yes # Deploy recommended agents and skills
223
+ ```
224
+
225
+ ### Check Current State
226
+ ```
227
+ /mpm-config view # See current settings
228
+ /mpm-config status # Verify health
229
+ ```
230
+
231
+ ### Validate After Manual Edits
232
+ ```
233
+ /mpm-config validate --strict
234
+ ```
235
+
236
+ ### Reconfigure After Stack Changes
237
+ ```
238
+ /mpm-config auto --force # Re-run auto-detection
239
+ ```
240
+
241
+ ## Default Configuration Fallback
242
+
243
+ When auto-configuration cannot detect your project's toolchain, it falls back to sensible defaults:
244
+
245
+ **Default Agents** (moderate confidence 0.7):
246
+ - engineer (general-purpose)
247
+ - research (code exploration)
248
+ - qa (testing)
249
+ - ops (infrastructure)
250
+ - documentation (technical writing)
251
+
252
+ **Disable defaults:**
253
+ Edit `.claude-mpm/config/agent_capabilities.yaml`:
254
+ ```yaml
255
+ default_configuration:
256
+ enabled: false # Disable default fallback
257
+ ```
258
+
259
+ ## Related Commands
260
+
261
+ - `/mpm-status`: Show overall system status
262
+ - `/mpm-doctor`: Diagnose configuration issues
263
+ - `/mpm-init`: Initialize project configuration
264
+ - `/mpm-agents`: Manually manage agents
265
+ - `/mpm-configure`: Unified configuration interface (includes toolchain detection and recommendations)
@@ -78,14 +78,8 @@ Available Commands:
78
78
  /mpm-agents [list|deploy|remove] [name]
79
79
  Manage agent deployment
80
80
 
81
- /mpm-auto-configure [--preview] [--yes]
82
- 🤖 NEW! Automatically configure agents based on your project
83
-
84
- /mpm-agents-detect
85
- 🤖 NEW! Detect project toolchain and frameworks
86
-
87
- /mpm-agents-recommend
88
- 🤖 NEW! Show recommended agents for your project
81
+ /mpm-configure
82
+ 🤖 Unified configuration interface for agents, skills, and project settings
89
83
 
90
84
  /mpm-config [validate|view|status]
91
85
  Manage configuration settings
@@ -184,99 +178,24 @@ Automatically detects your project's toolchain and frameworks, then recommends a
184
178
  - **Full-stack**: Combination of backend + frontend agents
185
179
  - **Testing**: playwright-qa, api-qa based on detected test tools
186
180
 
187
- ### /mpm-agents-detect - Toolchain Detection
181
+ ## Quick Start with Configuration
188
182
 
189
- **Description:**
190
- Scans your project to detect programming languages, frameworks, tools, and configuration files.
183
+ For new projects or first-time setup, use the unified `/mpm-configure` command which provides:
184
+ - Toolchain detection
185
+ - Agent recommendations
186
+ - Skills management
187
+ - Auto-configuration
191
188
 
192
189
  **Usage:**
193
190
  ```
194
- /mpm-agents-detect
195
- ```
196
-
197
- **Output:**
198
- - Detected languages and versions
199
- - Frameworks and their configurations
200
- - Testing tools and test frameworks
201
- - Build tools and bundlers
202
- - Package managers
203
- - Deployment configurations
204
-
205
- **Example:**
191
+ /mpm-configure
206
192
  ```
207
- /mpm-agents-detect
208
-
209
- Detected Project Stack:
210
- ======================
211
- Languages: Python 3.11, Node.js 20.x
212
- Frameworks: FastAPI 0.104.0, React 18.2.0
213
- Testing: pytest, Playwright
214
- Build: Vite 5.0.0
215
- Package Manager: poetry, npm
216
- Deployment: Docker, Vercel
217
- ```
218
-
219
- ### /mpm-agents-recommend - Agent Recommendations
220
-
221
- **Description:**
222
- Based on detected toolchain, shows which agents are recommended for your project with explanations.
223
-
224
- **Usage:**
225
- ```
226
- /mpm-agents-recommend
227
- ```
228
-
229
- **Output:**
230
- - Recommended agents with rationale
231
- - Agent capabilities and when to use them
232
- - Suggested deployment order
233
- - Complementary agent combinations
234
193
 
235
- **Example:**
236
- ```
237
- /mpm-agents-recommend
238
-
239
- Recommended Agents for Your Project:
240
- ===================================
241
-
242
- Essential Agents:
243
- ✓ fastapi-engineer - Detected FastAPI framework
244
- ✓ python-engineer - Python 3.11 project
245
- ✓ api-qa - API testing and validation
246
-
247
- Recommended Agents:
248
- ○ react-engineer - React frontend detected
249
- ○ web-qa - Web UI testing
250
- ○ playwright-qa - Playwright tests found
251
-
252
- Optional Agents:
253
- ○ docker-ops - Docker configuration found
254
- ○ vercel-ops - Vercel deployment detected
255
- ```
256
-
257
- ## Quick Start with Auto-Configuration
258
-
259
- For new projects or first-time setup:
260
-
261
- 1. **Preview what would be configured:**
262
- ```
263
- /mpm-auto-configure --preview
264
- ```
265
-
266
- 2. **Review recommendations:**
267
- ```
268
- /mpm-agents-recommend
269
- ```
270
-
271
- 3. **Apply configuration:**
272
- ```
273
- /mpm-auto-configure
274
- ```
275
-
276
- Or skip straight to auto-apply:
277
- ```
278
- /mpm-auto-configure --yes
279
- ```
194
+ The interactive menu will guide you through:
195
+ 1. Detecting your project's toolchain
196
+ 2. Viewing recommended agents
197
+ 3. Deploying agents and skills
198
+ 4. Managing configuration settings
280
199
 
281
200
  ## Supported Technology Stacks
282
201