<?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: Dev Vrat Trivedi</title>
    <description>The latest articles on DEV Community by Dev Vrat Trivedi (@dev_vrattrivedi_2fa260a0).</description>
    <link>https://dev.to/dev_vrattrivedi_2fa260a0</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%2F3889279%2Fa3f390b5-bee2-4a31-b42b-52a1c22b9629.jpg</url>
      <title>DEV Community: Dev Vrat Trivedi</title>
      <link>https://dev.to/dev_vrattrivedi_2fa260a0</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dev_vrattrivedi_2fa260a0"/>
    <language>en</language>
    <item>
      <title>How I Built an Agentic Election Assistant using Antigravity</title>
      <dc:creator>Dev Vrat Trivedi</dc:creator>
      <pubDate>Tue, 21 Apr 2026 17:18:49 +0000</pubDate>
      <link>https://dev.to/dev_vrattrivedi_2fa260a0/how-i-built-an-agentic-election-assistant-using-antigravity-3jf3</link>
      <guid>https://dev.to/dev_vrattrivedi_2fa260a0/how-i-built-an-agentic-election-assistant-using-antigravity-3jf3</guid>
      <description>&lt;p&gt;Hackathons are famous for pushing developers to their limits, but the recent Google for Developers PromptWar (Challenge 2) threw in a constraint that completely changed my workflow: Build a multimodal AI agent, but keep the GitHub repository strictly under 1MB.&lt;/p&gt;

&lt;p&gt;Oh, and you were only allowed a single main branch.&lt;/p&gt;

&lt;p&gt;Here is a technical breakdown of how I designed, built, and deployed an Interactive Election Assistant using Google Antigravity, Gemini 1.5 Pro, and Google Cloud Run—ending up with a final push size of just 4.07 KB.&lt;/p&gt;

&lt;p&gt;The Problem Statement&lt;br&gt;
The challenge was to create an interactive assistant that helps users understand the election process and timelines. It needed to demonstrate:&lt;/p&gt;

&lt;p&gt;Smart, dynamic assistance.&lt;/p&gt;

&lt;p&gt;Logical decision-making based on user context.&lt;/p&gt;

&lt;p&gt;Strict repository constraints (&amp;lt;1MB, 1 branch).&lt;/p&gt;

&lt;p&gt;The Architecture &amp;amp; Tech Stack&lt;br&gt;
To hit these goals without bloating the codebase, I went with a decoupled, serverless approach:&lt;/p&gt;

&lt;p&gt;The Brain: Gemini 1.5 Pro (via Google Cloud Vertex AI).&lt;/p&gt;

&lt;p&gt;The UI: Streamlit (perfect for fast data-driven UIs and rapid prototyping).&lt;/p&gt;

&lt;p&gt;The IDE: Google Antigravity (using Intent-Driven "Vibe" Coding).&lt;/p&gt;

&lt;p&gt;The Hosting: Google Cloud Run.&lt;/p&gt;

&lt;p&gt;Key Technical Wins (How to beat the constraints)&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Surviving the 1MB Git Limit&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In a previous project, a rogue venv folder blew up my repository to over 100MB, causing major deployment headaches. This time, I initialized a bulletproof Git setup before writing a single line of code.&lt;/p&gt;

&lt;p&gt;By creating a strict .gitignore on minute zero, I ensured no virtual environments or cache files ever touched the tracking index:&lt;/p&gt;

&lt;p&gt;"&lt;br&gt;
venv/&lt;br&gt;
&lt;strong&gt;pycache&lt;/strong&gt;/&lt;br&gt;
.env&lt;br&gt;
.DS_Store"&lt;br&gt;
The result: A fully functional AI application repository that weighed exactly 4.07 KB.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Vibe Coding with Google Antigravity&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Instead of manually typing out Streamlit boilerplate, I used the agentic features of Google Antigravity. I provided a highly detailed system prompt outlining my exact requirements:&lt;/p&gt;

&lt;p&gt;A sidebar for contextual inputs (Age, State/City).&lt;/p&gt;

