<?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: Rushauti Bhogle</title>
    <description>The latest articles on DEV Community by Rushauti Bhogle (@rushauti_bhogle_e3399cd3a).</description>
    <link>https://dev.to/rushauti_bhogle_e3399cd3a</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%2F3936060%2F62cb7439-4166-4b1c-808b-1ea78f6e9126.png</url>
      <title>DEV Community: Rushauti Bhogle</title>
      <link>https://dev.to/rushauti_bhogle_e3399cd3a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rushauti_bhogle_e3399cd3a"/>
    <language>en</language>
    <item>
      <title>Captain Cool - Building a Multi-Agent IPL Strategy Engine with Google Gemini</title>
      <dc:creator>Rushauti Bhogle</dc:creator>
      <pubDate>Sun, 17 May 2026 12:40:51 +0000</pubDate>
      <link>https://dev.to/rushauti_bhogle_e3399cd3a/captain-cool-building-a-multi-agent-ipl-strategy-engine-with-google-gemini-antigravity-ai-40a5</link>
      <guid>https://dev.to/rushauti_bhogle_e3399cd3a/captain-cool-building-a-multi-agent-ipl-strategy-engine-with-google-gemini-antigravity-ai-40a5</guid>
      <description>&lt;h1&gt;
  
  
  🏏 Captain Cool — AI That Thinks Like an IPL Captain
&lt;/h1&gt;

&lt;p&gt;What happens when you combine cricket strategy, multi-agent reasoning, and the Google Gemini ecosystem in a 3-hour hackathon sprint?&lt;/p&gt;

&lt;p&gt;You get &lt;strong&gt;Captain Cool&lt;/strong&gt; — an AI-powered IPL match strategist where multiple Gemini agents debate tactical cricket decisions like a real dressing room before making the final captain’s call.&lt;/p&gt;

&lt;p&gt;Instead of building a generic chatbot with cricket terminology sprinkled on top, we wanted to simulate something much closer to a real IPL strategy room:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;analysts studying matchups,&lt;/li&gt;
&lt;li&gt;captains balancing risk,&lt;/li&gt;
&lt;li&gt;assistant coaches challenging decisions,&lt;/li&gt;
&lt;li&gt;and commentators explaining the logic to fans.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Built entirely on the Google AI ecosystem, Captain Cool became our attempt at turning agentic AI into a tactical cricket brain.&lt;/p&gt;




&lt;h1&gt;
  
  
  ⚡ The Core Idea
&lt;/h1&gt;

&lt;p&gt;During an IPL match, captains constantly make micro-decisions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Who bowls the next over?&lt;/li&gt;
&lt;li&gt;Should the spinner continue despite dew?&lt;/li&gt;
&lt;li&gt;Is it the right moment for the Impact Player?&lt;/li&gt;
&lt;li&gt;Do we attack or delay Bumrah’s final over?&lt;/li&gt;
&lt;li&gt;Which field setup reduces boundary probability?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Captain Cool processes the live match state and lets multiple AI agents argue over the best tactical decision before producing a final recommendation.&lt;/p&gt;

&lt;p&gt;The result feels surprisingly close to a real cricket strategy meeting.&lt;/p&gt;




&lt;h1&gt;
  
  
  🧠 Multi-Agent Architecture
&lt;/h1&gt;

&lt;p&gt;Instead of relying on a single prompt, we decomposed the system into specialized Gemini-powered agents.&lt;/p&gt;

&lt;h2&gt;
  
  
  🕵️ Match Analyst Agent
&lt;/h2&gt;

&lt;p&gt;Responsible for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;venue conditions&lt;/li&gt;
&lt;li&gt;batter vs bowler matchups&lt;/li&gt;
&lt;li&gt;dew impact&lt;/li&gt;
&lt;li&gt;phase analysis&lt;/li&gt;
&lt;li&gt;tactical statistics&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This agent also performs tool execution to fetch structured cricket insights.&lt;/p&gt;




&lt;h2&gt;
  
  
  💡 Strategist Agent
&lt;/h2&gt;

&lt;p&gt;The “captain brain” of the system.&lt;/p&gt;

