Live data from Hacker News

Claude Code Checkpoints

claude-checkpoints.com

101–110 of 136 posts

Re: Claude Code Checkpoints

#101
post #8

Earlier quoted context omitted.

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.…

> Git won't catch new files the agent is adding. Another problem I inadvertently dodged by using Jujutsu with Claude Code :) I tend to send a lone "commit" message to Claude when I think I'm in a spot I may want to return to in the future, in case the current path doesn't work out. Then Claude commits it with a decent message. It knows how to use jj well enough for most things. Then it's really easy to jj new back to…

I sometimes use jj in watcher mode and then just use the oplog to go back to wherever.

Re: Claude Code Checkpoints

#103

This looks well-built, but have you considered using Jujutsu (jj) instead? It elegantly solves the snapshot/checkpoint problem without needing MCP servers or a separate app. With jj, every file change is automatically captured (no manual commits needed), and you can create lightweight "sandbox" revisions for each Claude Code task. When things go wrong, `jj undo` instantly reverts to any previous state. The operation…

I dont understand the need for this at all. I use the git. Inside one CC session on average there will be 80-160 commits. I can revert back whatever I want whenever I want. Whenever context gets hairy I clear and ask CC to review specific commits to continue or whatever. I must be missing something here completely what is the need for jj at all…

Re: Claude Code Checkpoints

#104

This looks well-built, but have you considered using Jujutsu (jj) instead? It elegantly solves the snapshot/checkpoint problem without needing MCP servers or a separate app. With jj, every file change is automatically captured (no manual commits needed), and you can create lightweight "sandbox" revisions for each Claude Code task. When things go wrong, `jj undo` instantly reverts to any previous state. The operation…

I dont understand the need for this at all. I use the git. Inside one CC session on average there will be 80-160 commits. I can revert back whatever I want whenever I want. Whenever context gets hairy I clear and ask CC to review specific commits to continue or whatever. I must be missing something here completely what is the need for jj at all…

Pretty much bang on. I do have to remind myself that discipline in commit messages helps future me.

Re: Claude Code Checkpoints

#105

Earlier quoted context omitted.

I dont understand the need for this at all. I use the git. Inside one CC session on average there will be 80-160 commits. I can revert back whatever I want whenever I want. Whenever context gets hairy I clear and ask CC to review specific commits to continue or whatever. I must be missing something here completely what is the need for jj at all…

Pretty much bang on. I do have to remind myself that discipline in commit messages helps future me.

Claude Code produces pretty good commit messages, IMO. Just tell it: "commit".

Re: Claude Code Checkpoints

#106

This looks well-built, but have you considered using Jujutsu (jj) instead? It elegantly solves the snapshot/checkpoint problem without needing MCP servers or a separate app. With jj, every file change is automatically captured (no manual commits needed), and you can create lightweight "sandbox" revisions for each Claude Code task. When things go wrong, `jj undo` instantly reverts to any previous state. The operation…

I dont understand the need for this at all. I use the git. Inside one CC session on average there will be 80-160 commits. I can revert back whatever I want whenever I want. Whenever context gets hairy I clear and ask CC to review specific commits to continue or whatever. I must be missing something here completely what is the need for jj at all…

IME, the benefit is ease of branching paths. For example, if I'm working on a feature I can do something like this:

- Put tests in one commit - Tell Claude to come up with several approaches where I'm not exactly sure what the best might be - Put approach 1 into a commit, 2 into a separate one, etc. These approach commits all live side by side instead of stacked on top of each other. - At any point I can create a new commit that is the combination of approach 1 along with the tests and iterate from there - When doing that, I can absorb any changes made into the appropriate commit.

Possibilities kinda open up from there. Maybe intead of fully separate approaches, you just want to break the change into parallel pieces (e.g. you're not sure all of your changes will be needed as requirements change). Then I can create a "super" commit that's the combination of all the other commits even though they're not stacked. That means I can conditionally choose which commits I want to include into my "super" commit too.

Re: Claude Code Checkpoints

#107

Earlier quoted context omitted.

While disaster is strong language, Claude Code isn't really a well engineered product, they're just kinda trying shit, they don't have a clear long term vision. The core prompts and agent loop are good though, it's too bad it's not open source so someone could implement them in a client with good UX/engineering (at least without disassembling claude code and being legally questionable).

> not opensource You can extract prompts with mitmproxy/netcat, and AFAIK there isn't much more to it (bash and todo list are all you need in terms of tools), there's already a lot of simpler tools with better ux: - sst/opencode and charmbracelet/crush -- related "cc clones" with top tier UX; opencode has near feature parity with cc, crush is more barebones - block/goose -- a lot of multi-model features and extension…

Most of those features aren't executed well though. Hooks aren't ubiquitous and have very little transformational ability, subagents are routed poorly and lack intelligent context inheritance, etc. It is a good playground to get work done for a great price while building intuition though.

Re: Claude Code Checkpoints

#108

Earlier quoted context omitted.

> not opensource You can extract prompts with mitmproxy/netcat, and AFAIK there isn't much more to it (bash and todo list are all you need in terms of tools), there's already a lot of simpler tools with better ux: - sst/opencode and charmbracelet/crush -- related "cc clones" with top tier UX; opencode has near feature parity with cc, crush is more barebones - block/goose -- a lot of multi-model features and extension…

Most of those features aren't executed well though. Hooks aren't ubiquitous and have very little transformational ability, subagents are routed poorly and lack intelligent context inheritance, etc. It is a good playground to get work done for a great price while building intuition though.

What exactly are your gripes with hooks, wdym by "transformational"? Regarding ubiquity, there's already quite a few repos with collections of hooks; I've only tried notifications and format-on-write so far, the only problem I noticed is that the provided formatting hook is confusing for the model (maybe cc could backtrack and prefill the tool call with the formatter output?)

Subagents are indeed kinda useless, but in any case, I don't see anything better right now

Re: Claude Code Checkpoints

#109

Earlier quoted context omitted.

Most of those features aren't executed well though. Hooks aren't ubiquitous and have very little transformational ability, subagents are routed poorly and lack intelligent context inheritance, etc. It is a good playground to get work done for a great price while building intuition though.

What exactly are your gripes with hooks, wdym by "transformational"? Regarding ubiquity, there's already quite a few repos with collections of hooks; I've only tried notifications and format-on-write so far, the only problem I noticed is that the provided formatting hook is confusing for the model (maybe cc could backtrack and prefill the tool call with the formatter output?) Subagents are indeed kinda useless, but i…

There are events that you can't hook, and for events that you can hook, in many cases you can't do anything other than go/no go. Being able to rewrite prompts and tweak the internal state of the agent.

Re: Claude Code Checkpoints

#110

Earlier quoted context omitted.

Pretty much bang on. I do have to remind myself that discipline in commit messages helps future me.

Claude Code produces pretty good commit messages, IMO. Just tell it: "commit".

exactly. I tell it to commit roughly every 3-4 minutes :) small incremental changes, commit, next
Post reply on HN