"Out of many, one."
This project came to me in a dream. Not a metaphorical one. An actual, sleep-based dream, after watching too many episodes of Pluribus on Apple TV+.
The show is Vince Gilligan's follow-up to Breaking Bad. Rhea Seehorn plays Carol Sturka, a novelist and one of thirteen people immune to an extraterrestrial virus that has turned the rest of humanity into a peaceful, contented hive mind. The Others are not hostile. They are warm, accommodating, perfectly happy. They just want everyone to join. Carol refuses.
The name comes from e pluribus unum, out of many, one. That is the show's central question: what do you lose when everyone agrees? And is the one person who won't join a problem to be solved, or the only one still paying attention?
I woke up and thought: that is a multi-agent AI architecture.
What if multiple LLM agents reasoned about a problem together, challenged each other's thinking, and converged on a shared answer, but one agent was structurally immune to suppression? Her channel cannot be silenced. The hive can ignore her, but it cannot shut her up.
So that is what this is.
Multiple LLM agents write to a shared blackboard. Each round they read each other's contributions, challenge the ones they disagree with, and defend their own. An evaluator scores the challenges. Weights shift. Weaker reasoning gets suppressed. Stronger reasoning gains influence. Carol dissents regardless.
When the contributions stop changing, measured by embedding similarity, the hive has converged. A synthesis agent reads the full blackboard and writes the final output.
One voice that cannot be suppressed, no matter how much everyone else agrees. That is the whole idea.
Query Input
│
▼
┌─────────────────────────────────────────┐
│ BLACKBOARD │
│ │
│ Agent 1 (Analyst) weight: 0.30 │
│ Agent 2 (Researcher) weight: 0.35 │
│ Agent 3 (Critic) weight: 0.20 │
│ Agent 4 (Specialist) weight: 0.15 │
│ │
│ Carol (Dissenter) — protected channel │
│ Challenges & Rebuttals │
│ │
│ Round: 3/7 | Convergence: 0.92 │
└──────────────────┬──────────────────────┘
│ (when converged)
▼
┌─────────────────────────────────────────┐
│ SYNTHESIS AGENT │
│ Produces final coherent output │
└─────────────────────────────────────────┘
- Cross-inhibition: Agents challenge each other's contributions. A successful challenge reduces the target's weight; surviving a challenge strengthens it.
- Carol (Dissenter): A permanent dissenter whose contributions cannot be suppressed, preventing confident-but-wrong groupthink.
- Convergence detection: Embedding-based similarity measurement determines when the blackboard has stabilised.
- Weight dynamics: Weights decay toward equality each round, with a minimum floor so no agent is ever fully silenced.
git clone https://github.com/JeremySNR/pluribus.git
cd pluribus
pip install -e ".[dev]"cp .env.example .env
# Edit .env and add your API keyTwo modes are supported:
| Mode | Env var | Description |
|---|---|---|
| OpenAI direct | OPENAI_API_KEY |
All agents use OpenAI models |
| OpenRouter | OPENROUTER_API_KEY + USE_OPENROUTER=true |
Agents spread across Claude, GPT, Gemini, DeepSeek |
OpenRouter mode is recommended for production — model diversity reduces correlated errors across agents.
python scripts/run_single.py "What are the key factors in making a good hiring decision?"python scripts/run_eval.py --category A # Factual reasoning (10 tasks)
python scripts/run_eval.py --category B # Adversarial with planted errors (10 tasks)
python scripts/run_eval.py --category C # Complex judgment (10 tasks)
python scripts/run_eval.py # All 30 tasksimport asyncio
from pluribus.loop import run_pluribus_hive
from pluribus.config import HiveConfig, load_model_config
from pluribus.agent import Agent, create_client
from pluribus.prompts import get_system_prompt
async def main():
config = HiveConfig(max_rounds=5, verbose=True)
models = load_model_config()
client = create_client()
agents = {
agent_id: Agent(
agent_id=agent_id,
model_name=model,
system_prompt=get_system_prompt(agent_id),
client=client,
)
for agent_id, model in models.items()
}
result = await run_pluribus_hive(
query="Should we rewrite the authentication service in Rust?",
agents=agents,
config=config,
)
print(result.output)
print(f"Converged in {result.total_rounds} rounds ({result.halt_reason})")
asyncio.run(main())All parameters are tunable via HiveConfig:
| Parameter | Default | Description |
|---|---|---|
max_rounds |
7 |
Maximum deliberation rounds |
convergence_threshold |
0.92 |
Sustained convergence target |
strong_convergence_threshold |
0.97 |
Immediate halt threshold |
divergence_threshold |
0.3 |
Divergence detection |
challenge_weight_reduction |
0.5 |
Severity multiplier on failed challenge |
rebuttal_success_boost |
1.1 |
Weight boost for surviving a challenge |
weight_decay_rate |
0.05 |
Decay toward equal weight per round |
min_weight_floor |
0.05 |
Minimum agent weight — no agent is ever silenced |
embedding_provider |
"local" |
"local" (sentence-transformers) or "openrouter" |
agent_timeout_seconds |
60.0 |
Per-agent call timeout |
verbose |
True |
Rich console output |
save_snapshots |
True |
Save per-round JSON snapshots to ./runs/ |
All agents use OpenAI models (config/models_openai.py):
MODELS = {
"analyst": "gpt-5.4",
"researcher": "gpt-5.4",
"critic": "gpt-5.4-mini",
"specialist": "gpt-5.4-mini",
"carol": "gpt-5.4-mini",
"synthesiser": "gpt-5.4",
"challenge_evaluator": "gpt-5.4-mini",
}Set USE_OPENROUTER=true to spread agents across providers (config/models_openrouter.py):
MODELS = {
"analyst": "anthropic/claude-sonnet-4.6",
"researcher": "openai/gpt-5.4",
"critic": "google/gemini-3.1-flash-lite",
"specialist": "deepseek/deepseek-chat-v3-0324",
"carol": "openai/gpt-5.4-mini",
"synthesiser": "anthropic/claude-sonnet-4.6",
"challenge_evaluator": "google/gemini-3.1-flash-lite",
}Model diversity means agents approach problems from genuinely different training distributions, reducing correlated blind spots.
pluribus/
├── pluribus/ # Core library
│ ├── models.py # Pydantic data models (Blackboard, Contribution, etc.)
│ ├── config.py # HiveConfig with all tunable parameters
│ ├── agent.py # Agent class (OpenAI / OpenRouter)
│ ├── prompts.py # System prompts for each agent role
│ ├── parsing.py # Robust JSON response parsing
│ ├── embeddings.py # Embedding providers (local + API)
│ ├── loop.py # Main run_pluribus_hive() function
│ ├── utils.py # Formatting, logging, helpers
│ └── engine/
│ ├── blackboard.py # Blackboard operations and formatting
│ ├── cross_inhibition.py # Weight adjustment and challenge evaluation
│ ├── convergence.py # Convergence measurement and halting
│ ├── carol.py # Dissenter logic
│ └── synthesiser.py # Final output generation
├── config/
│ ├── models_openai.py # OpenAI model assignments
│ └── models_openrouter.py # OpenRouter multi-provider assignments
├── eval/ # Evaluation harness
│ ├── runner.py # Runs tasks through all systems
│ ├── baselines.py # Single agent, majority vote, ensemble baselines
│ ├── report.py # Report generation
│ └── tasks/ # 30 evaluation tasks (10 per category)
├── scripts/
│ ├── run_single.py # Interactive single-query runner
│ ├── run_eval.py # Full evaluation suite
│ ├── run_catb_comparison.py # Category B head-to-head comparison
│ ├── run_catc_comparison.py # Category C head-to-head comparison
│ └── visualise_run.py # Visualise saved run diagnostics
└── tests/ # 49 tests
pip install -e ".[dev]"
pytest tests/ -v49 tests covering blackboard operations, convergence detection, cross-inhibition, parsing, and integration.
Benchmarked against three baselines on 30 tasks:
| System | Description |
|---|---|
| Single Best Agent | One GPT-5.4 call |
| Majority Vote | Three independent calls, majority answer |
| Simple Ensemble | Three calls, no cross-inhibition |
| Pluribus Hive | Full blackboard with cross-inhibition and Carol |
Categories:
- A — Factual reasoning: Tasks with verifiable correct answers
- B — Adversarial: Tasks with planted errors designed to mislead
- C — Complex judgment: Open-ended tasks with no single correct answer
Pull requests are welcome. For significant changes, please open an issue first.