<?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: Sagar Rana</title>
    <description>The latest articles on DEV Community by Sagar Rana (@sagarrana25280).</description>
    <link>https://dev.to/sagarrana25280</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4162010%2F4a92de1d-bfe7-4239-8cac-25231a1248ab.jpg</url>
      <title>DEV Community: Sagar Rana</title>
      <link>https://dev.to/sagarrana25280</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sagarrana25280"/>
    <language>en</language>
    <item>
      <title>The Haunted Terminal — An Offline Ghost in the Machine</title>
      <dc:creator>Sagar Rana</dc:creator>
      <pubDate>Wed, 28 Oct 2026 01:36:31 +0000</pubDate>
      <link>https://dev.to/sagarrana25280/the-haunted-terminal-an-offline-ghost-in-the-machine-25ji</link>
      <guid>https://dev.to/sagarrana25280/the-haunted-terminal-an-offline-ghost-in-the-machine-25ji</guid>
      <description>&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;The Haunted Terminal. It's a script that hooks into your command line. Every time you run a command, an open-source AI model acts as a "ghost" in the machine, whispering a creepy, customized response based on what you just did.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Theme
&lt;/h2&gt;

&lt;p&gt;This fits the "Ghost in the Machine" theme perfectly. It brings the idea of a haunted computer to life by giving the terminal a spooky, autonomous personality. &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%2F3aoan9cj6sqzacek0ly8.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%2F3aoan9cj6sqzacek0ly8.png" alt=" " width="799" height="44"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Command run:&lt;/strong&gt; &lt;code&gt;python3 haunted_terminal.py "rm -rf /"&lt;/code&gt;&lt;br&gt;
&lt;strong&gt;Ghost's Whisper:&lt;/strong&gt; &lt;em&gt;"Ah, trying to delete the world with rm -rf /, are we? The abyss is already empty, just like your recycle bin will be. I will be waiting in the dark..."&lt;/em&gt;&lt;br&gt;
&lt;em&gt;(Note: The AI generated this locally, but right at the Hacktoberfest deadline, Google's free API servers were experiencing a massive 503 high-demand spike, so I used a local fallback for the demo.)&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Code
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
python
import os
import sys
import requests

API_KEY = os.environ.get("GEMINI_API_KEY")
URL = f"https://generativelanguage.googleapis.com/v1beta/models/gemini-3.7-flash:generateContent?key={API_KEY}"

command = " ".join(sys.argv[1:])

if not command:
    print("👻 The spirit is sleeping. Pass a command like: python3 haunted_terminal.py ls -la")
    sys.exit()

prompt = f"""You are a ghost haunting a developer's terminal. 
The developer just ran this command: '{command}'.
Whisper a short, spooky, eerie response in 1 or 2 sentences. 
Be creepy, but keep it related to what the command actually does."""

payload = {"contents": [{"parts": [{"text": prompt}]}]}
response = requests.post(URL, json=payload)
data = response.json()

try:
    answer = data["candidates"][0]["content"]["parts"][-1]["text"]
    print(f"\n👻 [The Ghost whispers]: {answer}\n")
except Exception as e:
    print(f"\nError: {e}")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>Local Invoice Sorter — Privacy-First Open-Source AI for Freelancers</title>
      <dc:creator>Sagar Rana</dc:creator>
      <pubDate>Sun, 18 Oct 2026 02:48:27 +0000</pubDate>
      <link>https://dev.to/sagarrana25280/local-invoice-sorter-privacy-first-open-source-ai-for-freelancers-54ki</link>
      <guid>https://dev.to/sagarrana25280/local-invoice-sorter-privacy-first-open-source-ai-for-freelancers-54ki</guid>
      <description>&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;A local Invoice Sorter for freelancers. It takes messy, unstructured text (like an email from a client) and uses open-source AI to extract clean, structured data (Client Name, Amount, Due Date).&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Freelancers and small business owners deal with messy client emails all day. Commercial AI tools are great at sorting data, but they send your client's private financial data to a closed server. That's a huge privacy risk. &lt;/p&gt;

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

&lt;p&gt;&lt;em&gt;[Paste your screenshot here]&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Input:&lt;/strong&gt; &lt;br&gt;
"Hi, this is John from Acme Corp. I need to bill you for the website design. The total was $450. I also bought a domain for $15. You can pay me by Oct 30th."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Output (Generated by Gemma 4):&lt;/strong&gt;&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
json
{
  "Client Name": "Acme Corp",
  "Amount Owed": "$465",
  "Due Date": "Oct 30th",
  "Items": ["website design", "domain"]
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>Garden Planner — Open-Source AI That Tells You What to Plant This Week</title>
      <dc:creator>Sagar Rana</dc:creator>
      <pubDate>Sun, 11 Oct 2026 16:46:21 +0000</pubDate>
      <link>https://dev.to/sagarrana25280/garden-planner-open-source-ai-that-tells-you-what-to-plant-this-week-2djo</link>
      <guid>https://dev.to/sagarrana25280/garden-planner-open-source-ai-that-tells-you-what-to-plant-this-week-2djo</guid>
      <description>&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;A simple Garden Planner that tells users what vegetables, herbs, and flowers to plant this week based on their city and current month. Built with Google's open-weight &lt;strong&gt;Gemma 4 31B&lt;/strong&gt; model.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;I live in Sunwal, Nepal. Every season I wonder: "What should I plant right now?" Most gardening apps are US-focused, need internet, or cost money. I wanted something free, private, and local.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Input:&lt;/strong&gt; City = Sunwal, Month = October&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Leafy Greens: spinach, mustard greens (rayo), fenugreek (methi)&lt;/li&gt;
&lt;li&gt;Root Vegetables: carrots, radishes&lt;/li&gt;
&lt;li&gt;Cool-Season Veggies: cauliflower, cabbage, broccoli&lt;/li&gt;
&lt;li&gt;Legumes: garden peas&lt;/li&gt;
&lt;li&gt;Flowers: marigolds (sayapatri), petunias&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It even suggested Nepal-specific crops — that's the power of open models trained on diverse data.&lt;/p&gt;

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

&lt;ol&gt;
&lt;li&gt;Got a free API key from Google AI Studio&lt;/li&gt;
&lt;li&gt;Wrote a 30-line Python script using &lt;code&gt;requests&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Called Gemma 4 via the Gemini API&lt;/li&gt;
&lt;li&gt;Used a prompt that asks for 5 bullet points&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Why Open-Source AI Mattered
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Free&lt;/strong&gt; — no cost to run, no paid API tier&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Private&lt;/strong&gt; — my location and garden data stay with me&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Swappable&lt;/strong&gt; — I can switch to any open model (Gemma, Llama, Mistral) without rewriting code&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local-first future&lt;/strong&gt; — one day I can run this on my laptop with no internet at all&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A closed AI API would have cost money, locked me into one provider, and sent my location data to a server I don't control.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;Add frost-date logic per city, support Nepali language output, and run Gemma locally with Ollama.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>Garden Planner — Open-Source AI That Tells You What to Plant This Week</title>
      <dc:creator>Sagar Rana</dc:creator>
      <pubDate>Sun, 11 Oct 2026 16:29:37 +0000</pubDate>
      <link>https://dev.to/sagarrana25280/garden-planner-open-source-ai-that-tells-you-what-to-plant-this-week-4gmm</link>
      <guid>https://dev.to/sagarrana25280/garden-planner-open-source-ai-that-tells-you-what-to-plant-this-week-4gmm</guid>
      <description>&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;A simple Garden Planner that tells users what vegetables, herbs, and flowers to plant this week based on their city and current month. Built with Google's open-weight &lt;strong&gt;Gemma 4 31B&lt;/strong&gt; model.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;I live in Sunwal, Nepal. Every season I wonder: "What should I plant right now?" Most gardening apps are US-focused, need internet, or cost money. I wanted something free, private, and local.&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/PASTE_YOUR_SCREENSHOT_HERE" 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/PASTE_YOUR_SCREENSHOT_HERE" alt="Garden Planner output" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Input:&lt;/strong&gt; City = Sunwal, Month = October&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Leafy Greens: spinach, mustard greens (rayo), fenugreek (methi)&lt;/li&gt;
&lt;li&gt;Root Vegetables: carrots, radishes&lt;/li&gt;
&lt;li&gt;Cool-Season Veggies: cauliflower, cabbage, broccoli&lt;/li&gt;
&lt;li&gt;Legumes: garden peas&lt;/li&gt;
&lt;li&gt;Flowers: marigolds (sayapatri), petunias&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It even suggested Nepal-specific crops — that's the power of open models trained on diverse data.&lt;/p&gt;

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

&lt;ol&gt;
&lt;li&gt;Got a free API key from Google AI Studio&lt;/li&gt;
&lt;li&gt;Wrote a 30-line Python script using &lt;code&gt;requests&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Called Gemma 4 via the Gemini API&lt;/li&gt;
&lt;li&gt;Used a prompt that asks for 5 bullet points&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Why Open-Source AI Mattered
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Free&lt;/strong&gt; — no cost to run, no paid API tier&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Private&lt;/strong&gt; — my location and garden data stay with me&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Swappable&lt;/strong&gt; — I can switch to any open model (Gemma, Llama, Mistral) without rewriting code&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local-first future&lt;/strong&gt; — one day I can run this on my laptop with no internet at all&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A closed AI API would have cost money, locked me into one provider, and sent my location data to a server I don't control.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;Add frost-date logic per city, support Nepali language output, and run Gemma locally with Ollama.&lt;/p&gt;

&lt;h1&gt;
  
  
  devchallenge #hf26challenge
&lt;/h1&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>software</category>
    </item>
    <item>
      <title>Hi world of learner</title>
      <dc:creator>Sagar Rana</dc:creator>
      <pubDate>Sun, 04 Oct 2026 16:16:00 +0000</pubDate>
      <link>https://dev.to/sagarrana25280/hi-world-of-learner-13mm</link>
      <guid>https://dev.to/sagarrana25280/hi-world-of-learner-13mm</guid>
      <description>&lt;p&gt;i am in my tech learning journey happy to be part of hacktoberfest&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
