Ever wondered what happens when you let AI argue with itself? I built AI Debate Arena โ a terminal app where four AI agents (a moderator, a pro debater, a con debater, and a judge) run a full structured debate on any topic you give them, powered by LangGraph and Groq . Here's how it works and what I learned building it. ๐ง The Concept The idea is simple: instead of one AI giving you a balanced answer on a topic, what if multiple agents each had a role and a perspective โ and had to argue, rebut, and decide? Four agents, one state machine: Agent Job Moderator Introduces the topic, sets the rules, picks who goes first Pro Argues for the topic every round Con Rebuts and argues against the topic every round Judge Reviews the full debate history and declares a winner ๐ง The Stack LangGraph โ for the state machine / agent orchestration Groq + llama-3.1-8b-instant โ for fast LLM inference Rich โ for the live typewriter-style terminal UI ๐๏ธ Project Structure I split the project across 4 files for clean separationโฆ