{"slug": "hacktoberfest-open-source-ai-challenge-week-4-ghost-in-the-machine", "title": "Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine", "summary": "A developer built Haunted Terminal, a zero-dependency Python tool that reads shell history across PowerShell, Bash, Zsh and Fish and pipes recent commands into an open-weight model (llama3.2:3b) running locally via Ollama, which streams back darkly funny commentary in spectral red. The tool offers four personas and a --watch mode, and keeps command history on-device to avoid sending file paths, server names and possible tokens to a closed API. It was submitted to the Hacktoberfest Open-Source AI Challenge under the 'Ghost in the Machine' theme.", "body_md": "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.\n\nYour 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.\n\n*\"A digital phantom trapped inside your machine, watching every keystroke in the dark.\"*\n\nBuilt for the **Hacktoberfest Open-Source AI Challenge** (Theme: **\"Ghost in the Machine\"**).\n\n**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](https://ollama.ai).\n\nThe ghost streams haunting, darkly funny commentary back into your console in vivid spectral red, character by character, mocking your mortal command-line endeavors.\n\n`urllib`, `json`, `argparse`). No `pip install` required.`llama3.2:3b`, an open-weight model, running locally through Ollama`--model`, `--last`, `--watch`, `--history`, `--persona`, `--save`\nThe ghost's voice is just a system prompt, so changing personality means editing a few lines.\n\nShell 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:\n\n`qwen2.5:7b`, `mistral` or `phi3` with one flag\nA closed API couldn't give me all four at once.", "url": "https://wpnews.pro/news/hacktoberfest-open-source-ai-challenge-week-4-ghost-in-the-machine", "canonical_source": "https://dev.to/krishnapotdar619/hacktoberfest-open-source-ai-challenge-week-4-ghost-in-the-machine-471e", "published_at": "2026-10-29 16:15:48+00:00", "updated_at": "2026-10-29 16:19:28.915344+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "ai-tools", "developer-tools"], "entities": ["Ollama", "Hacktoberfest", "llama3.2:3b", "qwen2.5:7b", "Mistral", "Phi-3", "Haunted Terminal"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/hacktoberfest-open-source-ai-challenge-week-4-ghost-in-the-machine", "markdown": "https://wpnews.pro/news/hacktoberfest-open-source-ai-challenge-week-4-ghost-in-the-machine.md", "text": "https://wpnews.pro/news/hacktoberfest-open-source-ai-challenge-week-4-ghost-in-the-machine.txt", "jsonld": "https://wpnews.pro/news/hacktoberfest-open-source-ai-challenge-week-4-ghost-in-the-machine.jsonld"}}