claude-mpm 5.4.36__py3-none-any.whl → 5.4.59__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

Files changed (137) hide show
  1. claude_mpm/VERSION +1 -1
  2. claude_mpm/agents/PM_INSTRUCTIONS.md +489 -177
  3. claude_mpm/agents/base_agent.json +1 -1
  4. claude_mpm/agents/frontmatter_validator.py +2 -2
  5. claude_mpm/cli/commands/configure_agent_display.py +12 -0
  6. claude_mpm/cli/commands/mpm_init/core.py +72 -0
  7. claude_mpm/cli/commands/profile.py +276 -0
  8. claude_mpm/cli/commands/skills.py +14 -18
  9. claude_mpm/cli/executor.py +10 -0
  10. claude_mpm/cli/parsers/base_parser.py +7 -0
  11. claude_mpm/cli/parsers/profile_parser.py +147 -0
  12. claude_mpm/cli/parsers/skills_parser.py +0 -6
  13. claude_mpm/cli/startup.py +433 -147
  14. claude_mpm/commands/mpm-config.md +13 -250
  15. claude_mpm/commands/mpm-doctor.md +9 -22
  16. claude_mpm/commands/mpm-help.md +5 -206
  17. claude_mpm/commands/mpm-init.md +81 -507
  18. claude_mpm/commands/mpm-monitor.md +15 -402
  19. claude_mpm/commands/mpm-organize.md +61 -441
  20. claude_mpm/commands/mpm-postmortem.md +6 -108
  21. claude_mpm/commands/mpm-session-resume.md +12 -363
  22. claude_mpm/commands/mpm-status.md +5 -69
  23. claude_mpm/commands/mpm-ticket-view.md +52 -495
  24. claude_mpm/commands/mpm-version.md +5 -107
  25. claude_mpm/core/optimized_startup.py +61 -0
  26. claude_mpm/core/shared/config_loader.py +3 -1
  27. claude_mpm/dashboard/static/svelte-build/_app/immutable/assets/0.DWzvg0-y.css +1 -0
  28. claude_mpm/dashboard/static/svelte-build/_app/immutable/assets/2.ThTw9_ym.css +1 -0
  29. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{CWc5urbQ.js → 4TdZjIqw.js} +1 -1
  30. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/5shd3_w0.js +24 -0
  31. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/B0uc0UOD.js +36 -0
  32. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/B7RN905-.js +1 -0
  33. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/B7xVLGWV.js +2 -0
  34. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/BIF9m_hv.js +61 -0
  35. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/BKjSRqUr.js +1 -0
  36. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/BPYeabCQ.js +1 -0
  37. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/BQaXIfA_.js +331 -0
  38. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{uj46x2Wr.js → BSNlmTZj.js} +1 -1
  39. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/Be7GpZd6.js +7 -0
  40. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/Bh0LDWpI.js +145 -0
  41. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/BofRWZRR.js +10 -0
  42. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/BovzEFCE.js +30 -0
  43. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/C30mlcqg.js +165 -0
  44. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/C4B-KCzX.js +1 -0
  45. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/C4JcI4KD.js +122 -0
  46. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/CBBdVcY8.js +1 -0
  47. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/CDuw-vjf.js +1 -0
  48. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/C_Usid8X.js +15 -0
  49. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/Cfqx1Qun.js +10 -0
  50. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/CiIAseT4.js +128 -0
  51. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/CmKTTxBW.js +1 -0
  52. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/CnA0NrzZ.js +1 -0
  53. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/Cs_tUR18.js +24 -0
  54. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/Cu_Erd72.js +261 -0
  55. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/CyWMqx4W.js +43 -0
  56. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/CzZX-COe.js +220 -0
  57. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/CzeYkLYB.js +65 -0
  58. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/D3k0OPJN.js +4 -0
  59. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/D9lljYKQ.js +1 -0
  60. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/DGkLK5U1.js +267 -0
  61. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/DI7hHRFL.js +1 -0
  62. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/DLVjFsZ3.js +139 -0
  63. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/DUrLdbGD.js +89 -0
  64. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/DVp1hx9R.js +1 -0
  65. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/DY1XQ8fi.js +2 -0
  66. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/DZX00Y4g.js +1 -0
  67. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/Da0KfYnO.js +1 -0
  68. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/DaimHw_p.js +68 -0
  69. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/Dfy6j1xT.js +323 -0
  70. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/Dhb8PKl3.js +1 -0
  71. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/Dle-35c7.js +64 -0
  72. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/DmxopI1J.js +1 -0
  73. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/DwBR2MJi.js +60 -0
  74. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/GYwsonyD.js +1 -0
  75. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/Gi6I4Gst.js +1 -0
  76. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{DjhvlsAc.js → NqQ1dWOy.js} +1 -1
  77. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/RJiighC3.js +1 -0
  78. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{N4qtv3Hx.js → Vzk33B_K.js} +1 -1
  79. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/ZGh7QtNv.js +7 -0
  80. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/bT1r9zLR.js +1 -0
  81. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/bTOqqlTd.js +1 -0
  82. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/eNVUfhuA.js +1 -0
  83. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/iEWssX7S.js +162 -0
  84. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/sQeU3Y1z.js +1 -0
  85. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/uuIeMWc-.js +1 -0
  86. claude_mpm/dashboard/static/svelte-build/_app/immutable/entry/app.D6-I5TpK.js +2 -0
  87. claude_mpm/dashboard/static/svelte-build/_app/immutable/entry/start.NWzMBYRp.js +1 -0
  88. claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/{0.CAGBuiOw.js → 0.m1gL8KXf.js} +1 -1
  89. claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/1.CgNOuw-d.js +1 -0
  90. claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/2.C0GcWctS.js +1 -0
  91. claude_mpm/dashboard/static/svelte-build/_app/version.json +1 -1
  92. claude_mpm/dashboard/static/svelte-build/index.html +10 -10
  93. claude_mpm/dashboard-svelte/node_modules/katex/src/fonts/generate_fonts.py +58 -0
  94. claude_mpm/dashboard-svelte/node_modules/katex/src/metrics/extract_tfms.py +114 -0
  95. claude_mpm/dashboard-svelte/node_modules/katex/src/metrics/extract_ttfs.py +122 -0
  96. claude_mpm/dashboard-svelte/node_modules/katex/src/metrics/format_json.py +28 -0
  97. claude_mpm/dashboard-svelte/node_modules/katex/src/metrics/parse_tfm.py +211 -0
  98. claude_mpm/hooks/kuzu_memory_hook.py +5 -5
  99. claude_mpm/init.py +276 -0
  100. claude_mpm/scripts/start_activity_logging.py +0 -0
  101. claude_mpm/services/agents/agent_builder.py +3 -3
  102. claude_mpm/services/agents/deployment/agent_deployment.py +22 -0
  103. claude_mpm/services/agents/deployment/agent_discovery_service.py +3 -1
  104. claude_mpm/services/agents/deployment/agent_format_converter.py +25 -13
  105. claude_mpm/services/agents/deployment/agent_template_builder.py +29 -17
  106. claude_mpm/services/agents/deployment/async_agent_deployment.py +31 -27
  107. claude_mpm/services/agents/deployment/local_template_deployment.py +3 -1
  108. claude_mpm/services/agents/deployment/multi_source_deployment_service.py +149 -4
  109. claude_mpm/services/agents/deployment/remote_agent_discovery_service.py +47 -26
  110. claude_mpm/services/agents/git_source_manager.py +21 -2
  111. claude_mpm/services/agents/sources/git_source_sync_service.py +116 -5
  112. claude_mpm/services/monitor/management/lifecycle.py +7 -1
  113. claude_mpm/services/pm_skills_deployer.py +711 -0
  114. claude_mpm/services/profile_manager.py +337 -0
  115. claude_mpm/services/skills/git_skill_source_manager.py +148 -11
  116. claude_mpm/services/skills/selective_skill_deployer.py +97 -48
  117. claude_mpm/services/skills_deployer.py +161 -65
  118. claude_mpm/skills/bundled/security-scanning.md +112 -0
  119. claude_mpm/skills/skill_manager.py +98 -3
  120. claude_mpm/templates/.pre-commit-config.yaml +112 -0
  121. {claude_mpm-5.4.36.dist-info → claude_mpm-5.4.59.dist-info}/METADATA +3 -2
  122. {claude_mpm-5.4.36.dist-info → claude_mpm-5.4.59.dist-info}/RECORD +126 -67
  123. claude_mpm/dashboard/static/svelte-build/_app/immutable/assets/0.B_FtCwCQ.css +0 -1
  124. claude_mpm/dashboard/static/svelte-build/_app/immutable/assets/2.Cl_eSA4x.css +0 -1
  125. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/BgChzWQ1.js +0 -1
  126. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/CIXEwuWe.js +0 -1
  127. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/DMkZpdF2.js +0 -2
  128. claude_mpm/dashboard/static/svelte-build/_app/immutable/entry/app.DTL5mJO-.js +0 -2
  129. claude_mpm/dashboard/static/svelte-build/_app/immutable/entry/start.DzuEhzqh.js +0 -1
  130. claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/1.DFLC8jdE.js +0 -1
  131. claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/2.DPvEihJJ.js +0 -10
  132. claude_mpm/hooks/claude_hooks/services/__pycache__/connection_manager.cpython-311.pyc +0 -0
  133. {claude_mpm-5.4.36.dist-info → claude_mpm-5.4.59.dist-info}/WHEEL +0 -0
  134. {claude_mpm-5.4.36.dist-info → claude_mpm-5.4.59.dist-info}/entry_points.txt +0 -0
  135. {claude_mpm-5.4.36.dist-info → claude_mpm-5.4.59.dist-info}/licenses/LICENSE +0 -0
  136. {claude_mpm-5.4.36.dist-info → claude_mpm-5.4.59.dist-info}/licenses/LICENSE-FAQ.md +0 -0
  137. {claude_mpm-5.4.36.dist-info → claude_mpm-5.4.59.dist-info}/top_level.txt +0 -0
