Session Persist

Persist and restore agent sessions across conversations with state snapshots

majiayu000 318b9db 2 files · 2.0 KB Updated 567 repo stars

File contents

Session Persistence

Save and restore complete agent sessions across conversations.

When to use

When you need to pause work and resume later with full context, or when you want to checkpoint progress during long-running tasks.

Steps

  1. Save session — call mcp__claude-flow__session_save to snapshot current state
  2. List sessions — call mcp__claude-flow__session_list to see all saved sessions
  3. Restore — call mcp__claude-flow__session_restore to resume a previous session
  4. Info — call mcp__claude-flow__session_info for session details and metadata
  5. Clean up — call mcp__claude-flow__session_delete to remove old sessions

Session hooks

  • hooks_session-start — automatically restore context at conversation start
  • hooks_session-end — automatically save state with metrics export
  • hooks_session-restore — restore a specific session by ID

What's persisted

  • Agent state and configuration
  • Memory entries and patterns
  • Learning trajectories and metrics
  • Task progress and todos

majiayu000/claude-skill-registry-data/tree/main/context-management/session-persist commit 318b9db199

Frequently asked questions

npx skillmds add majiayu000/session-persist