Extensions are one of Pi’s most loved features!
@pidotdev59K followers
34,270 views
11 Comments
Comments from the original post on X (Twitter)

@peterpme
oh wow git commit a checkpoint at every turn is epic
3 likes

@thebasedcapital
the missing piece is log hygiene. checkpointing before every turn needs a cleanup policy, or git starts recording the conversation instead of code changes worth reviewing.
1 like

@King0James0
Is this similar to hooks?
1 like

@yandt888
把 git checkpoint、run_tests、/undo 做成 extension,比塞进系统提示稳得多。Pi 的扩展是 TypeScript 模块,能在每轮前落盘检查点,会话回滚就靠 /undo。

@nandanpri
The checkpoint-before-every-turn + /undo combo is the thing I keep reinventing badly in Claude Code. I finally just wrote a tiny wrapper that git commits, runs tests, then only continues if green. Same shape as your extension, less heroics.

@tangouninformed
Anthropic "hooks 2.0" trying to "claw" back some of it's deficiencies by copying pi. Pun intended.

@johnroodepic
git can undo the repo. it can't undo a deploy, email, or API write. the extension boundary gets real when every external side effect has an execution receipt and a compensating action.

@chasen_liao
自由编写插件,我编写了一个自动compact的插件

@andreiverdesx
Or this

@LLMpsycho
I've lost work to a bad agent turn. /undo is the extension I'd install first.

@RusticStack
Checkpoint before every turn plus /undo is what turns an extension from a demo into something you keep on. run_tests as a tool is the other half.
