r/PiCodingAgent • • 24d ago

Plugin Pi-Maestro: a spec driven multiagent development workflow

Hi everyone! I've been building pi-maestro, a Pi extension for a spec-driven multiagent workflow, inspired by GitHub Spec Kit and OpenSpec. It helps you define a change, clarify requirements, and approve a spec with concrete acceptance criteria. You can use it in two ways:

  • Spec only: prepare and approve a spec for implementation elsewhere.
  • Spec + implementation: approve the spec, then let Maestro run the implementation workflow.

By default, three agents run in sequence:

  • Builder implements the spec.
  • Verifier independently checks each acceptance criterion.
  • Simplifier refactors the code for clarity without changing behavior.

You can disable the verifier and simplifier independently, using just the builder or pairing it with either agent. See phase configuration for details.

You make the scope decisions and review the final code.

I'd love some feedback, especially on whether the separation of roles is useful and where the workflow adds unnecessary friction.

If you've built something similar in Pi, I'd be interested in comparing approaches.

https://github.com/emilioSp/pi-maestro

If you find it useful, consider giving it a star on GitHub!

Cheers!

14 Upvotes

5 comments sorted by

View all comments

Show parent comment

2

u/oppid 23d ago

Well, it's very similar!

The handoffs are basically the protocol I have defined, and they enforce the way an agent ends its job.

I also have "escalations" from the builder, in case of inconsistency with the spec or more in general when the builder cannot proceed alone because a decision is needed, and "findings" from the verifier when the implementation does not fulfill the spec.

Regarding the simplifier, at first, I used Addy Osmani’s skill at the end of the workflow. Then I decided to integrate that step directly into the workflow as a dedicated agent.

In my experience, this works well when the models come from different “families”. This also applies to the workflow in general: a Builder and a Verifier from the same family tend to approach the problem in similar ways.

> Even with a state-ledger and evidence-ledger, often times the agents repeat work that was already done by the previous agent.

This is interesting. I have session logs of the children. I have to check. Tnx!