Lab build

CrewAI debate crew

Crew where two agents argue for and against a motion and a judge agent decides.

Role
Builder, end to end
Group
Agents and MCP
Services
AI & LLM systems

What it does

Agents and tasks are configured in YAML: a debater proposes the motion, another opposes it, and a judge agent reviews both arguments and picks the more convincing side. Models are routed through LiteLLM, starting with GPT-4o mini, so the judge can run on a different model from the debaters.

What was built

  1. 01

    agents.yaml defines the debater and judge agents; tasks.yaml defines propose, oppose and decide tasks.

  2. 02

    The motion is passed in at kickoff and both sides argue it in sequence.

  3. 03

    Judge agent can run on a different model to compare how LLMs argue and decide.

The pipeline, layer by layer

Four layers, one pipeline.

  1. L1Config

    • agents.yaml and tasks.yaml
  2. L2Debate

    • Proposer agent
    • Opposer agent
  3. L3Decision

    • Judge agent
  4. L4Models

    • LiteLLM model routing

Stack

  • CrewAI
  • LiteLLM
  • GPT-4o mini
  • YAML
  • Python

Next lab build · 39 / 46

n8n MCP server with Pinecone RAG

n8n workflow exposed as an authenticated MCP server with Pinecone RAG tools for Claude and Cursor.

Previous: AutoGen distributed agent creator

Need a system like this in production? Tell us about it.