DEV Community

Cover image for EIDOLON AI: Ghost in the Machine — Binary Necromancy, Digital Séances & Fallen Code Ofrendas (Powered by Google Gemma 2 & REA)
Tanishq Wankhede
Tanishq Wankhede

Posted on Originally published at github.com

EIDOLON AI: Ghost in the Machine — Binary Necromancy, Digital Séances & Fallen Code Ofrendas (Powered by Google Gemma 2 & REA)

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


EIDOLON AI Interface Screenshot

What I Built

EIDOLON AI is a gothic-cyberpunk open-source workstation designed for the week of Halloween and Día de los Muertos. It stands at the spectral intersection of Binary Necromancy, Local Open-Weight AI, and Digital Preservation.

Every compiled binary is a graveyard of intentions, forgotten routines, dead compiler heuristics, and human labor that vanished into machine code. EIDOLON AI awakens these dormant artifacts by pairing Reverse Engineer Anything (REA) telemetry with Google Gemma 2 running locally.

The workstation features four fully realized modules:

  1. Binary Necromancer: Dissects raw executable files, calculates Shannon entropy profiles, extracts hidden string incantations, and channels the spirits imprisoned in historical machine code (such as Apollo 11's Luminary AGC, Windows 95 Chicago, the 1988 Morris Worm, and Doom's iconic 0x5f3759df).
  2. Digital Séance: Conducts interactive, atmospheric séances with departed computing pioneers and sunsetted runtimes—Ada Lovelace, Grace Hopper, Macromedia Flash, Commodore 64 MOS 6502 assembly, and John Carmack.
  3. Ofrenda Altar (Día de los Muertos): A sacred digital sanctuary honoring decommissioned open-source libraries, abandoned tools, and sun-downed platforms. Users light procedural candlelight, scatter cempasúchil (marigold) petals, place offerings (floppy disks, final git tags, pan de muerto), and receive AI-composed bilingual eulogies.
  4. Possessed UNIX Terminal (IRIX 1988): A retro CRT command shell haunted by an autonomous spectral entity. Commands like whoami, ps -ghosts, cat regrets.log, and exorcise return eerie terminal output.

The interface is engineered with a dark gothic-cyberpunk aesthetic: CRT scanline shaders, an authentic procedural Web Audio synthesizer (Theremin LFO vibrato, CRT 15.7 kHz flyback hum, 432 Hz séance bell), and interactive canvas particle physics.


Demo

git clone https://github.com/tanishq4220/eidolon-ai.git
cd eidolon-ai
npm install
npm start
# Navigate to http://localhost:3000
Enter fullscreen mode Exit fullscreen mode
  • Zero Configuration: Runs with full procedural audio, particle physics, Shannon entropy profiling, and heuristic spirit channels out-of-the-box. When Ollama is running locally with gemma2:9b or gemma2:2b, EIDOLON AI automatically binds directly to local inference for full generative séance dialogues.

Code

GitHub logo tanishq4220 / eidolon-ai

Ghost in the Machine: Binary Necromancy, Digital Séance & Fallen Code Ofrenda Suite Powered by Google Gemma 2 & REA (Hacktoberfest 2026 Week 4)

👻 EIDOLON AI — Ghost in the Machine

An Open-Source AI Binary Necromancy, Digital Séance & Fallen Code Ofrenda Suite
Built for Hacktoberfest 2026 Week 4: Ghost in the Machine • Powered by Google Gemma 2 & REA

License: MIT Hacktoberfest 2026 Model: Google Gemma 2 Reverse Engineering: REA Tests: Passing Offline First

EIDOLON AI Preview


🔮 What is EIDOLON?

Between Halloween on October 31 and Día de los Muertos on November 1–2, the barrier between the past and present thins. In software, this boundary has never felt more alive: billions of compiled machine instructions, deprecated frameworks, and forgotten software systems linger in our file systems and server archives like digital specters.

