claude-mpm 3.3.0__py3-none-any.whl → 3.4.0__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.
Files changed (58) hide show
  1. claude_mpm/agents/templates/data_engineer.json +1 -1
  2. claude_mpm/agents/templates/documentation.json +1 -1
  3. claude_mpm/agents/templates/engineer.json +1 -1
  4. claude_mpm/agents/templates/ops.json +1 -1
  5. claude_mpm/agents/templates/pm.json +1 -1
  6. claude_mpm/agents/templates/qa.json +1 -1
  7. claude_mpm/agents/templates/research.json +1 -1
  8. claude_mpm/agents/templates/security.json +1 -1
  9. claude_mpm/agents/templates/test_integration.json +112 -0
  10. claude_mpm/agents/templates/version_control.json +1 -1
  11. claude_mpm/cli/commands/memory.py +749 -26
  12. claude_mpm/cli/commands/run.py +115 -14
  13. claude_mpm/cli/parser.py +89 -1
  14. claude_mpm/constants.py +6 -0
  15. claude_mpm/core/claude_runner.py +74 -11
  16. claude_mpm/core/config.py +1 -1
  17. claude_mpm/core/session_manager.py +46 -0
  18. claude_mpm/core/simple_runner.py +74 -11
  19. claude_mpm/hooks/builtin/mpm_command_hook.py +5 -5
  20. claude_mpm/hooks/claude_hooks/hook_handler.py +213 -30
  21. claude_mpm/hooks/claude_hooks/hook_wrapper.sh +9 -2
  22. claude_mpm/hooks/memory_integration_hook.py +51 -5
  23. claude_mpm/services/__init__.py +23 -5
  24. claude_mpm/services/agent_memory_manager.py +800 -71
  25. claude_mpm/services/memory_builder.py +823 -0
  26. claude_mpm/services/memory_optimizer.py +619 -0
  27. claude_mpm/services/memory_router.py +445 -0
  28. claude_mpm/services/project_analyzer.py +771 -0
  29. claude_mpm/services/socketio_server.py +649 -45
  30. claude_mpm/services/version_control/git_operations.py +26 -0
  31. claude_mpm-3.4.0.dist-info/METADATA +183 -0
  32. {claude_mpm-3.3.0.dist-info → claude_mpm-3.4.0.dist-info}/RECORD +36 -52
  33. claude_mpm/agents/agent-template.yaml +0 -83
  34. claude_mpm/agents/templates/test-integration-agent.md +0 -34
  35. claude_mpm/agents/test_fix_deployment/.claude-pm/config/project.json +0 -6
  36. claude_mpm/cli/README.md +0 -109
  37. claude_mpm/cli_module/refactoring_guide.md +0 -253
  38. claude_mpm/core/agent_registry.py.bak +0 -312
  39. claude_mpm/core/base_service.py.bak +0 -406
  40. claude_mpm/core/websocket_handler.py +0 -233
  41. claude_mpm/hooks/README.md +0 -97
  42. claude_mpm/orchestration/SUBPROCESS_DESIGN.md +0 -66
  43. claude_mpm/schemas/README_SECURITY.md +0 -92
  44. claude_mpm/schemas/agent_schema.json +0 -395
  45. claude_mpm/schemas/agent_schema_documentation.md +0 -181
  46. claude_mpm/schemas/agent_schema_security_notes.md +0 -165
  47. claude_mpm/schemas/examples/standard_workflow.json +0 -505
  48. claude_mpm/schemas/ticket_workflow_documentation.md +0 -482
  49. claude_mpm/schemas/ticket_workflow_schema.json +0 -590
  50. claude_mpm/services/framework_claude_md_generator/README.md +0 -92
  51. claude_mpm/services/parent_directory_manager/README.md +0 -83
  52. claude_mpm/services/version_control/VERSION +0 -1
  53. claude_mpm/services/websocket_server.py +0 -376
  54. claude_mpm-3.3.0.dist-info/METADATA +0 -432
  55. {claude_mpm-3.3.0.dist-info → claude_mpm-3.4.0.dist-info}/WHEEL +0 -0
  56. {claude_mpm-3.3.0.dist-info → claude_mpm-3.4.0.dist-info}/entry_points.txt +0 -0
  57. {claude_mpm-3.3.0.dist-info → claude_mpm-3.4.0.dist-info}/licenses/LICENSE +0 -0
  58. {claude_mpm-3.3.0.dist-info → claude_mpm-3.4.0.dist-info}/top_level.txt +0 -0
