<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Yashraj Awasthi</title>
    <description>The latest articles on DEV Community by Yashraj Awasthi (@yashraj_val8).</description>
    <link>https://dev.to/yashraj_val8</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4120833%2Fb5de51c8-ec85-49d7-b513-8e9188662c0d.jpg</url>
      <title>DEV Community: Yashraj Awasthi</title>
      <link>https://dev.to/yashraj_val8</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yashraj_val8"/>
    <language>en</language>
    <item>
      <title>How I Built a 45-Agent AI Panel to Brutally Roast Startup Ideas (Architecture Deep Dive)</title>
      <dc:creator>Yashraj Awasthi</dc:creator>
      <pubDate>Fri, 11 Sep 2026 11:44:42 +0000</pubDate>
      <link>https://dev.to/yashraj_val8/how-i-built-a-45-agent-ai-panel-to-brutally-roast-startup-ideas-architecture-deep-dive-3ha0</link>
      <guid>https://dev.to/yashraj_val8/how-i-built-a-45-agent-ai-panel-to-brutally-roast-startup-ideas-architecture-deep-dive-3ha0</guid>
      <description>&lt;p&gt;Every founder knows the feeling: you share a new startup idea with friends, and they all smile and say, &lt;em&gt;"That sounds awesome!"&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;Six months and thousands of dollars later, you discover nobody actually wants it.&lt;/p&gt;

&lt;p&gt;Standard LLMs suffer from the exact same problem: &lt;strong&gt;extreme sycophancy&lt;/strong&gt;. If you ask ChatGPT &lt;em&gt;"Is my startup idea good?"&lt;/em&gt;, it will write a 10-paragraph essay explaining why your dog-walking drone startup has trillion-dollar potential.&lt;/p&gt;

&lt;p&gt;To fix this, I spent the last few months building &lt;a href="https://val8.app" rel="noopener noreferrer"&gt;val8.app&lt;/a&gt; - an AI validation engine that simulates a room of 45 realistic, skeptical stakeholders who debate and stress-test an idea before you write a single line of code.&lt;/p&gt;

&lt;p&gt;Here is the architectural breakdown of how it works under the hood.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The Challenge: Solving AI Sycophancy&lt;/strong&gt;
Standard prompt engineering fails when you ask a single LLM to evaluate an idea. It tends to smooth out edges, stay agreeable, and generate generic SWOT analyses.
To simulate real-world tension, &lt;strong&gt;val8&lt;/strong&gt; generates personas across 3 distinct clusters:&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Investors (15 personas):&lt;/strong&gt; Obsessed with unit economics, TAM, defensibility, switching friction, and exits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Subject Matter Experts (15 personas):&lt;/strong&gt; Ruthlessly poking holes in technical feasibility, compliance, and operational bottlenecks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Target Users (15 personas):&lt;/strong&gt; Highly cynical about their actual willingness to pay, inertia, and daily habits.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I have injected &lt;strong&gt;intentional "Roaster" and "Ragebait" voices&lt;/strong&gt; into the prompt grounding. These personas are instructed never to be polite, to call out hidden assumptions, and to simulate the harshest critic you'd ever face in a boardroom or on Reddit. &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The Multi-Cluster Elimination Architecture&lt;/strong&gt;
Running 45 simultaneous agents in a single context window is impossible due to token limits, cross-agent context drift, and latency.
Instead, we built a tiered debate architecture:&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Intra-Cluster Rounds:&lt;/strong&gt; The 15 personas in each category (Investors, SMEs, Users) conduct internal deliberation and challenge rounds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cluster Finalists:&lt;/strong&gt; The system ranks arguments and narrows down to the top 5 finalists per category (15 total).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cross-Category Synthesis:&lt;/strong&gt; The 15 surviving finalists enter a final cross-category debate where an investor can challenge a user's willingness to pay, or an SME can debunk an investor's scalability assumption.&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Scored Verdict:&lt;/strong&gt; Generates consensus scores (1 100) and actionable objection reports.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The Tech Stack&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Framework:&lt;/strong&gt; Next.js 16 (App Router) + React 19&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Database &amp;amp; Auth:&lt;/strong&gt; Supabase (PostgreSQL with RLS) + Prisma ORM&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Async Job Queue:&lt;/strong&gt; BullMQ + Redis (ioredis) to handle long-running simulation workers&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Streaming UI:&lt;/strong&gt; Server-Sent Events (SSE) via &lt;code&gt;EventSource&lt;/code&gt; with &lt;code&gt;partial-json&lt;/code&gt; parsing for real-time debate rendering&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Styling:&lt;/strong&gt; Tailwind CSS with custom font pairings (Fraunces + Work Sans + IBM Plex Mono)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Payments:&lt;/strong&gt; Razorpay (credit-based microtransactions for domestic &amp;amp; international users)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Handling Real-Time Multi-Agent Streaming&lt;/strong&gt;&lt;br&gt;
One of the hardest parts was giving users visual feedback while 45 personas are generating hundreds of tokens of debate.&lt;br&gt;
I have decoupled the generation into worker processes (&lt;code&gt;bullmq&lt;/code&gt;) that stream chunks through an SSE endpoint:&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
`typescript
// Client-side EventSource listener for streaming clusters
const sse = new EventSource(`/api/runs/${runId}/stream`);

sse.onmessage = (e) =&amp;gt; {
  const payload = JSON.parse(e.data);
  if (payload.type === "chunk") {
  // Incrementally parse partial JSON without waiting for full completion
  const partialData = parse(payload.content);
  updateClusterPreview(payload.cluster, partialData);
 }
};`

This prevents the UI from freezing during intense multi-agent deliberations and gives users a real-time "view into the debate room".
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>showdev</category>
      <category>nextjs</category>
    </item>
  </channel>
</rss>