@@ -4,378 +4,27 @@ command: resume
4
4
  aliases: [mpm-session-resume]
5
5
  migration_target: /mpm/session:resume
6
6
  category: session
7
- deprecated_aliases: [mpm-resume]
8
- description: Load and display context from most recent paused session to continue work
7
+ description: Load context from paused session
9
8
  ---
10
- # /mpm-resume - Load Previous Session
9
+ # /mpm-session-resume
11
10
 
12
- Load and display context from the most recent paused session to seamlessly continue your work.
11
+ Load and display context from most recent paused session.
13
12
 
14
13
  ## Usage
15
-
16
14
  ```
17
15
  /mpm-resume
18
16
  ```
19
17
 
20
- ## Description
21
-
22
- This command **loads and displays** the most recent paused session from automatic session saves, allowing you to resume work with full context restoration.
23
-
24
- Unlike `/mpm-init pause` which *creates* a new session save, this command *loads* existing session data that was automatically created when context usage reached 70% (140k/200k tokens).
25
-
26
- **Key Points:**
27
- - Reads from `.claude-mpm/sessions/` directory (automatically created at 70% context)
28
- - Displays up to ~40,000 tokens (~20% of 200k context budget)
29
- - Shows session summary, completed work, in-progress tasks, and git context
30
- - Does NOT create any new files - only reads and displays
31
-
32
- ## What Gets Displayed
33
-
34
- When you run `/mpm-resume`, PM will display:
35
-
36
- ### Session Summary
37
- - **Time Elapsed**: How long ago the session was paused
38
- - **Context Usage**: Token usage at time of pause (e.g., "67.6% - 135,259/200,000 tokens")
39
- - **Working On**: What you were working on when paused
40
- - **Session Duration**: How long the previous session lasted
41
-
42
- ### Completed Work
43
- - List of accomplishments from the paused session
44
- - What was delivered and committed
45
- - Key milestones achieved
46
-
47
- ### Current Tasks
48
- - **In Progress**: Tasks that were being worked on
49
- - **Pending**: Tasks that were planned but not started
50
- - **Completed**: Recently finished tasks for context
51
-
52
- ### Git Context
53
- - **Branch**: Current branch name
54
- - **Recent Commits**: Last 5-10 commits with SHAs and messages
55
- - **Status**: Clean/dirty working directory
56
- - **Changes Since Pause**: New commits made since session was saved
57
-
58
- ### Next Recommended Actions
59
- - Priority-ordered list of next steps
60
- - Estimated time for each task
61
- - Status and blockers for pending work
62
-
63
- ## Session Storage Location
64
-
65
- Sessions are automatically saved to:
66
- ```
67
- <project-root>/.claude-mpm/sessions/session-YYYYMMDD-HHMMSS.json
68
- ```
69
-
70
- **Legacy location** (backward compatible):
71
- ```
72
- <project-root>/.claude-mpm/sessions/pause/session-YYYYMMDD-HHMMSS.json
73
- ```
74
-
75
- The system automatically checks both locations and uses the most recent session.
76
-
77
- ## Example Output
78
-
79
- ```
80
- ================================================================================
81
- 📋 PAUSED SESSION FOUND
82
- ================================================================================
83
-
84
- Paused: 2 hours ago
85
-
86
- Last working on: Week 2 Skills Integration - Content Preparation
87
-
88
- Completed:
89
- ✓ Week 1: Complete infrastructure - 8,900 lines of production-ready code
90
- ✓ Week 1: Skills loading system with automatic progressive disclosure
91
- ✓ Week 2: 15 of 23 skills downloaded (65% complete)
92
- ✓ Week 2: 2 Tier 1 skills refactored to progressive disclosure
93
- ✓ Code quality: All CRITICAL and HIGH issues resolved
94
-
95
- Next steps:
96
- • Refactor Tier 2 skills (verification-before-completion, webapp-testing)
97
- • Download remaining 8 skills from community repositories
98
- • Refactor remaining 13 skills to progressive disclosure
99
- • Generate license attributions for all bundled skills
100
-
101
- Git changes since pause: 3 commits
102
-
103
- Recent commits:
104
- ac765731 - feat(skills): Week 2 progress - 15 skills downloaded (Bob Matsuoka)
105
- 205e532e - fix(skills): address CRITICAL and HIGH priority issues (Bob Matsuoka)
106
- 06a6d6a0 - feat: add automated pre-publish cleanup to release (Bob Matsuoka)
107
-
108
- Context Usage: 67.6% (135,259/200,000 tokens)
109
- Session Duration: 12 hours
110
-
111
- ================================================================================
112
- Use this context to resume work, or start fresh if not relevant.
113
- ================================================================================
114
- ```
115
-
116
- ## Implementation
117
-
118
- When PM receives `/mpm-resume`, it should:
119
-
120
- 1. **Check for Sessions**
121
- ```python
122
- from claude_mpm.services.cli.session_resume_helper import SessionResumeHelper
123
-
124
- helper = SessionResumeHelper()
125
- if not helper.has_paused_sessions():
126
- return "No paused sessions found"
127
- ```
128
-
129
- 2. **Load Most Recent Session**
130
- ```python
131
- session_data = helper.get_most_recent_session()
132
- if not session_data:
133
- return "Failed to load session data"
134
- ```
135
-
136
- 3. **Format and Display Context**
137
- ```python
138
- # Extract key information
139
- conversation = session_data.get("conversation", {})
140
- git_context = session_data.get("git_context", {})
141
- context_usage = session_data.get("context_usage", {})
142
- todos = session_data.get("todos", {})
143
-
144
- # Display formatted output (see Example Output above)
145
- ```
146
-
147
- 4. **Calculate Git Changes**
148
- ```python
149
- # Get commits since pause
150
- paused_at = session_data.get("paused_at")
151
- new_commits = helper.get_git_changes_since_pause(paused_at, [])
152
- ```
153
-
154
- 5. **Limit Output to ~40k Tokens**
155
- - Session summary: ~2k tokens
156
- - Accomplishments (first 10): ~3k tokens
157
- - Next steps (first 10): ~3k tokens
158
- - Git context: ~5k tokens
159
- - Todos: ~2k tokens
160
- - Recent commits (up to 10): ~5k tokens
161
- - **Total**: ~20k tokens (well under 40k limit)
162
-
163
- ## Token Budget Management
164
-
165
- **Context Budget**: 200,000 tokens total
166
- **Resume Load**: ~20,000-40,000 tokens (10-20% of context)
167
-
168
- This leaves 160,000+ tokens for actual work after loading session context.
169
-
170
- ## Session Data Format
171
-
172
- Sessions are stored as JSON with this structure:
173
-
174
- ```json
175
- {
176
- "session_id": "session-YYYYMMDD-HHMMSS",
177
- "paused_at": "ISO-8601 timestamp",
178
- "duration_hours": 12,
179
- "context_usage": {
180
- "tokens_used": 135259,
181
- "tokens_total": 200000,
182
- "percentage": 67.6
183
- },
184
- "conversation": {
185
- "primary_task": "What user was working on",
186
- "current_phase": "Current phase of work",
187
- "summary": "Brief summary",
188
- "accomplishments": ["list of completed items"],
189
- "next_steps": [
190
- {
191
- "priority": 1,
192
- "task": "Task description",
193
- "estimated_hours": "8-12",
194
- "status": "ready"
195
- }
196
- ]
197
- },
198
- "git_context": {
199
- "branch": "main",
200
- "recent_commits": [...],
201
- "status": {...}
202
- },
203
- "todos": {
204
- "active": [...],
205
- "completed": [...]
206
- }
207
- }
208
- ```
209
-
210
- ## When to Use This Command
211
-
212
- Use `/mpm-resume` when:
213
- - **Starting a new session**: After closing and reopening Claude CLI
214
- - **Context unclear**: You need to remember what you were working on
215
- - **After a break**: Coming back after hours or days
216
- - **Team handoff**: Another developer wants to understand current state
217
- - **Lost context**: Accidentally closed CLI and need to recover
218
-
219
- ## Differences from Automatic Resume
220
-
221
- | Feature | Automatic Resume (70% context) | /mpm-resume Command |
222
- |---------|-------------------------------|---------------------|
223
- | **Trigger** | Automatic at 70% context | Manual user command |
224
- | **When** | PM startup (if session exists) | Anytime during session |
225
- | **Creates Files** | No (reads existing) | No (reads existing) |
226
- | **Session Source** | Same (`.claude-mpm/sessions/`) | Same (`.claude-mpm/sessions/`) |
227
- | **Display Format** | Identical | Identical |
228
- | **Token Usage** | ~20-40k tokens | ~20-40k tokens |
229
-
230
- Both features use the **same underlying system** (`SessionResumeHelper`), just triggered differently.
231
-
232
- ## No Files Created
233
-
234
- **IMPORTANT**: This command does NOT create any new files.
235
-
236
- It ONLY reads from existing session files that were automatically created by the system at 70% context usage.
237
-
238
- If you want to manually create a session save (for example, at 50% context before hitting 70%), use a different workflow or wait for automatic save at 70%.
239
-
240
- ## Related Features
241
-
242
- - **Automatic Session Save**: System creates sessions at 70% context automatically
243
- - **Automatic Session Resume**: PM startup hook displays sessions automatically
244
- - `/mpm-init pause`: Manual session pause workflow (if available)
245
- - `/mpm-init context`: Analyze git history for intelligent resumption
246
- - `/mpm-status`: Check current MPM status
247
-
248
- ## Error Handling
249
-
250
- ### No Sessions Found
251
- ```
252
- No paused sessions found in .claude-mpm/sessions/
253
-
254
- To create a session save, continue working until context reaches 70% (140k tokens),
255
- at which point the system will automatically save your session state.
256
- ```
257
-
258
- ### Failed to Load Session
259
- ```
260
- Paused session file found but failed to load.
261
-
262
- File: .claude-mpm/sessions/session-20251107-152740.json
263
- Error: Invalid JSON format
264
-
265
- You may need to manually inspect or delete this file.
266
- ```
267
-
268
- ### Invalid Session Format
269
- ```
270
- Session file loaded but missing required fields.
271
-
272
- The session file may be corrupted or from an older version.
273
- Consider running /mpm-doctor to check system health.
274
- ```
275
-
276
- ## Benefits
277
-
278
- - **Instant Context**: Get full context in seconds without reading git logs
279
- - **No Mental Load**: Don't need to remember what you were doing
280
- - **Zero File Creation**: Pure read operation, no side effects
281
- - **Team Collaboration**: Share context with team members
282
- - **Graceful Recovery**: Recover from accidental CLI closures
283
- - **Smart Filtering**: Only shows relevant information (~20k tokens)
284
- - **Git Awareness**: See what changed since pause
285
-
286
- ## Best Practices
287
-
288
- 1. **Use Early**: Run `/mpm-resume` at start of each session if sessions exist
289
- 2. **Check Git Changes**: Pay attention to commits made since pause
290
- 3. **Validate Context**: Verify the session is still relevant before continuing
291
- 4. **Clear Old Sessions**: Periodically clean up old session files
292
- 5. **Combine with Git**: Use alongside `git log` for complete picture
293
-
294
- ## Technical Details
295
-
296
- **Implementation Files:**
297
- - Service: `/src/claude_mpm/services/cli/session_resume_helper.py`
298
- - Hook: `/src/claude_mpm/hooks/session_resume_hook.py`
299
- - Command: This file
300
-
301
- **Key Functions:**
302
- - `SessionResumeHelper.has_paused_sessions()` - Check if sessions exist
303
- - `SessionResumeHelper.get_most_recent_session()` - Load latest session
304
- - `SessionResumeHelper.format_resume_prompt()` - Format display output
305
- - `SessionResumeHelper.get_git_changes_since_pause()` - Calculate git delta
306
-
307
- **Token Estimation:**
308
- - Session metadata: 1-2k tokens
309
- - Accomplishments (10 items): 2-4k tokens
310
- - Next steps (10 items): 2-4k tokens
311
- - Git commits (10 commits): 3-5k tokens
312
- - Todos (20 items): 2-3k tokens
313
- - Formatting/structure: 1-2k tokens
314
- - **Total**: 11-20k tokens (safely under 40k limit)
315
-
316
- ## Troubleshooting
317
-
318
- ### Session Not Found
319
- **Problem**: Command reports no sessions exist
320
-
321
- **Solutions:**
322
- 1. Check directory exists: `ls .claude-mpm/sessions/`
323
- 2. Check for legacy location: `ls .claude-mpm/sessions/pause/`
324
- 3. Verify session files: `ls .claude-mpm/sessions/session-*.json`
325
- 4. Session auto-saves at 70% context - may not exist yet
326
-
327
- ### Git Changes Not Showing
328
- **Problem**: "No git changes since pause" but commits were made
329
-
330
- **Solutions:**
331
- 1. Verify git repository: `git status`
332
- 2. Check commit timestamps: `git log --since="<pause_time>"`
333
- 3. Ensure session timestamp is correct
334
- 4. Check timezone issues
335
-
336
- ### Display Too Large
337
- **Problem**: Session context exceeds token budget
338
-
339
- **Solutions:**
340
- 1. System automatically limits to first 10 items
341
- 2. Full session details available in JSON file
342
- 3. Use `cat .claude-mpm/sessions/session-*.json` for complete data
343
- 4. Summary is optimized for 20k tokens max
344
-
345
- ## Example Session Resume Workflow
346
-
347
- ```bash
348
- # User starts new Claude CLI session
349
- $ claude-code
350
-
351
- # PM automatically checks for sessions on startup
352
- # (Automatic resume hook displays session if found)
353
-
354
- # OR user manually requests resume
355
- User: "/mpm-resume"
356
-
357
- # PM loads and displays session context
358
- PM: [Displays formatted session context as shown in Example Output]
359
-
360
- # User decides to continue work
361
- User: "Let's continue with the next priority task"
362
-
363
- # PM uses session context to understand what to do next
364
- PM: "Based on the paused session, the next priority is to refactor
365
- the verification-before-completion skill. I'll delegate this to Engineer..."
366
- ```
18
+ **What it shows:**
19
+ - Session summary and time elapsed
20
+ - Completed work and current tasks
21
+ - Git context and recent commits
22
+ - Next recommended actions
367
23
 
