r/PiCodingAgent • u/Glass_Shake7712 • 10h ago
Resource pi-retro : lean self-improving harness
https://github.com/lifetime42/pi-retroA lean, Harness²-inspired offline improvement loop for pi(you do need an llm). Normal sessions stay untouched; when you run /retro, a Proposer analyzes scrubbed session friction against your full harness git history, and a separate Judge agent gates every change (adopt or reject) before auto-committing and reloading pi.
What sets it apart: every change passes an independent judge and a real A/B benchmark gate before it lands, every decision (adopted, rejected, reverted) lives in git so the loop never oscillates back to a rejected idea, and /retro status shows whether the retros actually pay for themselves.
So instead of guessing whether the latest changes to your harness actually improved it, the harness now gets benched and you only keep the better versions.
Feel free to try or just to take what you think is helpful. Happy for any feedback!
6
u/MarcelloT254k 8h ago
Have you tested this for an extended period of time? Because if what you've achieved would work then you've basically achieved RSI with two models in tandem, from my experience automating improvement is the idea to look forward to but right now only leads to errors accumulating.
2
u/Remote_Book 7h ago
I used Hermes Agent for a bit which has a similar loop, but found that it regressed over time and consumed significantly more tokens. Model is partly at fault here, but you can see similar issues with Opus 5.5 + Claude's memory even today.
I'd prefer PRs against my
.pirepo over auto-change to the harness by a judge. thought about this?2
u/almbfsek 7h ago
wait is this Terrence Howard!?
1
u/ThisNameIs_Taken_ 7h ago
interesting. I'm new to idea, but I find it appealing. Hard evidence and proper benchmark tests is what I miss with my current setup
1
u/Asleep_Literature_70 2h ago
Does it work with oh my pi?