بنقرة واحدة
mpm-session-resume
Load context from paused session
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Load context from paused session
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | mpm-session-resume |
| description | Load context from paused session |
| user-invocable | true |
| version | 1.4.3 |
| category | mpm-command |
| tags | ["mpm-command","session","pm-recommended"] |
| effort | medium |
Load and display context from a paused session, with optional browsing and selection when multiple sessions exist.
When invoked, this skill:
.claude-mpm/sessions/ for paused sessions--selectproject_path matches the current project — sessions from other projects are skippedNote: Resume always validates that the session belongs to the current project. You will never accidentally resume a session from a different project.
/mpm-session-resume # resume most recent session (existing behaviour)
/mpm-session-resume # with no args: also lists sessions when >1 exists
/mpm-session-resume --select 2 # resume the 2nd most-recent session (1-based index)
/mpm-session-resume --select 20240101 # resume by partial session ID match
/mpm-session-resume <session-id> # resume by exact session ID (backward-compatible)
What it shows (listing mode — no args, multiple sessions):
What it shows (resume mode):
Run the console script directly — no interpreter resolution needed:
# Resume most recent session (lists if multiple exist)
claude-mpm session resume
# Resume the 2nd most recent session
claude-mpm session resume --select 2
# Resume by partial session ID (date prefix)
claude-mpm session resume --select 20240101
# Resume by exact session ID
claude-mpm session resume session-20240101-143022
# Resume from a specific project directory
claude-mpm session resume --project-path /path/to/project
Permission note (Bug #735): Do not probe for sessions with
ls .claude-mpm/sessions/ 2>/dev/null— that swallows stderr, so a permission-denied read looks identical to "no sessions" and resume wrongly reports nothing to resume. Theclaude-mpm session resumecommand handles this correctly viacheck_session_dir_access().
claude-mpm session resume failsIf the command exits non-zero, capture the full error and show it verbatim — do not summarise with a generic "not importable" message:
claude-mpm session resume 2>&1
rc=$?
if [ "$rc" -ne 0 ]; then
echo ""
echo "ERROR: claude-mpm session resume failed (exit $rc)."
echo "Full error shown above."
echo ""
echo "Diagnostic steps:"
echo " 1. Verify claude-mpm is on PATH: command -v claude-mpm"
echo " 2. Check the actual import error: python3 -c 'import claude_mpm' 2>&1"
echo " 3. If a transitive dep fails (e.g. shadowed stdlib module), check"
echo " sys.path[0] is not /tmp: python3 -c 'import sys; print(sys.path[0])'"
fi
Note on misleading ImportError messages (issue #781): A bare
except ImportErrorcan fire for transitive failures (e.g. a stray/tmp/bisect.pyshadowing stdlibbisect) unrelated toclaude_mpmitself. Always inspect the actual exception —e.nametells you which module failed. Ife.namedoes not start withclaude_mpm, the problem is a shadowed or missing transitive dependency, not a missingclaude_mpminstallation.
Session location: project-local .claude-mpm/sessions/session-*.md (and .json)
Sessions are stored relative to the project root so each project has its own isolated session history. Resume always validates that the session belongs to the current project — you will never accidentally load a session from another checkout.
The store contains:
<project-root>/.claude-mpm/sessions/
├── LATEST-SESSION.txt # Pointer to most recent session
├── session-YYYYMMDD-HHMMSS.md # Human-readable
└── session-YYYYMMDD-HHMMSS.json # Machine-readable (loaded by resume)
Resume reads the .json file (authoritative machine-readable format). The .md file is for humans; resume will not attempt to parse it as JSON.
Token usage: ~20-40k tokens (10-20% of context budget)
This loads the session summary, accomplishments, next steps, git history, and pending task list into context so the PM can continue work without rediscovering state.
From the paused session:
Calculated at resume time:
/mpm-session-pause skill; this skill loads them.This skill is fundamentally different from Claude Code's native claude --resume/--continue and checkpoint-rewind (Esc-Esc / /rewind):
claude --resume/--continue: Replays the full raw conversation transcript (persisted to a JSONL file on disk) and continues the exact same conversation thread, typically scoped to the same working directory. This is not ephemeral — the transcript survives the tool exiting./mpm-session-pause + /mpm-session-resume: Captures a condensed textual summary (git state, todos, task list, accomplishments) into .claude-mpm/sessions/*.json files, loaded into a brand-new conversation rather than replaying the transcript. Useful for cross-project handoff, long-form work spanning many separate conversations, or a fresh context window with just the essential summary instead of the full raw history./mpm-session-pause — Pause current session and save stateclaude-mpm session pause — CLI entry point for pauseclaude-mpm session resume --help — Full CLI usageSee the "Context Usage Monitoring" section of the mpm-session-management skill for
how context-usage thresholds and warnings work (session pause is manual-only; there
is no auto-pause).
MCP (Model Context Protocol) - Build AI-native servers with tools, resources, and prompts. TypeScript/Python SDKs for Claude Desktop integration.
Model Context Protocol (MCP) server build and evaluation guide, including local conventions for tool surfaces, config, and testing
Control monitoring server and dashboard
Pause session and save current work state for later resume
Load context from paused session
Access Claude MPM functionality and manage multi-agent orchestration