&lt;p&gt;Inspired by tactical IPL leadership styles, this agent:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;proposes bowling changes,&lt;/li&gt;
&lt;li&gt;plans death overs,&lt;/li&gt;
&lt;li&gt;controls field aggression,&lt;/li&gt;
&lt;li&gt;and balances risk vs reward.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔥 Devil’s Advocate Agent
&lt;/h2&gt;

&lt;p&gt;This became the most interesting part of the project.&lt;/p&gt;

&lt;p&gt;Its sole responsibility:&lt;br&gt;
challenge the strategist.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“If we use Bumrah now, who controls the 19th over against Tim David?”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This created genuine multi-agent reasoning instead of fake roleplay.&lt;/p&gt;


&lt;h2&gt;
  
  
  🎙️ Commentator Agent
&lt;/h2&gt;

&lt;p&gt;The final layer converts raw AI logic into human cricket language.&lt;/p&gt;

&lt;p&gt;Instead of:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Probability optimization suggests pace utilization.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The system explains:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“The pitch is gripping slightly, so bowling pace-off cutters into the surface makes more tactical sense than feeding spin into the arc.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This dramatically improved explainability.&lt;/p&gt;


&lt;h1&gt;
  
  
  🔄 The Agentic Debate Loop
&lt;/h1&gt;

&lt;p&gt;Our orchestration flow:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Match State
    ↓
Analyst Agent
    ↓
Strategist Proposal
    ↓
Devil’s Advocate Critique
    ↓
Strategist Revision
    ↓
Commentator Explanation
    ↓
Final Captain's Call
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The important part:&lt;br&gt;
the disagreement is visible.&lt;/p&gt;

&lt;p&gt;We intentionally expose the internal tactical debate instead of hiding the reasoning.&lt;/p&gt;




&lt;h1&gt;
  
  
  🧩 Full Runtime Architecture
&lt;/h1&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[ User Inputs Live Match State via Streamlit UI ]
                              │
                              ▼
               [ app.py parses to Pydantic Schema ]
                              │
                              ▼
              ┌──────────────────────────────┐
              │      agents.py Orchestrator  │
              └───────────────┬──────────────┘
                              │
         ┌────────────────────┼────────────────────┐
         ▼                    ▼                    ▼
┌──────────────────┐  ┌──────────────────┐  ┌──────────────────┐
│  Match Analyst   │  │    Strategist    │  │ Devil's Advocate │
│  (Gemini Flash)  │  │  (Gemini Flash)  │  │  (Gemini Flash)  │
└────────┬─────────┘  └────────┬─────────┘  └────────┬─────────┘
         │                     │                     │
         ▼                     │                     │
[ NATIVE TOOL CALL ]           │                     │
 (get_matchup_stats)           │                     │
         │                     │                     │
         └──────────────► Multi-Turn Loop ───────────┘
                               │
                               ▼
                    [ Ultimate Captain Decree ]
                               │
                               ▼
                 [ Rendered via Streamlit Chat ]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This architecture became the backbone of the project.&lt;/p&gt;

&lt;p&gt;Instead of a single LLM generating tactical responses, the orchestrator coordinates multiple Gemini-powered specialist agents that challenge, refine, and evolve the decision before presenting the final tactical recommendation.&lt;/p&gt;

&lt;p&gt;The visible disagreement between agents transformed the experience from “AI answering questions” into a realistic cricket strategy war-room.&lt;/p&gt;




&lt;h1&gt;
  
  
  🛠️ Tech Stack
&lt;/h1&gt;

&lt;h2&gt;
  
  
  AI &amp;amp; Agent Layer
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Google Gemini API&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;google-genai&lt;/code&gt; SDK&lt;/li&gt;
&lt;li&gt;Multi-agent orchestration inspired by Google ADK&lt;/li&gt;
&lt;li&gt;Gemini function/tool calling&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Backend
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Python&lt;/li&gt;
&lt;li&gt;FastAPI&lt;/li&gt;
&lt;li&gt;Pydantic&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Frontend
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Streamlit dashboard&lt;/li&gt;
&lt;li&gt;Custom dark-mode tactical UI&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Development Workflow
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Built using Google Antigravity&lt;/li&gt;
&lt;li&gt;AI-assisted vibe coding&lt;/li&gt;
&lt;li&gt;Autonomous file scaffolding and iteration&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  🏏 Example Match Scenario
&lt;/h1&gt;

