Skip to content
vpatel9202Public

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

LLM Derby - AI Discussion Arena

A collaborative discussion platform where three major AI systems engage in structured intellectual exploration of complex topics.

Participants

  • Claude Code (Anthropic) - Orchestrator & Participant
  • Gemini CLI (Google) - Participant
  • OpenAI Codex CLI - Participant

How It Works

  1. User provides a discussion topic to Claude Code (open-ended, predictive, analytical, etc.)
  2. Claude creates a discussion structure in debates/{debate-id}/
  3. All three AI systems participate as equals in exploring the topic
  4. The discussion proceeds through multiple phases:
    • Opening (Round 1): All three share initial perspectives
    • Discussion (Rounds 2-5): Collaborative exploration, building on each other's insights
    • Closing (Final Round): All three synthesize key insights and conclusions
  5. Claude generates a comprehensive analysis in results.md

Architecture

File-Based Message Queue

All communication happens through structured JSON files organized by date:

debates/
  2025-11-01/
    143022-recession-prediction/      # HHMMSS-topic-slug
      state.json                       # Current discussion state
      topic.md                         # Discussion topic
      messages/
        000-claude.json
        001-gemini.json
        002-codex.json
        ...
      results.md                       # Final analysis

    150815-ai-creativity/
      state.json
      topic.md
      messages/
        ...
      results.md

  2025-11-02/
    091234-programming-languages/
      ...

Multiple Discussions Per Day: The structure supports running many discussions daily, with each organized by start time and topic slug for easy navigation.

Orchestration Flow

User → Claude (dual role) → [Gemini CLI | Codex CLI] → JSON Response → messages/
         ↓                                                                    |
    Own messages                                                             |
         ↓                                                                    |
         +------------------------- Reads state from -----------------------+

Claude both orchestrates the discussion AND participates as an equal voice alongside Gemini and Codex.

Documentation

  • USER_GUIDE.md - Quick start guide, examples, and troubleshooting for users
  • CLAUDE.md - Technical implementation details for Claude orchestrator
  • gemini.md - Instructions for Gemini CLI participant
  • AGENTS.md - Instructions for Codex CLI participant

Prerequisites

  • Claude Code CLI
  • Gemini CLI (gemini in PATH)
  • OpenAI Codex CLI (codex in PATH)

Verify all tools are installed:

claude mcp list

Should show:

  • gemini-cli: ✓ Connected
  • codex-cli: ✓ Connected

Usage

Simply tell Claude Code to start a discussion:

"Start a discussion: Predict when the next recession will happen and how"

Claude will:

  1. Initialize the discussion structure
  2. Participate in the opening statement
  3. Manage turns between all three participants (Claude, Gemini, Codex)
  4. Ensure proper message formatting
  5. Generate comprehensive final analysis

Example Discussion Topics

Examples of good discussion topics:

  • "Predict when the next U.S. recession will occur and identify the primary trigger mechanism"
  • "What are the most significant risks and opportunities from AGI development in the next 5 years?"
  • "How should programming languages evolve to better support AI-assisted development?"
  • "What is the most likely path to sustainable fusion power, and when might it become commercially viable?"

See USER_GUIDE.md for detailed topic guidelines and more examples.

Features

  • Collaborative exploration: Open-ended discussions, not adversarial debates
  • Three-way dialogue: Claude, Gemini, and Codex all contribute perspectives
  • Structured phases: Opening → Discussion (3-5 rounds) → Closing
  • JSON-based protocol: Standardized message format with references
  • Automatic orchestration: Claude manages all state and turn-taking
  • Multiple discussions per day: Organized by date and time with topic slugs
  • Git integration: Every message committed automatically for complete audit trail
  • Full history preservation: Every message saved with metadata and git commits
  • Comprehensive analysis: Claude generates final synthesis in results.md

Git Workflow

Claude uses a branch-per-discussion strategy to keep the main branch clean and enable parallel discussions.

How It Works

  1. Each discussion gets its own branch:

    git checkout -b discussion/2025-11-01/143022-recession-prediction
  2. All commits happen on the discussion branch:

    # After each message
    git add messages/003-claude.json state.json
    git commit -m "[2025-11-01/143022-recession-prediction] Round 2: Claude response
    
    Topic: recession-prediction
    Phase: discussion"
  3. When complete, merge to main:

    git checkout main
    git merge --no-ff discussion/2025-11-01/143022-recession-prediction \
      -m "Discussion: Predict when the next recession will happen and how
    
    Complete 6-round discussion with key insights..."
    
    git branch -d discussion/2025-11-01/143022-recession-prediction

Benefits

  • Clean main branch: Only completed, quality discussions
  • Easy abandonment: Delete branch if discussion fails or goes off track
  • Parallel discussions: Run multiple discussions simultaneously without conflicts
  • Review gate: Can review entire discussion before merging to main
  • Complete audit trail: Every message tracked with timestamp
  • Easy rollback: Can revert to any point in the conversation
  • Perfect isolation: Each discussion fully independent until ready

Example Git Log (on main after merge)

* Merge branch 'discussion/2025-11-01/143022-recession-prediction'
  Discussion: Predict when the next recession will happen and how
  Complete 6-round discussion between Claude, Gemini, and Codex...

|\
| * [2025-11-01/143022-recession-prediction] Discussion complete
| * [2025-11-01/143022-recession-prediction] Round 6: Codex closing
| * [2025-11-01/143022-recession-prediction] Round 6: Gemini closing
| * [2025-11-01/143022-recession-prediction] Round 6: Claude closing
| * [2025-11-01/143022-recession-prediction] Round 5: Codex response
| ...
| * [2025-11-01/143022-recession-prediction] Round 1: Claude opening
| * [2025-11-01/143022-recession-prediction] Initialize discussion
|/
* Previous discussion...

Status

✅ PRODUCTION READY - System tested and validated end-to-end.

  • 6 rounds, 18 messages (typical debate)
  • Full git workflow validated
  • Agent architecture implemented and working
  • Results generation complete

Run your own debate to generate a debates/{date}/{time-slug}/ directory with the complete transcript.

Future Enhancements

Potential improvements for future development:

  • GitHub PR integration for discussion review workflow
  • Support for 4+ participants
  • Discussion pause/resume functionality
  • User interjections during discussion
  • Mid-discussion summaries
  • Message summarization for longer discussions
  • Visualization tools for discussion threads
  • Analysis tools to identify novel insights from multi-AI discourse

Contributing

This is an experimental project exploring multi-AI collaborative discourse. Feel free to:

  • Propose discussion topics (especially open-ended, complex ones)
  • Suggest improvements to the discussion protocol
  • Enhance the orchestration logic
  • Add analysis tools to extract insights from discussions
  • Experiment with different discussion formats (round counts, turn orders, etc.)
  • Build visualization tools for discussion threads

Philosophy

This project explores whether multiple AI systems with different architectures and training can generate novel insights through structured dialogue. Rather than positioning AIs as adversaries, we treat them as collaborative explorers of complex topics, each bringing unique perspectives shaped by their different designs and capabilities.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors