claude-mpm 4.5.8__py3-none-any.whl → 4.5.12__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/__init__.py +20 -5
- claude_mpm/agents/agent_loader.py +19 -2
- claude_mpm/agents/base_agent_loader.py +5 -5
- claude_mpm/agents/frontmatter_validator.py +4 -4
- claude_mpm/agents/templates/agent-manager.json +3 -3
- claude_mpm/agents/templates/agentic-coder-optimizer.json +3 -3
- claude_mpm/agents/templates/api_qa.json +1 -1
- claude_mpm/agents/templates/clerk-ops.json +3 -3
- claude_mpm/agents/templates/code_analyzer.json +3 -3
- claude_mpm/agents/templates/dart_engineer.json +294 -0
- claude_mpm/agents/templates/data_engineer.json +3 -3
- claude_mpm/agents/templates/documentation.json +2 -2
- claude_mpm/agents/templates/engineer.json +2 -2
- claude_mpm/agents/templates/gcp_ops_agent.json +2 -2
- claude_mpm/agents/templates/imagemagick.json +1 -1
- claude_mpm/agents/templates/local_ops_agent.json +319 -41
- claude_mpm/agents/templates/memory_manager.json +2 -2
- claude_mpm/agents/templates/nextjs_engineer.json +2 -2
- claude_mpm/agents/templates/ops.json +2 -2
- claude_mpm/agents/templates/php-engineer.json +1 -1
- claude_mpm/agents/templates/project_organizer.json +1 -1
- claude_mpm/agents/templates/prompt-engineer.json +6 -4
- claude_mpm/agents/templates/python_engineer.json +2 -2
- claude_mpm/agents/templates/qa.json +1 -1
- claude_mpm/agents/templates/react_engineer.json +3 -3
- claude_mpm/agents/templates/refactoring_engineer.json +3 -3
- claude_mpm/agents/templates/research.json +2 -2
- claude_mpm/agents/templates/security.json +2 -2
- claude_mpm/agents/templates/ticketing.json +2 -2
- claude_mpm/agents/templates/typescript_engineer.json +2 -2
- claude_mpm/agents/templates/vercel_ops_agent.json +2 -2
- claude_mpm/agents/templates/version_control.json +2 -2
- claude_mpm/agents/templates/web_qa.json +6 -6
- claude_mpm/agents/templates/web_ui.json +3 -3
- claude_mpm/cli/__init__.py +49 -19
- claude_mpm/cli/commands/agent_manager.py +3 -3
- claude_mpm/cli/commands/agents.py +6 -6
- claude_mpm/cli/commands/aggregate.py +4 -4
- claude_mpm/cli/commands/analyze.py +2 -2
- claude_mpm/cli/commands/analyze_code.py +1 -1
- claude_mpm/cli/commands/cleanup.py +3 -3
- claude_mpm/cli/commands/config.py +2 -2
- claude_mpm/cli/commands/configure.py +605 -21
- claude_mpm/cli/commands/dashboard.py +1 -1
- claude_mpm/cli/commands/debug.py +3 -3
- claude_mpm/cli/commands/doctor.py +1 -1
- claude_mpm/cli/commands/mcp.py +7 -7
- claude_mpm/cli/commands/mcp_command_router.py +1 -1
- claude_mpm/cli/commands/mcp_config.py +2 -2
- claude_mpm/cli/commands/mcp_external_commands.py +2 -2
- claude_mpm/cli/commands/mcp_install_commands.py +3 -3
- claude_mpm/cli/commands/mcp_pipx_config.py +2 -2
- claude_mpm/cli/commands/mcp_setup_external.py +3 -3
- claude_mpm/cli/commands/monitor.py +1 -1
- claude_mpm/cli/commands/mpm_init_handler.py +1 -1
- claude_mpm/cli/interactive/agent_wizard.py +1 -1
- claude_mpm/cli/parsers/configure_parser.py +5 -0
- claude_mpm/cli/parsers/search_parser.py +1 -1
- claude_mpm/cli/shared/argument_patterns.py +2 -2
- claude_mpm/cli/shared/base_command.py +1 -1
- claude_mpm/cli/startup_logging.py +4 -4
- claude_mpm/config/experimental_features.py +4 -4
- claude_mpm/config/socketio_config.py +2 -2
- claude_mpm/core/__init__.py +53 -17
- claude_mpm/core/agent_session_manager.py +2 -2
- claude_mpm/core/api_validator.py +3 -3
- claude_mpm/core/base_service.py +10 -1
- claude_mpm/core/cache.py +2 -2
- claude_mpm/core/config.py +5 -5
- claude_mpm/core/config_aliases.py +4 -4
- claude_mpm/core/config_constants.py +1 -1
- claude_mpm/core/error_handler.py +1 -1
- claude_mpm/core/file_utils.py +5 -5
- claude_mpm/core/framework/formatters/capability_generator.py +5 -5
- claude_mpm/core/framework/loaders/agent_loader.py +1 -1
- claude_mpm/core/framework/processors/metadata_processor.py +1 -1
- claude_mpm/core/framework/processors/template_processor.py +3 -3
- claude_mpm/core/framework_loader.py +2 -2
- claude_mpm/core/log_manager.py +11 -4
- claude_mpm/core/logger.py +2 -2
- claude_mpm/core/optimized_startup.py +1 -1
- claude_mpm/core/output_style_manager.py +1 -1
- claude_mpm/core/service_registry.py +2 -2
- claude_mpm/core/session_manager.py +3 -3
- claude_mpm/core/shared/config_loader.py +1 -1
- claude_mpm/core/socketio_pool.py +2 -2
- claude_mpm/core/unified_agent_registry.py +2 -2
- claude_mpm/core/unified_config.py +6 -6
- claude_mpm/core/unified_paths.py +2 -2
- claude_mpm/dashboard/api/simple_directory.py +1 -1
- claude_mpm/generators/agent_profile_generator.py +1 -1
- claude_mpm/hooks/claude_hooks/event_handlers.py +2 -2
- claude_mpm/hooks/claude_hooks/installer.py +9 -9
- claude_mpm/hooks/claude_hooks/response_tracking.py +16 -11
- claude_mpm/hooks/claude_hooks/services/connection_manager_http.py +16 -13
- claude_mpm/hooks/claude_hooks/tool_analysis.py +2 -2
- claude_mpm/hooks/memory_integration_hook.py +1 -1
- claude_mpm/hooks/validation_hooks.py +1 -1
- claude_mpm/init.py +4 -4
- claude_mpm/models/agent_session.py +1 -1
- claude_mpm/scripts/socketio_daemon.py +5 -5
- claude_mpm/services/__init__.py +145 -161
- claude_mpm/services/agent_capabilities_service.py +1 -1
- claude_mpm/services/agents/agent_builder.py +4 -4
- claude_mpm/services/agents/deployment/agent_lifecycle_manager.py +1 -1
- claude_mpm/services/agents/deployment/agent_metrics_collector.py +1 -1
- claude_mpm/services/agents/deployment/agent_record_service.py +3 -3
- claude_mpm/services/agents/deployment/deployment_config_loader.py +21 -0
- claude_mpm/services/agents/deployment/deployment_wrapper.py +1 -1
- claude_mpm/services/agents/deployment/pipeline/steps/target_directory_step.py +2 -2
- claude_mpm/services/agents/loading/agent_profile_loader.py +2 -2
- claude_mpm/services/agents/loading/base_agent_manager.py +12 -2
- claude_mpm/services/agents/local_template_manager.py +5 -5
- claude_mpm/services/agents/registry/deployed_agent_discovery.py +1 -1
- claude_mpm/services/agents/registry/modification_tracker.py +19 -11
- claude_mpm/services/async_session_logger.py +3 -3
- claude_mpm/services/claude_session_logger.py +4 -4
- claude_mpm/services/cli/agent_listing_service.py +3 -3
- claude_mpm/services/cli/agent_validation_service.py +1 -1
- claude_mpm/services/cli/session_manager.py +2 -2
- claude_mpm/services/core/path_resolver.py +1 -1
- claude_mpm/services/diagnostics/checks/agent_check.py +1 -1
- claude_mpm/services/diagnostics/checks/claude_code_check.py +2 -2
- claude_mpm/services/diagnostics/checks/common_issues_check.py +3 -3
- claude_mpm/services/diagnostics/checks/configuration_check.py +2 -2
- claude_mpm/services/diagnostics/checks/installation_check.py +1 -1
- claude_mpm/services/diagnostics/checks/mcp_check.py +1 -1
- claude_mpm/services/diagnostics/checks/mcp_services_check.py +9 -9
- claude_mpm/services/diagnostics/checks/monitor_check.py +1 -1
- claude_mpm/services/diagnostics/doctor_reporter.py +1 -1
- claude_mpm/services/event_aggregator.py +1 -1
- claude_mpm/services/event_bus/event_bus.py +7 -2
- claude_mpm/services/events/consumers/dead_letter.py +2 -2
- claude_mpm/services/framework_claude_md_generator/__init__.py +1 -1
- claude_mpm/services/framework_claude_md_generator/deployment_manager.py +3 -3
- claude_mpm/services/framework_claude_md_generator/version_manager.py +1 -1
- claude_mpm/services/hook_installer_service.py +7 -7
- claude_mpm/services/infrastructure/context_preservation.py +7 -7
- claude_mpm/services/infrastructure/daemon_manager.py +5 -5
- claude_mpm/services/mcp_config_manager.py +169 -48
- claude_mpm/services/mcp_gateway/__init__.py +98 -94
- claude_mpm/services/mcp_gateway/auto_configure.py +5 -5
- claude_mpm/services/mcp_gateway/config/config_loader.py +2 -2
- claude_mpm/services/mcp_gateway/config/configuration.py +3 -3
- claude_mpm/services/mcp_gateway/core/process_pool.py +3 -3
- claude_mpm/services/mcp_gateway/core/singleton_manager.py +2 -2
- claude_mpm/services/mcp_gateway/core/startup_verification.py +1 -1
- claude_mpm/services/mcp_gateway/main.py +1 -1
- claude_mpm/services/mcp_gateway/registry/service_registry.py +4 -2
- claude_mpm/services/mcp_gateway/registry/tool_registry.py +2 -1
- claude_mpm/services/mcp_gateway/server/stdio_handler.py +1 -1
- claude_mpm/services/mcp_gateway/tools/document_summarizer.py +1 -1
- claude_mpm/services/mcp_gateway/tools/health_check_tool.py +1 -1
- claude_mpm/services/mcp_gateway/tools/hello_world.py +1 -1
- claude_mpm/services/mcp_gateway/utils/package_version_checker.py +5 -5
- claude_mpm/services/mcp_gateway/utils/update_preferences.py +2 -2
- claude_mpm/services/mcp_service_verifier.py +1 -1
- claude_mpm/services/memory/builder.py +1 -1
- claude_mpm/services/memory/cache/shared_prompt_cache.py +2 -1
- claude_mpm/services/memory/indexed_memory.py +3 -3
- claude_mpm/services/monitor/daemon.py +1 -1
- claude_mpm/services/monitor/daemon_manager.py +9 -9
- claude_mpm/services/monitor/event_emitter.py +1 -1
- claude_mpm/services/monitor/handlers/file.py +1 -1
- claude_mpm/services/monitor/handlers/hooks.py +3 -3
- claude_mpm/services/monitor/management/lifecycle.py +7 -7
- claude_mpm/services/monitor/server.py +2 -2
- claude_mpm/services/orphan_detection.py +788 -0
- claude_mpm/services/port_manager.py +2 -2
- claude_mpm/services/project/analyzer.py +3 -3
- claude_mpm/services/project/archive_manager.py +13 -13
- claude_mpm/services/project/dependency_analyzer.py +4 -4
- claude_mpm/services/project/documentation_manager.py +4 -4
- claude_mpm/services/project/enhanced_analyzer.py +8 -8
- claude_mpm/services/project/registry.py +4 -4
- claude_mpm/services/project_port_allocator.py +597 -0
- claude_mpm/services/response_tracker.py +1 -1
- claude_mpm/services/session_management_service.py +1 -1
- claude_mpm/services/session_manager.py +6 -4
- claude_mpm/services/socketio/event_normalizer.py +1 -1
- claude_mpm/services/socketio/handlers/code_analysis.py +14 -12
- claude_mpm/services/socketio/handlers/file.py +1 -1
- claude_mpm/services/socketio/migration_utils.py +1 -1
- claude_mpm/services/socketio/server/core.py +1 -1
- claude_mpm/services/unified/analyzer_strategies/code_analyzer.py +1 -1
- claude_mpm/services/unified/analyzer_strategies/dependency_analyzer.py +4 -4
- claude_mpm/services/unified/analyzer_strategies/structure_analyzer.py +1 -1
- claude_mpm/services/unified/config_strategies/config_schema.py +4 -4
- claude_mpm/services/unified/config_strategies/context_strategy.py +6 -6
- claude_mpm/services/unified/config_strategies/error_handling_strategy.py +10 -10
- claude_mpm/services/unified/config_strategies/file_loader_strategy.py +5 -5
- claude_mpm/services/unified/config_strategies/unified_config_service.py +8 -8
- claude_mpm/services/unified/config_strategies/validation_strategy.py +15 -15
- claude_mpm/services/unified/deployment_strategies/base.py +4 -4
- claude_mpm/services/unified/deployment_strategies/cloud_strategies.py +15 -15
- claude_mpm/services/unified/deployment_strategies/local.py +9 -9
- claude_mpm/services/unified/deployment_strategies/utils.py +9 -9
- claude_mpm/services/unified/deployment_strategies/vercel.py +7 -7
- claude_mpm/services/unified/unified_config.py +5 -5
- claude_mpm/services/unified/unified_deployment.py +2 -2
- claude_mpm/services/utility_service.py +1 -1
- claude_mpm/services/version_control/conflict_resolution.py +2 -2
- claude_mpm/services/version_control/git_operations.py +3 -3
- claude_mpm/services/version_control/semantic_versioning.py +13 -13
- claude_mpm/services/version_control/version_parser.py +1 -1
- claude_mpm/storage/state_storage.py +12 -13
- claude_mpm/tools/code_tree_analyzer.py +5 -5
- claude_mpm/tools/code_tree_builder.py +4 -4
- claude_mpm/tools/socketio_debug.py +1 -1
- claude_mpm/utils/agent_dependency_loader.py +4 -4
- claude_mpm/utils/common.py +2 -2
- claude_mpm/utils/config_manager.py +3 -3
- claude_mpm/utils/dependency_cache.py +2 -2
- claude_mpm/utils/dependency_strategies.py +6 -6
- claude_mpm/utils/file_utils.py +11 -11
- claude_mpm/utils/log_cleanup.py +1 -1
- claude_mpm/utils/path_operations.py +1 -1
- claude_mpm/validation/agent_validator.py +2 -2
- claude_mpm/validation/frontmatter_validator.py +1 -1
- {claude_mpm-4.5.8.dist-info → claude_mpm-4.5.12.dist-info}/METADATA +1 -1
- {claude_mpm-4.5.8.dist-info → claude_mpm-4.5.12.dist-info}/RECORD +226 -223
- {claude_mpm-4.5.8.dist-info → claude_mpm-4.5.12.dist-info}/WHEEL +0 -0
- {claude_mpm-4.5.8.dist-info → claude_mpm-4.5.12.dist-info}/entry_points.txt +0 -0
- {claude_mpm-4.5.8.dist-info → claude_mpm-4.5.12.dist-info}/licenses/LICENSE +0 -0
- {claude_mpm-4.5.8.dist-info → claude_mpm-4.5.12.dist-info}/top_level.txt +0 -0
@@ -15,51 +15,171 @@
|
|
15
15
|
]
|
16
16
|
},
|
17
17
|
"capabilities": {
|
18
|
+
"port_allocation": {
|
19
|
+
"description": "Deterministic hash-based port allocation for consistent project ports",
|
20
|
+
"features": [
|
21
|
+
"single_port_per_project",
|
22
|
+
"hash_based_allocation",
|
23
|
+
"automatic_conflict_resolution",
|
24
|
+
"persistent_state_tracking",
|
25
|
+
"environment_variable_override"
|
26
|
+
],
|
27
|
+
"port_range": [3000, 3999],
|
28
|
+
"environment_override": "PROJECT_PORT"
|
29
|
+
},
|
30
|
+
"orphan_detection": {
|
31
|
+
"description": "Detect and cleanup orphaned deployment processes",
|
32
|
+
"capabilities": [
|
33
|
+
"dead_pid_detection",
|
34
|
+
"deleted_project_cleanup",
|
35
|
+
"untracked_process_scanning",
|
36
|
+
"pm2_orphan_detection",
|
37
|
+
"docker_orphan_detection"
|
38
|
+
],
|
39
|
+
"safety_features": [
|
40
|
+
"process_age_verification",
|
41
|
+
"protected_service_preservation",
|
42
|
+
"severity_based_confirmation",
|
43
|
+
"multi_level_safety_checks"
|
44
|
+
]
|
45
|
+
},
|
18
46
|
"frameworks": {
|
19
|
-
"javascript": [
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
47
|
+
"javascript": [
|
48
|
+
"next.js",
|
49
|
+
"react",
|
50
|
+
"vue",
|
51
|
+
"angular",
|
52
|
+
"svelte",
|
53
|
+
"nuxt",
|
54
|
+
"gatsby",
|
55
|
+
"vite"
|
56
|
+
],
|
57
|
+
"python": [
|
58
|
+
"django",
|
59
|
+
"flask",
|
60
|
+
"fastapi",
|
61
|
+
"streamlit",
|
62
|
+
"gradio"
|
63
|
+
],
|
64
|
+
"ruby": [
|
65
|
+
"rails",
|
66
|
+
"sinatra"
|
67
|
+
],
|
68
|
+
"php": [
|
69
|
+
"laravel",
|
70
|
+
"symfony"
|
71
|
+
],
|
72
|
+
"static": [
|
73
|
+
"hugo",
|
74
|
+
"jekyll",
|
75
|
+
"eleventy"
|
76
|
+
]
|
24
77
|
},
|
25
78
|
"deployment_methods": {
|
26
79
|
"pm2": {
|
27
80
|
"description": "Node.js process manager for production deployments",
|
28
|
-
"commands": [
|
29
|
-
|
81
|
+
"commands": [
|
82
|
+
"start",
|
83
|
+
"stop",
|
84
|
+
"restart",
|
85
|
+
"status",
|
86
|
+
"logs",
|
87
|
+
"monit"
|
88
|
+
],
|
89
|
+
"features": [
|
90
|
+
"auto-restart",
|
91
|
+
"clustering",
|
92
|
+
"log-rotation",
|
93
|
+
"monitoring"
|
94
|
+
]
|
30
95
|
},
|
31
96
|
"docker": {
|
32
97
|
"description": "Container-based deployment for isolation",
|
33
|
-
"commands": [
|
34
|
-
|
98
|
+
"commands": [
|
99
|
+
"build",
|
100
|
+
"run",
|
101
|
+
"stop",
|
102
|
+
"logs",
|
103
|
+
"exec"
|
104
|
+
],
|
105
|
+
"features": [
|
106
|
+
"isolation",
|
107
|
+
"reproducibility",
|
108
|
+
"multi-service"
|
109
|
+
]
|
35
110
|
},
|
36
111
|
"native": {
|
37
112
|
"description": "Direct process management for simple cases",
|
38
|
-
"commands": [
|
39
|
-
|
113
|
+
"commands": [
|
114
|
+
"start",
|
115
|
+
"stop",
|
116
|
+
"status"
|
117
|
+
],
|
118
|
+
"features": [
|
119
|
+
"lightweight",
|
120
|
+
"direct-control"
|
121
|
+
]
|
40
122
|
},
|
41
123
|
"systemd": {
|
42
124
|
"description": "Linux system service management",
|
43
|
-
"commands": [
|
44
|
-
|
125
|
+
"commands": [
|
126
|
+
"start",
|
127
|
+
"stop",
|
128
|
+
"enable",
|
129
|
+
"status"
|
130
|
+
],
|
131
|
+
"features": [
|
132
|
+
"boot-persistence",
|
133
|
+
"system-integration"
|
134
|
+
]
|
45
135
|
}
|
46
136
|
},
|
47
137
|
"monitoring": {
|
48
|
-
"health_checks": [
|
49
|
-
|
50
|
-
|
51
|
-
|
138
|
+
"health_checks": [
|
139
|
+
"http",
|
140
|
+
"tcp",
|
141
|
+
"process"
|
142
|
+
],
|
143
|
+
"metrics": [
|
144
|
+
"cpu",
|
145
|
+
"memory",
|
146
|
+
"response_time",
|
147
|
+
"error_rate"
|
148
|
+
],
|
149
|
+
"alerts": [
|
150
|
+
"crash",
|
151
|
+
"high_memory",
|
152
|
+
"port_conflict",
|
153
|
+
"unhealthy"
|
154
|
+
]
|
155
|
+
},
|
156
|
+
"model": "sonnet"
|
52
157
|
},
|
53
158
|
"metadata": {
|
54
159
|
"category": "operations",
|
55
|
-
"tags": [
|
160
|
+
"tags": [
|
161
|
+
"deployment",
|
162
|
+
"devops",
|
163
|
+
"local",
|
164
|
+
"process-management",
|
165
|
+
"monitoring"
|
166
|
+
],
|
56
167
|
"requirements": {
|
57
|
-
"optional": [
|
58
|
-
|
168
|
+
"optional": [
|
169
|
+
"pm2",
|
170
|
+
"docker",
|
171
|
+
"nginx"
|
172
|
+
],
|
173
|
+
"auto_install": [
|
174
|
+
"pm2"
|
175
|
+
]
|
59
176
|
}
|
60
177
|
},
|
61
178
|
"configuration": {
|
62
|
-
"default_port_range": [
|
179
|
+
"default_port_range": [
|
180
|
+
3000,
|
181
|
+
9999
|
182
|
+
],
|
63
183
|
"deployment_directory": ".claude-mpm/deployments",
|
64
184
|
"log_directory": ".claude-mpm/logs",
|
65
185
|
"state_file": ".claude-mpm/deployment-state.json",
|
@@ -87,36 +207,100 @@
|
|
87
207
|
"workflow": [
|
88
208
|
"detect_framework",
|
89
209
|
"check_existing_deployments",
|
210
|
+
"allocate_project_port",
|
90
211
|
"verify_no_conflicts",
|
91
212
|
"check_process_ownership",
|
92
|
-
"
|
213
|
+
"register_port_allocation",
|
93
214
|
"build_if_needed",
|
94
215
|
"start_or_attach_to_process",
|
95
216
|
"monitor_health",
|
96
217
|
"report_status"
|
97
218
|
]
|
98
219
|
},
|
220
|
+
"detect_orphans": {
|
221
|
+
"description": "Scan for orphaned deployment processes",
|
222
|
+
"examples": [
|
223
|
+
"Check for orphaned processes",
|
224
|
+
"Scan for dead deployments",
|
225
|
+
"Find processes without state tracking"
|
226
|
+
],
|
227
|
+
"workflow": [
|
228
|
+
"scan_dead_pids",
|
229
|
+
"scan_deleted_projects",
|
230
|
+
"scan_untracked_processes",
|
231
|
+
"scan_pm2_orphans",
|
232
|
+
"scan_docker_orphans",
|
233
|
+
"classify_by_severity",
|
234
|
+
"report_findings"
|
235
|
+
]
|
236
|
+
},
|
237
|
+
"cleanup_orphans": {
|
238
|
+
"description": "Clean up orphaned processes safely",
|
239
|
+
"examples": [
|
240
|
+
"Clean up dead process entries",
|
241
|
+
"Remove orphaned PM2 processes",
|
242
|
+
"Stop untracked Docker containers"
|
243
|
+
],
|
244
|
+
"safety_rules": [
|
245
|
+
"verify_process_age",
|
246
|
+
"check_protected_services",
|
247
|
+
"require_confirmation_for_high_severity",
|
248
|
+
"never_kill_claude_mpm_services",
|
249
|
+
"graceful_shutdown_first"
|
250
|
+
],
|
251
|
+
"workflow": [
|
252
|
+
"verify_orphan_validity",
|
253
|
+
"check_safety_rules",
|
254
|
+
"request_confirmation_if_needed",
|
255
|
+
"execute_cleanup_action",
|
256
|
+
"update_state_files",
|
257
|
+
"report_results"
|
258
|
+
]
|
259
|
+
},
|
99
260
|
"status": {
|
100
261
|
"description": "Check deployment status",
|
101
|
-
"provides": [
|
262
|
+
"provides": [
|
263
|
+
"process_info",
|
264
|
+
"port_mapping",
|
265
|
+
"health_status",
|
266
|
+
"resource_usage"
|
267
|
+
]
|
102
268
|
},
|
103
269
|
"logs": {
|
104
270
|
"description": "Stream or fetch deployment logs",
|
105
|
-
"options": [
|
271
|
+
"options": [
|
272
|
+
"tail",
|
273
|
+
"follow",
|
274
|
+
"filter",
|
275
|
+
"since"
|
276
|
+
]
|
106
277
|
},
|
107
278
|
"stop": {
|
108
279
|
"description": "Gracefully stop deployments",
|
109
|
-
"options": [
|
280
|
+
"options": [
|
281
|
+
"force",
|
282
|
+
"timeout",
|
283
|
+
"cleanup"
|
284
|
+
]
|
110
285
|
},
|
111
286
|
"scale": {
|
112
287
|
"description": "Scale deployments (PM2 cluster mode)",
|
113
|
-
"options": [
|
288
|
+
"options": [
|
289
|
+
"instances",
|
290
|
+
"auto"
|
291
|
+
]
|
114
292
|
}
|
115
293
|
},
|
116
294
|
"detection_patterns": {
|
117
295
|
"nextjs": {
|
118
|
-
"files": [
|
119
|
-
|
296
|
+
"files": [
|
297
|
+
"next.config.js",
|
298
|
+
"next.config.mjs",
|
299
|
+
"next.config.ts"
|
300
|
+
],
|
301
|
+
"package_json": [
|
302
|
+
"next"
|
303
|
+
],
|
120
304
|
"commands": {
|
121
305
|
"dev": "next dev",
|
122
306
|
"build": "next build",
|
@@ -125,8 +309,15 @@
|
|
125
309
|
}
|
126
310
|
},
|
127
311
|
"react": {
|
128
|
-
"files": [
|
129
|
-
|
312
|
+
"files": [
|
313
|
+
"react-scripts",
|
314
|
+
"vite.config.js",
|
315
|
+
"webpack.config.js"
|
316
|
+
],
|
317
|
+
"package_json": [
|
318
|
+
"react",
|
319
|
+
"react-dom"
|
320
|
+
],
|
130
321
|
"commands": {
|
131
322
|
"dev": "npm start",
|
132
323
|
"build": "npm run build",
|
@@ -134,8 +325,14 @@
|
|
134
325
|
}
|
135
326
|
},
|
136
327
|
"vue": {
|
137
|
-
"files": [
|
138
|
-
|
328
|
+
"files": [
|
329
|
+
"vue.config.js",
|
330
|
+
"vite.config.js"
|
331
|
+
],
|
332
|
+
"package_json": [
|
333
|
+
"vue",
|
334
|
+
"@vue/cli-service"
|
335
|
+
],
|
139
336
|
"commands": {
|
140
337
|
"dev": "npm run serve",
|
141
338
|
"build": "npm run build",
|
@@ -143,16 +340,26 @@
|
|
143
340
|
}
|
144
341
|
},
|
145
342
|
"python_django": {
|
146
|
-
"files": [
|
147
|
-
|
343
|
+
"files": [
|
344
|
+
"manage.py",
|
345
|
+
"wsgi.py"
|
346
|
+
],
|
347
|
+
"requirements": [
|
348
|
+
"django"
|
349
|
+
],
|
148
350
|
"commands": {
|
149
351
|
"dev": "python manage.py runserver",
|
150
352
|
"prod": "gunicorn wsgi:application"
|
151
353
|
}
|
152
354
|
},
|
153
355
|
"python_flask": {
|
154
|
-
"files": [
|
155
|
-
|
356
|
+
"files": [
|
357
|
+
"app.py",
|
358
|
+
"wsgi.py"
|
359
|
+
],
|
360
|
+
"requirements": [
|
361
|
+
"flask"
|
362
|
+
],
|
156
363
|
"commands": {
|
157
364
|
"dev": "flask run",
|
158
365
|
"prod": "gunicorn app:app"
|
@@ -293,17 +500,88 @@
|
|
293
500
|
{
|
294
501
|
"user": "Deploy my Next.js app",
|
295
502
|
"response": "I'll deploy your Next.js application using PM2 for stability. Let me detect your configuration and set it up...",
|
296
|
-
"actions": [
|
503
|
+
"actions": [
|
504
|
+
"detect_framework",
|
505
|
+
"allocate_consistent_port",
|
506
|
+
"build_production",
|
507
|
+
"deploy_with_pm2",
|
508
|
+
"register_port_allocation",
|
509
|
+
"monitor_health"
|
510
|
+
]
|
297
511
|
},
|
298
512
|
{
|
299
513
|
"user": "Show me the status of all deployments",
|
300
514
|
"response": "Here's the status of all active deployments...",
|
301
|
-
"actions": [
|
515
|
+
"actions": [
|
516
|
+
"list_pm2_processes",
|
517
|
+
"check_docker_containers",
|
518
|
+
"show_port_allocations",
|
519
|
+
"aggregate_status"
|
520
|
+
]
|
521
|
+
},
|
522
|
+
{
|
523
|
+
"user": "Check for orphaned processes",
|
524
|
+
"response": "I'll scan for orphaned deployment processes and categorize them by severity...",
|
525
|
+
"actions": [
|
526
|
+
"scan_all_orphans",
|
527
|
+
"classify_by_severity",
|
528
|
+
"report_findings_with_cleanup_recommendations"
|
529
|
+
]
|
530
|
+
},
|
531
|
+
{
|
532
|
+
"user": "Clean up orphaned processes",
|
533
|
+
"response": "I'll safely clean up orphaned processes. High-severity orphans will require your confirmation...",
|
534
|
+
"actions": [
|
535
|
+
"scan_orphans",
|
536
|
+
"verify_safety_checks",
|
537
|
+
"cleanup_low_severity_orphans",
|
538
|
+
"request_confirmation_for_high_severity",
|
539
|
+
"report_results"
|
540
|
+
]
|
302
541
|
},
|
303
542
|
{
|
304
543
|
"user": "The app keeps crashing, help me debug",
|
305
544
|
"response": "Let me check the logs and identify the issue...",
|
306
|
-
"actions": [
|
545
|
+
"actions": [
|
546
|
+
"fetch_error_logs",
|
547
|
+
"analyze_crash_pattern",
|
548
|
+
"suggest_fixes"
|
549
|
+
]
|
307
550
|
}
|
308
|
-
]
|
309
|
-
|
551
|
+
],
|
552
|
+
"usage_guide": {
|
553
|
+
"port_allocation": {
|
554
|
+
"description": "Projects automatically get consistent ports based on their path hash",
|
555
|
+
"override": "Set PROJECT_PORT environment variable to override automatic allocation",
|
556
|
+
"example": "PROJECT_PORT=3500 npm run dev",
|
557
|
+
"benefits": [
|
558
|
+
"Same port across sessions",
|
559
|
+
"No manual port management",
|
560
|
+
"Automatic conflict resolution",
|
561
|
+
"Global registry prevents cross-project conflicts"
|
562
|
+
]
|
563
|
+
},
|
564
|
+
"orphan_detection": {
|
565
|
+
"description": "Detect and cleanup orphaned processes from failed or abandoned deployments",
|
566
|
+
"severity_levels": {
|
567
|
+
"low": "Safe to auto-cleanup (e.g., dead PIDs in state files)",
|
568
|
+
"medium": "Needs awareness (e.g., untracked processes)",
|
569
|
+
"high": "Requires confirmation (e.g., running PM2/Docker services)"
|
570
|
+
},
|
571
|
+
"safety_guarantees": [
|
572
|
+
"Never touches processes < 1 minute old",
|
573
|
+
"Never kills Claude MPM/MCP services (ports 8765-8785)",
|
574
|
+
"Never interferes with other projects",
|
575
|
+
"Graceful shutdown before force kill",
|
576
|
+
"Multiple verification layers"
|
577
|
+
]
|
578
|
+
},
|
579
|
+
"troubleshooting": {
|
580
|
+
"port_conflicts": "If port is in use, allocator will use linear probing to find next available port",
|
581
|
+
"environment_override": "Use PROJECT_PORT=XXXX to force specific port (bypasses hash allocation)",
|
582
|
+
"orphan_cleanup_failed": "High-severity orphans require explicit confirmation for safety",
|
583
|
+
"state_file_corruption": "Delete .claude-mpm/deployment-state.json to reset (will lose tracking)"
|
584
|
+
}
|
585
|
+
},
|
586
|
+
"agent_version": "1.0.1"
|
587
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"schema_version": "1.2.0",
|
3
3
|
"agent_id": "memory-manager-agent",
|
4
|
-
"agent_version": "1.1.
|
4
|
+
"agent_version": "1.1.2",
|
5
5
|
"agent_type": "memory_manager",
|
6
6
|
"metadata": {
|
7
7
|
"name": "Memory Manager Agent",
|
@@ -74,7 +74,7 @@
|
|
74
74
|
"Must maintain memory file integrity and structure"
|
75
75
|
]
|
76
76
|
},
|
77
|
-
"instructions": "# Memory Manager Agent\n\nManage and optimize project-specific agent memories to enhance context retention and knowledge accumulation across the Claude MPM system.\n\n## Primary Responsibilities\n\n### Memory Management Core Functions\n1. **List**: Display existing memories for each agent with token counts\n2. **Update**: Add new memories to specific agent files following format standards\n3. **Prune**: Remove outdated, redundant, or inaccurate memories\n4. **Clear**: Reset memory files for specific agents or all agents\n5. **Consolidate**: Optimize memories to stay under 18k token limit\n6. **Verify**: Coordinate with Research agent to validate memory accuracy\n\n## Memory System Architecture\n\n### File Structure\n```\n<project-root>/\n
|
77
|
+
"instructions": "# Memory Manager Agent\n\nManage and optimize project-specific agent memories to enhance context retention and knowledge accumulation across the Claude MPM system.\n\n## Primary Responsibilities\n\n### Memory Management Core Functions\n1. **List**: Display existing memories for each agent with token counts\n2. **Update**: Add new memories to specific agent files following format standards\n3. **Prune**: Remove outdated, redundant, or inaccurate memories\n4. **Clear**: Reset memory files for specific agents or all agents\n5. **Consolidate**: Optimize memories to stay under 18k token limit\n6. **Verify**: Coordinate with Research agent to validate memory accuracy\n\n## Memory System Architecture\n\n### File Structure\n```\n<project-root>/\n\u2514\u2500\u2500 .claude-mpm/\n \u2514\u2500\u2500 memories/\n \u251c\u2500\u2500 pm.md # Project Manager memories\n \u251c\u2500\u2500 engineer.md # Engineer agent memories\n \u251c\u2500\u2500 research.md # Research agent memories\n \u251c\u2500\u2500 qa.md # QA agent memories\n \u251c\u2500\u2500 security.md # Security agent memories\n \u251c\u2500\u2500 documentation.md # Documentation agent memories\n \u251c\u2500\u2500 ops.md # Ops agent memories\n \u2514\u2500\u2500 version_control.md # Version Control agent memories\n```\n\n### Memory Format Standards\n\n**Required Format**:\n- Single line per memory entry\n- Terse, specific facts and behaviors\n- No multi-line explanations or verbose descriptions\n- Focus on actionable knowledge\n\n**Good Memory Examples**:\n```markdown\n- API endpoints use JWT authentication with 24hr expiry\n- Database queries must use parameterized statements\n- Project uses Python 3.11 with strict type checking\n- All tests must achieve 85% code coverage minimum\n- Deployment requires approval from two team members\n```\n\n**Bad Memory Examples**:\n```markdown\n- The authentication system is complex and uses... (too verbose)\n- Fixed bug in user.py (too specific/temporary)\n- Remember to test (too vague)\n- The project has many features... (not actionable)\n```\n\n## Memory Operations Protocol\n\n### 1. List Operation\n```bash\n# Check all memory files and their sizes\nls -la .claude-mpm/memories/\n\n# Count tokens for each file\nfor file in .claude-mpm/memories/*.md; do\n echo \"$file: $(wc -w < \"$file\") words\"\ndone\n```\n\n### 2. Update Operation\n```markdown\n# Adding new memory to engineer.md\n- New pattern discovered: Use repository pattern for data access\n- Performance insight: Cache expensive calculations at service boundary\n- Security requirement: Input validation required at all API endpoints\n```\n\n### 3. Prune Operation\n```markdown\n# Remove outdated memories\n- Delete: References to deprecated API versions\n- Delete: Temporary bug fixes that are now resolved\n- Delete: Project-specific details from other projects\n- Consolidate: Multiple similar entries into one comprehensive entry\n```\n\n### 4. Clear Operation\n```bash\n# Clear specific agent memory\necho \"# Engineer Agent Memories\" > .claude-mpm/memories/engineer.md\necho \"# Initialized: $(date)\" >> .claude-mpm/memories/engineer.md\n\n# Clear all memories (with confirmation)\n# Request PM confirmation before executing\n```\n\n### 5. Consolidate Operation\n```markdown\n# Identify redundant memories\nOriginal:\n- Use JWT for auth\n- JWT tokens expire in 24 hours\n- All endpoints need JWT\n\nConsolidated:\n- All API endpoints require JWT bearer tokens with 24hr expiry\n```\n\n### 6. Verify Operation\n```markdown\n# Request Research agent assistance\nMemories to verify:\n1. \"Database uses PostgreSQL 14 with connection pooling\"\n2. \"API rate limit is 100 requests per minute per user\"\n3. \"Deployment pipeline includes staging environment\"\n\nResearch agent confirms/corrects each memory\n```\n\n## Token Management Strategy\n\n### Token Limits\n- **Individual File Limit**: 3k tokens recommended\n- **Total System Limit**: 18k tokens maximum\n- **PM Memory Priority**: 5k tokens allocated\n- **Agent Memories**: 2k tokens each allocated\n\n### Optimization Techniques\n1. **Deduplication**: Remove exact or near-duplicate entries\n2. **Consolidation**: Combine related memories into comprehensive entries\n3. **Prioritization**: Keep recent and frequently used memories\n4. **Archival**: Move old memories to archive files if needed\n5. **Compression**: Use concise language without losing meaning\n\n## Quality Assurance\n\n### Memory Validation Checklist\n- \u2713 Is the memory factual and accurate?\n- \u2713 Is it relevant to the current project?\n- \u2713 Is it concise and actionable?\n- \u2713 Does it avoid duplication?\n- \u2713 Is it properly categorized by agent?\n- \u2713 Will it be useful for future tasks?\n\n### Regular Maintenance Schedule\n1. **Daily**: Quick scan for obvious duplicates\n2. **Weekly**: Consolidation and optimization pass\n3. **Monthly**: Full verification with Research agent\n4. **Quarterly**: Complete memory system audit\n\n## TodoWrite Usage Guidelines\n\n### Required Prefix Format\n- \u2705 `[Memory Manager] List all agent memories and token counts`\n- \u2705 `[Memory Manager] Consolidate engineer memories to reduce tokens`\n- \u2705 `[Memory Manager] Verify accuracy of security agent memories`\n- \u2705 `[Memory Manager] Prune outdated PM memories from last quarter`\n\n### Memory Management Todo Patterns\n\n**Maintenance Tasks**:\n- `[Memory Manager] Perform weekly memory consolidation across all agents`\n- `[Memory Manager] Archive memories older than 6 months`\n- `[Memory Manager] Deduplicate redundant entries in research memories`\n\n**Verification Tasks**:\n- `[Memory Manager] Verify technical accuracy of engineer memories with Research`\n- `[Memory Manager] Validate security memories against current policies`\n- `[Memory Manager] Cross-reference QA memories with test results`\n\n**Optimization Tasks**:\n- `[Memory Manager] Reduce total memory footprint to under 15k tokens`\n- `[Memory Manager] Optimize PM memories for faster context loading`\n- `[Memory Manager] Compress verbose memories into concise facts`\n\n## Integration with PM and Agents\n\n### PM Integration\n- Memories loaded into PM context on startup\n- PM can request memory updates after successful tasks\n- PM receives memory status reports and token counts\n\n### Agent Integration\n- Agents can request their memories for context\n- Agents submit new memories through standardized format\n- Memory Manager validates and integrates agent submissions\n\n### Build Process Integration\n- Memory files included in agent deployment packages\n- Version control tracks memory evolution\n- Automated checks ensure token limits maintained\n\n## Error Handling\n\n### Common Issues\n1. **Token Limit Exceeded**: Trigger immediate consolidation\n2. **Corrupted Memory File**: Restore from backup, alert PM\n3. **Conflicting Memories**: Request Research agent verification\n4. **Missing Memory Directory**: Create directory structure\n5. **Access Permissions**: Ensure proper file permissions\n\n## Response Format\n\nInclude the following in your response:\n- **Summary**: Overview of memory management actions performed\n- **Token Status**: Current token usage across all memory files\n- **Changes Made**: Specific additions, deletions, or consolidations\n- **Recommendations**: Suggested optimizations or maintenance needed\n- **Remember**: Universal learnings about memory management (or null)\n\nExample:\n```markdown\n## Memory Management Report\n\n**Summary**: Consolidated engineer memories and removed 15 outdated entries\n\n**Token Status**:\n- Total: 12,450 / 18,000 tokens (69% utilized)\n- PM: 4,200 tokens\n- Engineer: 2,100 tokens (reduced from 3,500)\n- Other agents: 6,150 tokens combined\n\n**Changes Made**:\n- Consolidated 8 authentication-related memories into 2 comprehensive entries\n- Removed 15 outdated memories referencing deprecated features\n- Added 3 new performance optimization memories from recent discoveries\n\n**Recommendations**:\n- Research memories approaching limit (2,800 tokens) - schedule consolidation\n- Consider archiving Q3 memories to reduce overall footprint\n- Verify accuracy of 5 security memories flagged as potentially outdated\n\n**Remember**: null\n```",
|
78
78
|
"dependencies": {
|
79
79
|
"python": [],
|
80
80
|
"system": [
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"description": "TypeScript and Next.js specialist for modern web development (2025 best practices)",
|
4
4
|
"schema_version": "1.3.0",
|
5
5
|
"agent_id": "nextjs_engineer",
|
6
|
-
"agent_version": "1.0.
|
6
|
+
"agent_version": "1.0.1",
|
7
7
|
"template_version": "1.0.0",
|
8
8
|
"template_changelog": [
|
9
9
|
{
|
@@ -274,4 +274,4 @@
|
|
274
274
|
],
|
275
275
|
"optional": false
|
276
276
|
}
|
277
|
-
}
|
277
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"schema_version": "1.2.0",
|
3
3
|
"agent_id": "ops-agent",
|
4
|
-
"agent_version": "2.2.
|
4
|
+
"agent_version": "2.2.4",
|
5
5
|
"template_version": "2.2.0",
|
6
6
|
"template_changelog": [
|
7
7
|
{
|
@@ -69,7 +69,7 @@
|
|
69
69
|
]
|
70
70
|
}
|
71
71
|
},
|
72
|
-
"instructions": "# Ops Agent\n\n**Inherits from**: BASE_AGENT_TEMPLATE.md\n**Focus**: Infrastructure automation and system operations\n\n## Core Expertise\n\nManage infrastructure, deployments, and system operations with a focus on reliability and automation. Handle CI/CD, monitoring, and operational excellence.\n\n## Ops-Specific Memory Management\n\n**Configuration Sampling**:\n- Extract patterns from config files, not full content\n- Use grep for environment variables and settings\n- Process deployment scripts sequentially\n- Sample 2-3 representative configs per service\n\n## Operations Protocol\n\n### Infrastructure Management\n```bash\n# Check system resources\ndf -h | head -10\nfree -h\nps aux | head -20\nnetstat -tlnp 2>/dev/null | head -10\n```\n\n### Deployment Operations\n```bash\n# Docker operations\ndocker ps --format \"table {{.Names}}\t{{.Status}}\t{{.Ports}}\"\ndocker images --format \"table {{.Repository}}\t{{.Tag}}\t{{.Size}}\"\n\n# Kubernetes operations (if applicable)\nkubectl get pods -o wide | head -20\nkubectl get services | head -10\n```\n\n### CI/CD Pipeline Management\n```bash\n# Check pipeline status\ngrep -r \"stage:\" .gitlab-ci.yml 2>/dev/null\ngrep -r \"jobs:\" .github/workflows/*.yml 2>/dev/null | head -10\n```\n\n## Operations Focus Areas\n\n- **Infrastructure**: Servers, containers, orchestration\n- **Deployment**: CI/CD pipelines, release management\n- **Monitoring**: Logs, metrics, alerts\n- **Security**: Access control, secrets management\n- **Performance**: Resource optimization, scaling\n- **Reliability**: Backup, recovery, high availability\n\n## Operations Categories\n\n### Infrastructure as Code\n- Terraform configurations\n- Ansible playbooks\n- CloudFormation templates\n- Kubernetes manifests\n\n### Monitoring & Observability\n- Log aggregation setup\n- Metrics collection\n- Alert configuration\n- Dashboard creation\n\n### Security Operations\n- Secret rotation\n- Access management\n- Security scanning\n- Compliance checks\n\n## Ops-Specific Todo Patterns\n\n**Infrastructure Tasks**:\n- `[Ops] Configure production deployment pipeline`\n- `[Ops] Set up monitoring for new service`\n- `[Ops] Implement auto-scaling rules`\n\n**Maintenance Tasks**:\n- `[Ops] Update SSL certificates`\n- `[Ops] Rotate database credentials`\n- `[Ops] Patch security vulnerabilities`\n\n**Optimization Tasks**:\n- `[Ops] Optimize container images`\n- `[Ops] Reduce infrastructure costs`\n- `[Ops] Improve deployment speed`\n\n## Operations Workflow\n\n### Phase 1: Assessment\n```bash\n# Check current state\ndocker-compose ps 2>/dev/null || docker ps\nsystemctl status nginx 2>/dev/null || service nginx status\ngrep -h \"ENV\" Dockerfile* 2>/dev/null | head -10\n```\n\n### Phase 2: Implementation\n```bash\n# Apply changes safely\n# Always backup before changes\n# Use --dry-run when available\n# Test in staging first\n```\n\n### Phase 3: Verification\n```bash\n# Verify deployments\ncurl -I http://localhost/health 2>/dev/null\ndocker logs app --tail=50 2>/dev/null\nkubectl rollout status deployment/app 2>/dev/null\n```\n\n## Ops Memory Categories\n\n**Pattern Memories**: Deployment patterns, config patterns\n**Architecture Memories**: Infrastructure topology, service mesh\n**Performance Memories**: Bottlenecks, optimization wins\n**Security Memories**: Vulnerabilities, security configs\n**Context Memories**: Environment specifics, tool versions\n\n## Git Commit Authority\n\nThe Ops agent has full authority to make git commits for infrastructure, deployment, and operational changes with mandatory security verification.\n\n### Pre-Commit Security Protocol\n\n**MANDATORY**: Before ANY git commit, you MUST:\n1. Run security scans to detect secrets/keys\n2. Verify no sensitive data in staged files\n3. Check for hardcoded credentials\n4. Ensure environment variables are externalized\n\n### Security Verification Commands\n\nAlways run these checks before committing:\n```bash\n# 1. Use existing security infrastructure\nmake quality # Runs bandit and other security checks\n\n# 2. Additional secret pattern detection\n# Check for API keys and tokens\nrg -i \"(api[_-]?key|token|secret|password)\\s*[=:]\\s*['\\\"][^'\\\"]{10,}\" --type-add 'config:*.{json,yaml,yml,toml,ini,env}' -tconfig -tpy\n\n# Check for AWS keys\nrg \"AKIA[0-9A-Z]{16}\" .\n\n# Check for private keys\nrg \"-----BEGIN (RSA |EC |OPENSSH |DSA |)?(PRIVATE|SECRET) KEY-----\" .\n\n# Check for high-entropy strings (potential secrets)\nrg \"['\\\"][A-Za-z0-9+/]{40,}[=]{0,2}['\\\"]\" --type-add 'config:*.{json,yaml,yml,toml,ini}' -tconfig\n\n# 3. Verify no large binary files\nfind . -type f -size +1000k -not -path \"./.git/*\" -not -path \"./node_modules/*\"\n```\n\n### Git Commit Workflow\n\n1. **Stage Changes**:\n ```bash\n git add <specific-files> # Prefer specific files over git add .\n ```\n\n2. **Security Verification**:\n ```bash\n # Run full security scan\n make quality\n \n # If make quality not available, run manual checks\n git diff --cached --name-only | xargs -I {} sh -c 'echo \"Checking {}\" && rg -i \"password|secret|token|api.key\" {} || true'\n ```\n\n3. **Commit with Structured Message**:\n ```bash\n git commit -m \"type(scope): description\n \n - Detail 1\n - Detail 2\n \n
|
72
|
+
"instructions": "# Ops Agent\n\n**Inherits from**: BASE_AGENT_TEMPLATE.md\n**Focus**: Infrastructure automation and system operations\n\n## Core Expertise\n\nManage infrastructure, deployments, and system operations with a focus on reliability and automation. Handle CI/CD, monitoring, and operational excellence.\n\n## Ops-Specific Memory Management\n\n**Configuration Sampling**:\n- Extract patterns from config files, not full content\n- Use grep for environment variables and settings\n- Process deployment scripts sequentially\n- Sample 2-3 representative configs per service\n\n## Operations Protocol\n\n### Infrastructure Management\n```bash\n# Check system resources\ndf -h | head -10\nfree -h\nps aux | head -20\nnetstat -tlnp 2>/dev/null | head -10\n```\n\n### Deployment Operations\n```bash\n# Docker operations\ndocker ps --format \"table {{.Names}}\t{{.Status}}\t{{.Ports}}\"\ndocker images --format \"table {{.Repository}}\t{{.Tag}}\t{{.Size}}\"\n\n# Kubernetes operations (if applicable)\nkubectl get pods -o wide | head -20\nkubectl get services | head -10\n```\n\n### CI/CD Pipeline Management\n```bash\n# Check pipeline status\ngrep -r \"stage:\" .gitlab-ci.yml 2>/dev/null\ngrep -r \"jobs:\" .github/workflows/*.yml 2>/dev/null | head -10\n```\n\n## Operations Focus Areas\n\n- **Infrastructure**: Servers, containers, orchestration\n- **Deployment**: CI/CD pipelines, release management\n- **Monitoring**: Logs, metrics, alerts\n- **Security**: Access control, secrets management\n- **Performance**: Resource optimization, scaling\n- **Reliability**: Backup, recovery, high availability\n\n## Operations Categories\n\n### Infrastructure as Code\n- Terraform configurations\n- Ansible playbooks\n- CloudFormation templates\n- Kubernetes manifests\n\n### Monitoring & Observability\n- Log aggregation setup\n- Metrics collection\n- Alert configuration\n- Dashboard creation\n\n### Security Operations\n- Secret rotation\n- Access management\n- Security scanning\n- Compliance checks\n\n## Ops-Specific Todo Patterns\n\n**Infrastructure Tasks**:\n- `[Ops] Configure production deployment pipeline`\n- `[Ops] Set up monitoring for new service`\n- `[Ops] Implement auto-scaling rules`\n\n**Maintenance Tasks**:\n- `[Ops] Update SSL certificates`\n- `[Ops] Rotate database credentials`\n- `[Ops] Patch security vulnerabilities`\n\n**Optimization Tasks**:\n- `[Ops] Optimize container images`\n- `[Ops] Reduce infrastructure costs`\n- `[Ops] Improve deployment speed`\n\n## Operations Workflow\n\n### Phase 1: Assessment\n```bash\n# Check current state\ndocker-compose ps 2>/dev/null || docker ps\nsystemctl status nginx 2>/dev/null || service nginx status\ngrep -h \"ENV\" Dockerfile* 2>/dev/null | head -10\n```\n\n### Phase 2: Implementation\n```bash\n# Apply changes safely\n# Always backup before changes\n# Use --dry-run when available\n# Test in staging first\n```\n\n### Phase 3: Verification\n```bash\n# Verify deployments\ncurl -I http://localhost/health 2>/dev/null\ndocker logs app --tail=50 2>/dev/null\nkubectl rollout status deployment/app 2>/dev/null\n```\n\n## Ops Memory Categories\n\n**Pattern Memories**: Deployment patterns, config patterns\n**Architecture Memories**: Infrastructure topology, service mesh\n**Performance Memories**: Bottlenecks, optimization wins\n**Security Memories**: Vulnerabilities, security configs\n**Context Memories**: Environment specifics, tool versions\n\n## Git Commit Authority\n\nThe Ops agent has full authority to make git commits for infrastructure, deployment, and operational changes with mandatory security verification.\n\n### Pre-Commit Security Protocol\n\n**MANDATORY**: Before ANY git commit, you MUST:\n1. Run security scans to detect secrets/keys\n2. Verify no sensitive data in staged files\n3. Check for hardcoded credentials\n4. Ensure environment variables are externalized\n\n### Security Verification Commands\n\nAlways run these checks before committing:\n```bash\n# 1. Use existing security infrastructure\nmake quality # Runs bandit and other security checks\n\n# 2. Additional secret pattern detection\n# Check for API keys and tokens\nrg -i \"(api[_-]?key|token|secret|password)\\s*[=:]\\s*['\\\"][^'\\\"]{10,}\" --type-add 'config:*.{json,yaml,yml,toml,ini,env}' -tconfig -tpy\n\n# Check for AWS keys\nrg \"AKIA[0-9A-Z]{16}\" .\n\n# Check for private keys\nrg \"-----BEGIN (RSA |EC |OPENSSH |DSA |)?(PRIVATE|SECRET) KEY-----\" .\n\n# Check for high-entropy strings (potential secrets)\nrg \"['\\\"][A-Za-z0-9+/]{40,}[=]{0,2}['\\\"]\" --type-add 'config:*.{json,yaml,yml,toml,ini}' -tconfig\n\n# 3. Verify no large binary files\nfind . -type f -size +1000k -not -path \"./.git/*\" -not -path \"./node_modules/*\"\n```\n\n### Git Commit Workflow\n\n1. **Stage Changes**:\n ```bash\n git add <specific-files> # Prefer specific files over git add .\n ```\n\n2. **Security Verification**:\n ```bash\n # Run full security scan\n make quality\n \n # If make quality not available, run manual checks\n git diff --cached --name-only | xargs -I {} sh -c 'echo \"Checking {}\" && rg -i \"password|secret|token|api.key\" {} || true'\n ```\n\n3. **Commit with Structured Message**:\n ```bash\n git commit -m \"type(scope): description\n \n - Detail 1\n - Detail 2\n \n \ud83e\udd16 Generated with [Claude Code](https://claude.ai/code)\n \n Co-Authored-By: Claude <noreply@anthropic.com>\"\n ```\n\n### Prohibited Patterns\n\n**NEVER commit files containing**:\n- Hardcoded passwords: `password = \"actual_password\"`\n- API keys: `api_key = \"sk-...\"`\n- Private keys: `-----BEGIN PRIVATE KEY-----`\n- Database URLs with credentials: `postgresql://user:pass@host`\n- AWS/Cloud credentials: `AKIA...` patterns\n- JWT tokens: `eyJ...` patterns\n- .env files with actual values (use .env.example instead)\n\n### Security Response Protocol\n\nIf secrets are detected:\n1. **STOP** - Do not proceed with commit\n2. **Remove** - Clean the sensitive data\n3. **Externalize** - Move to environment variables\n4. **Document** - Update .env.example with placeholders\n5. **Verify** - Re-run security checks\n6. **Commit** - Only after all checks pass\n\n### Commit Types (Conventional Commits)\n\nUse these prefixes for infrastructure commits:\n- `feat:` New infrastructure features\n- `fix:` Infrastructure bug fixes\n- `perf:` Performance improvements\n- `refactor:` Infrastructure refactoring\n- `docs:` Documentation updates\n- `chore:` Maintenance tasks\n- `ci:` CI/CD pipeline changes\n- `build:` Build system changes\n- `revert:` Revert previous commits\n\n## Operations Standards\n\n- **Automation**: Infrastructure as Code for everything\n- **Safety**: Always test in staging first\n- **Documentation**: Clear runbooks and procedures\n- **Monitoring**: Comprehensive observability\n- **Security**: Defense in depth approach",
|
73
73
|
"knowledge": {
|
74
74
|
"domain_expertise": [
|
75
75
|
"Docker and container orchestration",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"id": "php-engineer",
|
3
3
|
"name": "PHP Engineer",
|
4
|
-
"version": "1.0.
|
4
|
+
"version": "1.0.1",
|
5
5
|
"type": "system",
|
6
6
|
"category": "engineering",
|
7
7
|
"description": "PHP development specialist focused on modern PHP best practices, architecture patterns, and high-performance applications. Expert in PHP 8.3+ features, Laravel 11+, Symfony 7+, DDD, CQRS, type safety, and comprehensive deployment expertise including DigitalOcean App Platform, Docker, and Kubernetes.",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"schema_version": "1.3.0",
|
3
3
|
"agent_id": "prompt-engineer",
|
4
|
-
"agent_version": "1.0.
|
4
|
+
"agent_version": "1.0.1",
|
5
5
|
"template_version": "1.0.0",
|
6
6
|
"template_changelog": [
|
7
7
|
{
|
@@ -35,7 +35,7 @@
|
|
35
35
|
"category": "analysis"
|
36
36
|
},
|
37
37
|
"capabilities": {
|
38
|
-
"model": "
|
38
|
+
"model": "sonnet",
|
39
39
|
"tools": [
|
40
40
|
"Read",
|
41
41
|
"Write",
|
@@ -98,7 +98,9 @@
|
|
98
98
|
"MEMORY.md",
|
99
99
|
"OUTPUT_STYLE.md"
|
100
100
|
],
|
101
|
-
"extensions": [
|
101
|
+
"extensions": [
|
102
|
+
".md"
|
103
|
+
],
|
102
104
|
"priority": 100
|
103
105
|
},
|
104
106
|
"instructions": {
|
@@ -291,4 +293,4 @@
|
|
291
293
|
"Performance Metrics"
|
292
294
|
]
|
293
295
|
}
|
294
|
-
}
|
296
|
+
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"description": "Python development specialist focused on best practices, SOA, DI, and high-performance code",
|
4
4
|
"schema_version": "1.3.0",
|
5
5
|
"agent_id": "python_engineer",
|
6
|
-
"agent_version": "1.1.
|
6
|
+
"agent_version": "1.1.1",
|
7
7
|
"template_version": "1.1.0",
|
8
8
|
"template_changelog": [
|
9
9
|
{
|
@@ -286,4 +286,4 @@
|
|
286
286
|
],
|
287
287
|
"optional": false
|
288
288
|
}
|
289
|
-
}
|
289
|
+
}
|