<?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: T Abishek</title>
    <description>The latest articles on DEV Community by T Abishek (@abishekthiyagarajan).</description>
    <link>https://dev.to/abishekthiyagarajan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F99mvlsfu5tfj9m7ku25d.png</url>
      <title>DEV Community: T Abishek</title>
      <link>https://dev.to/abishekthiyagarajan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abishekthiyagarajan"/>
    <language>en</language>
    <item>
      <title>My Friend Was Guessing Hostel Mess Portions, So I Built Him an Offline AI Macro Agent</title>
      <dc:creator>T Abishek</dc:creator>
      <pubDate>Mon, 05 Oct 2026 06:58:20 +0000</pubDate>
      <link>https://dev.to/abishekthiyagarajan/my-friend-was-guessing-hostel-mess-portions-so-i-built-him-an-offline-ai-macro-agent-2mk5</link>
      <guid>https://dev.to/abishekthiyagarajan/my-friend-was-guessing-hostel-mess-portions-so-i-built-him-an-offline-ai-macro-agent-2mk5</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-weekend-2026-10-01"&gt;Hacktoberfest Weekend Challenge: Build for a Friend&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;If you’ve ever lived in a freshers' hostel, you know the daily struggle: you start the semester with massive fitness goals, buy a brand-new tub of whey protein, hit the gym religiously, and then walk straight into the campus mess hall to face whatever unidentifiable, liquid-gold oily curry the kitchen decided to whip up today.&lt;/p&gt;

&lt;p&gt;The problem? Commercial fitness apps like MyFitnessPal are fundamentally built for Western grocery stores or standardised restaurant chains. Typing "hostel mess dal fry" or "random cafeteria paneer butter masala" into a generic macro tracker yields wildly inconsistent estimates-one database entry says a bowl is 100 calories, another says 450 calories, and none of them tells you how much you should actually scoop onto your tray to hit your specific targets without overshooting calories.&lt;/p&gt;

&lt;p&gt;Watching him stare soulfully at a tray of mystery gravy every afternoon, trying to calculate mental math while the lunch queue backed up behind him, was equal parts inspiring and tragic. I decided to fix it.&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpkfwa91iloxd1tutozn6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpkfwa91iloxd1tutozn6.png" alt=" " width="800" height="362"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fts31nzvc2ruwdew92v0k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fts31nzvc2ruwdew92v0k.png" alt=" " width="800" height="362"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&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/Abishekcps" rel="noopener noreferrer"&gt;
        Abishekcps
      &lt;/a&gt; / &lt;a href="https://github.com/Abishekcps/hostelmacro" rel="noopener noreferrer"&gt;
        hostelmacro
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;I built this as a local Streamlit application running on Windows. Instead of relying on a giant cloud API, I wanted the brain of this thing sitting right on his laptop, so it actually works when he needs it.&lt;/p&gt;

&lt;p&gt;Core Intelligence (Open Weights): I used Google's open-weight Gemma 2 (gemma2:2b) running locally via Ollama. It takes the messy hostel menu, the web context, and his macro goals, and acts as the reasoning engine to build the actual plate strategy.&lt;/p&gt;

&lt;p&gt;Web Tooling: I used the DuckDuckGo Search Python package for a keyless, zero-auth live web context. It pulls real-time nutritional profiles for specific Indian dishes before the LLM generates an answer, so it doesn't hallucinate calories.&lt;/p&gt;

&lt;p&gt;Tracing &amp;amp; Performance: I integrated Sentry Agent Tracing via their Python SDK. It monitors the execution timeline, creating transaction spans for both the web tool search latency and the local LLM generation time, so I can see exactly where the bottleneck is if the app feels slow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;Why didn't I wrap a closed cloud API in a website? Two words: Cost and Connectivity.&lt;/p&gt;

&lt;p&gt;When you are checking your macros three times a day, 30 days a month, API token bills add up fast for a broke college student. By using an open-weight model like Gemma 2, this app costs absolutely $0 to run forever.&lt;/p&gt;

&lt;p&gt;Secondly, hostel Wi-Fi can be notoriously spotty, especially during peak hours. Building this with local inference means the core intelligence works even when the internet drops completely. Furthermore, his personal health goals and daily dietary logs remain 100% private on his own hardware. Open source means anyone reading this can clone the repo, run ollama pull gemma2:2b, and have a fully functional AI assistant running on their machine tonight without setting up credit cards or secret API keys.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prize Categories:
&lt;/h2&gt;

&lt;p&gt;Best Use of Gemma: Running Google's open-weight gemma2:2b locally via Ollama as the core reasoning engine for macro calculations and meal planning.&lt;/p&gt;

&lt;p&gt;Best Use of Sentry Agent Tracing: Full telemetry integration tracking tool execution spans, error logging, and latency profiling across the local LLM inference and web context tools.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>weekendchallenge</category>
      <category>hf26challenge</category>
    </item>
  </channel>
</rss>
