<?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: Kavya Trivedi</title>
    <description>The latest articles on DEV Community by Kavya Trivedi (@kavyatrivedi).</description>
    <link>https://dev.to/kavyatrivedi</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%2F2925859%2F456fdb77-d26e-4bb6-adf1-9524b38d9707.png</url>
      <title>DEV Community: Kavya Trivedi</title>
      <link>https://dev.to/kavyatrivedi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kavyatrivedi"/>
    <language>en</language>
    <item>
      <title>From "Black Box" to Self-Healing: My Journey Building an Autonomous AI Mechanic</title>
      <dc:creator>Kavya Trivedi</dc:creator>
      <pubDate>Mon, 15 Dec 2025 07:14:34 +0000</pubDate>
      <link>https://dev.to/kavyatrivedi/from-black-box-to-self-healing-my-journey-building-an-autonomous-ai-mechanic-2e5l</link>
      <guid>https://dev.to/kavyatrivedi/from-black-box-to-self-healing-my-journey-building-an-autonomous-ai-mechanic-2e5l</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/googlekagglechallenge"&gt;Google AI Agents Writing Challenge&lt;/a&gt;: Learning Reflections&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction: The "Aha!" Moment
&lt;/h2&gt;

&lt;p&gt;Before taking the &lt;strong&gt;5-Day AI Agents Intensive Course&lt;/strong&gt; by Google and Kaggle, I viewed AI primarily as a chatbot—a passive entity waiting for a prompt. I asked, it answered. But as I moved through the modules, specifically learning about &lt;strong&gt;Tooling&lt;/strong&gt; and &lt;strong&gt;Reasoning Loops&lt;/strong&gt;, my perspective shifted entirely.&lt;/p&gt;

&lt;p&gt;I realized that AI doesn't just have to &lt;em&gt;talk&lt;/em&gt;; it can &lt;em&gt;do&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;This realization culminated in my capstone project: &lt;strong&gt;The Self-Healing AI Agent System&lt;/strong&gt;. I wanted to answer a specific question: &lt;em&gt;If an AI Agent can write code, can it also fix itself when it crashes?&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem: AI as a "Black Box"
&lt;/h2&gt;

&lt;p&gt;One of the key takeaways from the course was the importance of &lt;strong&gt;Observability&lt;/strong&gt;. When we build complex systems, things break. Usually, when software crashes, it spits out a long, messy stack trace that looks like gibberish to non-developers (and sometimes even to developers!).&lt;/p&gt;

&lt;p&gt;I learned that while we can use AI to write code, the debugging process is still manually intensive. I wanted to close that loop.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Solution: An Autonomous AI Team
&lt;/h2&gt;

&lt;p&gt;Applying the &lt;strong&gt;Multi-Agent Systems&lt;/strong&gt; concepts from the course, I designed a system that mimics a real-world engineering team. Instead of one giant AI trying to do everything, I broke the problem down into three distinct roles.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Architecture
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Agent A (The Patient):&lt;/strong&gt; This is a research agent I intentionally designed with flaws (like tool type mismatches) so it would generate complex crashes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agent B (The Doctor):&lt;/strong&gt; An observability agent. Using the &lt;strong&gt;Google ADK&lt;/strong&gt;, I gave it custom tools like &lt;code&gt;read_log_file&lt;/code&gt; and &lt;code&gt;find_last_error_in_trace&lt;/code&gt;. Its only job is to diagnose &lt;em&gt;why&lt;/em&gt; the patient died.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agent C (The Surgeon):&lt;/strong&gt; The software engineer. This agent has "dangerous" tools like &lt;code&gt;read_code_file&lt;/code&gt; and &lt;code&gt;apply_fix_to_file&lt;/code&gt;. It takes the Doctor's diagnosis and actually rewrites the Python source code to fix the bug.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Key Learnings &amp;amp; Challenges
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. The Power of "Tools"
&lt;/h3&gt;

&lt;p&gt;The most significant learning curve was defining &lt;strong&gt;Tools&lt;/strong&gt;. The course taught me that an agent is only as good as the tools you give it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Challenge:&lt;/strong&gt; Initially, the "Surgeon" agent would hallucinate fixes that didn't match the file structure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fix:&lt;/strong&gt; I had to implement robust file I/O tools (&lt;code&gt;read_code&lt;/code&gt;, &lt;code&gt;apply_fix&lt;/code&gt;) that acted as guardrails, ensuring the agent interacted with the file system correctly.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Multi-Agent Orchestration
&lt;/h3&gt;

&lt;p&gt;I learned that agents need to collaborate asynchronously. I used a file-based state system where the "Doctor" leaves a diagnosis note that the "Surgeon" picks up. This decoupled architecture made the system much more resilient than trying to pass massive prompt contexts back and forth.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Observability is King
&lt;/h3&gt;

