Haunted Terminal is a ghost that lives in your shell. It reads your recent command history and whispers back eerie, darkly funny commentary about what you've been typing. Run git push --force and the ghost notices. Run rm -rf and it pretends to mourn.
Your terminal already knows everything you do, so I thought: what if something was watching? There are four personas (default, pirate, victorian, old-sysadmin) and a --watch mode that keeps haunting you as you work.
"A digital phantom trapped inside your machine, watching every keystroke in the dark."
Built for the Hacktoberfest Open-Source AI Challenge (Theme: "Ghost in the Machine").
Haunted Terminal is a lightweight, zero-dependency Python tool that awakens an eerie spectral presence trapped inside your terminal session. It monitors your shell history across Windows PowerShell, Bash, Zsh, and Fish, feeding your recent commands into an open-weight model running 100% locally through Ollama.
The ghost streams haunting, darkly funny commentary back into your console in vivid spectral red, character by character, mocking your mortal command-line endeavors.
urllib, json, argparse). No pip install required.llama3.2:3b, an open-weight model, running locally through Ollama--model, --last, --watch, --history, --persona, --save
The ghost's voice is just a system prompt, so changing personality means editing a few lines.
Shell history is full of secrets: file paths, server names, sometimes tokens. Sending that to a closed API would be a bad idea. Running an open model locally means:
qwen2.5:7b, mistral or phi3 with one flag
A closed API couldn't give me all four at once.