368
- ## Version History
24
+ **Session location:** `.claude-mpm/sessions/session-*.json`
369
25
 
370
- - **v4.21.1**: Fixed command behavior - now loads sessions instead of creating files
371
- - **v4.21.0**: Added `/mpm-resume` command (incorrect behavior - created files)
372
- - **v4.19.0**: Automatic session resume infrastructure implemented
373
- - **v4.18.x**: Session pause/resume foundation
26
+ **Token usage:** ~20-40k tokens (10-20% of context budget)
374
27
 
375
- ## Support
28
+ **Note:** Reads existing sessions (created automatically at 70% context). Does NOT create new files.
376
29
 
377
- For issues or questions:
378
- - Run `/mpm-doctor` to check system health
379
- - Check logs: `.claude-mpm/logs/claude-mpm.log`
380
- - Verify session files: `ls -la .claude-mpm/sessions/`
381
- - Review documentation: `/docs/features/session-auto-resume.md`
30
+ See docs/features/session-auto-resume.md for details.
@@ -4,81 +4,17 @@ command: status
4
4
  aliases: [mpm-status]
5
5
  migration_target: /mpm/system:status
6
6
  category: system
7
- deprecated_aliases: []
8
- description: Display Claude MPM status including environment, services, and health
7
+ description: Display Claude MPM system status
9
8
  ---
