Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wish it supported rollbacks..


With this you could add support yourself!

Add a PostToolUse [0] hook that automatically creates a git commit whenever changes are made. Then you can either git checkout the commit you want to rollback to... Or you could assign those git commits an index and make a little MCP server that allows you to /rollback:goto 3 or /rollback:back 2 or whichever syntax you want to support.

In fact if you put that paragraph into Claude I wouldn't be surprised if it made it for you.

[0] https://docs.anthropic.com/en/docs/claude-code/hooks#posttoo...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: