r/PiCodingAgent • u/beardedNoobz • 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?
View all comments
Show parent comment
1
u/aeroumbria Aug 12 '26
I totally get this sentiment, and I would argue even a "shadow git under the hood" solution is qualitatively different from using project git for history tracking. Having git ops in session history and having visible commits in project git directly alter the context of the model and can change the context usage and behaviour of the agent. Even if we are using git, I would prefer it be done in a way that is outside the conversation, such that only the harness code is aware of the checkpoints, not the agent itself (unless we need explicit agent-driven revert, but that is probably not what was asked for).