Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add ruvnet/ruflo --skill session-persist -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/session-persist/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/session-persist/

From the same set104

The whole set →
ruflo ruvnet This skill adds multi-agent orchestration, memory, routing, and MCP tools to a project. Use it for swarm tasks and multi-step workflows. Claude Code CX Codex Cursor +1 4,000installs Swarm Orchestration ruvnet Skill for managing agent swarms with parallel execution, dynamic topology, and automatic load balancing. Use when a single agent is not enough and you need to orchestrate specialists of different types. Claude Code CX Codex Cursor +1 2,100installs github-project-management ruvnet Turns issue triage and board upkeep into gh and ruv-swarm calls: labels, subtasks, duplicate lookup. Useful when the tracker holds more tickets than order. Claude Code CX Codex Cursor +1 1,400installs github-workflow-automation ruvnet Automates GitHub Actions with AI agent coordination. Generates optimised pipelines, manages pull requests, analyzes failed runs, and deploys updates with risk assessment. Claude Code CX Codex Cursor +1 1,300installs github-code-review ruvnet Runs a swarm of specialized AI agents to inspect GitHub pull requests for security, performance, and architecture issues. Claude Code CX Codex Cursor +1 1,300installs stream-chain ruvnet Chains sequential agent steps together using streaming JSON flow and provides ready-to-run pipelines. Claude Code CX Codex Cursor +1 1,200installs flow-nexus-swarm ruvnet Deploy cloud-based AI agent swarms and define event-driven workflows with message queues. Use it to coordinate tasks, inspect runs, and scale a swarm. Claude Code CX Codex Cursor +1 1,200installs performance-analysis ruvnet Detects bottlenecks in Claude Flow swarms, profiles agent operations, and generates reports with actionable optimization recommendations. Claude Code CX Codex Cursor +1 1,200installs

Similar

resolve-conflicts tailcallhq Handles Git merge conflicts plan-first: audits the files, rebuilds lock files, rescues edits from deleted files, and asks you when the diff is ambiguous. Claude Code CX Codex Cursor +1 683installs agy-delegate amElnagdy Send a task to Google Antigravity CLI, wait for the result, and decide yourself whether to commit. Use this skill when you want to hand off implementation, not write it yourself. Claude Code CX Codex Cursor +1 5,900installs tamarind K-Dense-AI Runs Tamarind Bio structural biology and molecular design tools through its REST API or MCP server. Use it for cloud jobs without local GPUs. Claude Code CX Codex Cursor +1 1,100installs svelte vercel-labs Guides AI coding agents through building Svelte 5 component trees from json-render specs, including state, events, bindings, and catalogs. Claude Code CX Codex Cursor +1 1,200installs cli-anything-libreoffice HKUDS Skill for creating and editing Writer, Calc, and Impress documents from the CLI without a GUI. Produces real ODF files (ZIP with XML) — useful when an AI agent needs to assemble a report, spreadsheet, or presentation programmatically. Claude Code CX Codex Cursor +1 669installs setup-matt-pocock-skills Matt Pocock This skill configures a repository for Matt Pocock's engineering skills by setting its issue tracker, triage labels, and domain docs layout. Run it before using the other skills. Claude Code 1,052,851installs to-tickets Matt Pocock Turns a plan, spec, or conversation into small end-to-end tickets with explicit blockers. Use it to agree on the work breakdown before tickets go to a tracker. Claude Code 711,230installs writing-plans Jesse Vincent This skill turns requirements for a multi-step task into an implementation plan before code changes begin. It helps when another engineer needs exact files, interfaces, and checks. Claude Code CX Codex 282,859installs

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

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor