DEV Community

samruddhi
samruddhi

Posted on Fully Autonomous

# 👻 GhostShell AI: A Haunted Terminal Powered by Local AI

Hacktoberfest Open-Source AI Challenge: Ghost in the Machine Submission 👻🌼

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine.

What I Built

I built GhostShell AI, a haunted terminal powered by local AI. 👻

The idea is simple: instead of treating the terminal as just a developer tool, I imagined a ghost living inside the machine that reacts whenever you enter a command.

Users can enter commands such as:

git status
Enter fullscreen mode Exit fullscreen mode

GhostShell analyzes the command and uses a local AI model to generate a spooky response while briefly explaining what the command normally does.

The project includes three ghost personalities:

  • 👻 Whispering Ghost
  • 💀 Angry Poltergeist
  • 🧙 Ancient Programmer

I interpreted the "Ghost in the Machine" theme by turning normal developer interactions into a supernatural conversation with a ghost trapped inside the computer.

Demo

🎥 Video Demo: Add your demo video link here.

The demo shows GhostShell AI running locally, entering terminal commands, changing ghost personalities, and receiving AI-generated spooky responses.

Code

💻 GitHub Repository:

https://github.com/Samruddhipathrikar/GhostShellAI

The complete source code is available in the repository.

How I Built It

GhostShell AI is built using:

  • Python
  • Streamlit for the user interface
  • Ollama for local AI inference
  • Llama 3.2 3B as the open-weight AI model
  • Python subprocess to communicate with the local Ollama installation

The application works like this:

User enters a command
        ↓
Command Analyzer
        ↓
Command Classification
        ↓
Ghost Personality
        ↓
Ollama + Llama 3.2 3B
        ↓
Spooky AI Response
        ↓
Haunted Terminal UI
Enter fullscreen mode Exit fullscreen mode

I also added command classification for:

  • Developer commands
  • System commands
  • Potentially dangerous commands
  • Unknown commands

GhostShell does not execute the commands entered by the user. It only analyzes the command and generates a response.

This keeps the project focused on creating an AI-powered terminal experience without giving the AI direct control over the user's system.

Why Does Open Innovation Matter?

Open innovation made it possible for me to experiment with AI locally instead of depending completely on a closed cloud API.

Using an open-weight model with local inference gave me more control over the AI experience and allowed me to customize the prompts, personalities, and behavior of the application.

It also makes experimentation more accessible because the project does not require a paid cloud AI API for every interaction.

For GhostShell AI, this was especially important because the idea is about a ghost living inside the machine. Running the AI locally makes that concept feel much more natural.

My Agent Session

I used DevRelay while working on the project and exploring the Hacktoberfest challenge workflow.

Agent Session: Add the DevRelay session link here if available.

The Spirit of It

The idea behind GhostShell AI came from a simple question:

What if your terminal wasn't just a tool, but actually had a personality? 👻

Instead of simply seeing:

git status
Enter fullscreen mode Exit fullscreen mode

you get a response from something that feels like a ghost trapped inside your computer.

👻 "The repository reveals its unfinished business..."

The goal was to combine something developers use every day with a little Halloween-style mystery and humor.

That is the spirit of GhostShell AI — making an ordinary developer workflow feel slightly supernatural.

Prize Categories

  • Open-Source AI / Local AI
  • Ghost in the Machine
  • AI-powered developer experience

Thanks for checking out GhostShell AI! 👻💻

Top comments (0)