Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

Building KillMyIdea: A Fast Multi-Agent Debate App with Next.js + LangChain

DEV Community·Harish Kotra (he/him)·about 1 month ago
#z1xqcjce
Reading 0:00
15s threshold

KillMyIdea is a developer-focused experiment: can we make AI feedback feel like a real argument instead of a long report? Short answer: yes, by combining: strict output schemas, parallel orchestration, role-specific prompts, and UI pacing that feels live. Product Goal Given a user idea, generate a sharp debate between: Optimist (upside) Skeptic (assumption attack) Risk Analyst (legal/financial/operational failure modes) Moderator (verdict + scores + actions) Target latency: under ~8–10 seconds. High-Level Architecture Why a Custom Orchestrator (Instead of Full LangGraph)? LangGraph is powerful for long-lived workflows, but this app needs: fast and deterministic flow, shallow state, predictable output shape. So a lightweight custom orchestrator in lib/debate-orchestrator.ts is enough and simpler to maintain. Core Orchestration Code Parallelized agent execution const [ optimistInit , skepticInit , riskInit ] = await Promise .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More