# pi-quorum
**Multi-perspective deliberation for the [Pi coding agent](https://pi.dev/).**
Spawn 3–5 adversarially-roled subagents for 2–3 structured rounds, then synthesize a decision landscape. Human-steered, not automated.
[](LICENSE.md)
[](https://pi.dev/)
[](#contributing)
---
`pi-quorum` is a **prompt-only skill** — no script, no runtime, no state file. It orchestrates [`pi-subagents`](https://github.com/nicobailon/pi-subagents) chain/parallel primitives directly.
**What it is *not*:**
- ❌ **A reasoning engine.** Single frontier/reasoning models now match or beat multi-agent debate on logic at equal compute. The value here is **diverse framing and surfaced disagreement**, not "smarter answers."
- ❌ **A port of a heavy debate engine.** No Chair state machine, no factions, no TTS, no HTML deck. The human's own session is the steerer and the Judge.
- ❌ **A crew/task orchestrator.** [Crew](https://github.com/nicobailon/pi-messenger) is plan → parallel work waves → review. Quorum is **debate → cross-examine → synthesis**. Different job.
---
## ✨ What it does
`/quorum "question"` runs:
| Phase | What happens | Cost |
|-------|-------------|------|
| **0. Compose** | One call designs a roster of 3–5 personas *for this specific question* — diversity of framing over diversity of title. | 1 call |
| **1. Position** | Each agent forms an independent position (parallel, **blind** to the others). | N calls |
| **2. Probe** | Each agent reads all positions and probes the others' reasoning. *Probing-for-reasoning is the strongest predictor of group performance gain (R=0.41).* | N calls |
| **3. Reflect** | Each revises confidence, notes concessions, and what evidence would close remaining gaps. *(standard/deep)* | N calls |
| **4. Synthesis** | Your orchestrating session produces a **decision landscape** — not a recommendation. | you |
The synthesis output is a **map of the disagreement**:
- **Confidence dispersion** (a built-in groupthink detector — rising confidence + narrowing dispersion after debate is a red flag, flagged explicitly)
- Shared concerns · Genuine disagreement · Assumptions per position · Risk vectors · Principal's path
> **No forced consensus — the tension IS the output.**
Between rounds, control returns to your session so you can **steer**: press a specific argument, reframe, add a constraint, or stop early. That turn-based human checkpoint is the differentiator from a fully-automated debate.
---
## 🎯 When to use — and when *not* to
**The baseline is strong.** "Ask the main agent, maybe twice" is your real competitor. Quorum only earns its ~13 subagent calls when a single perspective would miss genuine disagreement.
✅ **Use it for:**
- Architecture or framework forks where you suspect you're anchored
- *"Is this whole approach wrong?"* sanity checks before committing
- Naming, scoping, or design decisions under genuine uncertainty
- Stress-testing a plan before handing it to a worker
⛔ **Don't use it for:**
- Pure reasoning, math, or debugging a known error
- Implementing an approved plan
- Anything where asking your main agent twice already gets you the answer
---
## 📦 Install
This is a **skill**, not an extension. Drop it into a location Pi scans:
```bash
# clone
git clone https://github.com//pi-quorum.git
cd pi-quorum
# user scope (available everywhere)
ln -s "$(pwd)" ~/.pi/agent/skills/pi-quorum
# OR project scope (after the project is trusted)
ln -s "$(pwd)" .pi/skills/pi-quorum
```
**Requires:** [`pi-subagents`](https://github.com/nicobailon/pi-subagents) (for chain/parallel spawning).
**Optional:** [`pi-intercom`](https://github.com/nicobailon/pi-intercom) / [`pi-messenger`](https://github.com/nicobailon/pi-messenger) — only if you later want multi-session room transport. Not needed for the default in-session flow.
Then invoke:
```
/skill:pi-quorum "Should we migrate from SQLite to Postgres?"
```
…or just describe a council-worthy decision in natural language and the agent will load the skill.
---
## 🧭 Effort modes
| Mode | Agents | Rounds | Calls | Use case |
|------|--------|--------|-------|----------|
| `quick` | 3 | position → probe | ~7 | low-stakes sanity check |
| `standard` *(default)* | 4 | position → probe → reflect | ~13 | normal decisions |
| `deep` | 5 | + assumption-map round | ~16 | architecture, high-friction |
Default to `standard`. Reach for `deep` only on architecture or when the question genuinely warrants the extra round.
---
## 🧠 Why this shape
Three forces shaped the defaults:
1. **Value saturates fast.** Round 1 = breadth, round 2 = collision, round 3 = refinement. Past that, marginal value dies unless a human steer changes the state. → *Default 2–3 rounds, not 15.*
2. **LLMs agree too easily.** Adversarial stances are structural, not hoped-for. → *The compose phase assigns roles; the dispersion diagnostic catches collapse to mush.*
3. **The baseline is strong.** → *Quorum must beat "ask twice," or don't run it.*
Grounded in collective-intelligence research: probing-for-reasoning (Karadzhov et al. 2024, R=0.41), diversity-of-position over expertise, and the inverted-U of cognitive diversity. See [`references/composition-guide.md`](references/composition-guide.md) for worked roster examples.
---
## 📁 Project structure
```
pi-quorum/
├── SKILL.md # protocol, prompts, synthesis format
├── README.md # this
├── LICENSE.md # GPL-3.0
└── references/
└── composition-guide.md # worked roster examples, anti-patterns
```
No `scripts/`, no runtime, no state file. **Deliberate.**
---
## 🚧 Status
**48-hour-test version.** This is a v0 designed to validate the riskiest assumption: *does anyone — including the author — reach for it a second time on a real decision?*
The real test: after installing it, wait one week and notice whether you actually use it. If you don't, the habit doesn't exist and no polish creates it. If you do, that's the signal to add the v2 richness (room transport via `pi-messenger`, richer artifacts, custom roster templates).
### What's deliberately *not* here (yet)
- Chair state machine, faction tracking
- TTS narration, HTML deck, Excalidraw argument map
- Persistent room / presence *(that's `pi-messenger`'s job — quorum's protocol can layer onto its transport in a future version)*
- New runtime / extension package
Ship the protocol; add richness only if a real user asks.
---
## 🤝 Contributing
PRs welcome. The bias is toward **less**: if a feature can be expressed as a prompt change rather than code, prefer the prompt. See [`SKILL.md`](SKILL.md) for the design constraints.
---
## 📄 License
[GNU General Public License v3.0](LICENSE.md) © Alexander Kucera