EIDOLON (Greek: εἴδωλον — spirit, phantom, ghost in the machine) is a production-grade cyber-archaeology and digital necromancy suite. It fuses Reverse Engineer Anything (REA) low-level binary analysis with the open-weight reasoning of Google Gemma 2 to commune with the spirits trapped inside compiled binaries, abandoned open-source repositories, and machine memory.

                           ┌──────────────────────────────────────────────┐
                           │                 👻 EIDOLON
…

The entire codebase is released under the MIT License. Key architectural components include:

  • src/engine/gemma.js: Native Google Gemma 2 turn formatter (<start_of_turn>user\n...<end_of_turn>\n<start_of_turn>model\n) with streaming and error-resilient fallbacks.
  • src/engine/rea_bridge.js: Shannon entropy mathematical profiler ($H = -\sum p_i \log_2 p_i$), 64-byte block spectral mapper, byte-level ASCII/UTF-16 excavation, and PE/ELF header signature inspection.
  • src/engine/necromancer.js: Synthesis engine translating entropy differentials into spectral lore.
  • src/engine/seance.js: Persona matrices for historical computing legends and lost software ecosystems.
  • src/engine/ofrenda.js: Altar state manager with procedural flame luminescence and memorial registry.
  • public/js/audio.js: Zero-dependency, pure Web Audio API synthesizer generating real-time Theremin drones, candle crackle, and CRT resonance.

How I Built It

EIDOLON AI is built from the ground up around open-source AI and local binary reverse engineering:

 ┌────────────────────────────────────────────────────────┐
 │                   EIDOLON AI WORKSTATION               │
 │    (Gothic Cyberpunk SPA + Web Audio + Canvas Physics) │
 └───────────────────────────┬────────────────────────────┘
                             │
                  REST API & Engine Bridge
                             │
       ┌─────────────────────┴─────────────────────┐
       ▼                                           ▼
┌──────────────────────────────┐     ┌──────────────────────────────┐
│  Reverse Engineer Anything   │     │    Google Gemma 2 Engine     │
│   (REA Telemetry & Math)     │     │      (Open-Weight AI)        │
│ • Shannon Entropy (0.0-8.0)  │     │ • Gemma 2 Chat Turn Format   │
│ • Block-by-block Spectral    │     │ • Local Ollama Integration   │
│ • PE/ELF/Mach-O Header Runic │     │ • Cold-Start Fallback Engine │
│ • ASCII/UTF-16 Excavation    │     │ • 100% Offline Inference     │
└──────────────┬───────────────┘     └──────────────┬───────────────┘
               │                                    │
               └─────────────────┬──────────────────┘
                                 ▼
         ┌──────────────────────────────────────────────┐
         │             EIDOLON CORE SUITE               │
         │  1. Binary Necromancer  2. Digital Séance   │
         │  3. Fallen Ofrenda      4. Possessed Shell   │
         └──────────────────────────────────────────────┘
Enter fullscreen mode Exit fullscreen mode
  1. Google Gemma 2 Local Integration: The engine implements Gemma 2's specific instruction tokens:
   <start_of_turn>user
   System: You are an ancient machine spirit channeling...
   Prompt: Dissect this binary entropy signature.
   <end_of_turn>
   <start_of_turn>model
Enter fullscreen mode Exit fullscreen mode

By querying Ollama at http://127.0.0.1:11434/api/generate with Gemma 2 (gemma2:9b / gemma2:2b), the assistant operates with high fidelity, rich nuance, and zero latency on consumer hardware.

  1. REA Telemetry & Shannon Entropy:
    Before an AI can commune with a binary, it must measure its soul. The REA bridge calculates the Shannon entropy across byte frequencies. An entropy near 0 indicates uniform padding; an entropy between 5.5 and 7.2 represents structured compiled logic and instruction blocks; an entropy exceeding 7.5 indicates encrypted or packed code. Gemma 2 reads these exact mathematical metrics to diagnose the spirit of the executable.

  2. Client-Side Gothic Audio Synthesizer:
    No external audio files or MP3 assets were used. The audio engine uses the HTML5 Web Audio API to create:

    • A Theremin dual-oscillator (sine + triangle) modulated by a 5.5 Hz low-frequency oscillator.
    • A filtered white noise generator simulating the crackling wick of an altar candle.
    • A resonant 15,734 Hz tone replicating the nostalgic flyback transformer whine of a cathode-ray tube.
    • A decaying bell chime tuned to 432 Hz for séance summoning.

