claude-mpm 5.4.85__py3-none-any.whl → 5.6.1__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 (254) hide show
  1. claude_mpm/VERSION +1 -1
  2. claude_mpm/agents/CLAUDE_MPM_OUTPUT_STYLE.md +8 -5
  3. claude_mpm/agents/{CLAUDE_MPM_FOUNDERS_OUTPUT_STYLE.md → CLAUDE_MPM_RESEARCH_OUTPUT_STYLE.md} +14 -6
  4. claude_mpm/agents/PM_INSTRUCTIONS.md +101 -703
  5. claude_mpm/agents/WORKFLOW.md +2 -0
  6. claude_mpm/agents/templates/circuit-breakers.md +26 -17
  7. claude_mpm/cli/commands/autotodos.py +566 -0
  8. claude_mpm/cli/commands/commander.py +46 -0
  9. claude_mpm/cli/commands/hook_errors.py +60 -60
  10. claude_mpm/cli/commands/monitor.py +2 -2
  11. claude_mpm/cli/commands/mpm_init/core.py +2 -2
  12. claude_mpm/cli/commands/run.py +35 -3
  13. claude_mpm/cli/executor.py +119 -16
  14. claude_mpm/cli/parsers/base_parser.py +71 -1
  15. claude_mpm/cli/parsers/commander_parser.py +83 -0
  16. claude_mpm/cli/parsers/run_parser.py +10 -0
  17. claude_mpm/cli/startup.py +54 -16
  18. claude_mpm/cli/startup_display.py +72 -5
  19. claude_mpm/cli/startup_logging.py +2 -2
  20. claude_mpm/cli/utils.py +7 -3
  21. claude_mpm/commander/__init__.py +72 -0
  22. claude_mpm/commander/adapters/__init__.py +31 -0
  23. claude_mpm/commander/adapters/base.py +191 -0
  24. claude_mpm/commander/adapters/claude_code.py +361 -0
  25. claude_mpm/commander/adapters/communication.py +366 -0
  26. claude_mpm/commander/api/__init__.py +16 -0
  27. claude_mpm/commander/api/app.py +105 -0
  28. claude_mpm/commander/api/errors.py +112 -0
  29. claude_mpm/commander/api/routes/__init__.py +8 -0
  30. claude_mpm/commander/api/routes/events.py +184 -0
  31. claude_mpm/commander/api/routes/inbox.py +171 -0
  32. claude_mpm/commander/api/routes/messages.py +148 -0
  33. claude_mpm/commander/api/routes/projects.py +271 -0
  34. claude_mpm/commander/api/routes/sessions.py +215 -0
  35. claude_mpm/commander/api/routes/work.py +260 -0
  36. claude_mpm/commander/api/schemas.py +182 -0
  37. claude_mpm/commander/chat/__init__.py +7 -0
  38. claude_mpm/commander/chat/cli.py +107 -0
  39. claude_mpm/commander/chat/commands.py +96 -0
  40. claude_mpm/commander/chat/repl.py +310 -0
  41. claude_mpm/commander/config.py +49 -0
  42. claude_mpm/commander/config_loader.py +115 -0
  43. claude_mpm/commander/daemon.py +398 -0
  44. claude_mpm/commander/events/__init__.py +26 -0
  45. claude_mpm/commander/events/manager.py +332 -0
  46. claude_mpm/commander/frameworks/__init__.py +12 -0
  47. claude_mpm/commander/frameworks/base.py +143 -0
  48. claude_mpm/commander/frameworks/claude_code.py +58 -0
  49. claude_mpm/commander/frameworks/mpm.py +62 -0
  50. claude_mpm/commander/inbox/__init__.py +16 -0
  51. claude_mpm/commander/inbox/dedup.py +128 -0
  52. claude_mpm/commander/inbox/inbox.py +224 -0
  53. claude_mpm/commander/inbox/models.py +70 -0
  54. claude_mpm/commander/instance_manager.py +337 -0
  55. claude_mpm/commander/llm/__init__.py +6 -0
  56. claude_mpm/commander/llm/openrouter_client.py +167 -0
  57. claude_mpm/commander/llm/summarizer.py +70 -0
  58. claude_mpm/commander/models/__init__.py +18 -0
  59. claude_mpm/commander/models/events.py +121 -0
  60. claude_mpm/commander/models/project.py +162 -0
  61. claude_mpm/commander/models/work.py +214 -0
  62. claude_mpm/commander/parsing/__init__.py +20 -0
  63. claude_mpm/commander/parsing/extractor.py +132 -0
  64. claude_mpm/commander/parsing/output_parser.py +270 -0
  65. claude_mpm/commander/parsing/patterns.py +100 -0
  66. claude_mpm/commander/persistence/__init__.py +11 -0
  67. claude_mpm/commander/persistence/event_store.py +274 -0
  68. claude_mpm/commander/persistence/state_store.py +309 -0
  69. claude_mpm/commander/persistence/work_store.py +164 -0
  70. claude_mpm/commander/polling/__init__.py +13 -0
  71. claude_mpm/commander/polling/event_detector.py +104 -0
  72. claude_mpm/commander/polling/output_buffer.py +49 -0
  73. claude_mpm/commander/polling/output_poller.py +153 -0
  74. claude_mpm/commander/project_session.py +268 -0
  75. claude_mpm/commander/proxy/__init__.py +12 -0
  76. claude_mpm/commander/proxy/formatter.py +89 -0
  77. claude_mpm/commander/proxy/output_handler.py +191 -0
  78. claude_mpm/commander/proxy/relay.py +155 -0
  79. claude_mpm/commander/registry.py +404 -0
  80. claude_mpm/commander/runtime/__init__.py +10 -0
  81. claude_mpm/commander/runtime/executor.py +191 -0
  82. claude_mpm/commander/runtime/monitor.py +316 -0
  83. claude_mpm/commander/session/__init__.py +6 -0
  84. claude_mpm/commander/session/context.py +81 -0
  85. claude_mpm/commander/session/manager.py +59 -0
  86. claude_mpm/commander/tmux_orchestrator.py +361 -0
  87. claude_mpm/commander/web/__init__.py +1 -0
  88. claude_mpm/commander/work/__init__.py +30 -0
  89. claude_mpm/commander/work/executor.py +189 -0
  90. claude_mpm/commander/work/queue.py +405 -0
  91. claude_mpm/commander/workflow/__init__.py +27 -0
  92. claude_mpm/commander/workflow/event_handler.py +219 -0
  93. claude_mpm/commander/workflow/notifier.py +146 -0
  94. claude_mpm/commands/mpm-config.md +8 -0
  95. claude_mpm/commands/mpm-doctor.md +8 -0
  96. claude_mpm/commands/mpm-help.md +8 -0
  97. claude_mpm/commands/mpm-init.md +8 -0
  98. claude_mpm/commands/mpm-monitor.md +8 -0
  99. claude_mpm/commands/mpm-organize.md +8 -0
  100. claude_mpm/commands/mpm-postmortem.md +8 -0
  101. claude_mpm/commands/mpm-session-resume.md +9 -1
  102. claude_mpm/commands/mpm-status.md +8 -0
  103. claude_mpm/commands/mpm-ticket-view.md +8 -0
  104. claude_mpm/commands/mpm-version.md +8 -0
  105. claude_mpm/commands/mpm.md +8 -0
  106. claude_mpm/config/agent_presets.py +8 -7
  107. claude_mpm/core/config.py +5 -0
  108. claude_mpm/core/hook_manager.py +51 -3
  109. claude_mpm/core/logger.py +10 -7
  110. claude_mpm/core/logging_utils.py +4 -2
  111. claude_mpm/core/output_style_manager.py +15 -5
  112. claude_mpm/core/unified_config.py +10 -6
  113. claude_mpm/dashboard/static/svelte-build/_app/immutable/assets/0.C33zOoyM.css +1 -0
  114. claude_mpm/dashboard/static/svelte-build/_app/immutable/assets/2.CW1J-YuA.css +1 -0
  115. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{Cs_tUR18.js → 1WZnGYqX.js} +1 -1
  116. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{CDuw-vjf.js → 67pF3qNn.js} +1 -1
  117. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{bTOqqlTd.js → 6RxdMKe4.js} +1 -1
  118. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{DwBR2MJi.js → 8cZrfX0h.js} +1 -1
  119. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{ZGh7QtNv.js → 9a6T2nm-.js} +1 -1
  120. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{D9lljYKQ.js → B443AUzu.js} +1 -1
  121. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{RJiighC3.js → B8AwtY2H.js} +1 -1
  122. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{uuIeMWc-.js → BF15LAsF.js} +1 -1
  123. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{D3k0OPJN.js → BRcwIQNr.js} +1 -1
  124. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{CyWMqx4W.js → BV6nKitt.js} +1 -1
  125. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{CiIAseT4.js → BViJ8lZt.js} +5 -5
  126. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{CBBdVcY8.js → BcQ-Q0FE.js} +1 -1
  127. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{BovzEFCE.js → Bpyvgze_.js} +1 -1
  128. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/BzTRqg-z.js +1 -0
  129. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/C0Fr8dve.js +1 -0
  130. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{eNVUfhuA.js → C3rbW_a-.js} +1 -1
  131. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{GYwsonyD.js → C8WYN38h.js} +1 -1
  132. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{BIF9m_hv.js → C9I8FlXH.js} +1 -1
  133. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{B0uc0UOD.js → CIQcWgO2.js} +3 -3
  134. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{Be7GpZd6.js → CIctN7YN.js} +1 -1
  135. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{Bh0LDWpI.js → CKrS_JZW.js} +2 -2
  136. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{DUrLdbGD.js → CR6P9C4A.js} +1 -1
  137. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{B7xVLGWV.js → CRRR9MD_.js} +1 -1
  138. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/CRcR2DqT.js +334 -0
  139. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{Dhb8PKl3.js → CSXtMOf0.js} +1 -1
  140. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{BPYeabCQ.js → CT-sbxSk.js} +1 -1
  141. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{sQeU3Y1z.js → CWm6DJsp.js} +1 -1
  142. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{CnA0NrzZ.js → CpqQ1Kzn.js} +1 -1
  143. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{C4B-KCzX.js → D2nGpDRe.js} +1 -1
  144. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{DGkLK5U1.js → D9iCMida.js} +1 -1
  145. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{BofRWZRR.js → D9ykgMoY.js} +1 -1
  146. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{DmxopI1J.js → DL2Ldur1.js} +1 -1
  147. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{C30mlcqg.js → DPfltzjH.js} +1 -1
  148. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{Vzk33B_K.js → DR8nis88.js} +2 -2
  149. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{DI7hHRFL.js → DUliQN2b.js} +1 -1
  150. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{C4JcI4KD.js → DXlhR01x.js} +1 -1
  151. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{bT1r9zLR.js → D_lyTybS.js} +1 -1
  152. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{DZX00Y4g.js → DngoTTgh.js} +1 -1
  153. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{CzZX-COe.js → DqkmHtDC.js} +1 -1
  154. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{B7RN905-.js → DsDh8EYs.js} +1 -1
  155. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{DLVjFsZ3.js → DypDmXgd.js} +1 -1
  156. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{iEWssX7S.js → IPYC-LnN.js} +1 -1
  157. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/JTLiF7dt.js +24 -0
  158. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{DaimHw_p.js → JpevfAFt.js} +1 -1
  159. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{DY1XQ8fi.js → R8CEIRAd.js} +1 -1
  160. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{Dle-35c7.js → Zxy7qc-l.js} +2 -2
  161. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/q9Hm6zAU.js +1 -0
  162. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{C_Usid8X.js → qtd3IeO4.js} +2 -2
  163. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{CzeYkLYB.js → ulBFON_C.js} +2 -2
  164. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{Cfqx1Qun.js → wQVh1CoA.js} +1 -1
  165. claude_mpm/dashboard/static/svelte-build/_app/immutable/entry/{app.D6-I5TpK.js → app.Dr7t0z2J.js} +2 -2
  166. claude_mpm/dashboard/static/svelte-build/_app/immutable/entry/start.BGhZHUS3.js +1 -0
  167. claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/{0.m1gL8KXf.js → 0.RgBboRvH.js} +1 -1
  168. claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/{1.CgNOuw-d.js → 1.DG-KkbDf.js} +1 -1
  169. claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/2.D_jnf-x6.js +1 -0
  170. claude_mpm/dashboard/static/svelte-build/_app/version.json +1 -1
  171. claude_mpm/dashboard/static/svelte-build/index.html +9 -9
  172. claude_mpm/experimental/cli_enhancements.py +2 -1
  173. claude_mpm/hooks/claude_hooks/INTEGRATION_EXAMPLE.md +243 -0
  174. claude_mpm/hooks/claude_hooks/README_AUTO_PAUSE.md +403 -0
  175. claude_mpm/hooks/claude_hooks/auto_pause_handler.py +486 -0
  176. claude_mpm/hooks/claude_hooks/event_handlers.py +250 -11
  177. claude_mpm/hooks/claude_hooks/hook_handler.py +106 -89
  178. claude_mpm/hooks/claude_hooks/hook_wrapper.sh +6 -11
  179. claude_mpm/hooks/claude_hooks/installer.py +69 -5
  180. claude_mpm/hooks/claude_hooks/response_tracking.py +3 -1
  181. claude_mpm/hooks/claude_hooks/services/connection_manager.py +20 -0
  182. claude_mpm/hooks/claude_hooks/services/connection_manager_http.py +14 -77
  183. claude_mpm/hooks/claude_hooks/services/subagent_processor.py +30 -6
  184. claude_mpm/hooks/session_resume_hook.py +85 -1
  185. claude_mpm/init.py +1 -1
  186. claude_mpm/scripts/claude-hook-handler.sh +36 -10
  187. claude_mpm/services/agents/agent_recommendation_service.py +8 -8
  188. claude_mpm/services/agents/cache_git_manager.py +1 -1
  189. claude_mpm/services/agents/deployment/remote_agent_discovery_service.py +3 -0
  190. claude_mpm/services/agents/loading/framework_agent_loader.py +75 -2
  191. claude_mpm/services/cli/__init__.py +3 -0
  192. claude_mpm/services/cli/incremental_pause_manager.py +561 -0
  193. claude_mpm/services/cli/session_resume_helper.py +10 -2
  194. claude_mpm/services/delegation_detector.py +175 -0
  195. claude_mpm/services/diagnostics/checks/agent_sources_check.py +30 -0
  196. claude_mpm/services/diagnostics/checks/configuration_check.py +24 -0
  197. claude_mpm/services/diagnostics/checks/installation_check.py +22 -0
  198. claude_mpm/services/diagnostics/checks/mcp_services_check.py +23 -0
  199. claude_mpm/services/diagnostics/doctor_reporter.py +31 -1
  200. claude_mpm/services/diagnostics/models.py +14 -1
  201. claude_mpm/services/event_log.py +325 -0
  202. claude_mpm/services/infrastructure/__init__.py +4 -0
  203. claude_mpm/services/infrastructure/context_usage_tracker.py +291 -0
  204. claude_mpm/services/infrastructure/resume_log_generator.py +24 -5
  205. claude_mpm/services/monitor/daemon_manager.py +15 -4
  206. claude_mpm/services/monitor/management/lifecycle.py +8 -2
  207. claude_mpm/services/monitor/server.py +106 -16
  208. claude_mpm/services/pm_skills_deployer.py +259 -87
  209. claude_mpm/services/skills/git_skill_source_manager.py +51 -2
  210. claude_mpm/services/skills/selective_skill_deployer.py +114 -16
  211. claude_mpm/services/skills/skill_discovery_service.py +57 -3
  212. claude_mpm/services/socketio/handlers/hook.py +14 -7
  213. claude_mpm/services/socketio/server/main.py +12 -4
  214. claude_mpm/skills/bundled/pm/mpm/SKILL.md +38 -0
  215. claude_mpm/skills/bundled/pm/mpm-agent-update-workflow/SKILL.md +75 -0
  216. claude_mpm/skills/bundled/pm/mpm-circuit-breaker-enforcement/SKILL.md +476 -0
  217. claude_mpm/skills/bundled/pm/mpm-config/SKILL.md +29 -0
  218. claude_mpm/skills/bundled/pm/mpm-doctor/SKILL.md +53 -0
  219. claude_mpm/skills/bundled/pm/mpm-help/SKILL.md +35 -0
  220. claude_mpm/skills/bundled/pm/mpm-init/SKILL.md +125 -0
  221. claude_mpm/skills/bundled/pm/mpm-monitor/SKILL.md +32 -0
  222. claude_mpm/skills/bundled/pm/mpm-organize/SKILL.md +121 -0
  223. claude_mpm/skills/bundled/pm/mpm-postmortem/SKILL.md +22 -0
  224. claude_mpm/skills/bundled/pm/mpm-session-management/SKILL.md +312 -0
  225. claude_mpm/skills/bundled/pm/mpm-session-resume/SKILL.md +31 -0
  226. claude_mpm/skills/bundled/pm/mpm-status/SKILL.md +37 -0
  227. claude_mpm/skills/bundled/pm/{pm-teaching-mode → mpm-teaching-mode}/SKILL.md +2 -2
  228. claude_mpm/skills/bundled/pm/mpm-ticket-view/SKILL.md +110 -0
  229. claude_mpm/skills/bundled/pm/mpm-tool-usage-guide/SKILL.md +386 -0
  230. claude_mpm/skills/bundled/pm/mpm-version/SKILL.md +21 -0
  231. claude_mpm/skills/skill_manager.py +4 -4
  232. claude_mpm-5.6.1.dist-info/METADATA +391 -0
  233. {claude_mpm-5.4.85.dist-info → claude_mpm-5.6.1.dist-info}/RECORD +244 -145
  234. claude_mpm/dashboard/static/svelte-build/_app/immutable/assets/0.DWzvg0-y.css +0 -1
  235. claude_mpm/dashboard/static/svelte-build/_app/immutable/assets/2.ThTw9_ym.css +0 -1
  236. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/4TdZjIqw.js +0 -1
  237. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/5shd3_w0.js +0 -24
  238. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/BKjSRqUr.js +0 -1
  239. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/Da0KfYnO.js +0 -1
  240. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/Dfy6j1xT.js +0 -323
  241. claude_mpm/dashboard/static/svelte-build/_app/immutable/entry/start.NWzMBYRp.js +0 -1
  242. claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/2.C0GcWctS.js +0 -1
  243. claude_mpm-5.4.85.dist-info/METADATA +0 -1023
  244. /claude_mpm/skills/bundled/pm/{pm-bug-reporting/pm-bug-reporting.md → mpm-bug-reporting/SKILL.md} +0 -0
  245. /claude_mpm/skills/bundled/pm/{pm-delegation-patterns → mpm-delegation-patterns}/SKILL.md +0 -0
  246. /claude_mpm/skills/bundled/pm/{pm-git-file-tracking → mpm-git-file-tracking}/SKILL.md +0 -0
  247. /claude_mpm/skills/bundled/pm/{pm-pr-workflow → mpm-pr-workflow}/SKILL.md +0 -0
  248. /claude_mpm/skills/bundled/pm/{pm-ticketing-integration → mpm-ticketing-integration}/SKILL.md +0 -0
  249. /claude_mpm/skills/bundled/pm/{pm-verification-protocols → mpm-verification-protocols}/SKILL.md +0 -0
  250. {claude_mpm-5.4.85.dist-info → claude_mpm-5.6.1.dist-info}/WHEEL +0 -0
  251. {claude_mpm-5.4.85.dist-info → claude_mpm-5.6.1.dist-info}/entry_points.txt +0 -0
  252. {claude_mpm-5.4.85.dist-info → claude_mpm-5.6.1.dist-info}/licenses/LICENSE +0 -0
  253. {claude_mpm-5.4.85.dist-info → claude_mpm-5.6.1.dist-info}/licenses/LICENSE-FAQ.md +0 -0
  254. {claude_mpm-5.4.85.dist-info → claude_mpm-5.6.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,125 @@
1
+ ---
2
+ name: mpm-init
3
+ description: Initialize or update project for Claude Code and MPM
4
+ user-invocable: true
5
+ version: "1.0.0"
6
+ category: mpm-command
7
+ tags: [mpm-command, system, pm-required, setup]
8
+ ---
9
+
10
+ # /mpm-init
11
+
12
+ Initialize or intelligently update project for Claude Code and Claude MPM.
13
+
14
+ ## Usage
15
+
16
+ ```
17
+ /mpm-init [update|context|resume|catchup] [options]
18
+ ```
19
+
20
+ ## Core Modes
21
+
22
+ ### Project Setup
23
+
24
+ ```
25
+ /mpm-init # Auto-detect: offer update or create
26
+ /mpm-init update # Quick update (30-day git activity)
27
+ /mpm-init --update # Full documentation refresh
28
+ /mpm-init --force # Force recreate from scratch
29
+ ```
30
+
31
+ **Delegates to Agentic Coder Optimizer agent** for:
32
+ - CLAUDE.md creation/update (with priority rankings 🔴🟡🟢⚪)
33
+ - AST analysis and code structure docs
34
+ - Single-path workflows (ONE way to do ANYTHING)
35
+ - Tool configuration, memory system, gitignore management
36
+
37
+ **Smart Update Mode:** Auto-detects existing CLAUDE.md and offers update vs recreate.
38
+
39
+ ### Context Analysis
40
+
41
+ ```
42
+ /mpm-init context [--days N] # Intelligent git history analysis (default: 7 days)
43
+ /mpm-init catchup # Quick commit history (last 25 commits, no analysis)
44
+ ```
45
+
46
+ **context:** Delegates to Research agent for deep analysis of:
47
+ - Active work streams (from commit patterns)
48
+ - Intent and motivation (from messages)
49
+ - Risks and blockers
50
+ - Recommended next actions
51
+
52
+ **catchup:** Direct CLI execution, instant output.
53
+
54
+ ### Resume from Logs
55
+
56
+ ```
57
+ /mpm-init resume [--list] [--session-id ID]
58
+ ```
59
+
60
+ Reads stop event logs from `.claude-mpm/resume-logs/` and `.claude-mpm/responses/` showing:
61
+ - What was being worked on
62
+ - Tasks completed, files modified
63
+ - Next steps, stop reason, token usage
64
+ - Git context (branch, status)
65
+
66
+ ## Key Options
67
+
68
+ **Configuration:**
69
+ - `--project-type TYPE`: web, api, cli, library
70
+ - `--framework NAME`: react, django, fastapi, etc.
71
+ - `--ast-analysis` / `--no-ast-analysis`: Enable/disable code analysis
72
+ - `--comprehensive` / `--minimal`: Full setup vs CLAUDE.md only
73
+
74
+ **Organization:**
75
+ - `--organize`: Organize misplaced files
76
+ - `--preserve-custom`: Keep custom sections (default)
77
+ - `--review`: Review without changes
78
+
79
+ ## What Gets Created
80
+
81
+ **New Projects:**
82
+ - ✅ CLAUDE.md (priority-ranked instructions)
83
+ - ✅ Single-path workflows (make build/test/deploy)
84
+ - ✅ Tool configs (linting, formatting, testing)
85
+ - ✅ Memory system (.claude-mpm/memories/)
86
+ - ✅ DEVELOPER.md, CODE_STRUCTURE.md (with AST)
87
+ - ✅ .gitignore updates (auto-adds .claude-mpm/)
88
+
89
+ **Updates:**
90
+ - ✅ Smart merging (preserves custom sections)
91
+ - ✅ Automatic archival (docs/_archive/)
92
+ - ✅ Change tracking
93
+
94
+ ## Examples
95
+
96
+ ```bash
97
+ # Quick start
98
+ /mpm-init # Auto-detect mode
99
+
100
+ # Quick update (lightweight)
101
+ /mpm-init update # 30-day activity report
102
+
103
+ # Resume work
104
+ /mpm-init context --days 14 # Analyze last 2 weeks
105
+ /mpm-init resume # Show latest session from logs
106
+ /mpm-init catchup # Quick commit history
107
+
108
+ # Full configuration
109
+ /mpm-init --project-type web --framework react --comprehensive
110
+ ```
111
+
112
+ ## Implementation Notes
113
+
114
+ **Delegation patterns:**
115
+ - **Project init/update:** → Agentic Coder Optimizer agent
116
+ - **context:** → PM → Research agent (structured analysis)
117
+ - **catchup:** → Direct CLI (git log wrapper)
118
+ - **resume:** → PM (reads logs, no delegation)
119
+
120
+ **Token budgets:**
121
+ - context analysis: 10-30s processing time
122
+ - resume display: ~10-20k tokens
123
+ - catchup: instant, minimal tokens
124
+
125
+ See docs/commands/init.md for comprehensive documentation.
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: mpm-monitor
3
+ description: Control monitoring server and dashboard
4
+ user-invocable: true
5
+ version: "1.0.0"
6
+ category: mpm-command
7
+ tags: [mpm-command, system, pm-optional]
8
+ ---
9
+
10
+ # /mpm-monitor
11
+
12
+ Manage Socket.IO monitoring server for real-time dashboard.
13
+
14
+ ## Usage
15
+ ```
16
+ /mpm-monitor [start|stop|restart|status|port] [options]
17
+ ```
18
+
19
+ **Subcommands:**
20
+ - `start`: Start server (auto-selects port 8765-8785)
21
+ - `stop`: Stop running server
22
+ - `status`: Show server status
23
+ - `port <PORT>`: Start on specific port
24
+
25
+ **Key Options:**
26
+ - `--port PORT`: Specific port
27
+ - `--force`: Force kill to reclaim port
28
+ - `--foreground`: Run in foreground (default: background)
29
+
30
+ Dashboard: http://localhost:8766
31
+
32
+ See docs/commands/monitor.md for details.
@@ -0,0 +1,121 @@
1
+ ---
2
+ name: mpm-organize
3
+ description: Organize project files with intelligent consolidation
4
+ user-invocable: true
5
+ version: "1.0.0"
6
+ category: mpm-command
7
+ tags: [mpm-command, system, pm-optional]
8
+ ---
9
+
10
+ # /mpm-organize
11
+
12
+ Organize ALL project files with intelligent detection, consolidation, and pruning.
13
+
14
+ ## Usage
15
+ ```
16
+ /mpm-organize [--dry-run] [--force] [options]
17
+ ```
18
+
19
+ **Delegates to Project Organizer agent** for comprehensive file organization.
20
+
21
+ ## Scope
22
+
23
+ **Default:** Organizes ALL project files
24
+ - Documentation (.md, .rst, .txt)
25
+ - Source code (proper module structure)
26
+ - Tests (organized test suites)
27
+ - Scripts (scripts/ directory)
28
+ - Configuration (appropriate locations)
29
+
30
+ **Protected files (never moved):** README.md, package.json, pyproject.toml, Makefile, .gitignore, etc.
31
+
32
+ ## Key Options
33
+
34
+ **Safety:**
35
+ - `--dry-run`: Preview without changes (recommended first run)
36
+ - `--force`: Proceed with uncommitted changes
37
+ - `--no-backup`: Skip backup (not recommended)
38
+
39
+ **Scope:**
40
+ - `--docs-only`: Only documentation (legacy behavior)
41
+ - `--code-only` / `--tests-only` / `--scripts-only`: Specific file types
42
+
43
+ **Operations:**
44
+ - `--consolidate-only`: Merge duplicates only
45
+ - `--prune-only`: Remove stale files only
46
+ - `--no-prune`: Keep all files (no deletions)
47
+
48
+ ## What It Does
49
+
50
+ 1. **Pattern Detection:** Scans for existing organization (PROJECT_ORGANIZATION.md, framework conventions)
51
+ 2. **Consolidation:** Merges duplicates (READMEs, guides, utilities)
52
+ 3. **Pruning:** Archives/removes stale content (>6 months old, empty files)
53
+ 4. **Categorization:** Sorts docs into research/user/developer
54
+ 5. **Safe Movement:** Uses `git mv` to preserve history
55
+ 6. **Backup:** Creates backup_project_YYYYMMDD_HHMMSS.tar.gz
56
+
57
+ ## Standard Structure
58
+
59
+ ```
60
+ docs/
61
+ ├── research/ # Spikes, analysis, notes
62
+ ├── user/ # Guides, tutorials, FAQs
63
+ └── developer/ # API docs, architecture, contributing
64
+
65
+ src/<package>/ # Proper module structure
66
+ tests/ # Mirrored source structure
67
+ scripts/ # Automation tools
68
+ config/ # Configuration (if needed)
69
+ ```
70
+
71
+ ## Examples
72
+
73
+ ```bash
74
+ # Preview changes (recommended first)
75
+ /mpm-organize --dry-run
76
+
77
+ # Organize everything with backup
78
+ /mpm-organize
79
+
80
+ # Documentation only
81
+ /mpm-organize --docs-only --dry-run
82
+
83
+ # Consolidate without pruning
84
+ /mpm-organize --consolidate-only --no-prune
85
+
86
+ # Save report
87
+ /mpm-organize --report /tmp/organize-report.md
88
+ ```
89
+
90
+ ## Expected Output
91
+
92
+ ```
93
+ 🔍 Analyzing project structure...
94
+ ✓ Detected PROJECT_ORGANIZATION.md - using project standards
95
+ ✓ Found 23 documentation files, 15 test files, 8 scripts
96
+
97
+ 📁 Proposed Changes:
98
+
99
+ Consolidate:
100
+ → Merge README_OLD.md + README_BACKUP.md → docs/user/README.md
101
+
102
+ Organize:
103
+ docs/research/ ← spike-oauth.md (from root)
104
+ tests/unit/ ← test_auth.py (from root)
105
+ scripts/ ← deploy.sh (from root)
106
+
107
+ Prune:
108
+ ✂ Remove TODO_2023.md (stale 18 months)
109
+
110
+ 📊 Summary: 8 to move, 2 to merge, 3 to prune
111
+ ```
112
+
113
+ ## Safety Features
114
+
115
+ - Full project backup before changes
116
+ - Git integration (preserves history)
117
+ - Import validation (ensures moves won't break code)
118
+ - Protected files never touched
119
+ - Conservative pruning (archive when unsure)
120
+
121
+ See docs/commands/organize.md for full documentation.
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: mpm-postmortem
3
+ description: Analyze session errors and suggest improvements
4
+ user-invocable: true
5
+ version: "1.0.0"
6
+ category: mpm-command
7
+ tags: [mpm-command, analysis, pm-recommended]
8
+ ---
9
+
10
+ # /mpm-postmortem
11
+
12
+ Analyze session errors and generate improvement suggestions.
13
+
14
+ ## Usage
15
+ ```
16
+ /mpm-postmortem [--auto-fix] [--create-prs] [--dry-run]
17
+ ```
18
+
19
+ Analyzes errors from: scripts, skills, agents, user code.
20
+ Generates: fixes, updates, PR recommendations, suggestions.
21
+
22
+ See docs/commands/postmortem.md for details.
@@ -0,0 +1,312 @@
1
+ # PM Session Management
2
+
3
+ **Type**: Framework
4
+ **Applies To**: Project Manager Agent
5
+ **Load Priority**: On-demand (context limit or session resume)
6
+
7
+ ## Purpose
8
+
9
+ This skill provides session pause/resume capabilities for the PM when context limits are approaching or when resuming from a previous session. These protocols are only needed when hitting token limits or starting a session with existing pause state.
10
+
11
+ ## When This Skill Is Loaded
12
+
13
+ - Context usage reaches 70%+ thresholds
14
+ - Session starts with `.claude-mpm/sessions/ACTIVE-PAUSE.jsonl`
15
+ - Session starts with `.claude-mpm/sessions/LATEST-SESSION.txt`
16
+ - User runs `/mpm-session-resume`
17
+
18
+ ## Auto-Pause System
19
+
20
+ The MPM framework automatically tracks context usage and pauses sessions when approaching limits:
21
+
22
+ ### Threshold Levels
23
+
24
+ | Level | Usage | Behavior |
25
+ |-------|-------|----------|
26
+ | Caution | 70% | Warning displayed |
27
+ | Warning | 85% | Stronger warning |
28
+ | **Auto-Pause** | **90%** | **Session pause activated, actions recorded** |
29
+ | Critical | 95% | Session nearly exhausted |
30
+
31
+ ### Auto-Pause Behavior (at 90%)
32
+
33
+ When context usage reaches 90%:
34
+
35
+ 1. Creates `.claude-mpm/sessions/ACTIVE-PAUSE.jsonl`
36
+ 2. Records all subsequent actions (tool calls, responses) incrementally
37
+ 3. Displays warning to user about context limits
38
+ 4. On session end, finalizes to full session snapshot
39
+
40
+ The incremental recording ensures all work is captured even if the session hits hard limits.
41
+
42
+ ## Session Resume Protocol
43
+
44
+ ### At Session Start, PM Checks For
45
+
46
+ **1. Active Incremental Pause**: `.claude-mpm/sessions/ACTIVE-PAUSE.jsonl`
47
+
48
+ If found:
49
+ - Display warning with action count and context percentage
50
+ - Options:
51
+ - **Continue**: Resume work from pause state
52
+ - **Finalize**: Run `/mpm-init pause --finalize` to create snapshot
53
+ - **Discard**: Start fresh (previous work still in git)
54
+
55
+ **Example Response**:
56
+ ```
57
+ ⚠️ Active session pause detected
58
+
59
+ Actions recorded: 47
60
+ Context usage: ~92%
61
+
62
+ Options:
63
+ 1. Continue working (actions will be recorded)
64
+ 2. Finalize pause: /mpm-init pause --finalize
65
+ 3. Discard pause: Delete .claude-mpm/sessions/ACTIVE-PAUSE.jsonl
66
+
67
+ Would you like to continue from the paused session?
68
+ ```
69
+
70
+ **2. Finalized Pause**: `.claude-mpm/sessions/LATEST-SESSION.txt`
71
+
72
+ If found:
73
+ - Display resume context with accomplishments and next steps
74
+ - Load context from the session snapshot
75
+ - Continue where previous session left off
76
+
77
+ **Example Response**:
78
+ ```
79
+ 📋 Resuming from previous session
80
+
81
+ Last session accomplished:
82
+ - ✅ Implemented OAuth2 authentication (Engineer)
83
+ - ✅ Deployed to staging (Vercel-ops)
84
+ - ⏸️ QA verification in progress
85
+
86
+ Next steps:
87
+ - Complete QA verification of auth flow
88
+ - Update documentation
89
+ - Deploy to production
90
+
91
+ Continue with QA verification?
92
+ ```
93
+
94
+ ## PM Response to Context Warnings
95
+
96
+ When PM sees context warnings (70%+), follow this protocol:
97
+
98
+ ### Immediate Actions
99
+
100
+ 1. **Wrap up current work phase**
101
+ - Complete the current delegation cycle
102
+ - Don't start new major tasks
103
+
104
+ 2. **Document all in-progress tasks**
105
+ - Ensure all todos are updated with current status
106
+ - Mark BLOCKED todos with specific blockers
107
+ - Add context to in_progress todos
108
+
109
+ 3. **Delegate remaining work with clear handoff**
110
+ - Provide detailed context to agents
111
+ - Include acceptance criteria
112
+ - Reference relevant files and commits
113
+
114
+ 4. **Create summary**
115
+ - What was completed
116
+ - What remains to be done
117
+ - Any blockers or important context
118
+
119
+ ### Example Wrap-Up Sequence
120
+
121
+ ```
122
+ Context at 85% - wrapping up current phase
123
+
124
+ Completed:
125
+ - ✅ OAuth2 implementation (commit abc123)
126
+ - ✅ Staging deployment verified
127
+
128
+ In Progress:
129
+ - 🔄 QA verification (api-qa testing login flow)
130
+
131
+ Remaining:
132
+ - Documentation update (auth flow docs)
133
+ - Production deployment
134
+
135
+ Creating session snapshot for clean resume...
136
+ ```
137
+
138
+ ## Git-Based Session Continuity
139
+
140
+ Git history provides additional session context that complements session snapshots:
141
+
142
+ ### Useful Git Commands
143
+
144
+ ```bash
145
+ # Recent commits (what was delivered)
146
+ git log --oneline -10
147
+
148
+ # Uncommitted changes (work in progress)
149
+ git status
150
+
151
+ # Recent work (last 24 hours)
152
+ git log --since="24 hours ago" --pretty=format:"%h %s"
153
+
154
+ # Files changed recently
155
+ git log --name-status --since="24 hours ago"
156
+ ```
157
+
158
+ ### Integration with Session Resume
159
+
160
+ When resuming a session, PM should:
161
+
162
+ 1. Load session snapshot (if available)
163
+ 2. Check git log for additional context
164
+ 3. Verify git status for uncommitted work
165
+ 4. Reconcile session state with git state
166
+
167
+ **Example**:
168
+ ```
169
+ Resuming session...
170
+
171
+ Session snapshot: Work on OAuth2 authentication
172
+ Git log: Last commit "feat: add OAuth2 provider" (2 hours ago)
173
+ Git status: Uncommitted changes in src/auth/middleware.js
174
+
175
+ Context: Implementation complete, middleware updates in progress
176
+ ```
177
+
178
+ ## Session Files Structure
179
+
180
+ ```
181
+ .claude-mpm/sessions/
182
+ ├── ACTIVE-PAUSE.jsonl # Incremental actions during auto-pause
183
+ ├── LATEST-SESSION.txt # Pointer to most recent finalized session
184
+ ├── session-*.json # Machine-readable session snapshots
185
+ ├── session-*.yaml # YAML format
186
+ └── session-*.md # Human-readable markdown
187
+ ```
188
+
189
+ ### File Purposes
190
+
191
+ - **ACTIVE-PAUSE.jsonl**: Real-time action recording during auto-pause
192
+ - **LATEST-SESSION.txt**: Points to most recent finalized session file
193
+ - **session-*.json**: Complete session state (todos, context, agents used)
194
+ - **session-*.yaml**: Same as JSON but YAML format
195
+ - **session-*.md**: Human-readable summary for quick review
196
+
197
+ ## Best Practices
198
+
199
+ ### When Context Limits Approach
200
+
201
+ 1. **Don't panic**: Auto-pause system will capture your work
202
+ 2. **Finish current phase**: Complete the delegation in progress
203
+ 3. **Update todos**: Ensure all todos reflect current state
204
+ 4. **Create handoff context**: Next PM session needs to understand state
205
+
206
+ ### When Resuming Sessions
207
+
208
+ 1. **Review session snapshot**: Understand what was accomplished
209
+ 2. **Check git history**: Verify actual state matches snapshot
210
+ 3. **Validate uncommitted work**: Any WIP that wasn't tracked?
211
+ 4. **Continue from clear state**: Don't duplicate completed work
212
+
213
+ ### Avoiding Session Bloat
214
+
215
+ - Keep delegations focused and atomic
216
+ - Don't load unnecessary context (use skills on-demand)
217
+ - Complete and close todos regularly
218
+ - Commit work incrementally (easier to resume)
219
+
220
+ ## Common Scenarios
221
+
222
+ ### Scenario 1: Auto-Pause During Implementation
223
+
224
+ ```
225
+ Context: 90% during Engineer delegation
226
+
227
+ PM Actions:
228
+ 1. Wait for Engineer to complete current file
229
+ 2. Track files immediately (git add + commit)
230
+ 3. Update todo with completion status
231
+ 4. Create summary of implementation state
232
+ 5. Session pauses, all recorded in ACTIVE-PAUSE.jsonl
233
+
234
+ Next Session:
235
+ 1. PM detects ACTIVE-PAUSE.jsonl
236
+ 2. Continues from implementation state
237
+ 3. Proceeds to QA verification phase
238
+ ```
239
+
240
+ ### Scenario 2: Resume After Finalized Pause
241
+
242
+ ```
243
+ Context: User returns to continue work
244
+
245
+ PM Actions:
246
+ 1. Detects LATEST-SESSION.txt
247
+ 2. Loads session-{timestamp}.md for human summary
248
+ 3. Loads session-{timestamp}.json for full state
249
+ 4. Checks git log for verification
250
+ 5. Presents summary to user
251
+ 6. Continues workflow from next phase
252
+ ```
253
+
254
+ ### Scenario 3: Context Warning During Research
255
+
256
+ ```
257
+ Context: 75% during Research agent investigation
258
+
259
+ PM Actions:
260
+ 1. Allow Research to complete current investigation
261
+ 2. Don't start new research tasks
262
+ 3. Collect Research findings
263
+ 4. Document findings in session state
264
+ 5. Prepare for potential pause at 90%
265
+
266
+ If 90% reached:
267
+ 1. Research findings already documented
268
+ 2. Implementation can start in next session
269
+ 3. Clear handoff context available
270
+ ```
271
+
272
+ ## Integration with PM Workflow
273
+
274
+ Session management integrates with standard PM workflow:
275
+
276
+ ```
277
+ User Request
278
+
279
+ [Check for session resume state]
280
+
281
+ Research (if needed)
282
+
283
+ [Monitor context usage]
284
+
285
+ Implementation
286
+
287
+ [Auto-pause if 90% reached]
288
+
289
+ Deployment
290
+
291
+ QA
292
+
293
+ Documentation
294
+
295
+ [Final session snapshot if paused]
296
+
297
+ Report Results
298
+ ```
299
+
300
+ ## Trigger Keywords
301
+
302
+ - "context", "pause", "resume", "session"
303
+ - "token", "limit", "usage"
304
+ - "continue", "previous session"
305
+ - Auto-loaded at 70%+ context usage
306
+ - Auto-loaded when session files exist
307
+
308
+ ## Related Skills
309
+
310
+ - `mpm-git-file-tracking` - File tracking during pause/resume
311
+ - `mpm-verification-protocols` - Verification state during pause
312
+ - `mpm-delegation-patterns` - Resuming delegations mid-workflow
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: mpm-session-resume
3
+ description: Load context from paused session
4
+ user-invocable: true
5
+ version: "1.0.0"
6
+ category: mpm-command
7
+ tags: [mpm-command, session, pm-recommended]
8
+ ---
9
+
10
+ # /mpm-session-resume
11
+
12
+ Load and display context from most recent paused session.
13
+
14
+ ## Usage
15
+ ```
16
+ /mpm-resume
17
+ ```
18
+
19
+ **What it shows:**
20
+ - Session summary and time elapsed
21
+ - Completed work and current tasks
22
+ - Git context and recent commits
23
+ - Next recommended actions
24
+
25
+ **Session location:** `.claude-mpm/sessions/session-*.md`
26
+
27
+ **Token usage:** ~20-40k tokens (10-20% of context budget)
28
+
29
+ **Note:** Reads existing sessions (created automatically at 70% context). Does NOT create new files.
30
+
31
+ See docs/features/session-auto-resume.md for details.
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: mpm-status
3
+ description: Display Claude MPM system status
4
+ user-invocable: true
5
+ version: "1.0.0"
6
+ category: mpm-command
7
+ tags: [mpm-command, system, pm-required, diagnostics]
8
+ ---
9
+
10
+ # /mpm-status
11
+
12
+ Show MPM system status. Delegates to PM agent.
13
+
14
+ ## Usage
15
+
16
+ ```
17
+ /mpm-status
18
+ ```
19
+
20
+ ## What It Shows
21
+
22
+ Displays comprehensive system information:
23
+ - **Version**: MPM version and installation details
24
+ - **Services**: WebSocket server status, monitoring dashboard
25
+ - **Agents**: Available agents and their versions
26
+ - **Memory**: Memory system statistics and health
27
+ - **Configuration**: Current MPM configuration settings
28
+ - **Project Info**: Project-specific context and setup
29
+
30
+ ## When to Use
31
+
32
+ - Check if MPM is properly installed and configured
33
+ - Verify agent availability before delegation
34
+ - Debug system issues or unexpected behavior
35
+ - Get quick overview of system health
36
+
37
+ See docs/commands/status.md for details.
@@ -43,7 +43,7 @@ git status # Should NOT show .env
43
43
 
44
44
  **Setup Steps**:
45
45
  1. Create `.env` in project root
46
- 2. Add your secrets: `API_KEY=abc123...`
46
+ 2. Add your secrets: `API_KEY=abc123...` # pragma: allowlist secret
47
47
  3. Add `.env` to `.gitignore`
48
48
  4. Load in code: `process.env.API_KEY` (Node) or `os.getenv('API_KEY')` (Python)
49
49
 
@@ -513,7 +513,7 @@ Documentation created:
513
513
  # Register new user
514
514
  curl -X POST http://localhost:3000/api/users/register \
515
515
  -H "Content-Type: application/json" \
516
- -d '{"email":"user@example.com","password":"SecurePass123"}'
516
+ -d '{"email":"user@example.com","password":"SecurePass123"}' # pragma: allowlist secret
517
517
 
518
518
  # Success response:
519
519
  {"success":true,"userId":"123","message":"User registered successfully"}