<?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>Forem: Farhan Mir</title>
    <description>The latest articles on Forem by Farhan Mir (@twnhvaobpjyk).</description>
    <link>https://forem.com/twnhvaobpjyk</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%2F3793302%2F5fdf33e8-c899-43ec-aeca-08507fbf62c3.png</url>
      <title>Forem: Farhan Mir</title>
      <link>https://forem.com/twnhvaobpjyk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/twnhvaobpjyk"/>
    <language>en</language>
    <item>
      <title>The Spirited Oracle: A Multi-Agent Ghibli Apartment Hunter Powered by Gemini</title>
      <dc:creator>Farhan Mir</dc:creator>
      <pubDate>Thu, 26 Feb 2026 03:03:26 +0000</pubDate>
      <link>https://forem.com/twnhvaobpjyk/the-spirited-oracle-a-multi-agent-ghibli-apartment-hunter-powered-by-gemini-5bm6</link>
      <guid>https://forem.com/twnhvaobpjyk/the-spirited-oracle-a-multi-agent-ghibli-apartment-hunter-powered-by-gemini-5bm6</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/mlh/built-with-google-gemini-02-25-26"&gt;Built with Google Gemini: Writing Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built with Google Gemini: The Spirited Oracle
&lt;/h2&gt;

&lt;p&gt;Let's be real: the off-campus housing market is a minefield. You see a listing near Rutgers for $1,400/mo, but by the time you add utilities, parking, mandatory renter's insurance, and a gym membership (because the building's "fitness center" is a single broken treadmill), you're staring at $1,850/mo. Add in the anxiety of wondering if the neighborhood is safe or if the commute is actually 10 minutes like the landlord claims, and it's a nightmare. &lt;/p&gt;

&lt;p&gt;I got tired of the runaround, so for the AI Agents Challenge 2025, my team and I built &lt;strong&gt;The Spirited Oracle&lt;/strong&gt;—an apartment-hunting tool reimagined as a Studio Ghibli film. &lt;/p&gt;

&lt;p&gt;It uses a multi-agent AI system to reveal the &lt;em&gt;true&lt;/em&gt; cost of renting. Instead of reading a boring spec sheet, you are guided by six specialized agents—voiced by beloved Ghibli characters using ElevenLabs and powered by &lt;strong&gt;Google Gemini 2.5 Flash&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Multi-Agent Architecture
&lt;/h3&gt;

&lt;p&gt;I designed a dual-pipeline architecture (Batch and Single) where agents pull real-world data and synthesize it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🚂 &lt;strong&gt;The Conductor (Spirited Away):&lt;/strong&gt; Calculates real commute times via OSRM routing.&lt;/li&gt;
&lt;li&gt;💸 &lt;strong&gt;Lin (Spirited Away):&lt;/strong&gt; Extracts hidden fees and calculates the &lt;em&gt;true&lt;/em&gt; monthly cost.&lt;/li&gt;
&lt;li&gt;⚖️ &lt;strong&gt;The Baron (The Cat Returns):&lt;/strong&gt; Computes a deterministic ZORI market fairness percentile.&lt;/li&gt;
&lt;li&gt;🌿 &lt;strong&gt;Kiki (Kiki's Delivery Service):&lt;/strong&gt; Calculates Walk Scores and Safety via live OpenStreetMap data.&lt;/li&gt;
&lt;li&gt;🖤 &lt;strong&gt;The Soot Sprites:&lt;/strong&gt; Dig through the fine print to find buried fees.&lt;/li&gt;
&lt;li&gt;🔧 &lt;strong&gt;Kamaji:&lt;/strong&gt; Orchestrates the findings into a final "Spirit Match" score and narrative using Gemini.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Gemini takes raw JSON from APIs (like Overpass and OSRM) and translates it into character-driven insights. Finally, Gemini powers a chat interface where you can ask &lt;strong&gt;Howl&lt;/strong&gt; follow-up questions with the full listing context!&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;(Author Note: Don't forget to embed your Cloud Run/Vultr link here!)&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/Sharanya-Raj/RealEstateStory" rel="noopener noreferrer"&gt;The Spirited Oracle GitHub Repo&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://devpost.com/software/the-spirited-oracle" rel="noopener noreferrer"&gt;Devpost Submission&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;![Insert a cool screenshot of your UI here!]&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;p&gt;I'm usually a backend/systems architecture guy, so wiring up a dual pipeline for a multi-agent setup was a massive, incredibly fun puzzle. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Grounding LLMs in Reality:&lt;/strong&gt; The biggest takeaway was learning how to keep AI agents grounded. If you ask an LLM if a rent price is "fair," it will hallucinate. Instead, I built a deterministic fairness algorithm using Zillow data (ZORI/ZORDI). The LLM's job wasn't to &lt;em&gt;calculate&lt;/em&gt; fairness, but to &lt;em&gt;narrate&lt;/em&gt; the deterministic data we fed it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. State Management Across Agents:&lt;/strong&gt;&lt;br&gt;
Getting six different AI agents to hand off data smoothly, in parallel, without breaking the application state or causing a massive bottleneck, was a trial by fire. We had to implement strict fallback handlers to keep the pipeline moving if an API failed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Google Gemini Feedback
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The Good:&lt;/strong&gt;&lt;br&gt;
I won't sugarcoat it: &lt;strong&gt;Gemini 2.5 Flash is ridiculously fast.&lt;/strong&gt; When you have six distinct agents running in parallel to generate a UI, latency is the enemy. Flash delivered high-quality, persona-accurate text almost instantly. It adopted the Ghibli personas (from a grumpy Kamaji to a polite Baron) flawlessly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Friction:&lt;/strong&gt;&lt;br&gt;
The main friction point came when trying to force Gemini to output strictly formatted JSON for the agent handoffs. Sometimes, it would get a little too creative, appending conversational fluff (like &lt;em&gt;"Here is your JSON:"&lt;/em&gt;) which broke our parsing logic. &lt;/p&gt;

&lt;p&gt;I ended up writing aggressive fallback handlers and tweaking the system prompts heavily to enforce pure JSON outputs. It would be amazing to see even stricter native JSON-mode enforcement in future iterations. But overall, once the guardrails were up, Gemini proved to be an absolute powerhouse for agentic workflows.&lt;/p&gt;

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