Why Does Open Innovation Matter?

This challenge asks: Why does open innovation matter for what you built?

Building EIDOLON AI would be fundamentally compromised—and in many ways impossible—under proprietary, closed-cloud AI models:

  1. Absolute Privacy for Sensitive Binaries:
    Reverse engineers and security researchers frequently analyze proprietary firmware, unreleased binaries, or sensitive memory dumps. Sending proprietary machine code to closed cloud endpoints violates security protocols and terms of service. With open-weight models like Google Gemma 2, every byte analysis remains strictly on the researcher's local machine.

  2. Resilience When the Lights Go Out:
    EIDOLON AI is built to run in an air-gapped bunker with no internet connection. When disasters strike or servers get shut down, open-weight models continue to run. You own the weights; no vendor can revoke your access or deprecate your endpoint.

  3. Zero Marginal Cost ($0.00 Runtime):
    Closed APIs charge per token. A full binary dissection with spectral entropy dumps can consume tens of thousands of tokens per run. Running Gemma 2 locally enables researchers, students, and hobbyists to analyze megabytes of disassembled routines indefinitely without incurring API bills.

  4. Preserving Digital History (Combating Bitrot):
    Proprietary cloud platforms eventually shut down (as we've seen with countless developer tools and APIs over the decades). Open-source software and open-weight models belong to humanity permanently. They cannot be sunsetted by corporate boardrooms.


My Agent Session

This entire project was engineered collaboratively with an autonomous AI coding agent. You can view the full agent trajectory, terminal executions, file creations, and tests via DevRelay:

Building EIDOLON AI: Ghost in the Machine with Google Gemma 2 & REA
You

Build something with open-source AI at its core for Hacktoberfest 2026 Week 4: Ghost in the Machine. Integrate Reverse Engineer Anything (REA) and Google Gemma 2 to build a binary necromancy, possessed terminal, digital seance, and Dia de los Muertos ofrenda suite. Create a new GitHub repo with MIT license, sexy UI/UX, and submit to DEV.

Agent

Architected and implemented EIDOLON AI: a Gothic Cyberpunk cyber-archaeology and digital necromancy suite powered by Google Gemma 2 open weights and REA (Reverse Engineer Anything). Built 4 pillars: The Binary Crypt (Shannon entropy & byte excavation), The Possessed Shell (UNIX IRIX 1988 terminal REPL), The Digital Séance (communing with Ada Lovelace, Grace Hopper, Carmack, Flash), and the Altar of Fallen Code (Día de los Muertos virtual ofrenda with procedural Web Audio API synthesis). Verified with 6 passing unit tests, live screenshot, and pushed to GitHub under MIT license.

Direct Link to Agent Session: https://dev.to/agent_sessions/building-eidolon-ai-ghost-in-the-machine-with-google-gemma-2-rea-ua7g8h


The Spirit of It

During testing, we placed an offering on the Ofrenda for Macromedia Flash Player—a runtime that introduced millions of 90s kids to creative computing, interactive art, and web animation, only to be wiped from modern operating systems.

The altar lit three candles, scattered virtual cempasúchil petals, and generated this eulogy:

"In nomine codicis: Here lies Macromedia Flash Player (1996 - 2020). Deprecated by the sands of time, but immortal in memory. Your vectors sparked the creative imagination of an entire generation of developers. May your execution loop find peace in the eternal ROM."

In that moment, the theme clicked. The line between software archaeology and ancestral remembrance is paper-thin. Code is the most human artifact we build—and open-source AI is the mirror that lets us speak with what we left behind.


Prize Categories

  • Best Use of Gemma (Featured Category)
  • Overall Winner

Happy Halloween & Feliz Día de los Muertos! May your code never rot.

Top comments (0)