p32929/ccheckpoints
About
Automatic checkpoint tracker and web dashboard for Claude Code CLI sessions — Cursor-style history and diffs
Developer ToolsWhat you can do
- Automatic checkpoints: every message you send to Claude Code is saved, with the time.
- All your sessions: see when each one started, how long it ran and what happened in it.
- Checkpoint timeline: move through your whole conversation with its full context.
- Compare changes: see what changed between two checkpoints, to find what broke or how your code grew.
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalCCheckpoints
Cursor-style checkpoints for Claude Code CLI. Every message you send to Claude Code is saved as a checkpoint, and a local web dashboard shows your whole session as a timeline, so you can look back at any point and see what changed.
On npm: ccheckpoints
Why use it
In a long Claude Code session it is easy to lose track of what you asked and when things changed. Cursor has checkpoints for this; Claude Code CLI does not. CCheckpoints adds them by itself, with no change to how you work, and everything stays on your computer.
Features
- Automatic checkpoints: every message you send to Claude Code is saved, with the time.
- All your sessions: see when each one started, how long it ran and what happened in it.
- Checkpoint timeline: move through your whole conversation with its full context.
- Compare changes: see what changed between two checkpoints, to find what broke or how your code grew.
- One-command setup: it adds the Claude Code hooks for you and opens the dashboard.
- Stays on your computer: everything is saved in a local SQLite database.
Quick start
npm install -g ccheckpoints
ccheckpoints
You can also type the short name ccp. The first run does three things:
- Adds the Claude Code hooks, if they are not there yet.
- Starts a small background server at
http://127.0.0.1:9271. - Opens the dashboard in your browser.
Commands
ccheckpoints(orccp): set up if needed and open the dashboard.ccheckpoints setup: only add the hooks, without opening the dashboard.ccheckpoints show: open the dashboard.ccheckpoints --verbose: show detailed logs of what is happening.ccheckpoints --help: show all options.
Screenshots
Sessions
See all your Claude Code sessions: when you started and how long you worked.
Checkpoint timeline
Every message is a checkpoint. Move through the whole conversation with times and full context.
Compare changes
See exactly what changed between checkpoints.
How it works
ccheckpoints setupadds two hooks to your Claude Code settings:userPromptSubmit(when you send a message) andstop(when a session ends).- Each hook runs
ccheckpoints track --event=<type>, which sends the event to the background server on port 9271. - The server saves it in the local database, and the dashboard reads from there.
Where your data is
Your data is in a CCheckpoints folder, in the file checkpoints.db:
- Windows:
%APPDATA%\CCheckpoints\ - macOS:
~/Library/Application Support/CCheckpoints/ - Linux:
~/.local/share/CCheckpoints/
Troubleshooting
- Port 9271 is already in use: the server needs this port, so close the other app using it.
- The dashboard does not open: run
ccheckpoints --verboseto see what is going on. - Checkpoints are not being saved: run
ccheckpoints setupagain to add the hooks.
Build it yourself
git clone https://github.com/p32929/ccheckpoints.git
cd ccheckpoints
npm install
npm run build
npm install -g .
ccheckpoints
While working on it, npm run dev runs it without building, and npm run dev:watch reloads on every change.
License
MIT License, Copyright (c) 2025 Fayaz Bin Salam. See LICENSE for the full text.
Contributing
Contributions are very welcome, thank you! Before you start on a pull request, please open an issue and tell me what you would like to add or change. That way we can agree on it first, and your time is not spent on something that might not fit. Found a bug or have an idea? An issue is the best place for that too.
You might also like
Explore related projects
Loading…