<?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: varshith2000</title>
    <description>The latest articles on DEV Community by varshith2000 (@varshith2000).</description>
    <link>https://dev.to/varshith2000</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%2F528005%2Fa9dce9c0-16ea-4ffe-9fbf-6c751414e1d2.png</url>
      <title>DEV Community: varshith2000</title>
      <link>https://dev.to/varshith2000</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/varshith2000"/>
    <language>en</language>
    <item>
      <title>Ghost in the Machine: an AI haunted house that runs with the lights (and the internet) off</title>
      <dc:creator>varshith2000</dc:creator>
      <pubDate>Sat, 31 Oct 2026 23:36:33 +0000</pubDate>
      <link>https://dev.to/varshith2000/ghost-in-the-machine-an-ai-haunted-house-that-runs-with-the-lights-and-the-internet-off-4g4d</link>
      <guid>https://dev.to/varshith2000/ghost-in-the-machine-an-ai-haunted-house-that-runs-with-the-lights-and-the-internet-off-4g4d</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week4-2026-10-26"&gt;Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;For this year's Día de los Muertos build, I made a haunted browser terminal called &lt;strong&gt;Open Haunt AI&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;You type commands—&lt;code&gt;ls -la&lt;/code&gt;, &lt;code&gt;git status&lt;/code&gt;, &lt;code&gt;sudo rm -rf /&lt;/code&gt;—into a CRT-green shell complete with scanlines and marigold accents. Nothing actually executes on your operating system: the fake shell prints plausible canned output. But after every command, a spirit whispers a one-line eerie commentary about what you just did:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;sudo rm -rf /&lt;/code&gt;&lt;/strong&gt; → &lt;em&gt;"Ominous grin spreads across my specter, warning of the ancient chaos this command could unleash."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The interesting part isn't the theatrics. It's that the entire ghost runs on your own machine, on an open-weight model, with zero API keys, zero cloud calls, and zero data leaving the box.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Repository &amp;amp; Setup Guide:&lt;/strong&gt; &lt;a href="https://github.com/varshith2000/open-haunt-ai" rel="noopener noreferrer"&gt;github.com/varshith2000/open-haunt-ai&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local Run:&lt;/strong&gt; Download and launch the Docker container or local start script; it serves the interactive CRT shell directly to &lt;code&gt;localhost&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&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/varshith2000" rel="noopener noreferrer"&gt;
        varshith2000
      &lt;/a&gt; / &lt;a href="https://github.com/varshith2000/open-haunt-ai" rel="noopener noreferrer"&gt;
        open-haunt-ai
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Built with Freebuff Cloud
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;🕯 Ghost in the Machine&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;A haunted shell where an open-weight model running entirely on your machine whispers eerie commentary on every command you type.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Nothing executes. Type &lt;code&gt;sudo rm -rf /&lt;/code&gt;, &lt;code&gt;git status&lt;/code&gt;, &lt;code&gt;docker ps&lt;/code&gt;, &lt;code&gt;man ghost&lt;/code&gt; — whatever you like — and the terminal prints plausible (canned) output, then streams a one-or-two-sentence whisper from a local spirit about what you just did. The ghost is Qwen2.5-3B-Instruct, served by &lt;a href="https://ollama.com" rel="nofollow noopener noreferrer"&gt;Ollama&lt;/a&gt;, on your own hardware, with no API keys and no network calls. Built for Halloween / Día de los Muertos: the ghost is fond of marigolds, candles, and ofrendas.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Quickstart&lt;/h2&gt;
&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Option A — Docker (everything included)&lt;/h3&gt;
&lt;/div&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;docker build -t ghost-in-the-machine &lt;span class="pl-c1"&gt;.&lt;/span&gt;
docker run -p 3000:3000 ghost-in-the-machine
&lt;span class="pl-c"&gt;&lt;span class="pl-c"&gt;#&lt;/span&gt; open http://localhost:3000&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;The model is baked into the image. After the build, it runs with the internet off.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Option B — from source&lt;/h3&gt;

