←back to thread

Claude Code Checkpoints

(claude-checkpoints.com)
184 points punnerud | 1 comments | | HN request time: 0.205s | 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 #
jdthedisciple ◴[] No.45055853[source]
uhh... .gitignore solves that right?
replies(1): >>45064793 #
0x6c6f6c ◴[] No.45064793[source]
These agents often generate randomly named files and dump them anywhere. You can end up with dozens of files added if you let it run on any problem it tries to create one-off "test / reproduction" cases. It hasn't always cleaned them up so a "git add all" approach can bring in junk, and the patterns for names aren't consistent. In fact they're often called stuff like *-test.js which looks like it could be a source OR test file.
replies(1): >>45082348 #
1. jdthedisciple ◴[] No.45082348[source]
That's why I wouldn't recommend "git add all", but rather use something like gitextensions [0] and visually add files or delete them, so you know what's happening in git world.

[0] https://gitextensions.github.io/