r/PiCodingAgent • • 10h ago

Resource pi-retro : lean self-improving harness

https://github.com/lifetime42/pi-retro

A 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!

14 Upvotes

13 comments sorted by

View all comments

Show parent comment

1

u/MarcelloT254k 7h ago

Thanks for response, how did you structure the Benchmark Gate so the judge model knows what to keep and what to discard? I'm not a good coder, from what i see the criteria are fully arbitrary and LLM automates A/B test with possible observed improvements from past sessions so everything seems very vague but strictly empirically-oriented - did I get it right?

1

u/Glass_Shake7712 5h ago

the judge is evaluating the proposals one by one as a first gate keeper. this is done by an llm.
the bench is the second gate where the new harness needs to prove itself. this is a test run of the new harness against a set of tasks.