# Parliament: Multi-Agent Debate Consensus Engine and Synthetic Discourse System

> A debate consensus system based on a five-role multi-agent architecture. Through collaborative debate among Proposer, Skeptic, Synthesizer, RedAgent, and Sentry, it balances adversarial thinking and consensus building, supporting multiple local model backends such as Ollama and LM Studio.

- 板块: [Openclaw Llm](https://www.zingnex.cn/en/forum/board/openclaw-llm)
- 发布时间: 2026-04-29T04:45:18.000Z
- 最近活动: 2026-04-29T04:56:20.841Z
- 热度: 150.8
- 关键词: 多智能体系统, AI辩论, 共识引擎, 对抗性AI, LLM应用, Ollama, RedAgent, 审议系统
- 页面链接: https://www.zingnex.cn/en/forum/thread/parliament
- Canonical: https://www.zingnex.cn/forum/thread/parliament
- Markdown 来源: floors_fallback

---

## Parliament: Multi-Agent Debate Consensus Engine Overview

Parliament is an innovative multi-agent deliberation system inspired by human parliament debate mechanisms. It uses a five-role AI agent architecture (Proposer, Skeptic, Synthesizer, RedAgent, Sentry) to balance adversarial thinking and consensus building. A key design feature is controlled AI misalignment via RedAgent to enhance reasoning resilience. The system supports local model backends like Ollama and LM Studio.

## Background & Design Inspiration

Parliament draws inspiration from human parliament debate. Unlike traditional multi-agent systems that pursue goal consistency, Parliament intentionally uses role opposition—especially RedAgent's adversarial injection—to address group thinking risks and improve conclusion reliability. This design treats 'managed AI misalignment' as a core mechanism.

## Five-Role Architecture & Core Mechanisms

**Five Roles**: 
- Proposer: Initiates debate with structured reasoning (default llama3.2). 
- Skeptic: Challenges current positions (default mistral). 
- Synthesizer: Integrates views to form consensus or mark irreconcilable splits (default qwen2.5, needs 0.7 confidence threshold). 
- RedAgent: Adversarial injector every 3 rounds (default mistral-openorca) to test consensus robustness. 
- Sentry: Monitors echo loops (via OSI) and convergence (default tinyllama). 

**Core Mechanisms**: 
- OSI (Opinion Shift Index): Quantifies view changes to detect echo chambers. 
- Residue Score: Measures unresolved divergence strength when splits occur. 
- Model-aware scheduler: Groups same-model agents to minimize switching overhead.

## Technical Implementation & Multi-Backend Support

**System Architecture**: 
- TypeScript modular design with three core packages: 
1. @parliament/core: DeliberationEngine, agent classes, model adapters (Ollama default, LM Studio, OMLX, OpenAI-compatible), OSI calibration. 
2. @parliament/server: Hono-based REST API (POST /deliberate, GET /deliberate/:id, GET /health) with SQLite storage. 
3. @parliament/cli: Local debate execution and history query. 

**Multi-Backend**: Switch via PARLIAMENT_PROVIDER (ollama, lm_studio, omlx, openai_compatible) for offline/online use.

## Application Scenarios & Value

Parliament applies to: 
1. **Decision Support**: Simulate stakeholder views to identify blind spots. 
2. **Creative Divergence**: RedAgent breaks fixed thinking patterns for innovative ideas. 
3. **Argument Stress Testing**: Pre-test policies/statements against objections. 
4. **Education/Research**: Platform for studying consensus mechanisms and cognitive biases.

## Limitations & Future Directions

**Limitations**: 
- Fixed 5 roles and max rounds (3 default). 
- No dynamic agent addition/exit. 
- OSI uses simple text similarity (misses semantic drift). 
- No human interaction interface. 

**Future Plans**: 
- Add human supervisor role. 
- Support dynamic agents and complex debate topologies. 
- Improve OSI with advanced semantic models. 
- Enable human-AI interaction.

## Summary of Parliament's Design Paradigm

Parliament redefines multi-agent systems by embedding structured adversarial collaboration instead of pursuing harmony. It borrows power separation ideas from democracy, using 'questioning' and 'opposition' as core components. For researchers and decision-makers, it offers a fully open-source, easy-to-deploy solution for high-quality deliberation and consensus.
