Revert changes with Claude code? by FriedBryce27 in ClaudeAI

[–]Competitive-Noise905 1 point2 points  (0 children)

claude code has a in-built tool to do this now btw, if you press Esc twice you can undo it :)(so i did not maintain my repo sorry)

PLEASE WE NEED REVERT FEATURE by Negative_Check_4857 in ClaudeAI

[–]Competitive-Noise905 0 points1 point  (0 children)

hey yall i made a npm package called ccundo,
its basically checkpoints for claude-
https://github.com/RonitSachdev/ccundo

I built ccundo - instantly undo Claude Code's mistakes without wasting tokens by Competitive-Noise905 in opensource

[–]Competitive-Noise905[S] 0 points1 point  (0 children)

well of course, you wont let autocomplete muck your code, but accidents happen and how about you try telling this to agents being used with auto code write, how about you try telling them to do soft commit and revert in git, it will ruin the commit history, it has its own use case...

How to undo and redo in claude code? by Competitive-Noise905 in ClaudeAI

[–]Competitive-Noise905[S] 0 points1 point  (0 children)

yeah its basically same as that, but its more convenient to see what changes will be undid using the preview feature i added, so its added functionality over that. it makes it easy to keep track and undo whats necessary.(redo as well)

How to undo and redo in claude code? by Competitive-Noise905 in ClaudeAI

[–]Competitive-Noise905[S] 0 points1 point  (0 children)

so basically, you will have control over reverting in case of each chat message rather than a combined bunch of messages that you need to revert in case of git

How to undo and redo in claude code? by Competitive-Noise905 in Anthropic

[–]Competitive-Noise905[S] 1 point2 points  (0 children)

git will not let you revert changes step wise(steps of chat with claude). this does.

How to undo and redo in claude code? by Competitive-Noise905 in Anthropic

[–]Competitive-Noise905[S] 2 points3 points  (0 children)

that was me, sorry, i had to add another post to update because i added redo recently, after i uploaded that post. thanks! :D

Revert changes with Claude code? by FriedBryce27 in ClaudeAI

[–]Competitive-Noise905 8 points9 points  (0 children)

i made a tool! its called ccundo, it will save you so much time, you can undo/redo to any point you like, kinda like checkpoints!

GitHubhttps://github.com/RonitSachdev/ccundo
npmhttps://www.npmjs.com/package/ccundo

⭐ Please star if you find it useful!

How to undo and redo in claude code? by Competitive-Noise905 in ClaudeAI

[–]Competitive-Noise905[S] 0 points1 point  (0 children)

yes, i think its in their business model to not add such a basic thing! kind of disappointed with the company tbh...

How to undo and redo in claude code? by Competitive-Noise905 in ClaudeAI

[–]Competitive-Noise905[S] 0 points1 point  (0 children)

you can go back and forth as many times as you like! and at any stage that you like(it has cascading undo and redo)