Checkpoint, restore, and branch OpenClaw sessions without throwing away useful progress.
ClawReverse is an OpenClaw native plugin that adds the openclaw reverse command. It helps you work with checkpoints, recover a clean workspace state, and continue from a known-good point instead of rerunning everything from scratch.
Why use ClawReverse?
ClawReverse is designed to solve real-world friction when working with OpenClaw:
The AI made a mess and got stuck: If OpenClaw generates too many unwanted files or bad code changes and can no longer proceed, you can instantly rewind the workspace to a clean state instead of starting from scratch.
Save tokens on long-running tasks: If OpenClaw perfectly analyzes a massive codebase but fails during the coding step, you don't have to pay it to read everything again. Just branch from the exact moment the analysis finished.
In practice, it helps you:
recover control of the workspace quickly
preserve useful progress
branch safely for experiments
reduce repeated work and token usage
Core concepts
Think of the plugin like this:
checkpoint: a saved historical boundary for a session. It records the workspace snapshot, the closed transcript prefix, and lineage metadata.
rollback: rewinds the current line to an earlier checkpoint. It does not create a new workspace, agent, or session. By default, the parent workspace is left untouched unless you explicitly request an in-place restore.
continue: forks from a checkpoint. It requires --prompt and creates a new child agent, a new workspace, and a new session, leaving the parent untouched.
Requirements
Node.js 24+
A working OpenClaw installation with a valid openclaw.json with the read and write perssion granted
Install
Prefer the published skill page? See ClawReverse on ClawHub.
If you're starting from GitHub, clone the repo first:
If you cloned into a folder named ReverseClaw, older OpenClaw builds may warn that the entry hints ReverseClaw instead of clawreverse. Cloning into the lowercase clawreverse directory avoids that path-based mismatch.
The plugin key in openclaw.json is clawreverse, and its CLI base command is openclaw reverse.
Use this to find the checkpoint you want to restore or branch from.
2) Branch safely with continue
openclaw reverse continue \ --agent <agent-id> \ --session <session-id> \ --checkpoint <checkpoint-id> \ --prompt "Continue from this point with a different approach."
Use continue when you want a clean child branch without changing the parent session.