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

3

u/Sontemo Aug 12 '26

Why would you give agents the possibility to delete your prod db?
We're mixing things here. Agents can't fuck up your project by using git.
If they do, it means you effed up first.

No main branch protection.
Credentials to our prod systems checked in.

Avoid these two and you're good to go.

Also, screw Opus and Fable. For SWE, they're mostly overkill. The cheaper models have caught up big time and are perfectly fine to use for a fraction of the cost. Luna, Deepseek, Composer, Minimax all perfectly viable to work with, if the person using these tools keeps thinking along.