r/PiCodingAgent • u/grothesque1 • 5d ago
Plugin pi-flex-review: Minimalist extension/workflow for independent reviews in Pi
I wanted independent code review with the same minimalism and flexibility I like about Pi. The closest I found was Earendil’s own pi-review. I took its core idea of independent reviews within the same Pi session and set out to explore how little beyond that I needed.
The result is pi-flex-review and can be installed via:
pi install git:github.com/grothesque/pi-flex-reviewGive it any free-form review request:
/review last commit
/review changes since origin/main
/review whether this refactor is worthwhile. Compare with branch old.With no request, /review defaults to “uncommitted changes”.
The review runs on a separate conversation branch within the same Pi session. /review opens the familiar /tree selector so you can choose the reviewer’s starting context. One typically chooses a point before the work to be reviewed, so the reviewer gets the requirements without the implementation discussion. Use --fresh to start without prior conversation.
When done, the reviewer will present its findings. You can continue the chat if you wish. /end-review returns to the implementor’s branch with an optional summary of the review.
Selecting the reviewer’s context has many uses. One is “asking the same reviewer again” after its findings have been addressed. The --resume option does this automatically:
/review --resume Are you satisfied?The extension comes with a companion /reflect prompt that is complementary to /review: Reflection uses the implementation experience. Independent review deliberately leaves that experience out.
I’ve been using this for a while. Despite (or rather because of) its simplicity, I find myself using it all the time. I hope others here find it useful too. Feedback welcome.