&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Install &lt;a href="https://ollama.com/download" rel="nofollow noopener noreferrer"&gt;Ollama&lt;/a&gt; and pull the…&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/varshith2000/open-haunt-ai" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


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

&lt;h3&gt;
  
  
  The Séance Stack
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ollama serving Qwen2.5-3B-Instruct:&lt;/strong&gt; Apache-2.0 licensed, 1.9 GB, downloaded once and run forever.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Next.js 15 + TypeScript + Tailwind CSS:&lt;/strong&gt; For the retro CRT terminal UI, scanlines, and marigold accents.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Streaming Route:&lt;/strong&gt; One thin API route that streams Ollama's token output directly to the browser as the whisper materializes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Modular Design:&lt;/strong&gt; The ghost's entire personality is contained in a single file (&lt;code&gt;persona.ts&lt;/code&gt;); the fake shell simulator is another (&lt;code&gt;commands.ts&lt;/code&gt;); a startup script wakes Ollama, confirms the model is loaded, and serves the app.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dockerized Weights:&lt;/strong&gt; A Dockerfile that bakes the model weights into the container image for zero-friction distribution.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero Cloud Footprint:&lt;/strong&gt; No external database, no telemetry, and no account requirements. Your transcript lives in &lt;code&gt;localStorage&lt;/code&gt; and dies when you close the tab.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;h3&gt;
  
  
  1. It Runs With the Lights (and Internet) Off
&lt;/h3&gt;

&lt;p&gt;At runtime, the app makes exactly zero outbound calls. The model consists of files on disk, Ollama runs as a local process, and the frontend talks solely to &lt;code&gt;localhost&lt;/code&gt;. Pull the Ethernet cable or turn off Wi-Fi, and the experience remains byte-for-byte identical. Closed APIs turn into dead screens when disconnected; open innovation keeps the ghost whispering in the dark.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Privacy as Physics, Not Policy
&lt;/h3&gt;

&lt;p&gt;The reason sensitive logs, documents, or personal stories can be processed safely by an open model is that the data never leaves the hardware. It stops being a policy question (&lt;em&gt;"we promise not to train on your data"&lt;/em&gt;) and becomes a physics question: data never crosses a wire, so there is nothing to intercept, leak, subpoena, or sell.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Freedom From Vendor Deprecation
&lt;/h3&gt;

&lt;p&gt;Closed APIs mean renting endpoints that can be shut down, modified, or repriced at any moment. With open-source AI, the identity of the project belongs to files I own. If Ollama vanished tomorrow, I could swap to &lt;code&gt;llama.cpp&lt;/code&gt; or &lt;code&gt;vLLM&lt;/code&gt;. If the model needs to run on constrained hardware, a single environment variable (&lt;code&gt;OLLAMA_MODEL=qwen2.5:1.5b-instruct&lt;/code&gt;) swaps the brain seamlessly.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Debugging Down to the Metal
&lt;/h3&gt;

&lt;p&gt;When whispers were initially crawling at 0.19 tokens/sec and truncating mid-sentence, open access let me inspect the container environment directly. The issue: the host container advertised 64 CPUs, but the cgroup quota granted only 2. The local inference engine was spawning 64 threads against a 2-CPU budget and thrashing. Capping &lt;code&gt;num_thread&lt;/code&gt; to match the actual cgroup quota turned a 90-second hang into 13 seconds of fluent text—a &lt;strong&gt;~95× speedup&lt;/strong&gt;. You cannot inspect or tune that level of inference mechanics behind a closed commercial endpoint.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Spirit of It
&lt;/h2&gt;

&lt;p&gt;Open innovation isn't just nostalgia for self-hosting. It's the only architecture where the lights can go out, the network can drop, the vendor can vanish, and the ghost still whispers from inside the machine.&lt;/p&gt;

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