<?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: Uzma Nayab</title>
    <description>The latest articles on DEV Community by Uzma Nayab (@elena_24).</description>
    <link>https://dev.to/elena_24</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%2F4154673%2Fa9eeab55-d423-45f8-bc8d-599aa16804c0.jpg</url>
      <title>DEV Community: Uzma Nayab</title>
      <link>https://dev.to/elena_24</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/elena_24"/>
    <language>en</language>
    <item>
      <title>PhantomShell — The Terminal Has a Ghost</title>
      <dc:creator>Uzma Nayab</dc:creator>
      <pubDate>Sat, 31 Oct 2026 17:46:59 +0000</pubDate>
      <link>https://dev.to/elena_24/phantomshell-the-terminal-has-a-ghost-2h0f</link>
      <guid>https://dev.to/elena_24/phantomshell-the-terminal-has-a-ghost-2h0f</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;Meet &lt;strong&gt;PhantomShell&lt;/strong&gt;, a spooky AI companion that lives inside your terminal.&lt;/p&gt;

&lt;p&gt;Have you ever wondered what your terminal is really doing when you execute a command? What if a mysterious ghost could explain it to you?&lt;/p&gt;

&lt;p&gt;That's the idea behind PhantomShell.&lt;/p&gt;

&lt;p&gt;PhantomShell is a local-first AI-powered web application where users can enter shell commands and receive explanations in the voice of a mysterious terminal spirit.&lt;/p&gt;

&lt;p&gt;It explains what commands appear to do, highlights meaningful risks, and responds with a little Halloween atmosphere.&lt;/p&gt;

&lt;p&gt;For example, enter:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;rm&lt;/span&gt; &lt;span class="nt"&gt;-rf&lt;/span&gt; old_backups/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;And the ghost explains the potential consequences of the command.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One important rule: PhantomShell never executes commands. It only inspects the text you provide.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I interpreted the Ghost in the Machine theme quite literally: what if an intelligent spirit was hiding inside our computers?&lt;/p&gt;
&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;PhantomShell is designed as a locally running web application.&lt;/p&gt;

&lt;p&gt;The source code and instructions to run it locally are available in the GitHub repository:&lt;/p&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/uzman2406" rel="noopener noreferrer"&gt;
        uzman2406
      &lt;/a&gt; / &lt;a href="https://github.com/uzman2406/Phantom_Shell" rel="noopener noreferrer"&gt;
        Phantom_Shell
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &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;👻 PhantomShell — The Terminal Has a Ghost&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;A spooky, local-first AI command companion with a polished web interface. Type a shell command and PHANTOM explains what it appears to do, highlights meaningful risks, and replies in a mysterious ghostly voice.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; PhantomShell inspects command text only. It never executes shell commands.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Preview&lt;/h2&gt;
&lt;/div&gt;

&lt;p&gt;Run it locally and open &lt;code&gt;http://127.0.0.1:8000&lt;/code&gt;.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Stack&lt;/h2&gt;
&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;Python standard-library HTTP server&lt;/li&gt;
&lt;li&gt;HTML, CSS and vanilla JavaScript&lt;/li&gt;
&lt;li&gt;Ollama local inference&lt;/li&gt;
&lt;li&gt;Default model: &lt;code&gt;qwen2.5:3b&lt;/code&gt; (open-weight)&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Requirements&lt;/h2&gt;

&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;Python 3.9+&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ollama.com/" rel="nofollow noopener noreferrer"&gt;Ollama&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Enough RAM for the model you choose&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Run locally&lt;/h2&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Install Ollama: &lt;a href="https://ollama.com/" rel="nofollow noopener noreferrer"&gt;https://ollama.com/&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Download the model:&lt;/p&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;ollama pull qwen2.5:3b&lt;/pre&gt;

&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Make sure Ollama is running. On most installations, the Ollama app starts its local service automatically.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Download/clone this repository and open a terminal in the project directory.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Start PhantomShell:&lt;/p&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;python server.py&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;On Windows:&lt;/p&gt;
&lt;div class="highlight highlight-source-powershell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;py server.py&lt;/pre&gt;

&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Visit &lt;code&gt;http://127.0.0.1:8000&lt;/code&gt; in your browser.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No &lt;code&gt;pip install&lt;/code&gt; step is required.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Configuration&lt;/h2&gt;

&lt;/div&gt;

&lt;p&gt;Set environment variables before…&lt;/p&gt;&lt;/div&gt;


&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/uzman2406/Phantom_Shell" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;p&gt;It uses a local model rather than requiring a hosted AI API.&lt;/p&gt;

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

&lt;p&gt;The repository includes the Python backend, frontend, project documentation and setup instructions.&lt;/p&gt;

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

&lt;p&gt;I wanted to build something that combined a spooky user experience with practical AI functionality.&lt;/p&gt;

&lt;p&gt;The technology stack includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Python:&lt;/strong&gt; Backend HTTP server.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HTML, CSS and JavaScript:&lt;/strong&gt; Interactive haunted chat interface.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ollama:&lt;/strong&gt; Local model inference.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Qwen 2.5 3B:&lt;/strong&gt; Open-weight language model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vanilla JavaScript:&lt;/strong&gt; Communication between the frontend and backend.&lt;/li&gt;
&lt;/ul&gt;

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



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;       User
        |
        v
  PhantomShell UI
 (HTML/CSS/JS)
        |
        v
   Python Backend
        |
        v
  Ollama Local API
        |
        v
   Qwen 2.5 3B
        |
        v
  Ghostly Response
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The application sends user messages to the local Ollama service, which generates responses using the selected model.&lt;/p&gt;

&lt;p&gt;The ghost's personality is controlled through a system prompt that encourages concise, atmospheric explanations while emphasizing command safety.&lt;/p&gt;

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

&lt;p&gt;For PhantomShell, open innovation is not just a technology preference. It is central to the project's purpose.&lt;/p&gt;

&lt;p&gt;A traditional hosted AI API would introduce an external dependency for something that can run locally.&lt;/p&gt;

&lt;p&gt;Using Ollama and an open-weight model makes several things possible:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Privacy&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Commands are sent to a local Ollama instance rather than a third-party AI API when using the default localhost configuration.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Offline capability&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;After downloading the model and installing the required software, inference can run without an internet connection.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Model freedom&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The application can use different compatible models without depending on a single hosted AI provider.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Cost control&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There are no per-request hosted inference charges or API keys required.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Transparency and customization&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The source code, system prompt and model configuration can be inspected and modified.&lt;/p&gt;

&lt;p&gt;For me, the most interesting part is that the AI doesn't have to live somewhere on the internet. It can live right inside your own machine.&lt;/p&gt;

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

&lt;p&gt;Halloween is about things that hide in the darkness.&lt;/p&gt;

&lt;p&gt;Developers spend so much time interacting with terminals that I thought it would be fun to imagine one that could talk back.&lt;/p&gt;

&lt;p&gt;Not every ghost needs to haunt an abandoned house. Some prefer an abandoned terminal window.&lt;/p&gt;

&lt;p&gt;And perhaps, somewhere between a &lt;code&gt;git push&lt;/code&gt; and a suspicious &lt;code&gt;rm -rf&lt;/code&gt;, there's a little spirit waiting to whisper:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;"Are you absolutely sure about that, mortal?"&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Built for the Hacktoberfest Open-Source AI Challenge — Week 4: Ghost in the Machine. 👻&lt;/p&gt;

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