@@ -1,432 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: claude-mpm
3
- Version: 3.3.0
4
- Summary: Claude Multi-agent Project Manager - Clean orchestration with ticket management
5
- Home-page: https://github.com/bobmatnyc/claude-mpm
6
- Author: Claude MPM Team
7
- Author-email: bob@matsuoka.com
8
- License: MIT
9
- Keywords: claude,orchestration,multi-agent,ticket-management
10
- Classifier: Development Status :: 3 - Alpha
11
- Classifier: Intended Audience :: Developers
12
- Classifier: License :: OSI Approved :: MIT License
13
- Classifier: Programming Language :: Python :: 3
14
- Classifier: Programming Language :: Python :: 3.8
15
- Classifier: Programming Language :: Python :: 3.9
16
- Classifier: Programming Language :: Python :: 3.10
17
- Classifier: Programming Language :: Python :: 3.11
18
- Classifier: Programming Language :: Python :: 3.12
19
- Requires-Python: >=3.8
20
- Description-Content-Type: text/markdown
21
- License-File: LICENSE
22
- Requires-Dist: ai-trackdown-pytools>=1.4.0
23
- Requires-Dist: pyyaml>=6.0
24
- Requires-Dist: python-dotenv>=0.19.0
25
- Requires-Dist: rich>=13.0.0
26
- Requires-Dist: click>=8.0.0
27
- Requires-Dist: pexpect>=4.8.0
28
- Requires-Dist: psutil>=5.9.0
29
- Requires-Dist: requests>=2.25.0
30
- Requires-Dist: flask>=3.0.0
31
- Requires-Dist: flask-cors>=4.0.0
32
- Requires-Dist: watchdog>=3.0.0
33
- Requires-Dist: tree-sitter>=0.21.0
34
- Requires-Dist: tree-sitter-language-pack>=0.8.0
35
- Provides-Extra: dev
36
- Requires-Dist: pytest>=7.0; extra == "dev"
37
- Requires-Dist: pytest-asyncio; extra == "dev"
38
- Requires-Dist: pytest-cov; extra == "dev"
39
- Requires-Dist: black; extra == "dev"
40
- Requires-Dist: flake8; extra == "dev"
41
- Requires-Dist: mypy; extra == "dev"
42
- Provides-Extra: monitor
43
- Requires-Dist: python-socketio>=5.11.0; extra == "monitor"
44
- Requires-Dist: aiohttp>=3.9.0; extra == "monitor"
45
- Requires-Dist: python-engineio>=4.8.0; extra == "monitor"
46
- Dynamic: author-email
47
- Dynamic: home-page
48
- Dynamic: license-file
49
- Dynamic: requires-python
50
-
51
- # Claude MPM - Multi-Agent Project Manager
52
-
53
- > **Note**: This project is a fork of [claude-multiagent-pm](https://github.com/kfsone/claude-multiagent-pm), enhanced to integrate with [Claude Code](https://docs.anthropic.com/en/docs/claude-code) v1.0.60+'s native agent system. This integration enables seamless orchestration of Claude Code's built-in agents (research, engineer, qa, documentation, security, ops, version_control, data_engineer) through a unified project management interface.
54
-
55
- > **⚠️ Version 2.0.0 Breaking Changes**: Agent schema has been standardized. Agent IDs no longer use the `_agent` suffix (e.g., `research_agent` → `research`). See the [migration guide](docs/user/05-migration/schema-standardization-migration.md) for details.
56
-
57
- A framework for Claude that enables multi-agent workflows and extensible capabilities through a modular architecture.
58
-
59
- ## Quick Start
60
-
61
- ### Why Interactive Mode?
62
- **Interactive mode is significantly more performant** than non-interactive commands. It maintains context between requests and avoids the overhead of repeatedly launching Claude, making your development workflow much faster and more efficient.
63
-
64
- ### Installation
65
-
66
- ```bash
67
- # Install globally via npm (recommended)
68
- npm install -g @bobmatnyc/claude-mpm
69
-
70
- # Or install via PyPI
71
- pip install claude-mpm
72
-
73
- # Or use npx for one-time usage
74
- npx @bobmatnyc/claude-mpm
75
- ```
76
-
77
- ### Three Essential Use Cases
78
-
79
- #### 1. 🔍 **Understand Your Codebase**
80
- Start with codebase exploration - perfect for onboarding or getting oriented:
81
-
82
- ```bash
83
- # Launch interactive mode
84
- claude-mpm
85
-
86
- # Then ask:
87
- > Explain the codebase structure. What are the main components, how do they interact, and what architectural patterns are used?
88
- ```
89
-
90
- #### 2. 🚀 **Build a New Project**
91
- For greenfield development, use detailed, AI-generated prompts for best results:
92
-
93
- ```bash
94
- claude-mpm
95
-
96
- # Example detailed prompt (AI-generated prompts work best):
97
- > Create a modern web application with the following requirements:
98
- > - Next.js 14 with TypeScript and Tailwind CSS
99
- > - Authentication using NextAuth.js with GitHub provider
100
- > - PostgreSQL database with Prisma ORM
101
- > - User dashboard with CRUD operations for "projects"
102
- > - API routes following REST conventions
103
- > - Responsive design with dark/light mode toggle
104
- > - Form validation using react-hook-form and zod
105
- > - Include proper error handling and loading states
106
- > - Set up ESLint, Prettier, and basic testing with Jest
107
- > - Generate a complete project structure with all necessary files
108
- ```
109
-
110
- #### 3. 🔧 **Enhance Existing Code**
111
- For working on your current codebase, provide rich context:
112
-
113
- ```bash
114
- claude-mpm
115
-
116
- # Example detailed enhancement prompt:
117
- > I need to add real-time notifications to my existing Next.js application. Current tech stack:
118
- > - Next.js 13 with app router
119
- > - TypeScript
120
- > - Tailwind CSS
121
- > - PostgreSQL with Prisma
122
- > - User authentication already implemented
123
- >
124
- > Requirements:
125
- > - WebSocket-based real-time notifications
126
- > - Toast notifications in the UI
127
- > - Database table to store notification history
128
- > - Mark as read/unread functionality
129
- > - Different notification types (info, warning, success, error)
130
- > - Admin panel to send system-wide notifications
131
- > - Email fallback for offline users
132
- >
133
- > Please analyze my current codebase structure and implement this feature following my existing patterns and conventions.
134
- ```
135
-
136
- ### 💡 Pro Tips for Better Results
137
-
138
- 1. **Use AI to generate your prompts**: Ask ChatGPT or Claude to help you create detailed, specific prompts for your use case
139
- 2. **Provide context**: Include your tech stack, requirements, and any constraints
140
- 3. **Stay interactive**: Keep the conversation going to refine and iterate on solutions
141
- 4. **Ask for explanations**: Request explanations of architectural decisions and trade-offs
142
-
143
- ### Alternative: Non-Interactive Mode
144
- For automation or simple one-off tasks:
145
-
146
- ```bash
147
- # Quick analysis
148
- claude-mpm run -i "What testing frameworks are used in this project?" --non-interactive
149
-
150
- # With subprocess orchestration for complex tasks
151
- claude-mpm run --subprocess -i "Audit this codebase for security vulnerabilities" --non-interactive
152
- ```
153
-
154
- **Note**: Non-interactive mode has higher overhead and is less efficient for multi-step development workflows.
155
-
156
-
157
- ## 📚 Documentation
158
-
159
- - **[User Guide](docs/user/)** - Getting started, usage, and troubleshooting
160
- - **[Developer Guide](docs/developer/)** - Architecture, API reference, and contributing
161
- - **[Design Documents](docs/design/)** - Architectural decisions and design patterns
162
- - **[Differences from claude-multiagent-pm](docs/user/differences-from-claude-multiagent-pm.md)** - Migration guide
163
-
164
- ## Why Claude MPM?
165
-
166
- Claude MPM provides a modular framework for extending Claude's capabilities:
167
-
168
- - **🧩 Modular Architecture**: Extensible agent system and hook-based customization
169
- - **🤖 Multi-Agent Support**: Specialized agents for different tasks
170
- - **📝 Comprehensive Logging**: Every interaction is logged for review
171
- - **🛠️ Service-Based Design**: Clean separation of concerns through services
172
-
173
- ## How It Works
174
-
175
- ```
176
- ┌─────────────┐ ┌─────────────────┐ ┌──────────────┐
177
- │ Terminal │──────▶│ Claude MPM │──────▶│ Services │
178
- │ (User) │ │ Framework │ │ & Agents │
179
- └─────────────┘ └─────────────────┘ └──────────────┘
180
-
181
- ┌────────┴────────┐
182
- │ │
183
- ┌─────▼─────┐ ┌─────▼─────┐
184
- │ Hook │ │ Agent │
185
- │ System │ │ Registry │
186
- └───────────┘ └───────────┘
187
- ```
188
-
189
- ## Overview
190
-
191
- Claude MPM provides a modular framework for extending Claude's capabilities:
192
-
193
- - **Agent System**: Specialized agents for different task types
194
- - **Hook System**: Extensible architecture through pre/post hooks
195
- - **Service Layer**: Clean separation of business logic
196
- - **Agent Registry**: Dynamic agent discovery and loading
197
- - **Session Logging**: Comprehensive logging of all interactions
198
-
199
- ## Key Features
200
-
201
- ### Agent System
202
- - Specialized agents for different domains (Research, Engineer, etc.)
203
- - Dynamic agent discovery and registration
204
- - Template-based agent definitions
205
- - Extensible agent architecture
206
- - **Dynamic Capabilities**: Agent documentation automatically generated from deployed agents
207
-
208
- ### Hook System
209
- - Pre and post-processing hooks
210
- - Customizable behavior injection
211
- - Plugin-like extensibility
212
- - Clean integration points
213
-
214
- ### Service Architecture
215
- - Modular service components
216
- - Clean separation of concerns
217
- - Reusable business logic
218
- - Well-defined interfaces
219
-
220
- ### Real-Time Monitoring
221
- - **Live Dashboard**: Monitor Claude interactions with a real-time web dashboard
222
- - **Event Tracking**: View all events, agent activities, tool usage, and file operations
223
- - **Multi-Tab Interface**: Organized views for Events, Agents, Tools, and Files
224
- - **Zero Configuration**: Simple `--monitor` flag enables monitoring
225
- - **Development Focus**: Basic monitoring with enhanced features planned
226
- - **Full Documentation**: See [monitoring documentation](docs/user/monitoring/) for complete details
227
-
228
- ### Session Management
229
- - Comprehensive logging of all interactions
230
- - Debug mode for troubleshooting
231
- - Organized log structure
232
- - Performance monitoring
233
-
234
- ### Security Features
235
- - **File System Protection**: Automatic sandboxing prevents file operations outside the working directory
236
- - **Path Traversal Prevention**: Blocks attempts to escape the project directory using `..` or symlinks
237
- - **Write Operation Control**: All write operations are validated while read operations remain unrestricted
238
- - **Agent-Level Restrictions**: Each agent can have custom file access boundaries via `file_access` configuration
239
- - **PM Agent Orchestration**: New PM (Project Manager) agent ensures all sub-agents operate within security boundaries
240
- - **Transparent Security**: Zero-configuration security that works automatically in the background
241
- - **Comprehensive Logging**: All security events are logged for audit purposes
242
-
243
- ## Installation
244
-
245
- ### Other Installation Methods
246
-
247
- #### Using UV (Recommended - Fast)
248
- UV is a lightning-fast Python package manager written in Rust, offering 10-100x speed improvements over pip.
249
-
250
- ```bash
251
- # Install UV (if not already installed)
252
- curl -LsSf https://astral.sh/uv/install.sh | sh
253
-
254
- # Install claude-mpm with UV
255
- uv pip install claude-mpm
256
-
257
- # Or install from git
258
- uv pip install git+https://github.com/bobmatnyc/claude-mpm.git
259
- ```
260
-
261
- #### Using pip (Traditional)
262
- ```bash
263
- # Install from PyPI
264
- pip install claude-mpm
265
-
266
- # Or install from git
267
- pip install git+https://github.com/bobmatnyc/claude-mpm.git
268
- ```
269
-
270
- ### From Source (Development)
271
-
272
- ```bash
273
- # Clone the repository
274
- git clone https://github.com/bobmatnyc/claude-mpm.git
275
- cd claude-mpm
276
-
277
- # Option A: Using UV (Recommended - Much faster)
278
- uv venv
279
- source venv/bin/activate # On Windows: venv\Scripts\activate
280
- uv pip install -e .
281
-
282
- # Option B: Traditional approach
283
- ./install_dev.sh
284
- source venv/bin/activate
285
- ```
286
-
287
- ### Dependencies
288
-
289
- #### Core Requirements
290
- - Python 3.8+
291
- - Claude Code CLI 1.0.60+ (must be installed and in PATH)
292
-
293
- #### Automatically Installed
294
- - tree-sitter & language packs (for code analysis)
295
- - All other Python dependencies
296
-
297
- #### Code Analysis Dependencies
298
- - **tree-sitter** (>=0.21.0) - Core parsing library for advanced code analysis
299
- - **tree-sitter-language-pack** (>=0.20.0) - Multi-language support package providing parsers for 41+ programming languages
300
-
301
- These tree-sitter dependencies enable:
302
- - **Advanced Code Analysis**: The TreeSitterAnalyzer component provides syntax-aware code parsing for Research Agent operations
303
- - **Agent Modification Tracking**: Real-time analysis of agent code changes with AST-level understanding
304
- - **Multi-Language Support**: Out-of-the-box support for Python, JavaScript, TypeScript, Go, Rust, Java, C/C++, and 35+ other languages
305
- - **Performance**: Fast, incremental parsing suitable for real-time analysis during agent operations
306
-
307
- ## Usage
308
-
309
- ### Basic Usage
310
-
311
- ```bash
312
- # Run interactive session
313
- claude-mpm
314
-
315
- # Run with real-time monitoring dashboard
316
- claude-mpm run --monitor
317
-
318
- # Run with debug logging
319
- claude-mpm --debug
320
-
321
- # Show configuration info
322
- claude-mpm info
323
- ```
324
-
325
-
326
- ### Command Line Options
327
-
328
- ```
329
- claude-mpm [-h] [-d] [--log-dir LOG_DIR] {run,info}
330
-
331
- Options:
332
- -d, --debug Enable debug logging
333
- --log-dir LOG_DIR Custom log directory (default: ~/.claude-mpm/logs)
334
-
335
- Commands:
336
- run Run Claude session (default)
337
- --monitor Launch with real-time monitoring dashboard
338
- info Show framework and configuration info
339
- ```
340
-
341
-
342
-
343
- ## Architecture
344
-
345
- ### Core Components
346
-
347
- ```
348
- claude-mpm/
349
- ├── src/claude_mpm/
350
- │ ├── agents/ # Agent templates
351
- │ ├── core/ # Core functionality
352
- │ │ ├── agent_registry.py # Agent discovery
353
- │ │ └── simple_runner.py # Main runner
354
- │ ├── services/ # Business logic
355
- │ │ ├── hook_service.py
356
- │ │ └── agent_deployment.py
357
- │ ├── hooks/ # Hook system
358
- │ └── cli/ # CLI interface
359
- └── docs/ # Organized documentation
360
- ├── user/ # User guides
361
- ├── developer/ # Developer docs
362
- └── design/ # Architecture docs
363
- ```
364
-
365
- ## Testing
366
-
367
- ```bash
368
- # Run all tests
369
- ./scripts/run_all_tests.sh
370
-
371
- # Run E2E tests
372
- ./scripts/run_e2e_tests.sh
373
-
374
- # Run specific test
375
- pytest tests/test_orchestrator.py -v
376
- ```
377
-
378
- ## Logging
379
-
380
- Logs are stored in `~/.claude-mpm/logs/` by default:
381
-
382
- - `mpm_YYYYMMDD_HHMMSS.log` - Detailed debug logs
383
- - `latest.log` - Symlink to most recent log
384
- - Session logs in `~/.claude-mpm/sessions/`
385
-
386
-
387
- ## Development
388
-
389
- For detailed development information, see the [Developer Documentation](docs/developer/).
390
-
391
- ### Quick Start
392
-
393
- ```bash
394
- # Install development dependencies
395
- pip install -e ".[dev]"
396
-
397
- # Run tests
398
- python run_tests.py
399
-
400
- # Test agent integration
401
- python examples/test_agent_integration.py
402
- ```
403
-
404
- ### Key Resources
405
-
406
- - [Architecture Overview](docs/developer/README.md#architecture-overview)
407
- - [Project Structure](docs/developer/STRUCTURE.md)
408
- - [Testing Guide](docs/developer/QA.md)
409
- - [API Reference](docs/developer/README.md#api-reference)
410
- - [Contributing Guide](docs/developer/README.md#contributing)
411
-
412
- ## Troubleshooting
413
-
414
- For detailed troubleshooting, see the [User Guide](docs/user/README.md#troubleshooting).
415
-
416
- ### Quick Fixes
417
-
418
- **Claude not found**
419
- ```bash
420
- which claude # Check if Claude is in PATH
421
- ```
422
-
423
-
424
- **Debug mode**
425
- ```bash
426
- claude-mpm --debug # Enable debug logging
427
- tail -f ~/.claude-mpm/logs/latest.log # View logs
428
- ```
429
-
430
- ## License
431
-
432
- MIT License - See LICENSE file for details