gptme-consortium

Multi-model consensus decision-making for gptme. plugins/gptme-consortium View on GitHub

Consortium Plugin for gptme

Multi-model consensus decision-making for gptme.

Status: ✅ Phase 1 Complete - Core functionality implemented and tested

Overview

The consortium plugin orchestrates multiple LLMs to provide diverse perspectives and synthesize consensus responses. It queries multiple frontier models in parallel, then uses an arbiter model to analyze and synthesize a consensus answer with confidence scoring.

Key improvements (Phase 1):

Features

Installation

The plugin is automatically discovered when placed in a configured plugin path. Add to your gptme.toml (user or project level):

[plugins]
paths = ["path/to/plugins"]
enabled = ["gptme_consortium"]  # Optional: limit which plugins load

Usage

Basic Query

query_consortium(
    question="What's the best approach for handling rate limiting?"
)

With Custom Models

query_consortium(
    question="Should we use microservices or monolith?",
    models=[
        "anthropic/claude-sonnet-4-5",
        "openai/gpt-4o",
        "openai/o1"
    ],
    arbiter="anthropic/claude-opus-4"
)

With Confidence Threshold

query_consortium(
    question="Critical architectural decision...",
    confidence_threshold=0.9  # Require 90% confidence
)

Output Format

The tool returns:

Use Cases

Implementation Status

✅ Phase 1 Complete (Core Functionality)

🚧 Phase 2 Planned (Advanced Features)

🔮 Phase 3 Future (Production Polish)

Dependencies

Testing

# Run all tests
uv run --with pytest --with pytest-mock pytest tests/test_consortium.py -v

# Run fast tests only (skip integration)
uv run --with pytest --with pytest-mock pytest tests/ -v -m "not slow"

# Run with coverage
uv run --with pytest --with pytest-mock --with pytest-cov pytest tests/ --cov=src/gptme_consortium

Configuration

Default models (used if not specified):

Default arbiter:

These represent diverse frontier models for comprehensive perspectives.

Future Enhancements