> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reincarnatiopedia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Consilium

> Multi-model AI debate system with 5 providers

# Consilium

Consilium is a multi-model AI debate system where 5 LLMs discuss, critique, and refine answers through iterative rounds — then synthesize a final verdict.

## The Idea

Instead of trusting one AI model, ask five. Let them debate. The truth emerges from disagreement.

## Models

| Model            | Provider  | Strength               |
| ---------------- | --------- | ---------------------- |
| Claude Sonnet 4  | Anthropic | Nuance, synthesis      |
| GPT-4o           | OpenAI    | General reasoning      |
| DeepSeek Chat    | DeepSeek  | Alternative viewpoints |
| Gemini 2.5 Flash | Google    | Speed, analysis        |
| Grok 3 Mini      | xAI       | Creative thinking      |

## How a Deep Consilium Works

```mermaid theme={null}
sequenceDiagram
    participant U as User
    participant S as Server
    participant A as All 5 Models

    U->>S: Question
    S->>A: Round 1: Independent answers
    A->>S: 5 different perspectives
    S->>A: Round 2: "Here's what others said. Critique and refine."
    A->>S: 5 refined answers
    S->>A: Round N: Final consensus
    A->>S: Agreements + disagreements
    S->>S: Claude synthesizes verdict
    S->>U: Structured result (P0/P1/P2 actions)
```

## Modes

| Mode      | Endpoint                      | Description                    |
| --------- | ----------------------------- | ------------------------------ |
| Single    | `POST /ask/:provider`         | Ask one model                  |
| Parallel  | `POST /consilium`             | All 5 answer, no debate        |
| Deep      | `POST /consilium/deep`        | 2-5 rounds of debate           |
| Stream    | `POST /consilium/deep/stream` | Real-time SSE updates          |
| Synthesis | `POST /synthesize`            | Claude generates final verdict |

## Web UI

A single-page app with real-time streaming, session history, and color-coded responses per model. Access is restricted to authorized users.

## Storage

* **SQLite** for persistent session history
* **In-memory cache** of last 50 sessions for fast retrieval
