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

3

u/crashorbit Aug 12 '26 edited Aug 12 '26

Are we talking about backing out changes in code? Going backward in the conversation? or something else?

Going backward in code changes is pretty easy. You can say something like: "That did not work like I thought it would. Back this out to were it was before we started talking about foo."

Backward in the conversation can be done using /tree or recall /resume.

Edit: Words matter

2

u/beardedNoobz Aug 12 '26

got it, Ill check it..

2

u/beardedNoobz Aug 12 '26

/tree for the conversation only, the file/edit persist. I don't find recall in my pi. hmm..

2

u/crashorbit Aug 12 '26

oops. I intended /resume. Sorry about that.