diff --git a/README.md b/README.md index d027089..a0bca79 100644 --- a/README.md +++ b/README.md @@ -1,84 +1,161 @@ +
+ # pi-quorum -> Multi-perspective **deliberation** for [Pi coding agent](https://pi.dev/) — a -> prompt-only skill that spawns 3-5 adversarially-roled subagents for 2-3 -> structured rounds, then synthesizes a decision landscape. Human-steered, not -> automated. +**Multi-perspective deliberation for the [Pi coding agent](https://pi.dev/).** -**Not** a reasoning engine (single strong models win there now), **not** a port -of a heavy debate engine (no script, no runtime), **not** a crew/task -orchestrator (that's plan/execute; this is debate/decide). See -[SKILL.md](SKILL.md) for the full scope. +Spawn 3–5 adversarially-roled subagents for 2–3 structured rounds, then synthesize a decision landscape. Human-steered, not automated. -## What it does +[![License: GPL v3](https://img.shields.io/badge/License-GPL_v3-blue.svg)](LICENSE.md) +[![Pi](https://img.shields.io/badge/Pi-coding%20agent-818cf8.svg)](https://pi.dev/) +[![PRs welcome](https://img.shields.io/badge/PRs-welcome-22c55e.svg)](#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: -1. **Compose** — one call designs a roster of 3-5 personas *for this specific - question* (diversity of framing over diversity of title). -2. **Position** — each agent forms an independent position (parallel, blind). -3. **Cross-examine: Probe** — each agent probes the others' reasoning (parallel). - Probing-for-reasoning is the strongest predictor of group performance gain. -4. **Cross-examine: Reflect** *(standard/deep)* — each revises confidence and - notes concessions and what would close remaining gaps. -5. **Synthesis** — your orchestrating session produces a **decision landscape**: - confidence dispersion (groupthink detector), shared concerns, genuine - disagreement, assumptions, risk vectors, principal's path. No forced - consensus — the tension is the output. +| 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 | -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. +The synthesis output is a **map of the disagreement**: -## Why this shape +- **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 -- **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. -- **LLMs agree too easily.** Adversarial stances are structural. Rising - confidence + narrowing dispersion after debate is a groupthink red flag, and - the synthesis flags it explicitly. -- **The baseline is strong.** "Ask the main agent twice" is the real - competitor. Quorum only earns its ~13 subagent calls when one perspective - would miss genuine disagreement. +> **No forced consensus — the tension IS the output.** -## Install +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. -This is a skill, not an extension. Drop the directory into a skill location Pi -scans: +--- + +## 🎯 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 -# user scope +# 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) + +# OR project scope (after the project is trusted) ln -s "$(pwd)" .pi/skills/pi-quorum ``` -Requires `pi-subagents` (for chain/parallel spawning). Optionally -`pi-intercom`/`pi-messenger` if you later want multi-session room transport — -not needed for the default in-session flow. +**Requires:** [`pi-subagents`](https://github.com/nicobailon/pi-subagents) (for chain/parallel spawning). -Then `/skill:pi-quorum "question"` or just describe a council-worthy decision -and the agent will load it. +**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. -## Structure +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. +No `scripts/`, no runtime, no state file. **Deliberate.** -## Status +--- -48-hour-test version. The real validation: after building it, wait one week and -notice whether you reach for it a second time on a real decision. If you don't, -the habit doesn't exist and no polish creates it. +## 🚧 Status -## License +**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?* -MIT +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