<?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: Gayatri Kad</title>
    <description>The latest articles on DEV Community by Gayatri Kad (@gayatri_kad_1131).</description>
    <link>https://dev.to/gayatri_kad_1131</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%2F3936239%2Fa3aa0f24-e30c-4fe3-9aad-87c3fa11e7d0.jpg</url>
      <title>DEV Community: Gayatri Kad</title>
      <link>https://dev.to/gayatri_kad_1131</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gayatri_kad_1131"/>
    <language>en</language>
    <item>
      <title>"Captain Cool" — The Multi-Agent IPL Match Strategist</title>
      <dc:creator>Gayatri Kad</dc:creator>
      <pubDate>Sun, 17 May 2026 12:33:22 +0000</pubDate>
      <link>https://dev.to/gayatri_kad_1131/captain-cool-the-multi-agent-ipl-match-strategist-3h9f</link>
      <guid>https://dev.to/gayatri_kad_1131/captain-cool-the-multi-agent-ipl-match-strategist-3h9f</guid>
      <description>&lt;p&gt;&lt;strong&gt;A submission for simulating cricket strategy using Google Gemini at Agentic Hackathon at GDG Cloud Pune with mentors &lt;a class="mentioned-user" href="https://dev.to/pratik_kale"&gt;@pratik_kale&lt;/a&gt; &amp;amp; &lt;a class="mentioned-user" href="https://dev.to/antrixsh_gupta"&gt;@antrixsh_gupta&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/gayatri110204" rel="noopener noreferrer"&gt;
        gayatri110204
      &lt;/a&gt; / &lt;a href="https://github.com/gayatri110204/captain-cool" rel="noopener noreferrer"&gt;
        captain-cool
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;🏏 Captain Cool — The Multi-Agent IPL Match Strategist&lt;/h1&gt;
&lt;/div&gt;
&lt;blockquote&gt;
&lt;p&gt;A pure vanilla, zero-dependency AI orchestrator built on the &lt;strong&gt;Google Gemini tech stack&lt;/strong&gt; for the Agentic Hackathon.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/gayatri110204/captain-cool/./captain_cool_cover.png"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fgayatri110204%2Fcaptain-cool%2FHEAD%2F.%2Fcaptain_cool_cover.png" alt="Captain Cool AI"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Overview&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;Cricket is a captain's game. To win an IPL match, you need to read the pitch, analyze the stats, anticipate the opponent, and make a gut call. "Captain Cool" is an AI-powered IPL Match Strategist that orchestrates &lt;strong&gt;four distinct AI agents&lt;/strong&gt; in a real-time debate loop to make the ultimate tactical decision.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;🤖 Agent Architecture&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;Our system uses a sequential reasoning loop built on ADK principles:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;📊 &lt;strong&gt;Stats Analyst (Tool User):&lt;/strong&gt; Uses &lt;strong&gt;Gemini Function Calling&lt;/strong&gt; to query the &lt;code&gt;getVenueContext&lt;/code&gt; tool, retrieving real-time data on dew factor, pitch behavior, and average scores for the selected stadium.&lt;/li&gt;
&lt;li&gt;♟️ &lt;strong&gt;Strategist:&lt;/strong&gt; Takes the match context and Analyst's data to propose a highly tactical, data-driven move (e.g., "Bowl the left-arm spinner now because the RHB strike rate against…&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/gayatri110204/captain-cool" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Overview&lt;/p&gt;

&lt;p&gt;Cricket is a captain's game. To win an IPL match, you need to read the pitch, analyze the stats, anticipate the opponent, and make a gut call. "Captain Cool" is an AI-powered IPL Match Strategist built entirely on the Google Gemini tech stack.&lt;/p&gt;

&lt;p&gt;Instead of a single prompt, Captain Cool orchestrates four distinct AI agents using principles from the Agent Development Kit (ADK) in a real-time debate loop.&lt;/p&gt;

