1. Executive Summary

Chimera is a multi-model deliberation engine that orchestrates large language models (LLMs) across a directed acyclic graph (DAG) of stages. It employs a 3‑tier provider architecture:

Competitive differentiators:

Note: Google Gemini and Anthropic Claude are classified as external PAYG (direct API billing), distinct from the internal foreman tier.

2. Architecture

The deliberation engine is implemented as a DAG where each node is a stage. The lifecycle follows a closed‑loop iteration:

    +-----------+       +---------+       +-------------+       +-------+       +--------+
    |Dispatcher|----->| Workers  |----->| Aggregator |----->| Audit |----->| Refine |
    +-----------+       +---------+       +-------------+       +-------+       +--------+
         |                                                                          |
         +----  _RE_ITERATION_SIGNAL -----------------------------------+
  

Dispatcher parses the DAG definition, resolves model routing per stage, and fans out to worker nodes. Workers execute model calls in parallel waves via asyncio.create_task. (commit 469eec4) Aggregator collects results, merges according to stage schema, and passes to Audit. Audit runs jsonschema.validate(aggregated_output, stage_schema); on failure it emits _RE_ITERATION_SIGNAL back to Dispatcher. Refine adjusts prompt parameters (temperature, max_tokens) before the next iteration.

The model catalog contains 36 models across 9 providers. Each model is scored on 32 hierarchical category axes (0–100) for capability, latency, cost, and availability. (commit 85a3a11)

3. Features

Formations

Pre‑defined deliberation patterns:

(commit 0241610)

Model Selection & Cost‑Weighted Sensitivity

Effectiveness is calculated as quality / (cost ^ sensitivity). Sensitivity (0–1) is configurable per request. Default sensitivity = 0.5. (commit b7cca8d)

Per‑Model Enable Toggle

Each model in the catalog has an enabled: true/false flag. Disabled models are excluded from routing. (commit 5dadfc9)

Provider Auto‑Discovery

Chimera fetches models.dev/api.json from each provider and caches locally for 5 minutes. New models are added automatically. (commit caca56b)

Configurable 3‑Tier Timeouts

(commit 0241610)

REST API + MCP Server

Primary API is REST (see §5). A MCP (Model Context Protocol) server is also available via stdio. (commit a2ae192)

Structured Output

json_schema strict mode is used at the model provider level (when supported). Chimera enforces mechanical jsonschema.validate() after aggregation. (commit f488ef2)
Note: The output_schema field is required for strict mode validation; if omitted, only free-form output is allowed without mechanical validation.

Progressive Prompting

Stages can define wait_messages (list of messages to inject before model answers) and trigger (a Python regex pattern evaluated against the aggregated text output). Example: {"wait_messages": ["Think step by step."], "trigger": ".*therefore.*"}. (commit 413979b)

Test Coverage

416 tests, 61 integration skips (due to provider unavailability). (commit f488ef2)

4. Provider Palette

ProviderTierModels
deepseek-foremanPAYG Foremandeepseek-v4-pro, deepseek-v4-flash
opencode-goPrepaid Worker Bucketdeepseek-v4-pro, deepseek-v4-flash
zai-glmPrepaid Worker Bucketglm-5.2
minimaxPrepaid Worker BucketMiniMax-M3
kimi-for-codingPrepaid Worker Bucketkimi-k2.7
xai-oauthPrepaid Worker Bucketgrok-4.5
ollama-cloudBackup / Overflowvarious open‑source
openrouterBackup / Overflow31+ models incl. GPT‑5.6 family, Claude Opus 4.8, Gemini 3.1 Pro
Google GeminiExternal PAYGgemini‑3.1‑pro, gemini‑3.1‑flash
Anthropic ClaudeExternal PAYGclaude‑opus‑4.8, claude‑sonnet‑4.5

All provider entries validated as of July 2026. (commit 85a3a11)

5. API Surface

Endpoints

MethodPathDescription
POST/v1/deliberateExecute a deliberation job. Accepts JSON: formation, overrides, output_schema (required for strict mode), dag (only allowed when allow_custom_dag=true). (commit 0241610)
GET/healthReturns status and model catalog freshness. (commit 1d32721)
GET/v1/modelsList all models with current enabled/disabled, costs, quality scores. (commit 85a3a11)
GET/v1/formationsList available formations and their DAG definitions. (commit 0241610)
GET/v1/trace/{request_id}Retrieve full trace of a completed deliberation (stages, timings, outputs). (commit 1bf73ea)
WS/ws/trace/{request_id}Stream trace updates in real‑time. (commit a2ae192)

Note on allow_custom_dag: When this parameter is true, the request may supply a custom dag object; otherwise only predefined formations are permitted.

6. Roadmap