跳到正文
DEV Community· DIWAKAR SHARMA·· 4 小時前AI 評分34

HauntShell:為逝去科技打造的附靈終端與數碼降神壇

HauntShell 👻 A Possessed Terminal & Digital Séance for Dead Technologies

AI 導讀

HauntShell 是以開源 AI 打造的復古 CRT 終端和數碼祭壇,讓用戶與計算歷史中的人物及技術交流。它以 Ollama 本地執行 Llama 3.2 (3B)、Qwen 2.5 (3B / 7B) 或 Mistral-7B,並設有 Groq、Google Cloud AI 及離線回應作後備。環境音效由 Web Audio API 即時合成,毋須音效檔案或網絡連線。

正文

Cover image for HauntShell 👻 A Possessed Terminal & Digital Séance for Dead Technologies

DIWAKAR SHARMA

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

October brings us Halloween on October 31 and Día de los Muertos on November 1 and 2—a time when the barrier between the past and present feels paper-thin. In the digital world, that past is populated by the ghosts of departed runtimes, dead programming languages, decommissioned mainframes, and lost corners of the early web.

HauntShell is a retro, possessed CRT terminal and digital ofrenda built with open-source AI at its core. It brings computing history back from the other side in two eerie ways:

  1. The Possessed Terminal (Ghost Whisperer): Any standard command you type into your terminal (git commit, rm -rf, sudo reboot, npm install, kill -9) is intercepted by the "Ghost in the Machine." The ghost whispers back chilling, poetic, and darkly humorous commentary on your mortality and the fragility of code, while calculating live system "ectoplasm levels."
  2. The Digital Séance Altar (Día de los Muertos Ofrenda): A virtual altar where you can awaken and converse with the spirits of computational history:
    • ⚡ The Ghost of Adobe Flash Player (1996 - 2020): Mourning vector animations, ActionScript, and Newgrounds.
    • 📜 The Spirit of Ada Lovelace (1815 - 1852): Whispering of the Analytical Engine and poetic algebra from beyond the veil.
    • 💳 The Spectre of COBOL & Punch Cards (1959 - Present): Scoffing at fragile modern JavaScript frameworks from deep within banking vaults.
    • 🕸️ The Phantom of GeoCities & 56k Dial-Up (1994 - 2009): Wandering lost web rings with screeching modem echoes and <blink> tags.
    • 👻 The Kernel Wraith: The rogue spirit living in your CPU registers.
  3. Synthesized Offline Ambient Soundscape: A spooky, droning audio synthesizer engineered purely with the Web Audio API—zero sound files or internet connection required.

Demo

Code

GitHub logo diwakarsingh07 / GHOST-TERMINAL

October brings us Halloween on October 31 and Día de los Muertos on November 1 and 2—a time when the barrier between the past and present feels paper-thin. In the digital world, that past is populated by the ghosts of departed runtimes, dead programming languages, decommissioned mainframes, and lost corners of the early web.

👻 HauntShell: Ghost in the Machine

"A possessed terminal and digital séance altar honoring dead technologies, deprecated code, and computational souls."

Built for the Hacktoberfest Open-Source AI Challenge: Ghost in the Machine (Celebrating Halloween & Día de los Muertos).


🕯️ What is HauntShell?

Around Halloween and Día de los Muertos, the veil between the living and the past grows thin. In computing, that veil is littered with the ghosts of deprecated runtimes, obsolete languages, abandoned web rings, and dead frameworks.

HauntShell is a retro CRT terminal and digital ofrenda powered by open-source AI:

  1. The Possessed Terminal: Intercepts any command you type (git commit, rm -rf, sudo reboot, npm install) and whispers eerie, poetic, chilling commentary back into your console while tracking system "ectoplasm levels".
  2. The Digital Séance Altar (Ofrenda): Allows you to commune with the departed spirits of digital history
    • ⚡ The Ghost…

How I Built It

HauntShell is constructed entirely around open-weight models and local execution:

1. Open-Weight Models & Local Inference

HauntShell channels its ghostly personas using Ollama running compact open-weight models like Llama 3.2 (3B), Qwen 2.5 (3B / 7B), or Mistral-7B.
Each spirit possesses distinct prompt conditioning that reproduces historical idioms—from Ada Lovelace's 19th-century epistolary elegance to COBOL's fixed-format mainframe grumpiness.

2. Multi-Provider Fallback Cascade

To ensure HauntShell works anywhere:

  • Local Primary: Local Ollama service (100% private, zero latency).
  • Cloud Open Backup: Groq (llama-3.3-70b-versatile) and Google Cloud AI (Gemini).
  • Offline Spectral Fallback: A built-in contextual engine with pre-compiled spiritual responses for judges testing with no API keys or local LLM setup.

3. Pure Mathematical Sound Synthesis

Rather than relying on heavy MP3 assets, the ambient soundscape uses browser AudioContext oscillators (sawtooth sub-bass drones with LFO modulation and whistling sine waves) to conjure an eerie soundscape offline.

Why Does Open Innovation Matter?

Open innovation is what makes HauntShell meaningful:

  1. Digital Remembrance Without Cloud Lock-in: The spirit of Día de los Muertos is remembrance. Closed commercial AI platforms deprecate models, censor personas, and lock historical digital artifacts behind subscription paywalls. Open-weight models ensure that computational folklore and digital memories can be preserved locally, owned by the community, and never shut down by a corporate sunset.
  2. Offline in the Dark: HauntShell runs on an air-gapped laptop with the lights out and the Wi-Fi disabled. The ghost lives entirely inside your machine.
  3. Unrestricted Persona Fine-Tuning: Open weights give developers the freedom to adjust temperature, prompt limits, and personas to summon any forgotten technology or historical programmer without vendor interference.

The Spirit of It

Bring old memories back!!.

Prize Categories

best use of gemma modal

來源:DEV Community · dev.to