&lt;p&gt;Using the &lt;strong&gt;LoggingPlugin&lt;/strong&gt; from the ADK was a game-changer. It allowed me to capture deep execution traces. The "Doctor" agent could essentially "read the mind" of the crashed agent by analyzing these logs, turning raw data into actionable insights.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Result
&lt;/h2&gt;

&lt;p&gt;The final result is a system where a crash turns into a fix in about 10 seconds, completely autonomously.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Crash:&lt;/strong&gt; The Patient fails.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Diagnose:&lt;/strong&gt; The Doctor identifies the root cause (e.g., "TypeError in line 45").&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Heal:&lt;/strong&gt; The Surgeon rewrites line 45.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Seeing the &lt;code&gt;gemini-2.5-flash-lite&lt;/code&gt; model successfully edit its own source code to recover from a crash was a definitive "future is here" moment for me.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;The Google &amp;amp; Kaggle Intensive wasn't just about learning syntax; it was about learning a new paradigm of software development. We are moving away from writing static code to orchestrating intelligent agents that can maintain themselves.&lt;/p&gt;

&lt;p&gt;Building the &lt;strong&gt;Self-Healing AI Agent System&lt;/strong&gt; proved to me that the future of software is resilient, self-maintaining, and agentic.&lt;/p&gt;




&lt;h3&gt;
  
  
  Project Links
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Repository:&lt;/strong&gt; &lt;a href="https://github.com/trivedikavya/Self-Healing-AI-System" rel="noopener noreferrer"&gt;https://github.com/trivedikavya/Self-Healing-AI-System&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Demo Video:&lt;/strong&gt; &lt;a href="https://youtu.be/kbjBXdfiW68?si=BrbYHlNcMMhVv4Yk" rel="noopener noreferrer"&gt;https://youtu.be/kbjBXdfiW68?si=BrbYHlNcMMhVv4Yk&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>agenticpostgreschallenge</category>
      <category>agentaichallenge</category>
    </item>
    <item>
      <title>🌍 Google Maps Platform Awards 2025</title>
      <dc:creator>Kavya Trivedi</dc:creator>
      <pubDate>Sat, 16 Aug 2025 05:58:55 +0000</pubDate>
      <link>https://dev.to/kavyatrivedi/google-maps-platform-awards-2025-261o</link>
      <guid>https://dev.to/kavyatrivedi/google-maps-platform-awards-2025-261o</guid>
      <description>&lt;p&gt;This year &lt;strong&gt;marks 20 years of mapping innovation&lt;/strong&gt; with the Google Maps Platform Awards, celebrating projects that push the boundaries of what’s possible with location-based technology.&lt;br&gt;
From startups to student hacks, the event highlights how developers use maps, geolocation, and environmental data to solve real-world problems.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🚀 My Entry: EcoCarto&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I am proud to share that my project EcoCarto has been nominated! 🎉&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;EcoCarto&lt;/strong&gt; is an Interactive Environmental Health Map that transforms complex ecological data into simple, actionable insights.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Provides a location-based Eco Score (AQI, vegetation, humidity, temperature)&lt;/li&gt;
&lt;li&gt;Highlights risk zones (Green / Moderate / High-Risk)&lt;/li&gt;
&lt;li&gt;Shows historical trends (2015–2024)&lt;/li&gt;
&lt;li&gt;Suggests smart plantation strategies&lt;/li&gt;
&lt;li&gt;Generates downloadable eco-reports&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;🌱 The goal: &lt;strong&gt;Make ecological awareness accessible and actionable for everyone.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;💡 Why It Matters&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We live in a time of rising pollution, shrinking green cover, and unpredictable climate patterns.&lt;br&gt;
EcoCarto helps individuals, planners, and communities make informed environmental decisions powered by &lt;strong&gt;Google Maps Platform&lt;/strong&gt; tools like Geocoding, Places API, and Maps JavaScript API.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🙌 How You Can Help&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;EcoCarto is competing in the &lt;strong&gt;Google Maps Platform Awards&lt;/strong&gt;.&lt;br&gt;
Your support means the world 🌎 and your vote can help amplify its impact.&lt;br&gt;
&lt;strong&gt;Please vote it means A Lot for me&lt;/strong&gt;&lt;br&gt;
👉 &lt;strong&gt;Vote Here&lt;/strong&gt;: &lt;a href="https://mapsplatform.google.com/awards/nominees/ecocarto/" rel="noopener noreferrer"&gt;Vote-here&lt;/a&gt;&lt;br&gt;
👉 Try EcoCarto Live: &lt;a href="https://v0-eco-health-map-project.vercel.app" rel="noopener noreferrer"&gt;Live-here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🏆 Let’s Put Climate Data on the Map&lt;/p&gt;

&lt;p&gt;Together, we can turn awareness into action and data into change.&lt;br&gt;
&lt;em&gt;Thank you for voting, supporting, and helping EcoCarto grow.&lt;/em&gt; 💚&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>google</category>
      <category>beginners</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
