Skip to content
Conduit

mcp server

model-showdown

Model comparison pipeline — chains delegate_to_model, create_expert, execute_expert, consensus_vote across all 5 voting strategies

nexus-substrate/model-showdowncommunitylistedunreviewed

Set up

Runs on your computer. Pick your agent and operating system.

This project does not publish an install method we can turn into a config. Follow the README instead.

README

synced Oct 22, 2026

model-showdown

Model comparison pipeline for nexus-agents. Evaluates how different AI models and voting strategies handle the same task.

Pipeline

delegate_to_model → create_expert → execute_expert → consensus_vote (×5 strategies)
  1. Delegate a task to find the optimal model
  2. Create a specialized expert agent
  3. Execute the expert on the task
  4. Vote on the result using all 5 consensus strategies:
    • simple_majority — 50%+ agreement
    • supermajority — 67%+ agreement
    • unanimous — 100% agreement
    • proof_of_learning — evidence-based consensus
    • higher_order — Bayesian-optimal aggregation

Quick start

pnpm install
pnpm test        # Run 54 unit tests
pnpm typecheck   # TypeScript strict mode
pnpm build       # Compile to dist/

Usage as a library

import { runShowdown, generateReport } from 'model-showdown';
import type { ToolCaller } from 'model-showdown';

const caller: ToolCaller = {
  call: async (tool, args) => await mcpClient.callTool(tool, args),
};

const result = await runShowdown(caller, {
  task: 'Implement a rate limiter with sliding window',
});

console.log(generateReport(result, 'markdown'));

MCP tools covered

ToolPurposeSafety
delegate_to_modelRoute task to optimal modelRead-only routing
create_expertCreate specialized agentStateful but ephemeral
execute_expertRun expert on taskBounded by timeout
consensus_voteMulti-model consensus5 strategies tested

Report formats

  • markdown — Strategy comparison table with agreement scores
  • json — Full showdown result as structured JSON
  • text — Compact terminal output with per-strategy results

Project structure

src/
  types.ts              # Zod schemas matching live MCP responses
  fixtures/
    mock-responses.ts   # Mock data for all tools + 5 strategy variants
  pipeline.ts           # Showdown pipeline (delegate → create → execute → vote×5)
  reporter.ts           # Report formatter with strategy comparison
  index.ts              # Public API exports

License

MIT

↑↓ navigate openesc close