&lt;p&gt;Dynamic logic (routing 18-year-olds to a "First-Time Voter" pipeline while blocking under-18s).&lt;/p&gt;

&lt;p&gt;ARIA tags (help="") on every input for accessibility scoring.&lt;/p&gt;

&lt;p&gt;Antigravity generated the core app.py and requirements.txt perfectly, allowing me to focus entirely on the cloud architecture rather than tweaking CSS or layout grids.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Zero-Trust Security on GCP&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A massive rookie mistake in open-source hackathons is hardcoding API keys. Pushing a .env file to a public GitHub repo is a guaranteed way to get your keys scraped in seconds.&lt;/p&gt;

&lt;p&gt;To achieve a 100% security score, my app.py only checked for environment variables (os.getenv("GOOGLE_API_KEY")). But how does it run in production?&lt;/p&gt;

&lt;p&gt;Instead of relying on config files, I injected the keys directly into the Google Cloud Run container at deploy time using the Cloud Shell:&lt;/p&gt;

&lt;p&gt;"gcloud run deploy election-assistant \&lt;br&gt;
  --source . \&lt;br&gt;
  --port 8080 \&lt;br&gt;
  --region us-central1 \&lt;br&gt;
  --allow-unauthenticated \&lt;br&gt;
  --set-env-vars="GOOGLE_API_KEY=my_secure_api_key"&lt;br&gt;
The GitHub repo stays perfectly clean, the AI evaluator gives full points for security practices, and the live application fetches the key directly from Google’s secure backend.&lt;/p&gt;

&lt;p&gt;The Final Product&lt;br&gt;
The resulting application instantly adapts to the user. If you select "17 Years Old," it blocks the voting timeline and explains future eligibility. If you select "18+," it generates an interactive, phase-by-phase guide to the election process, complete with a Gemini-powered chatbot to answer edge-case questions (like lost Voter IDs).&lt;/p&gt;

&lt;p&gt;Takeaways&lt;br&gt;
Building under strict constraints forces you to abandon sloppy habits. You can't rely on massive boilerplate templates when your limit is 1MB. You have to understand exactly what your code is doing, how your .gitignore works, and how to securely pass credentials in a serverless environment.&lt;/p&gt;

&lt;p&gt;The build season never stops! Let me know in the comments how you typically handle secrets management in your fast-paced hackathon builds. 👇&lt;/p&gt;

</description>
      <category>agents</category>
      <category>devchallenge</category>
      <category>gemini</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Building VibeFlow AI: Orchestrating Agentic Solutions for Large-Scale Sporting Venues</title>
      <dc:creator>Dev Vrat Trivedi</dc:creator>
      <pubDate>Mon, 20 Apr 2026 15:40:43 +0000</pubDate>
      <link>https://dev.to/dev_vrattrivedi_2fa260a0/building-vibeflow-ai-orchestrating-agentic-solutions-for-large-scale-sporting-venues-2i8b</link>
      <guid>https://dev.to/dev_vrattrivedi_2fa260a0/building-vibeflow-ai-orchestrating-agentic-solutions-for-large-scale-sporting-venues-2i8b</guid>
      <description>&lt;p&gt;Introduction&lt;/p&gt;

&lt;p&gt;As a basketball captain and a Computer Science student, I’ve spent a lot of time in stadiums. While the game on the court is thrilling, the "game" of navigating the venue—finding your gate, waiting for overpriced nachos, and deciphering confusing signage—is usually a loss.&lt;/p&gt;

&lt;p&gt;For the Hack2Skill x Google for Developers PromptWar, I decided to solve this using Agentic AI. Introducing VibeFlow AI: a multimodal event concierge built with Gemini 1.5 Pro and Google Antigravity.&lt;/p&gt;

&lt;p&gt;The Challenge&lt;br&gt;
Large-scale venues face three major friction points:&lt;/p&gt;

&lt;p&gt;Navigation Fatigue: Physical signs are hard to read in crowds.&lt;/p&gt;

