session-persist — Claude Code skill: save and restore agent sessions
Snapshots agent state including memory, metrics, and task progress, then restores it in a new conversation without losing context.
npx skills add ruvnet/ruflo --skill session-persist -a claude-codeWhat session-persist does
This skill captures the current agent state — configuration, memory entries, learning metrics, task list — and lets you restore it later. It includes tools for saving and restoring sessions, automatic hooks that fire at conversation start and end, plus commands to list saved sessions and delete old ones.
Hooks session-start and session-end run automatically: context restores at the beginning, state saves at the end with metrics export. To load a specific session, call session-restore by ID.
Available on Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode.
What it helps with
- preserve agent context across separate conversations
- resume long-running tasks from checkpoint
- export learning metrics and performance statistics
- manage multiple saved agent states
Example prompts for the agent
- Save the current session with full memory and task progress
- List all saved sessions and restore the one you need
- Restore a session by ID with its metrics and learning trajectory
How to install session-persist
1Skills CLI (Vercel)
npx skills add ruvnet/ruflo --skill session-persist -a claude-code2Manually: put the files in place
~/.claude/skills/session-persist/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/session-persist/
1Skills CLI (Vercel)
npx skills add ruvnet/ruflo --skill session-persist -a codex2Manually: put the files in place
.agents/skills/session-persist/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add ruvnet/ruflo --skill session-persist -a cursor2Manually: put the files in place
.cursor/skills/session-persist/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install ruvnet/ruflo session-persist2Manually: put the files in place
.github/skills/session-persist/SKILL.md1Skills CLI (Vercel)
npx skills add ruvnet/ruflo --skill session-persist -a gemini-cli2Platform CLI
gemini skills install https://github.com/ruvnet/ruflo --path plugins/ruflo-rvf/skills/session-persistManually: put the files in place
.devin/skills/session-persist/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add ruvnet/ruflo --skill session-persist -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set104
The whole set →Similar
Questions about session-persist
How do I install session-persist in Claude Code?
Run npx skills add ruvnet/ruflo --skill session-persist -a claude-code. The skill file will be available at ~/.claude/skills/session-persist/SKILL.md.
What does session-persist save?
Agent state and configuration, memory entries, learning metrics, task progress, and todos.
Can a session restore automatically?
Yes. The session-start hook restores context at conversation start, and session-end saves state when you finish.
Source text
SKILL.md · MIT
--- name: session-persist description: Persist and restore agent sessions across conversations with state snapshots argument-hint: "[--save|--restore|--list]" allowed-tools: mcp__plugin_ruflo-core_ruflo__session_save mcp__plugin_ruflo-core_ruflo__session_restore mcp__plugin_ruflo-core_ruflo__session_list mcp__plugin_ruflo-core_ruflo__session_info mcp__plugin_ruflo-core_ruflo__session_delete mcp__plugin_ruflo-core_ruflo__hooks_session-start mcp__plugin_ruflo-core_ruflo__hooks_session-end mcp__plugin_ruflo-core_ruflo__hooks_session-restore Bash --- # 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__plugin_ruflo-core_ruflo__session_save` to snapshot current state 2. **List sessions** — call `mcp__plugin_ruflo-core_ruflo__session_list` to see all saved sessions 3. **Restore** — call `mcp__plugin_ruflo-core_ruflo__session_restore` to resume a previous session 4. **Info** — call `mcp__plugin_ruflo-core_ruflo__session_info` for session details and metadata 5. **Clean up** — call `mcp__plugin_ruflo-core_ruflo__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
© ruvnet · MIT · ruvnet/ruflo