<?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: Ayush Sonawane</title>
    <description>The latest articles on DEV Community by Ayush Sonawane (@ayush_sonawane_5fcb28835a).</description>
    <link>https://dev.to/ayush_sonawane_5fcb28835a</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%2F3936303%2Fa9a616b2-27e3-4882-bb63-2f16be632f71.png</url>
      <title>DEV Community: Ayush Sonawane</title>
      <link>https://dev.to/ayush_sonawane_5fcb28835a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ayush_sonawane_5fcb28835a"/>
    <language>en</language>
    <item>
      <title>🏏 "Captain Cool" — The Multi-Agent IPL Match Strategist (Built on Google Gemini)</title>
      <dc:creator>Ayush Sonawane</dc:creator>
      <pubDate>Sun, 17 May 2026 13:06:41 +0000</pubDate>
      <link>https://dev.to/ayush_sonawane_5fcb28835a/captain-cool-the-multi-agent-ipl-match-strategist-built-on-google-gemini-2kf9</link>
      <guid>https://dev.to/ayush_sonawane_5fcb28835a/captain-cool-the-multi-agent-ipl-match-strategist-built-on-google-gemini-2kf9</guid>
      <description>&lt;p&gt;🏏 "Captain Cool" — The Multi-Agent IPL Match Strategist (Built on Google Gemini)&lt;br&gt;
Cricket is a captain’s game. While data analysts sit in the dugout with spreadsheets, the captain stands under the lights making split-second tactical decisions. Should you bowl a mystery spinner against a left-hander in the dew? When do you pull the trigger on the Impact Player?&lt;/p&gt;

&lt;p&gt;To solve this, I built Captain Cool during an intense 3-hour vibe-coding session. It’s an agentic AI system built entirely on the Google Gemini stack that acts as a virtual IPL captain. Instead of just spitting out a generic recommendation, it forces multiple specialized AI agents into a high-stakes internal debate before committing to the final call.&lt;/p&gt;

&lt;p&gt;🏗 The Multi-Agent Architecture&lt;br&gt;
To build a system that genuinely thinks like an elite tactician, a single prompt wrapper won't cut it. Using Google's Agent Development Kit (ADK), Captain Cool decomposes the problem into four distinct, Gemini-powered agents:&lt;/p&gt;

&lt;p&gt;📊 The Stats Guru (Data Analyst): Uses live tools and function calling to pull real-time match context, venue history, and player matchups.&lt;/p&gt;

&lt;p&gt;🏏 The Tactical Skipper (The Strategist): Formulates the primary on-field strategy based on the current match state.&lt;/p&gt;

&lt;p&gt;😈 The Devil's Advocate (The Dissenter): Aggressively critiques the Skipper’s plan, pointing out blind spots, pitch variations, and worst-case scenarios.&lt;/p&gt;

&lt;p&gt;🎙 The Comms Box (The Explainer): Translates the raw strategic outcome into authentic, colorful cricket commentary.&lt;/p&gt;

&lt;p&gt;🛠 The Native Google Tech Stack&lt;br&gt;
This project was built from the ground up using Google’s premier AI ecosystem:&lt;/p&gt;

&lt;p&gt;Gemini API (google-genai Python SDK): Driven by gemini-2.5-pro for deep reasoning during the agent debate and gemini-2.5-flash for rapid stats extraction.&lt;/p&gt;

&lt;p&gt;Google Antigravity: Google's agentic IDE. The entire build left autonomous traces, commit histories, and self-healing debug logs right in the .antigravity/ folder.&lt;/p&gt;

&lt;p&gt;Agent Development Kit (ADK): Orchestrates the multi-turn reasoning loop and handles state transitions between the disputing agents.&lt;/p&gt;

&lt;p&gt;Google AI Studio: Used for rapid prompt prototyping and setting system instructions.&lt;/p&gt;

&lt;p&gt;🔄 The Internal Debate Loop in Action&lt;br&gt;
Here is an end-to-end walkthrough of a high-pressure match state processed by the system.&lt;/p&gt;

&lt;p&gt;The Input Context&lt;br&gt;
Match State: M. A. Chidambaram Stadium (Chepauk), Innings 2, Over 17.4. Heavy dew.&lt;/p&gt;

&lt;p&gt;Batter on Strike: Shivam Dube (Left-handed power hitter).&lt;/p&gt;

&lt;p&gt;Bowlers Remaining: Right-arm Leg-Spinner (1 over), Left-Arm Fast-Medium (2 overs).&lt;/p&gt;

&lt;p&gt;The Under-the-Hood Agent Argument&lt;br&gt;
📊 The Stats Guru: Executing fetch_venue_stats(venue="Chepauk", metric="dew_impact")... Live data confirms spin effectiveness drops by 22% after Over 15 due to grip issues. Furthermore, Dube averages 42 against leg-spin but struggles against high-pace short balls.&lt;/p&gt;

&lt;p&gt;🏏 The Tactical Skipper: "Let's bring on our Leg-Spinner for the next over. Spin is king at Chepauk; we buy a wicket or choke the runs."&lt;/p&gt;

&lt;p&gt;😈 The Devil's Advocate: "Hold on, Skipper, that's massive gamble. The dew is heavy—the ball is like a cake of soap right now, meaning the leggie will slip up and bowl full tosses. Plus, Dube absolutely destroys leg-spin. If he gets underneath one, it’s clearing the stadium roof."&lt;/p&gt;

&lt;p&gt;🏏 The Tactical Skipper (Revised): "Valid point on the wet seam. Let’s pivot. We'll hold the spin back. Bring in the Left-Arm Fast-Medium bowler. Instruct him to bowl cross-seam, digging it into the deck to target Dube's weakness against the hard, rising delivery."&lt;/p&gt;

&lt;p&gt;🏆 The Final Output&lt;br&gt;
The system resolves the debate and outputs three clean, fan-friendly components:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The Next Decision
Action: Deploy the Left-Arm Fast-Medium bowler for the 18th over.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Blueprint: Bowl cross-seam deliveries targeting back-of-a-length, angling away from the left-hander's swinging arc.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;The Tactical Reasoning (Cricket-Speak)&lt;br&gt;
"Look, with the dew setting in at Chepauk, throwing the ball to a leggie against a well-set left-handed monster like Dube is absolute suicide. The ball is too slick. You’ve got to take spin out of the equation. We are going with our left-arm quick, pounding the cross-seam into the deck. Make him hit against the wet sheen off a hard length!"&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What the Dissenting Agent Said&lt;br&gt;
The Vice-Captain strongly pushed to exploit the turning pitch with our premier spinner, but was ultimately overruled due to verified live data showing a massive drop in spin control under heavy night dew.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;🚀 Key Takeaways&lt;br&gt;
Building with Google Antigravity and the ADK completely changed how I approach multi-agent workflows. Instead of manually writing complex state machines and parsing messy JSON layers, the Gemini-native framework managed the orchestration implicitly. Passing Python typings directly into the google-genai SDK allowed the model to execute live tool-calling flawlessly.&lt;/p&gt;

&lt;h1&gt;
  
  
  gdg
&lt;/h1&gt;

&lt;h1&gt;
  
  
  google
&lt;/h1&gt;

&lt;h1&gt;
  
  
  gdgpune
&lt;/h1&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>gemini</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
