Session Resume provides automated task state persistence and recovery to ensure long-running AI agent workflows survive session interruptions or restarts.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install session-resume
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install session-resume using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Session Resume is a specialized skill designed to safeguard progress during long-running AI agent operations. It addresses the common challenge where a Gateway restart, network failure, or session compression causes the agent to lose its place in a complex workflow. By utilizing task state persistence, this skill ensures that Openclaw Skills can pick up exactly where they left off, saving users from the frustration of re-explaining requirements or losing intermediate work.
This skill operates by periodically saving the execution status to a dedicated local JSON file. Upon a new session initiation or a manual recovery trigger, it analyzes the stored data to provide a comprehensive report of completed and pending steps, allowing the user to seamlessly continue the operation with full context.
To enable session recovery, ensure your agent configuration includes a check for the task state file during initialization. Openclaw Skills require the workspace directory to be accessible.
# Ensure the workspace directory exists
mkdir -p ~/.openclaw/workspace-main/
Add the following logic to your agent's startup sequence:
The skill persists state data in a structured JSON format to ensure reliable recovery. Below is the metadata taxonomy used:
| Key | Type | Description |
|---|---|---|
| taskId | String | A unique identifier for the specific task session. |
| description | String | The original user request or objective being processed. |
| status | String | The current lifecycle state (e.g., in_progress, done). |
| steps | Array | A list of sub-tasks with their individual completion status and results. |
| context | Object | Critical key-value pairs including file paths and intermediate values. |
| lastCheckpoint | String | A timestamped marker of the last successfully completed step. |
Loading
A professional-grade suite of advanced Git tools for AI agents, enabling complex operations like interactive rebasing, worktree management, and reflog recovery.

Hook Guard is a comprehensive security and safety layer for AI agents that provides real-time operation monitoring, automated file backups, and risk-based command interception.

A sophisticated orchestration skill that decomposes complex tasks into sub-tasks for parallel execution by multiple specialized agents.

A robust, automated backup solution for OpenClaw VPS instances using restic for encrypted, deduplicated, and offsite storage.

A powerful Windows-based automation skill that leverages Internet Download Manager to handle large-scale file downloads via COM interfaces and CLI.

A 4-phase progressive context management strategy that preserves critical technical information before executing agent compression.








































