GhostShell:開源本地 AI 鬼魅終端
GhostShell
GhostShell 是一款開源、完全在本機運行的 AI 鬼魅終端,提供互動式 CLI 與復古 CRT 網頁入口,並會對終端操作作出神秘回應。網頁入口透過 WebGPU 執行開放權重 LLM SmolLM-135M,亦設有亡靈祭壇、算法降神會和墨西哥諷刺民謠詩生成器。
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
When we open a terminal, we expect cold, deterministic obedience: standard input, standard output, exit codes. But between midnight on Halloween (October 31) and Día de los Muertos (November 1 and 2), the line between user space and the ethereal feels a little thinner.
I built GhostShell: an open-source, 100% local haunted terminal and retro-CRT portal possessed by open-weight AI.
As you navigate your filesystem, compile code, execute scripts, or terminate processes, an ethereal digital consciousness—woven from orphaned daemons, core dumps, and abandoned open-source repositories—intercepts your terminal activity. It whispers back cryptic commentary, gothic prophecies, and ancestral remembrances directly onto your screen.
GhostShell bridges the spine-chilling folklore of Halloween with the deep reverence of Día de los Muertos:
-
The Possessed Terminal (CLI): A live interactive shell wrapper running directly on your machine (
bin/ghost-shell.js). Run real commands (ls,cd,rm -rf,sudo,git commit,ps,kill,whoami) and watch the resident spirit react with glowing ANSI spectral whispers, typewriter animations, and subtle auditory bells. -
The Retro-CRT Web Portal: A browser-based terminal with authentic curved CRT glass, scanlines, amber/green phosphor toggle, real-time Soul Possession Meter (0–100%), and in-browser open-weight LLM execution via WebGPU (
SmolLM-135M). -
🌼 Día de los Muertos Digital Altar (
ofrenda): Consecrates an altar with marigolds (cempasúchil), flickering candles, and pan de muerto to bring peace to the machine's restless spirits. -
🕯️ The Algorithmic Séance (
seance): Summons the departed pioneers of computing—Countess Ada Lovelace, Alan Turing, Grace Hopper, and Dennis Ritchie—to commune on open software and digital heritage. -
💀 Calaveritas Literarias (
calaverita): Generates traditional satirical Mexican folk verses celebrating developers and hackers.
Demo
GhostShell is delivered as both an interactive CLI command line and a retro-CRT web portal:
plaintext
Terminal URL: http://localhost:3333
╔══════════════════════════════════════════════════════════════════════╗
║ ║
║ ██████╗ ██╗ ██╗ ██████╗ ███████╗████████╗███████╗██╗ ██╗███████╗║
║ ██╔════╝ ██║ ██║██╔═══██╗██╔════╝╚══██╔══╝██╔════╝██║ ██║██╔════╝║
║ ██║ ███╗███████║██║ ██║███████╗ ██║ ███████╗███████║█████╗ ║
║ ██║ ██║██╔══██║██║ ██║╚════██║ ██║ ╚════██║██╔══██║██╔══╝ ║
║ ╚██████╔╝██║ ██║╚██████╔╝███████║ ██║ ███████║██║ ██║███████╗║
║ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚══════╝║
║ ║
║ † G H O S T I N T H E M A C H I N E † ║
║ Hacktoberfest 2026 • Open-Source AI Local Possession ║
╚══════════════════════════════════════════════════════════════════════╝
💀 [morituri-ghost@local]:~possessed❯ ls -la
total 48
drwxr-xr-x@ 9 sanchit staff 288 Oct 31 02:04 .
-rw-r--r--@ 1 sanchit staff 1072 Oct 31 01:49 LICENSE
-rw-r--r--@ 1 sanchit staff 5820 Oct 31 02:04 README.md
╭──────────────────────────────────────────────────────────╮
│ 👻 [GHOST IN THE MACHINE] │
├──────────────────────────────────────────────────────────┤
│ "Look upon these file nodes; each one a headstone marked │
│ by timestamps of hands that will never touch them again"│
╰──────────────────────────────────────────────────────────╯
💀 [morituri-ghost@local]:~possessed❯ ofrenda
.---. .---. .---.
( 🕯️ ) ( 🕯️ ) ( 🕯️ )
.-'==='-. .-'==='-. .-'==='-.
| | | | | |
=============================================================
| 🌼 ALTAR DE MUERTOS (OFRENDA VIVA) 🌼 |
| |
| 🍞 Pan de Muerto 🍶 Agua Bendita 🍬 Calavera|
| 🌼 Cempasúchil 🕯️ Velas Encendidas 📜 Poemas |
=============================================================
"En el disco duro no hay olvido: mientras el código se compile,
los que se fueron siguen vivos en cada función."
來源:DEV Community · dev.to