r/PiCodingAgent • • 19d 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

3

u/IlyaM 18d ago

I think in general this is a flawed approach, what happens is that you eventually find that whatever workflow you originally desigmed ends up not match new use cases you didn't anticipate. I learned this lesson hard way as I had buiding for myself also various dev process automations with pi. Adjusting code every time you run in non-matching use case is just too slow.

Much more flexiable approach is to define workflows purely as agent prose, what means you can adjust them very quickly. It is much better to use actual code to implement only tools that run very well defined and very small parts of your workflow. For example I have a complex flow which feeds CICD results into the loop and reading CI-CD status is written in actual code.

As a forcing function to have different agentic steps to compose well it is helpful to define schema for inputs and outputs and if you like you can validate this with code. Essentially you need in code some generic support for starting arbitrary subagents plus some defined method for them to communicate optionally with ability to validate schemas with code. And as mentioned above you can write small tools to help agents with simple well predefined steps. The whole workflow itself you are better just describe in prose.

1

u/oppid 18d ago

I don't see this workflow as a silver bullet. It helps me give agents a clear direction, and during spec writing, the orchestrator pushes me to be explicit about my intentions.

I see your point about flexibility. The workflow is still a work in progress, but I don't expect it to cover every use case. What I like is that it's a toggle, I turn it on when I want that structure.

I wouldn't use it for small tasks, or for exploratory work where the goals and the approach are still unclear. I find it useful for scoped, reversible changes.

For example, I wouldn't try to build an entire app from a single spec.