&lt;p&gt;Crowd Bottlenecks: Gates and concession stands get overwhelmed.&lt;/p&gt;

&lt;p&gt;Accessibility Gaps: Real-time information is rarely inclusive.&lt;/p&gt;

&lt;p&gt;The Solution: VibeFlow AI&lt;br&gt;
VibeFlow isn't just a static app; it's a system of coordinated agents that act as the stadium's digital nervous system.&lt;/p&gt;

&lt;p&gt;🧠 Multimodal Vision Assistant&lt;/p&gt;

&lt;p&gt;Using Gemini 1.5 Pro, attendees can snap a photo of their physical ticket. The agent parses the sector, row, and seat, then generates a natural-language "walkthrough" to their location. No more squinting at maps.&lt;/p&gt;

&lt;p&gt;🗺️ Predictive Crowd Routing&lt;/p&gt;

&lt;p&gt;We integrated the Google Maps Platform with simulated gate density data. If Gate 4 is backed up, the agent proactively reroutes fans to Gate 2, ensuring a steady flow and shorter wait times.&lt;/p&gt;

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

&lt;p&gt;Orchestration: Google Antigravity (Agentic IDE)&lt;/p&gt;

&lt;p&gt;LLM: Gemini 1.5 Pro (Multimodal)&lt;/p&gt;

&lt;p&gt;Frontend: Streamlit&lt;/p&gt;

&lt;p&gt;Data State: Firebase Firestore&lt;/p&gt;

&lt;p&gt;Navigation: Google Maps Directions API&lt;/p&gt;

&lt;p&gt;Technical Deep Dive: The Agentic Workflow&lt;br&gt;
One of the most unique aspects of this build was using Google Antigravity. Instead of writing every line of boilerplate, I acted as the Architect, defining Standard Operating Procedures (SOPs) in an AGENTS.md file.&lt;/p&gt;

&lt;p&gt;Markdown&lt;/p&gt;

&lt;h1&gt;
  
  
  AGENTS.md Excerpt
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;Security: Sanitize all Vision inputs.&lt;/li&gt;
&lt;li&gt;Efficiency: Cache Gemini API responses using &lt;a class="mentioned-user" href="https://dev.to/st"&gt;@st&lt;/a&gt;.cache_data.&lt;/li&gt;
&lt;li&gt;Accessibility: Mandatory ARIA labels and alt-text generation.
This allowed the AI agents to "self-police" the code quality while I focused on the logic for the Ekana Stadium (Lucknow) case study.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Why Accessibility Matters&lt;br&gt;
We built VibeFlow with an "Inclusion-First" mindset. By leveraging Gemini's ability to describe surroundings, a visually impaired fan can point their camera at the field, and the AI will describe the current score, the crowd's energy, or the nearest exit path.&lt;/p&gt;

&lt;p&gt;Deployment &amp;amp; Links&lt;br&gt;
This project is live and ready for the PromptWar evaluation!&lt;/p&gt;

&lt;p&gt;🚀 Live Demo: &lt;a href="https://vibeflow-ai-154600966753.us-central1.run.app" rel="noopener noreferrer"&gt;https://vibeflow-ai-154600966753.us-central1.run.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;💻 GitHub Repo: &lt;a href="https://github.com/dev-vrats/VibeFlow-AI.git" rel="noopener noreferrer"&gt;https://github.com/dev-vrats/VibeFlow-AI.git&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Closing Thoughts&lt;/p&gt;

&lt;p&gt;Building this during the PromptWar taught me that the future of development isn't just writing code—it's orchestrating intelligence. Huge thanks to Hack2Skill and Google for Developers for the opportunity to build in this new "Agentic" era.&lt;/p&gt;

&lt;p&gt;What do you think is the biggest pain point at sporting events? Let’s discuss in the comments!&lt;/p&gt;

&lt;h1&gt;
  
  
  googlecloud #gemini #ai #productivity #sports #datascience #showdev
&lt;/h1&gt;

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