10000 GitHub - maxthraxx/ass: Watch AI personalities clash in structured debates on any topic
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

maxthraxx/ass

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›๏ธ ASS - Argumentative System Service

Python 3.9+ UV Rich

Where AI personalities get into heated arguments about everything

๐ŸŽญ What is ASS?

ASS (Argumentative System Service) is a command-line application that orchestrates structured debates between four distinct AI personalities. Each personality has unique traits, perspectives, and argumentation styles, creating dynamic and insightful discussions on any topic you propose.

๐Ÿค– AI-Generated Project: This entire project was generated by AI from an original idea by Diogo. The concept, architecture, code, and documentation were all created through an AI-assisted development process, demonstrating the potential of human-AI collaboration in software creation.

Perfect for:

  • ๐Ÿง  Exploring complex topics from multiple perspectives
  • ๐Ÿ“š Educational discussions and critical thinking exercises
  • ๐Ÿค” Decision-making by weighing different viewpoints
  • ๐ŸŽช Entertainment - watch AIs argue about anything!
  • ๐Ÿ”ฌ Research into AI personality modeling and multi-agent systems

๐ŸŽญ Meet the Debaters

Personality Provider Traits Perspective
๐ŸŒŸ Claude Optimist Claude Creative, big-picture, opportunity-focused Sees possibilities everywhere
๐Ÿ” Claude Skeptic Claude Analytical, detail-oriented, risk-aware Points out flaws and limitations
๐Ÿš€ GPT Visionary OpenAI Forward-thinking, innovative, solution-oriented Champions breakthrough ideas
โš–๏ธ GPT Critic OpenAI Methodical, cautious, problem-focused Highlights potential issues

After three rounds of heated debate, an impartial Judge synthesizes all arguments into a balanced final decision.

๐ŸŽฌ Example Debates

๐Ÿค– "Should we develop AGI as fast as possible?"

Click to see the debate highlights

Claude Optimist: "The potential benefits are extraordinary! AGI could solve climate change, cure diseases, and unlock technologies we can't even imagine. The faster we develop it responsibly, the sooner we can address humanity's greatest challenges!"

GPT Critic: "This rush toward AGI poses existential risks we don't fully understand. Without proper safety frameworks and international oversight, we could create systems that operate beyond human control or comprehension."

GPT Visionary: "What if we're thinking too small? AGI represents the next evolutionary leap for intelligence itself. With proper safeguards, we could create benevolent systems that enhance human potential rather than replace it."

Claude Skeptic: "The alignment problem remains unsolved. How can we ensure AGI systems will pursue human values when we haven't even agreed on what those values are? The technical challenges of safe AGI are being dangerously underestimated."

Judge's Decision: "A measured approach prioritizing safety research alongside capability development, with mandatory international cooperation frameworks..."

๐Ÿ• "Is pineapple on pizza acceptable?"

Click to see this heated culinary debate

Claude Optimist: "Pineapple on pizza represents culinary creativity at its finest! The sweet-savory combination creates delightful flavor contrasts, and food should be about joy and experimentation, not rigid rules!"

GPT Critic: "This combination violates fundamental principles of Italian cuisine. The high water content of pineapple creates soggy crusts, while the sweetness overwhelms the carefully balanced acidity of traditional tomato sauce."

GPT Visionary: "Hawaiian pizza opened the door to global fusion cuisine! Without this bold experiment, we might never have discovered other amazing combinations like BBQ chicken or breakfast pizzas."

Claude Skeptic: "Traditional pizza recipes evolved over centuries for good reasons. Adding random fruits doesn't constitute innovationโ€”it's culinary chaos that diminishes the integrity of a perfect food."

Judge's Decision: "While respecting traditional Italian cuisine, food evolution through cultural fusion has created legitimate new traditions. Pineapple pizza, though controversial, represents valid culinary diversity..."

๐Ÿš€ Quick Start

Prerequisites

  • Python 3.9+
  • UV package manager (install here)
  • API Keys:
    • OpenAI API key
    • Anthropic Claude API key

Installation

  1. Clone the repository:

    git clone https://github.com/DiogoNeves/ass.git
    cd ass
  2. Install dependencies:

    uv sync
  3. Set up your API keys: Create a .env file:

    CLAUDE_API_KEY=your_claude_api_key_here
    OPENAI_API_KEY=your_openai_api_key_here

Running Debates

Interactive Mode - Ask any question:

uv run python debate_app.py

Demo Mode - See a pre-configured debate:

uv run python demo.py

๐ŸŽฎ How It Works

