Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:0xNyk Council of high intelligence Multi Provider Diversity

From Leeroopedia
Knowledge Sources
Domains AI, Multi_Model_Systems, Routing
Last Updated 2026-10-20 00:00 GMT

Overview

A routing strategy that distributes deliberation seats across different LLM provider families to reduce correlated reasoning errors, enforced by polarity-pair separation and provider-spread constraints.

Description

Multi-Provider Diversity is the principle that a deliberation panel should not be served by a single LLM provider when alternatives are available. Different model families (Anthropic, OpenAI, Google, open-weight via Ollama, NVIDIA NIM, Cursor aggregator) have different training data, reasoning biases, and failure modes. Routing seats across providers ensures that the panel's collective blind spots are not all the same provider's blind spots.

The routing algorithm enforces this through layered constraints: polarity-pair separation (hard constraint — opposing thinkers must be on different providers), provider spread (hard constraint — even distribution across available providers), provider affinity (soft tiebreaker — prefer providers listed in the member's frontmatter), and tier matching (soft — match the member's model tier to the provider's high/mid tier).

= Usage

Apply this principle when multiple LLM providers are detected and available. Skip it when only one provider exists (Claude-only setups remain valid). Key scenarios:

  • Auto-routing: detect providers, then apply the routing algorithm
  • Manual routing: user provides a `--models` YAML with explicit seat mappings
  • No routing: `--no-auto-route` flag uses agent frontmatter defaults (Claude-only)

Theoretical Basis

The principle rests on the observation that LLM families have correlated error patterns:

Panel error rate∝Correlation(error1,…,errorN)

If all seats run on the same provider, errors are highly correlated. Distributing across providers decorrelates the error terms, improving the panel's collective accuracy.

Routing algorithm (applied in order):

  1. Polarity-pair separation (hard): For any polarity pair where both members are on the panel, assign to different providers. This ensures opposing thinkers don't share training bias.
  2. Provider spread (hard): With N providers and M members, each provider gets floor(M/N) or ceil(M/N) members. Aggregators (NIM, Cursor) count as single providers.
  3. Provider affinity (soft): Prefer providers listed earlier in the member's `provider_affinity` frontmatter array. NIM assigned only when no other provider has capacity.
  4. Tier matching (soft): Members with `model: opus` get high-tier models; `model: sonnet` get mid-tier. Per `configs/auto-route-defaults.yaml`.
  5. OpenAI-compatible hydration: For seats on `openai_compatible_api` providers, resolve `base_url` and `api_key_env` at routing time.
# Abstract algorithm (NOT real implementation)
def route_seats(panel, detected_providers, config):
    assignments = {}

    # 1. Polarity-pair separation (hard)
    for a, b in polarity_pairs_on_panel(panel):
        assignments[a], assignments[b] = different_providers(detected_providers)

    # 2. Provider spread (hard)
    distribute_evenly(panel, detected_providers, assignments)

    # 3. Provider affinity (soft)
    for member in unassigned(panel):
        for provider in member.provider_affinity:
            if has_capacity(provider, assignments):
                assignments[member] = provider
                break

    # 4. Tier matching (soft)
    for member, provider in assignments.items():
        tier = "high" if member.model == "opus" else "mid"
        assignments[member] = (provider, config.provider_models[provider][tier])

    return assignments

Related Pages

Implemented By

Related Principles

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment