If you're using Claude Code, GitHub Copilot, or any AI coding assistant, you've probably experienced this: the AI makes a series of changes, something breaks, and you can't easily get back to the working state.
Git commits are too heavy for this. You don't want 50 "WIP" commits in your history. But you DO want save points.
Enter ccheckpoints
ccheckpoints is a lightweight checkpoint system specifically designed for AI-assisted coding sessions. Think of it as quicksave/quickload for your codebase.
How It Works
# Save a checkpoint before AI makes changes
ccheckpoint save "before refactoring auth module"
# AI does its thing...
# Something breaks?
# Restore to your checkpoint
ccheckpoint restore
That's it. No commits. No branches. No stashing. Just save and restore.
Why Not Just Use Git Stash?
- Git stash is for temporary changes — checkpoints are named and persistent
- Git stash doesn't capture untracked files by default
- Git stash has no clear labeling system
- ccheckpoints is purpose-built for the "AI just broke my code" workflow
Real World Scenario
You're using Claude Code to refactor a module:
-
ccheckpoint save "working auth"— save the working state - Ask Claude to refactor the authentication flow
- It makes 15 file changes... but login is now broken
-
ccheckpoint restore— back to working in 1 second - Try a different approach with better context
Features
- ⚡ Instant save/restore (no git overhead)
- 📝 Named checkpoints with descriptions
- 📁 Captures all files (tracked and untracked)
- 🗑️ Easy cleanup when you're done
- 🪶 Zero dependencies
Get It
⭐ github.com/p32929/ccheckpoints
If you do AI-assisted development, this will save your sanity. Star it and never lose working code again!
Top comments (0)