←back to thread

Claude Code Checkpoints

(claude-checkpoints.com)
184 points punnerud | 3 comments | | HN request time: 0.478s | source
Show context
radarsat1 ◴[] No.45051243[source]
I don't know what this is but isn't git enough? Incidentally I'm not convinced in my day-to-day for "jujitsu" (jj) but from what I understand about how it works, I've been wanting to give it a try for agent-based coding, based on the way it defaults to saving everything and letting you sort it out after. I do like how Aider commits everything so you can easily roll back, although it ends up with a few too many commits imho.

I've been wanting to experiment also with getting an agent to go back and rebase history, rewrite commits etc in the context of where the project ended up, to make a more legible history, but I don't know if that's doable, or even all that useful.

replies(4): >>45051308 #>>45051403 #>>45051433 #>>45051448 #
mhast ◴[] No.45051448[source]
Git won't catch new files the agent is adding. To get around that you can of course always add all new files, but then you'll potentially have your repo polluted with a bunch of temporary scratch files instead.

You can typically go back and edit git history. But it will require force push and breaking changes. And a few sacrifices to ensure that it doesn't make a mistake because then your repo is potentially broken.

Best way to do that is probably to have it work on branches and then squash merge those.

replies(4): >>45051602 #>>45051784 #>>45052246 #>>45055853 #
1. fluidcruft ◴[] No.45051602[source]
You could also create a branch, save your intermediates there, and then squash merge when you are ready.
replies(2): >>45051887 #>>45051993 #
2. skapadia ◴[] No.45051887[source]
Exactly. This is precisely what I do.
3. winter_blue ◴[] No.45051993[source]
Yup, that's what I do. Even for personal projects, with the flurry of changes Claude/other AI assistants make, a branch makes it easier for me to compare changes.

Often I have a branch with multiple commits on it, with each commit corresponding to a message in a conversation with AI on Cursor trying to get a new feature built.

In the end, I can diff the branch against the main branch, and see the sum total of changes the AI agent has made.

Maybe edit/improve manually on my own afterwards. And then, merge.