claude-mpm 5.4.65__py3-none-any.whl → 5.4.96__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.
- claude_mpm/VERSION +1 -1
- claude_mpm/agents/CLAUDE_MPM_FOUNDERS_OUTPUT_STYLE.md +405 -0
- claude_mpm/agents/CLAUDE_MPM_OUTPUT_STYLE.md +66 -241
- claude_mpm/agents/CLAUDE_MPM_TEACHER_OUTPUT_STYLE.md +107 -1928
- claude_mpm/agents/PM_INSTRUCTIONS.md +82 -686
- claude_mpm/cli/__init__.py +5 -1
- claude_mpm/cli/commands/agents.py +2 -4
- claude_mpm/cli/commands/agents_reconcile.py +197 -0
- claude_mpm/cli/commands/autotodos.py +526 -0
- claude_mpm/cli/commands/configure.py +620 -21
- claude_mpm/cli/commands/monitor.py +2 -2
- claude_mpm/cli/commands/mpm_init/core.py +2 -2
- claude_mpm/cli/commands/skills.py +166 -14
- claude_mpm/cli/executor.py +89 -0
- claude_mpm/cli/interactive/__init__.py +10 -0
- claude_mpm/cli/interactive/agent_wizard.py +30 -50
- claude_mpm/cli/interactive/questionary_styles.py +65 -0
- claude_mpm/cli/interactive/skill_selector.py +481 -0
- claude_mpm/cli/parsers/base_parser.py +59 -1
- claude_mpm/cli/startup.py +184 -358
- claude_mpm/cli/startup_display.py +72 -5
- claude_mpm/cli/startup_logging.py +2 -2
- claude_mpm/commands/mpm-session-resume.md +1 -1
- claude_mpm/constants.py +1 -0
- claude_mpm/core/claude_runner.py +2 -2
- claude_mpm/core/hook_manager.py +51 -3
- claude_mpm/core/interactive_session.py +7 -7
- claude_mpm/core/output_style_manager.py +21 -13
- claude_mpm/core/unified_config.py +50 -8
- claude_mpm/core/unified_paths.py +30 -13
- claude_mpm/dashboard/static/svelte-build/_app/immutable/assets/0.C33zOoyM.css +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/assets/2.CW1J-YuA.css +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{Cs_tUR18.js → 1WZnGYqX.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{CDuw-vjf.js → 67pF3qNn.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{bTOqqlTd.js → 6RxdMKe4.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{DwBR2MJi.js → 8cZrfX0h.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{ZGh7QtNv.js → 9a6T2nm-.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{D9lljYKQ.js → B443AUzu.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{RJiighC3.js → B8AwtY2H.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{uuIeMWc-.js → BF15LAsF.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{D3k0OPJN.js → BRcwIQNr.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{CyWMqx4W.js → BV6nKitt.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{CiIAseT4.js → BViJ8lZt.js} +5 -5
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{CBBdVcY8.js → BcQ-Q0FE.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{BovzEFCE.js → Bpyvgze_.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/BzTRqg-z.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/C0Fr8dve.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{eNVUfhuA.js → C3rbW_a-.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{GYwsonyD.js → C8WYN38h.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{BIF9m_hv.js → C9I8FlXH.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{B0uc0UOD.js → CIQcWgO2.js} +3 -3
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{Be7GpZd6.js → CIctN7YN.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{Bh0LDWpI.js → CKrS_JZW.js} +2 -2
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{DUrLdbGD.js → CR6P9C4A.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{B7xVLGWV.js → CRRR9MD_.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/CRcR2DqT.js +334 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{Dhb8PKl3.js → CSXtMOf0.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{BPYeabCQ.js → CT-sbxSk.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{sQeU3Y1z.js → CWm6DJsp.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{CnA0NrzZ.js → CpqQ1Kzn.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{C4B-KCzX.js → D2nGpDRe.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{DGkLK5U1.js → D9iCMida.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{BofRWZRR.js → D9ykgMoY.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{DmxopI1J.js → DL2Ldur1.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{C30mlcqg.js → DPfltzjH.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{Vzk33B_K.js → DR8nis88.js} +2 -2
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{DI7hHRFL.js → DUliQN2b.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{C4JcI4KD.js → DXlhR01x.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{bT1r9zLR.js → D_lyTybS.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{DZX00Y4g.js → DngoTTgh.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{CzZX-COe.js → DqkmHtDC.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{B7RN905-.js → DsDh8EYs.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{DLVjFsZ3.js → DypDmXgd.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{iEWssX7S.js → IPYC-LnN.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/JTLiF7dt.js +24 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{DaimHw_p.js → JpevfAFt.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{DY1XQ8fi.js → R8CEIRAd.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{Dle-35c7.js → Zxy7qc-l.js} +2 -2
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/q9Hm6zAU.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{C_Usid8X.js → qtd3IeO4.js} +2 -2
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{CzeYkLYB.js → ulBFON_C.js} +2 -2
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/{Cfqx1Qun.js → wQVh1CoA.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/entry/{app.D6-I5TpK.js → app.Dr7t0z2J.js} +2 -2
- claude_mpm/dashboard/static/svelte-build/_app/immutable/entry/start.BGhZHUS3.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/{0.m1gL8KXf.js → 0.RgBboRvH.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/{1.CgNOuw-d.js → 1.DG-KkbDf.js} +1 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/2.D_jnf-x6.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/version.json +1 -1
- claude_mpm/dashboard/static/svelte-build/index.html +9 -9
- claude_mpm/hooks/claude_hooks/INTEGRATION_EXAMPLE.md +243 -0
- claude_mpm/hooks/claude_hooks/README_AUTO_PAUSE.md +403 -0
- claude_mpm/hooks/claude_hooks/__pycache__/auto_pause_handler.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/event_handlers.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/hook_handler.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/response_tracking.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/auto_pause_handler.py +486 -0
- claude_mpm/hooks/claude_hooks/event_handlers.py +216 -11
- claude_mpm/hooks/claude_hooks/hook_handler.py +28 -4
- claude_mpm/hooks/claude_hooks/response_tracking.py +3 -1
- claude_mpm/hooks/claude_hooks/services/__pycache__/connection_manager.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/__pycache__/subagent_processor.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/connection_manager.py +20 -0
- claude_mpm/hooks/claude_hooks/services/subagent_processor.py +30 -6
- claude_mpm/hooks/session_resume_hook.py +85 -1
- claude_mpm/init.py +1 -1
- claude_mpm/services/agents/cache_git_manager.py +1 -1
- claude_mpm/services/agents/deployment/deployment_reconciler.py +577 -0
- claude_mpm/services/agents/deployment/remote_agent_discovery_service.py +3 -0
- claude_mpm/services/agents/deployment/startup_reconciliation.py +138 -0
- claude_mpm/services/agents/startup_sync.py +5 -2
- claude_mpm/services/cli/__init__.py +3 -0
- claude_mpm/services/cli/incremental_pause_manager.py +561 -0
- claude_mpm/services/cli/session_resume_helper.py +10 -2
- claude_mpm/services/delegation_detector.py +175 -0
- claude_mpm/services/diagnostics/checks/agent_sources_check.py +30 -0
- claude_mpm/services/diagnostics/checks/configuration_check.py +24 -0
- claude_mpm/services/diagnostics/checks/installation_check.py +22 -0
- claude_mpm/services/diagnostics/checks/mcp_services_check.py +23 -0
- claude_mpm/services/diagnostics/doctor_reporter.py +31 -1
- claude_mpm/services/diagnostics/models.py +14 -1
- claude_mpm/services/event_log.py +317 -0
- claude_mpm/services/infrastructure/__init__.py +4 -0
- claude_mpm/services/infrastructure/context_usage_tracker.py +291 -0
- claude_mpm/services/infrastructure/resume_log_generator.py +24 -5
- claude_mpm/services/monitor/daemon_manager.py +15 -4
- claude_mpm/services/monitor/management/lifecycle.py +8 -2
- claude_mpm/services/monitor/server.py +106 -16
- claude_mpm/services/pm_skills_deployer.py +177 -83
- claude_mpm/services/skills/git_skill_source_manager.py +5 -1
- claude_mpm/services/skills/selective_skill_deployer.py +114 -26
- claude_mpm/services/socketio/handlers/hook.py +14 -7
- claude_mpm/services/socketio/server/main.py +12 -4
- claude_mpm/skills/bundled/pm/mpm-agent-update-workflow/SKILL.md +75 -0
- claude_mpm/skills/bundled/pm/mpm-bug-reporting/SKILL.md +248 -0
- claude_mpm/skills/bundled/pm/mpm-circuit-breaker-enforcement/SKILL.md +476 -0
- claude_mpm/skills/bundled/pm/mpm-session-management/SKILL.md +312 -0
- claude_mpm/skills/bundled/pm/mpm-teaching-mode/SKILL.md +657 -0
- claude_mpm/skills/bundled/pm/mpm-tool-usage-guide/SKILL.md +386 -0
- claude_mpm/skills/skill_manager.py +4 -4
- claude_mpm/utils/agent_dependency_loader.py +4 -2
- claude_mpm/utils/robust_installer.py +10 -6
- claude_mpm-5.4.96.dist-info/METADATA +377 -0
- {claude_mpm-5.4.65.dist-info → claude_mpm-5.4.96.dist-info}/RECORD +153 -142
- claude_mpm/dashboard/static/svelte-build/_app/immutable/assets/0.DWzvg0-y.css +0 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/assets/2.ThTw9_ym.css +0 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/4TdZjIqw.js +0 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/5shd3_w0.js +0 -24
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/BKjSRqUr.js +0 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/Da0KfYnO.js +0 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/Dfy6j1xT.js +0 -323
- claude_mpm/dashboard/static/svelte-build/_app/immutable/entry/start.NWzMBYRp.js +0 -1
- claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/2.C0GcWctS.js +0 -1
- claude_mpm/hooks/claude_hooks/__pycache__/__init__.cpython-312.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/event_handlers.cpython-312.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/hook_handler.cpython-312.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/memory_integration.cpython-312.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/response_tracking.cpython-312.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/tool_analysis.cpython-312.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/__pycache__/__init__.cpython-312.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/__pycache__/connection_manager_http.cpython-312.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/__pycache__/duplicate_detector.cpython-312.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/__pycache__/state_manager.cpython-312.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/__pycache__/subagent_processor.cpython-312.pyc +0 -0
- claude_mpm-5.4.65.dist-info/METADATA +0 -999
- /claude_mpm/skills/bundled/pm/{pm-delegation-patterns → mpm-delegation-patterns}/SKILL.md +0 -0
- /claude_mpm/skills/bundled/pm/{pm-git-file-tracking → mpm-git-file-tracking}/SKILL.md +0 -0
- /claude_mpm/skills/bundled/pm/{pm-pr-workflow → mpm-pr-workflow}/SKILL.md +0 -0
- /claude_mpm/skills/bundled/pm/{pm-ticketing-integration → mpm-ticketing-integration}/SKILL.md +0 -0
- /claude_mpm/skills/bundled/pm/{pm-verification-protocols → mpm-verification-protocols}/SKILL.md +0 -0
- {claude_mpm-5.4.65.dist-info → claude_mpm-5.4.96.dist-info}/WHEEL +0 -0
- {claude_mpm-5.4.65.dist-info → claude_mpm-5.4.96.dist-info}/entry_points.txt +0 -0
- {claude_mpm-5.4.65.dist-info → claude_mpm-5.4.96.dist-info}/licenses/LICENSE +0 -0
- {claude_mpm-5.4.65.dist-info → claude_mpm-5.4.96.dist-info}/licenses/LICENSE-FAQ.md +0 -0
- {claude_mpm-5.4.65.dist-info → claude_mpm-5.4.96.dist-info}/top_level.txt +0 -0
|
@@ -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
|