logoalt Hacker News

_fluxlast Saturday at 5:26 PM7 repliesview on HN

Amazing that these tools don't maintain a replayable log of everything they've done.

Although git revert is not a destructive operation, so it's surprising that it caused any loss of data. Maybe they meant git reset --hard or something like that. Wild if Codec would run that.


Replies

arcanemachinerlast Saturday at 7:44 PM

I was looking at the insanity known as Gas Town [0] the other day, and it does use Git to store historical work state in something it calls "beads":

https://github.com/steveyegge/gastown?tab=readme-ov-file

show 2 replies
rabflast Saturday at 7:02 PM

I have had codex recover things for me from its history after claude had done a git reset hard, codex is one of the more reliable models/harneses when it comes to performing undo and redo operations in my experience.

theptiplast Saturday at 8:11 PM

Claude Code has had this feature for a few months now.

defunct34last Saturday at 7:13 PM

[dead]

CPLXlast Saturday at 8:28 PM

I found this tool to be the solution I was looking for to address this specific problem:

https://contextify.sh

MattGaiserlast Saturday at 5:29 PM

Claude Code has /rewind. Not sure if it is foolproof, but this has been tried.

stinkbeetleyesterday at 12:58 AM

`git reset --hard` doesn't remove unreferenced commits or rewrite the reflog so I don't think that would do it. Something like `git reset && git gc` would have to be done.

show 2 replies