&lt;p&gt;Architecture &amp;amp; Agent Roles&lt;/p&gt;

&lt;p&gt;Our multi-agent system uses a sequential reasoning loop:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Stats Analyst (Tool User): Uses Gemini Function Calling to query the &lt;code&gt;getVenueContext&lt;/code&gt; tool, retrieving real-time-ish data on dew factor, pitch behavior, and average scores for the selected venue.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Strategist: Takes the match context and Analyst's data to propose a highly tactical, data-driven move (e.g., "Bowl the left-arm spinner now because the RHB strike rate against SLA is low").&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Devil's Advocate: Critiques the Strategist and points out the risks and flaws in the proposed plan.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The Captain (Final Call): Reads the debate and makes the final gut decision. The output is delivered in authentic cricket dressing-room terminology.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Tech Stack &amp;amp; Hackathon Requirements Met&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AI / LLM: Google Gemini (&lt;code&gt;gemini-2.5-pro&lt;/code&gt; &amp;amp; &lt;code&gt;gemini-2.5-flash&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;SDK: &lt;code&gt;@google/genai&lt;/code&gt; (Official JS/TS SDK loaded natively via ESM)&lt;/li&gt;
&lt;li&gt;Framework &amp;amp; Orchestration: Built with ADK principles for multi-agent architecture&lt;/li&gt;
&lt;li&gt;Multimodal Flair: UI cover art generated using Google's Imagen 3 / Lyria ecosystem&lt;/li&gt;
&lt;li&gt;IDE: Vibe-coded entirely using Google Antigravity in a 3-hour session&lt;/li&gt;
&lt;li&gt;Frontend: Pure Vanilla HTML/CSS/JS with zero dependencies&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;How It Meets the Hard Requirements&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Three or more distinct agents: Yes — Analyst, Strategist, Advocate, Captain.&lt;/li&gt;
&lt;li&gt;Real Tool Call: The Analyst uses Gemini Function Calling (&lt;code&gt;getVenueContext&lt;/code&gt;) to pull pitch stats.&lt;/li&gt;
&lt;li&gt;Multi-Turn Reasoning Loop: Strategist proposes → Advocate critiques → Captain resolves.&lt;/li&gt;
&lt;li&gt;Explainability in Cricket Jargon: The Captain's prompt forces authentic cricket terminology like "leggie", "death overs", and "turning track" instead of ML jargon.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Prompts Used (Snippet)&lt;/p&gt;

&lt;p&gt;Devil's Advocate:&lt;br&gt;
"You are the Devil's Advocate. Your job is to critique the Strategist's proposal. Point out the risks and why it might backfire. Keep your response concise and direct. Do not write huge paragraphs."&lt;/p&gt;

&lt;p&gt;Captain:&lt;br&gt;
"You are MS Dhoni / Rohit Sharma (Captain Cool). Make the final decision based on the debate. Explain your reasoning using authentic dressing-room cricket terminology like 'leggie' and 'death overs'. Keep your final decision short, authoritative, and to the point."&lt;/p&gt;

&lt;p&gt;Running it locally&lt;/p&gt;

&lt;p&gt;Since this project was built without Next.js or heavy frameworks, running it is simple:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Double-click &lt;code&gt;index.html&lt;/code&gt; to open it in your browser.&lt;/li&gt;
&lt;li&gt;Enter your Gemini API key in the UI.&lt;/li&gt;
&lt;li&gt;Input the match state and click "Execute Agent Strategy".&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No &lt;code&gt;npm install&lt;/code&gt; or servers required. It works end-to-end directly in the browser using the &lt;code&gt;@google/genai&lt;/code&gt; library via ESM.&lt;/p&gt;

&lt;p&gt;Vibe-coded in 3 hours using Google Antigravity.&lt;/p&gt;

</description>
      <category>gdgcloudpune</category>
      <category>gdgpune</category>
      <category>buildwithai</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