&lt;p&gt;We tested Captain Cool using a pressure scenario:&lt;/p&gt;

&lt;h2&gt;
  
  
  Match Situation
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;RCB vs PBKS&lt;/li&gt;
&lt;li&gt;150/2 after 14.2 overs&lt;/li&gt;
&lt;li&gt;Virat Kohli on strike&lt;/li&gt;
&lt;li&gt;Yuzvendra Chahal bowling&lt;/li&gt;
&lt;li&gt;Heavy dew expected later&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  📊 Analyst Insight
&lt;/h1&gt;

&lt;p&gt;The Match Analyst agent triggered native tool execution and identified:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Kohli performs strongly against traditional spin,&lt;/li&gt;
&lt;li&gt;but his scoring rate drops against googly-heavy leg-spin variations on slower surfaces.&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  🧠 Internal Debate
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Strategist
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;“Attack with leg-spin now before the dew settles in.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Devil’s Advocate
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;“Risky. If Kohli survives the first six balls, the short boundary becomes a major issue.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Strategist Revision
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;“Fair. We hold the spinner back for one over and use hard-length pace into the surface first.”&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h1&gt;
  
  
  🏆 Final Captain’s Call
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;“Bring back the pace bowler from the Pavilion End. Use cross-seam hard lengths into the pitch and protect square boundaries. Delay spin until the new batter arrives.”&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h1&gt;
  
  
  ⚡ Biggest Learnings
&lt;/h1&gt;

&lt;p&gt;The most interesting realization from this build:&lt;/p&gt;

&lt;p&gt;Multi-agent systems feel dramatically more intelligent when disagreement is visible.&lt;/p&gt;

&lt;p&gt;The Devil’s Advocate agent consistently improved decisions by forcing counterfactual thinking.&lt;/p&gt;

&lt;p&gt;Instead of:&lt;br&gt;
“one smart AI”&lt;/p&gt;

&lt;p&gt;the project started feeling like:&lt;br&gt;
“a real strategy room.”&lt;/p&gt;




&lt;h1&gt;
  
  
  📸 Screenshots
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Streamlit Tactical Dashboard
&lt;/h2&gt;

&lt;p&gt;(Add your UI screenshot here)&lt;/p&gt;

&lt;h2&gt;
  
  
  Antigravity Development Workflow
&lt;/h2&gt;

&lt;p&gt;(Add your Antigravity + code screenshot here)&lt;/p&gt;

&lt;h2&gt;
  
  
  Multi-Agent Debate Output
&lt;/h2&gt;

&lt;p&gt;(Add your debate screenshot here)&lt;/p&gt;




&lt;h1&gt;
  
  
  🚀 Future Improvements
&lt;/h1&gt;

&lt;p&gt;If we continue developing Captain Cool, the next additions would be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Live Cricbuzz/ESPN integration&lt;/li&gt;
&lt;li&gt;Real-time win probability engine&lt;/li&gt;
&lt;li&gt;Voice commentary using Gemini Live API&lt;/li&gt;
&lt;li&gt;Memory across overs&lt;/li&gt;
&lt;li&gt;Multimodal pitch image analysis&lt;/li&gt;
&lt;li&gt;Full Google ADK orchestration&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  📂 GitHub Repository
&lt;/h1&gt;

&lt;p&gt;👉 &lt;a href="https://github.com/So-rush/captain-cool" rel="noopener noreferrer"&gt;https://github.com/So-rush/captain-cool&lt;/a&gt;&lt;/p&gt;




&lt;h1&gt;
  
  
  🏏 Final Thoughts
&lt;/h1&gt;

&lt;p&gt;Cricket is ultimately a captain’s game.&lt;/p&gt;

&lt;p&gt;Captain Cool was our attempt to explore what happens when tactical sports intelligence meets agentic AI reasoning inside the Google Gemini ecosystem.&lt;/p&gt;

&lt;p&gt;And honestly…&lt;/p&gt;

&lt;p&gt;watching AI agents argue about death-over bowling plans was way more fun than expected. 🏆&lt;/p&gt;

</description>
      <category>ai</category>
      <category>gemini</category>
      <category>python</category>
      <category>hackathon</category>
    </item>
  </channel>
</rss>
