惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
WordPress大学
WordPress大学
T
Tailwind CSS Blog
V
Visual Studio Blog
月光博客
月光博客
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Last Week in AI
Last Week in AI
阮一峰的网络日志
阮一峰的网络日志
量子位
有赞技术团队
有赞技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
Jina AI
Jina AI
雷峰网
雷峰网
博客园 - 【当耐特】
博客园 - 叶小钗
美团技术团队
宝玉的分享
宝玉的分享
IT之家
IT之家

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
"Captain Cool" — The Multi-Agent IPL Match Strategist
Gayatri Kad · 2026-05-17 · via DEV Community

Gayatri Kad

A submission for the Google Gemini Agentic Hackathon.

🏏 Captain Cool — The Multi-Agent IPL Match Strategist

A pure vanilla, zero-dependency AI orchestrator built on the Google Gemini tech stack for the Agentic Hackathon.

Captain Cool AI

Overview

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 four distinct AI agents in a real-time debate loop to make the ultimate tactical decision.

🤖 Agent Architecture

Our system uses a sequential reasoning loop built on ADK principles:

  1. 📊 Stats Analyst (Tool User): Uses Gemini Function Calling to query the getVenueContext tool, retrieving real-time data on dew factor, pitch behavior, and average scores for the selected stadium.
  2. ♟️ 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…

Overview

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.

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.

Architecture & Agent Roles

Our multi-agent system uses a sequential reasoning loop:

  1. Stats Analyst (Tool User): Uses Gemini Function Calling to query the getVenueContext tool, retrieving real-time-ish data on dew factor, pitch behavior, and average scores for the selected venue.

  2. 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").

  3. Devil's Advocate: Critiques the Strategist and points out the risks and flaws in the proposed plan.

  4. The Captain (Final Call): Reads the debate and makes the final gut decision. The output is delivered in authentic cricket dressing-room terminology.

Tech Stack & Hackathon Requirements Met

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

How It Meets the Hard Requirements

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

Prompts Used (Snippet)

Devil's Advocate:
"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."

Captain:
"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."

Running it locally

Since this project was built without Next.js or heavy frameworks, running it is simple:

  1. Double-click index.html to open it in your browser.
  2. Enter your Gemini API key in the UI.
  3. Input the match state and click "Execute Agent Strategy".

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

Vibe-coded in 3 hours using Google Antigravity.