By sinzin91
Checkpoint your Claude Code session by capturing recent messages and generating a structured summary of goals, tasks, files, and decisions into a markdown file before using /clear. Restore from any checkpoint file to seamlessly resume the conversation from the last message or task, preserving full context without manual recreation.
Save your Claude Code session before /clear. Restore it after.
/clear nukes everything. All the decisions, corrections, file context, and working state — gone. You need to clear because you hit context limits, but then you spend the next ten minutes re-explaining what you were doing.
claude-checkpoint fixes this. Before you clear, run /checkpoint. It extracts your conversation into a markdown file and has Claude write a structured summary. After clearing, run /restore and Claude picks up exactly where you left off.
/checkpoint # saves last 100 messages
/clear # wipe context as usual
/restore # Claude continues like nothing happened
That's it. Three commands.
For Claude Code users — paste this into any session:
Install https://github.com/sinzin91/claude-checkpoint and set up the /checkpoint and /restore commands.
Claude will handle the rest.
cargo install claude-checkpoint
claude-checkpoint install
Or as a Claude Code plugin:
claude plugin marketplace add sinzin91/claude-checkpoint
claude plugin install claude-checkpoint
git clone https://github.com/sinzin91/claude-checkpoint.git
cd claude-checkpoint
bash install.sh
Grab a tarball from GitHub Releases — Linux and macOS, x86_64 and ARM.
claude-checkpoint uninstall # removes slash commands from ~/.claude
cargo uninstall claude-checkpoint # removes the binary (if installed via cargo)
/checkpoint # save last 100 messages (default)
/checkpoint 50 # or pick a number
Claude extracts the raw messages, writes a summary (goal, decisions, files touched, corrections, next step), and saves it all to /tmp/checkpoint-YYYYMMDD-HHMMSS.md.
/restore # most recent checkpoint
/restore /tmp/checkpoint-20260403-161507.md # specific file
Claude reads it back and continues working. No preamble, no "welcome back", just picks up the thread.
You can also run the binary directly outside of Claude Code:
claude-checkpoint extract --last 100 --output /tmp/checkpoint.md
claude-checkpoint extract --session ~/.claude/projects/-Users-me/abc123.jsonl
Two sections in the checkpoint file:
Summary — Claude generates this during /checkpoint: the goal, current task, files modified, key decisions, corrections you made, working patterns, blockers, and the literal next step. These are the things that get lost first when context compacts.
Raw messages — the actual human/assistant exchanges pulled from the session JSONL. Tool calls and thinking blocks are stripped out to keep it lean.
The binary walks ~/.claude/projects/ looking for the most recently modified .jsonl file (max depth 3, skips subagent sessions). Pass --session to point it at a specific file instead.
MIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub sinzin91/claude-checkpoint --plugin claude-checkpointSearch across Claude Code and OpenClaw session history. Find past conversations, decisions, and code snippets instantly.
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Write feature specs, plan roadmaps, and synthesize user research faster. Keep stakeholders updated and stay ahead of the competitive landscape.
Unified status line for Claude Code with multi-CLI (Claude, Codex, Gemini, z.ai) usage monitoring, context, rate limits, and cost tracking