<?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: Suyash Sonawane</title>
    <description>The latest articles on DEV Community by Suyash Sonawane (@suyash_07).</description>
    <link>https://dev.to/suyash_07</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3882631%2F0708541e-ac1e-4ff3-ad56-fb15800dae7c.jpeg</url>
      <title>DEV Community: Suyash Sonawane</title>
      <link>https://dev.to/suyash_07</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/suyash_07"/>
    <language>en</language>
    <item>
      <title>Captain Cool 🏏⚡ — Building a Multi-Agent AI IPL Strategist with Google Gemini</title>
      <dc:creator>Suyash Sonawane</dc:creator>
      <pubDate>Sun, 17 May 2026 12:54:33 +0000</pubDate>
      <link>https://dev.to/suyash_07/captain-cool-building-a-multi-agent-ai-ipl-strategist-with-google-gemini-4027</link>
      <guid>https://dev.to/suyash_07/captain-cool-building-a-multi-agent-ai-ipl-strategist-with-google-gemini-4027</guid>
      <description>&lt;p&gt;Captain Cool 🏏⚡ — A Multi-Agent AI IPL Strategist Powered by Google Gemini&lt;br&gt;
Cricket is chaos. 120 balls. 22 players. Dew factor, pitch cracks, player match-ups, crowd pressure — and you have mere seconds to make game-changing decisions.&lt;br&gt;
I built Captain Cool, a real-time AI web application that acts like an intelligent cricket coach — analyzing situations, debating strategies, and delivering sharp, actionable recommendations just like MS Dhoni in the middle.&lt;br&gt;
Live Demo: Run locally on &lt;a href="http://localhost:5176" rel="noopener noreferrer"&gt;http://localhost:5176&lt;/a&gt;&lt;br&gt;
GitHub: &lt;a href="https://github.com/namde-o/Captain-Cool" rel="noopener noreferrer"&gt;https://github.com/namde-o/Captain-Cool&lt;/a&gt;&lt;br&gt;
Built live at Agentic Premier League - Build with AI by GDG Cloud Pune.&lt;/p&gt;

&lt;p&gt;🧠 The Core Architecture: 4 Specialized Gemini Agents&lt;br&gt;
This isn’t a single prompt chatbot. It’s a multi-agent system where four independent Gemini agents debate the match situation before arriving at a final strategy.&lt;/p&gt;

&lt;p&gt;Sanjay – The Stats Analyst: Cold, data-driven, and numbers-obsessed.&lt;br&gt;
Rohit – The Batting Strategist: Aggressive and always batsman-first.&lt;br&gt;
Bumrah – The Bowling Tactician: Precision-focused wicket hunter.&lt;br&gt;
Harsha – The Final Commentator: Synthesizes all opinions and delivers the final verdict.&lt;/p&gt;

&lt;p&gt;Each agent receives the previous agents’ outputs as context. This creates a natural agentic debate pipeline — Harsha literally reads Sanjay, Rohit, and Bumrah’s arguments before giving the final strategic recommendation.&lt;/p&gt;

&lt;p&gt;🔴 Solving the Live Score Challenge&lt;br&gt;
My initial plan was to scrape live scores from Cricbuzz using Gemini’s URL context tool.&lt;br&gt;
It failed hard — Cloudflare’s bot protection blocked every request, feeding Gemini challenge pages instead of scorecards.&lt;br&gt;
The Solution: Gemini’s Google Search Grounding (real-time web search).&lt;br&gt;
Now I send natural language queries like:&lt;br&gt;
"Royal Challengers Bengaluru vs Punjab Kings live score IPL 2025"&lt;br&gt;
Gemini searches the web in real-time, processes the latest information, and returns clean structured JSON. No blocked URLs, no stale data.&lt;br&gt;
JavaScript// Simplified example from liveScore agent&lt;br&gt;
const response = await fetch(&lt;br&gt;
  &lt;code&gt;https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=${apiKey}&lt;/code&gt;,&lt;br&gt;
  {&lt;br&gt;
    method: 'POST',&lt;br&gt;
    body: JSON.stringify({&lt;br&gt;
      tools: [{ google_search: {} }],&lt;br&gt;
      contents: [{&lt;br&gt;
        role: 'user',&lt;br&gt;
        parts: [{ text: searchQuery }]&lt;br&gt;
      }]&lt;br&gt;
    })&lt;br&gt;
  }&lt;br&gt;
);&lt;/p&gt;

&lt;p&gt;✨ Key Features&lt;/p&gt;

&lt;p&gt;Interactive cricket field visualization with glowing hotspots for field placements&lt;br&gt;
Real-time bowler quota tracker&lt;br&gt;
Smart match conditions analyzer (venue, pitch, dew, impact player)&lt;br&gt;
Dynamic strategy engine with win probability shifts&lt;br&gt;
Clean and modern UI built for live match use&lt;/p&gt;

&lt;p&gt;Tech Stack&lt;/p&gt;

&lt;p&gt;Frontend: React + Vite + Tailwind CSS&lt;br&gt;
AI Engine: Google Gemini 2.0 Flash with Google Search grounding&lt;br&gt;
Architecture: Multi-agent orchestration with custom chaining&lt;br&gt;
Visualization: Canvas/SVG-based cricket field&lt;/p&gt;

&lt;p&gt;What I Learned&lt;/p&gt;

&lt;p&gt;Multi-agent systems feel magically collaborative when agents have distinct personalities.&lt;br&gt;
Real-time web grounding is a game-changer for live sports applications.&lt;br&gt;
Passion projects (Cricket + AI) make long coding sessions enjoyable.&lt;br&gt;
Giving agents strong identities dramatically improves output quality and entertainment value.&lt;/p&gt;

&lt;p&gt;Captain Cool is more than just a project — it’s a fun proof that agentic AI can add real strategic value in fast-paced, dynamic environments like T20 cricket.&lt;br&gt;
Would love to hear your thoughts! Have you built any multi-agent systems? How do you handle live data challenges in your AI apps?&lt;br&gt;
Drop your feedback below 👇&lt;/p&gt;

</description>
      <category>antigravity</category>
      <category>gdgcloudpune</category>
      <category>agenticpremierleague</category>
      <category>buildwithai</category>
    </item>
  </channel>
</rss>
