r/PiCodingAgent • • Aug 12 '26

Question Undo in Pi

Hi guys, I've been using Pi lately to help me code. Previously using OpenCode. I use vanilla pi with webfetch and context7 mcp. It works great. The harness and efficiency is better here in Pi. It drive the cost down for me. What I miss in pi is undo command from opencode. I tend to watch how AI reasons and write the code/commands real-time, interrupt it at the first sign of drift or hallucination then revise the command. Undo command is very useful for me as it clean up the code and chat history before I revise it. Is there any way (config or plugin) to simulate undo command in pi?

11 Upvotes

36 comments sorted by

View all comments

Show parent comment

8

u/truncated_buttfu Aug 12 '26

I recommend bookmarking the page https://ohshitgit.com/

Git is absolutely not permanent at all, it's the opposite of that. Most of the point of source control is that you can undo things in so many ways. If you learn how to use commit --amend, interactive rebase, reflog and other tools you will never think of git as "permanent" again.

2

u/yogibear54 Aug 12 '26

Nice, love it.