DEV Community

Navya Pachigolla
Navya Pachigolla

Posted on

GhostTrace AI: A Local AI That Investigates Digital Ghosts

Hacktoberfest Open-Source AI Challenge: Ghost in the Machine Submission πŸ‘»πŸŒΌ

πŸ‘» GhostTrace AI: A Local AI That Investigates Digital Ghosts

Hacktoberfest Open-Source AI Challenge: Ghost in the Machine Submission πŸ‘»πŸŒΌ

This is my submission for the Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine.

What I Built

πŸ‘» GhostTrace AI is a local AI-powered paranormal investigation storyteller that transforms fictional computer activity logs into eerie, detective-style ghost stories.

Inspired by Halloween and the mysterious events that might be hidden inside machines, I wanted to build a project that combines spooky storytelling with practical AI engineering.

GhostTrace AI analyzes sample activity logs, identifies unusual-looking events using transparent rule-based scoring, and uses a locally running language model to turn those events into a story.

Key features:

  • πŸ‘» Detects and scores fictional anomalies in sample activity logs.
  • πŸ” Explains why an event was flagged.
  • πŸ€– Generates spooky stories using local AI.
  • πŸ•°οΈ Provides a filterable investigation timeline.
  • πŸ“‚ Includes five built-in fictional investigation cases.
  • πŸ”Œ Supports fallback story generation when the local AI model is unavailable.
  • πŸ”’ Reads logs without modifying the original files.

GhostTrace AI is designed for fictional investigations and entertainment. It does not claim to detect real ghosts or supernatural activity.

Demo

🎬 Watch the demo: GhostTrace AI Demo

See GhostTrace AI investigate mysterious sample events, display anomaly scores, and turn digital clues into a spooky story.

Code

πŸ’» GitHub Repository: GhostTrace-AI

The repository contains the Python application, sample logs, automated tests, setup instructions, and project documentation.

Contributions and feedback are welcome!

How I Built It

I built GhostTrace AI using Python, Ollama, Qwen2.5 3B, Streamlit, and Pytest.

The application has five main components:

  1. Log Reader: Reads supported JSON, LOG, and TXT files from selected sample data.
  2. Mystery Detector: Applies transparent rules to score events and explain why they were flagged.
  3. Local AI Story Engine: Uses Qwen2.5 3B through Ollama to generate atmospheric stories inspired by selected events.
  4. Investigation Timeline: Displays events chronologically and provides filters for exploring each case.
  5. Fallback Engine: Generates procedural stories if Ollama or the selected model is unavailable.

I also incorporated safety measures such as read-only log processing, path validation, file-size limits, and graceful handling of malformed input.

The project includes automated tests for log parsing, anomaly scoring, sample cases, timeline filtering, and story-generation fallback. During development, the reported test suite passed all 25 tests.

Why Does Open Innovation Matter?

Open innovation is central to GhostTrace AI because it lets me build an AI-powered experience without depending on a paid, hosted AI API.

By running the open-weight Qwen2.5 3B model locally through Ollama, the application can process its investigation data on the user's machine. There are no per-request cloud AI charges, and developers can inspect the source code, modify prompts, and experiment with other supported models.

Local inference also provides greater control over data privacy. Once the required model and dependencies are installed, the application can continue using its fallback engine without an internet connection.

There are trade-offs, too. Local inference depends on the user's hardware, and the model must be downloaded before offline use. Story generation can also be slower on a CPU than on more powerful hardware.

For me, open innovation means having the freedom to experiment, customize, and build AI experiences without locking the entire project into a closed service.

My Agent Session

I used Antigravity to help develop and test GhostTrace AI.

The project includes automated tests, sample investigation cases, and documentation describing the implementation.

DevRelay session: Not available yet.

The Spirit of It πŸ‘»

Imagine opening an investigation and finding a process that wakes up at 3:33 AM, a forgotten server that appears active, or a file that seems to return after disappearing.

The mystery detector identifies the clues, explains why they were flagged, and the local AI turns them into a narrative.

The events are fictional, but the experience demonstrates how AI can combine structured data with creative storytelling.

GhostTrace AI is my small experiment in making open-source AI a little spookyβ€”and showing that even a machine's logs can inspire a mystery.

Prize Categories

This project focuses on the Ghost in the Machine theme and local open-source AI. I will list any applicable partner prize categories after confirming the official eligibility requirements.


Built with Python, local AI, and a little digital mystery. πŸ‘»πŸ’»

Top comments (0)