10
- # Show claude-mpm status and environment
9
+ # /mpm-status
11
10
 
12
- Display the current status of Claude MPM including environment information, active services, and system health.
11
+ Show MPM system status. Delegates to PM agent.
13
12
 
14
13
  ## Usage
15
-
16
14
  ```
17
15
  /mpm-status
18
16
  ```
19
17
 
20
- ## Description
21
-
22
- This slash command delegates to the **PM agent** to gather and display comprehensive status information about your Claude MPM environment.
23
-
24
- ## Implementation
25
-
26
- This slash command delegates to the **PM agent** to collect status information.
27
-
28
- When you run `/mpm-status`, the PM will:
29
- 1. Check Claude MPM version and installation
30
- 2. Verify Python environment and dependencies
31
- 3. Query active services (WebSocket server, Hook Service, Monitor)
32
- 4. Report memory system status
33
- 5. Check agent deployment status
34
- 6. Summarize current configuration
35
-
36
- ## Information Displayed
37
-
38
- The PM agent will gather and present:
39
-
40
- - **Claude MPM Version**: Current version and build number
41
- - **Python Environment**: Python version, virtual environment status
42
- - **Active Services**:
43
- - WebSocket server status and port
44
- - Hook service status
45
- - Monitor/dashboard status
46
- - **Memory Usage**: Agent memory files and sizes
47
- - **Agent Deployment**: Deployed agents and their locations
48
- - **Configuration**: Key configuration settings
49
- - **Project Info**: Current project directory and git status
50
-
51
- ## Expected Output
52
-
53
- ```
54
- Claude MPM Status Report
55
- ========================
56
-
57
- Version: v4.5.15
58
- Python: 3.11.13
59
- Environment: Mamba (claude-mpm)
60
-
61
- Services:
62
- ✓ WebSocket Server: Running (port 8765)
63
- ✓ Hook Service: Active
64
- ✓ Monitor: Running (port 3000)
65
-
66
- Agents Deployed: 5
67
- - PM (Core)
68
- - Engineer
69
- - Prompt-Engineer
70
- - Tester
71
- - Project-Organizer
72
-
73
- Memory Files: 3 (2.4 MB)
74
- Configuration: Valid
75
-
76
- Project: /Users/masa/Projects/my-project
77
- Git Status: Clean (main branch)
78
- ```
79
-
80
- ## Related Commands
18
+ Displays: version, services, agents, memory, configuration, project info.
81
19
 
82
- - `/mpm-doctor`: Diagnose issues and run health checks
83
- - `/mpm-config`: View or modify configuration
84
- - `/mpm-agents`: List and manage deployed agents
20
+ See docs/commands/status.md for details.