Dialectic: Two-LLM Debate Studio

Dialectic is an adversarial reasoning application built to improve decision quality on complex questions by forcing two AI agents to debate opposing sides instead of generating a single one-shot answer. GitHub: github.com/singhaditya8499/Dialectic What We Built We built a complete end-to-end debate platform with: Two-agent structured debate loop (for vs against, or A vs B) Provider-agnostic model layer supporting OpenAI, Anthropic, and Ollama Live streamed debate transcript over SSE for real-time UX Evidence-anchored turn schema (facts, figure/date, source, reliability) Structured summary pipeline that preserves major claims and evidence ledger Local debate archive with reload support from the UI Browser-compatible mode for GitHub Pages deployments Product and Technical Design Core architecture src/server.js: HTTP API, SSE stream endpoint, static asset serving, persistence APIs src/debateEngine.js: debate orchestration, turn normalization/validation, summary generation src/providers.js: common completion abstraction across providers public/*: setup form, transcript renderer, summary view, saved debate browser Debate lifecycle User submits question, side models, and round budget. Engine alternates turns between both sides. Each turn is validated for stance, rebuttal quality, novelty, and evidence quality. Streaming events update UI in real time (thinking, turn, summary, complete). Final structured summary and debate artifact can be saved locally. Quality and Alignment Guardrails Dialectic focuses on controlled generation rather than raw free-form output: ...

March 30, 2026 · 3 min