News for hackers. Stuff that matters.
Re:We Put Claude Code in Rollercoaster Tycoon by _flux on Saturday January 17, 2026 @12:26PM (#46659880)
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.

Re:We Put Claude Code in Rollercoaster Tycoon by arcanemachiner on Saturday January 17, 2026 @02:44PM (#46661349)
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

Re:We Put Claude Code in Rollercoaster Tycoon by calebkaiser on Saturday January 17, 2026 @03:05PM (#46661528)
If anyone is curious, Beads is an agent memory project from the same developer: https://github.com/steveyegge/beads
Re:We Put Claude Code in Rollercoaster Tycoon by PKop on Saturday January 17, 2026 @04:22PM (#46662232)
Bees?
Re:We Put Claude Code in Rollercoaster Tycoon by brap on Saturday January 17, 2026 @04:45PM (#46662434)
BEADS
Re:We Put Claude Code in Rollercoaster Tycoon by rabf on Saturday January 17, 2026 @02:02PM (#46660898)
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.
Re:We Put Claude Code in Rollercoaster Tycoon by theptip on Saturday January 17, 2026 @03:11PM (#46661574)
Claude Code has had this feature for a few months now.
Re:We Put Claude Code in Rollercoaster Tycoon by CPLX on Saturday January 17, 2026 @03:28PM (#46661709)
I found this tool to be the solution I was looking for to address this specific problem:

https://contextify.sh

Re:We Put Claude Code in Rollercoaster Tycoon by MattGaiser on Saturday January 17, 2026 @12:29PM (#46659908)
Claude Code has /rewind. Not sure if it is foolproof, but this has been tried.
Re:We Put Claude Code in Rollercoaster Tycoon by JimDabell on Sunday January 18, 2026 @03:51AM (#46666045)
It doesn‘t handle anything Claude uses the shell for, so if it runs `rm -rf .` then rewind won’t help you.
Re:We Put Claude Code in Rollercoaster Tycoon by xandrius on Sunday January 18, 2026 @08:17AM (#46667589)
You can give it approved commands, so you can prevent that.
Re:We Put Claude Code in Rollercoaster Tycoon by saagarjha on Sunday January 18, 2026 @04:29AM (#46666249)
Huh, I didn't realize this existed. I feel like it's a miss that Claude doesn't use it when you tell it to undo its work.
Re:We Put Claude Code in Rollercoaster Tycoon by stinkbeetle on Saturday January 17, 2026 @07:58PM (#46663773)
`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.
Re:We Put Claude Code in Rollercoaster Tycoon by eru on Saturday January 17, 2026 @09:57PM (#46664436)
And git gc doesn't collect any garbage less than two weeks old by default, either.
Re:We Put Claude Code in Rollercoaster Tycoon by _flux on Sunday January 18, 2026 @02:20AM (#46665539)
But it does remove current uncommitted changes.
Re:We Put Claude Code in Rollercoaster Tycoon by olvy0 on Monday January 19, 2026 @11:49AM (#46681186)
Except for new files, you'd have to also run git clean -f