r/PiCodingAgent • u/oppid • 20d 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!
View all comments
4
u/tempaccaun 19d ago
I've spent my past days trying to build a pi extension/workflow almost identical to this.
3 types of agents that run in sequence, like yours do:
Planner
Coder
Tester
and an Orchestrator (not an agent, only .ts + .md).
It starts with the Planner, to whom I give either a feature request, or a project idea. The planner then grills me, asks questions, then prepares a Spec (or multiple specs depending on feature complexity which are placed in a queue) with concrete acceptance criteria.
The "plan" is then handed off to the Coder who performs the implementation (following SE principles), small testing (e.g. unit tests) and then submits a handoff to the Tester. The handoff includes what tests the Coder peformed, what issues he found and what limitations he encountered.
The Tester is independent of the Coder. He checks the Acceptance Criteria and performs different types of tests. At the end after independently testing, he compares his results with the handoff. If all acceptance criteria are fulfilled, the feature is released. If not, the Tester sends back his independent findings along with possible ideas on how to fix the issues back to the Coder. There are max. 3 Coder/Tester sessions allowed, after that the task is escalated for human verification. Neither Tester nor Planner can perform changes to files.
This is a TLDR version of what I'm trying to build. The biggest issue has been efficient memory management between the agents, since each session starts from scratch. Even with a state-ledger and evidence-ledger, often times the agents repeat work that was already done by the previous agent.
I'm limited to 128k context and I've been trying to accomplish this workflow fully local with a Qwen3.8 27B Q4, so that's the main difference between your setup and mine. That as well as the "Simplifier" agent. I'm curious to know why you chose to include a Simplifier agent.