with one click
Pause session and save current work state for later resume
npx skills add https://github.com/bobmatnyc/claude-mpm --skill mpm-session-pauseCopy and paste this command into Claude Code to install the skill
Pause session and save current work state for later resume
npx skills add https://github.com/bobmatnyc/claude-mpm --skill mpm-session-pauseCopy and paste this command into Claude Code to install the skill
Access Claude MPM functionality and manage multi-agent orchestration
Access Claude MPM functionality and manage multi-agent orchestration
Load context from paused session
Branch protection and PR creation workflow
Spec-Linked Documentation (SLD): Language-agnostic discipline for maintaining bidirectional traceability between functional specifications and source-code docstrings via stable identifiers and CI validation. Optional/opt-in adoption. Builds on OpenFastTrace and DO-178C Requirements Traceability Matrix traditions.
Use multiple Claude agents to investigate and fix independent problems concurrently
| name | mpm-session-pause |
| description | Pause session and save current work state for later resume |
| user-invocable | true |
| version | 1.0.0 |
| category | mpm-command |
| tags | ["mpm-command","session","pm-recommended"] |
Pause the current session and save all work state for later resume.
When invoked, this skill:
.claude-mpm/sessions/session-{timestamp}.md (project-local).claude-mpm/sessions/LATEST-SESSION.txt pointer/mpm-pause [optional message describing current work]
Examples:
/mpm-pause
/mpm-pause Working on authentication refactor, about to test login flow
/mpm-pause Need to context switch to urgent bug fix
Execute the following Python code to pause the session:
from pathlib import Path
try:
from claude_mpm.services.cli.session_pause_manager import SessionPauseManager
except ImportError:
print(
"ERROR: claude_mpm is not importable in the current Python environment.\n"
"If you installed via 'uv tool install claude-mpm', run:\n"
" uv run python -c 'from claude_mpm.services.cli.session_pause_manager "
"import SessionPauseManager'\n"
"Or invoke directly: claude-mpm session-pause\n"
"Alternatively, activate the virtual environment where claude-mpm is installed."
)
raise SystemExit(1)
# Optional: Get message from user's command
# If user provided message after /mpm-pause, extract it
# Otherwise, message = None
# Create session pause manager
manager = SessionPauseManager(project_path=Path.cwd())
# Create pause session
session_id = manager.create_pause_session(
message=message, # Optional context message
skip_commit=False, # Will commit to git if in a repo
export_path=None, # No additional export needed
)
# Report success to user
print(f"ā
Session paused successfully!")
print(f"")
print(f"Session ID: {session_id}")
print(f"Session files:")
print(f" - .claude-mpm/sessions/{session_id}.md (human-readable)")
print(f" - .claude-mpm/sessions/{session_id}.json (machine-readable)")
print(f" - .claude-mpm/sessions/{session_id}.yaml (config format)")
print(f"")
print(f"Quick resume:")
print(f" /mpm-session-resume")
print(f"")
print(f"View session context:")
print(f" cat .claude-mpm/sessions/LATEST-SESSION.txt")
print(f" cat .claude-mpm/sessions/{session_id}.md")
Session State:
Resume Instructions:
File Formats:
.md - Human-readable markdown (for reading).json - Machine-readable (for tooling).yaml - Human-readable config (for editing)All session files are stored in the project-local directory:
<project-root>/.claude-mpm/sessions/
āāā LATEST-SESSION.txt # Pointer to most recent session
āāā session-YYYYMMDD-HHMMSS.md
āāā session-YYYYMMDD-HHMMSS.json
āāā session-YYYYMMDD-HHMMSS.yaml
This ensures sessions are scoped to the project that created them ā pausing in project A and opening project B will never load project A's session state.
Token usage: ~5-10k tokens to execute (2-5% of context budget)
Benefit: Saves all remaining context for future resume, allowing you to:
To resume this session:
/mpm-session-resume
Or manually:
cat .claude-mpm/sessions/LATEST-SESSION.txt
cat .claude-mpm/sessions/session-YYYYMMDD-HHMMSS.md
Session files are stored in the project-local .claude-mpm/sessions/ directory.
Add this directory to your .gitignore ā session state is machine-specific and
should not be committed. No git commit is created by the pause operation.
Context switching:
/mpm-pause Switching to urgent production bug
End of work session:
/mpm-pause Completed API refactor, ready for testing tomorrow
Before major changes:
/mpm-pause Saving state before attempting risky refactor
When approaching context limit:
/mpm-pause Hit 150k tokens, starting fresh session
/mpm-session-resume - Resume from most recent paused session/mpm-init resume - Alternative resume commanddocs/features/session-auto-resume.md for auto-pause behavior.claude-mpm/sessions/ (not synced across machines).claude-mpm/sessions/ to .gitignore