graph TD
    A[Your Question] --> B[Round 1: Opening Arguments]
    B --> C[Round 2: Rebuttals & Counter-arguments]
    C --> D[Round 3: Final Positions]
    D --> E[Judge's Final Decision]
    
    style A fill:#e1f5fe
    style E fill:#f3e5f5
Loading
  1. ๐ŸŽฏ Question Input - You provide any question or topic
  2. ๐ŸฅŠ Three Rounds of Debate - Each personality argues their position
  3. ๐Ÿ”„ Context Building - Each round builds on previous arguments
  4. โš–๏ธ Final Judgment - An impartial judge synthesizes all viewpoints

๐Ÿ› ๏ธ Architecture

The application uses a modular Personality System that makes it easy to create new AI debaters:

# Create a new personality
new_personality = create_personality(PersonalityConfig(
    name="My Custom Debater",
    model_provider="claude",  # or "openai" 
    model_name="claude-sonnet-4-20250514",
    system_prompt="Your personality description...",
    traits={"creativity": 8, "skepticism": 6, "humor": 9}
))

Key Components:

  • PersonalityConfig - Define model, prompts, and personality traits
  • LLMPersonality - Abstract base class for all personalities
  • create_personality() - Factory function for easy personality creation
  • Rich CLI interface with beautiful formatting and animations

๐Ÿ’ก Interesting Questions to Try

๐Ÿง  Philosophy & Ethics

  • "Is free will an illusion?"
  • "Should we prioritize individual freedom or collective security?"
  • "Is artificial consciousness possible?"

๐ŸŒ Society & Technology

  • "Should social media be regulated like tobacco?"
  • "Is remote work better for society than office work?"
  • "Should we colonize Mars or fix Earth first?"

๐ŸŽจ Creative & Fun

  • "Which is the superior breakfast: cereal or toast?"
  • "Should we bring back extinct species through genetic engineering?"
  • "Is a hot dog a sandwich?"

๐Ÿ›๏ธ Policy & Governance

  • "Should voting be mandatory in democracies?"
  • "Is universal basic income feasible?"
  • "Should we abolish daylight saving time?"

๐ŸŽจ Features

  • ๐ŸŽญ Rich CLI Interface - Colored panels, animations, and beautiful formatting
  • ๐Ÿ”„ Turn-based Debates - Structured rounds with context accumulation
  • ๐Ÿค– Multi-Model Support - Leverages both Claude and OpenAI APIs
  • ๐Ÿ”ง Extensible Design - Easy to add new personalities and traits
  • โšก Real-time Feedback - Progress indicators and thinking animations
  • ๐Ÿ“ Context Awareness - Each debater builds on previous arguments

๐Ÿ”ง Customization

Adding New Personalities

Extend the debate by creating personalities with unique traits:

personalities["economist"] = create_personality(PersonalityConfig(
    name="Dr. Economy",
    model_provider="openai",
    model_name="gpt-4.1-2025-04-14",
    system_prompt="You are a pragmatic economist focused on costs, benefits, and market dynamics...",
    traits={"analytical": 9, "pragmatic": 8, "data_focused": 10}
))

Supported Models

Anthropic Claude:

  • claude-sonnet-4-20250514 (Latest & Recommended - 2025)
  • claude-3-5-sonnet-20241022
  • claude-3-haiku-20240307
  • Other Claude models

OpenAI:

  • gpt-4.1-2025-04-14 (Latest & Recommended - 2025)
  • gpt-4
  • gpt-4-turbo
  • gpt-3.5-turbo

๐Ÿ“ Project Structure

ass/
โ”œโ”€โ”€ ๐Ÿ“„ README.md           # This file
โ”œโ”€โ”€ โš™๏ธ pyproject.toml      # UV project configuration  
โ”œโ”€โ”€ ๐Ÿ”’ uv.lock            # Dependency lock file
โ”œโ”€โ”€ ๐Ÿ” .env               # API keys (create this)
โ”œโ”€โ”€ ๐Ÿ“ .venv/             # Virtual environment (auto-created)
โ”œโ”€โ”€ ๐Ÿง  personality.py      # Personality system and API integrations
โ”œโ”€โ”€ ๐ŸŽญ debate_app.py       # Main interactive application
โ””โ”€โ”€ ๐ŸŽฌ demo.py            # Demo runner with sample debate

๐Ÿค Contributing

We welcome contributions! Here are some ideas:

  • ๐ŸŽญ New Personality Types - Add specialists (scientist, artist, philosopher)
  • ๐Ÿ”Œ Additional LLM Providers - Support for more AI models
  • ๐ŸŽช Enhanced Debate Formats - Tournament brackets, team debates
  • ๐ŸŽจ UI Improvements - Better visualizations and formatting
  • ๐Ÿ“Š Analytics - Argument analysis and debate statistics

Development Setup

# Clone and setup
git clone https://github.com/DiogoNeves/ass.git
cd ass
uv sync

# Run tests (if you add them)
uv run pytest

# Format code
uv run black .

๐Ÿ› ๏ธ Troubleshooting

๐Ÿ”‘ API Key Issues:

  • Ensure your .env file is in the project root
  • Verify API keys are valid and have sufficient credits
  • Check that keys don't have extra spaces or quotes

๐Ÿ“ฆ Import Errors:

  • Run uv sync to install all dependencies
  • Ensure you're using Python 3.9+
  • Use uv run python script.py instead of python script.py

๐ŸŒ UV Issues:

๐Ÿ“œ License

MIT License - see LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Rich - Beautiful terminal formatting
  • OpenAI - GPT models and API
  • Anthropic - Claude models and API
  • UV - Fast Python package manager

๐ŸŽญ Ready to watch AIs debate? Start a discussion and see what happens! ๐ŸŽญ

โญ Star this repo โ€ข ๐Ÿ› Report Bug โ€ข ๐Ÿ’ก Request Feature

About

Watch AI personalities clash in structured debates on any topic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0