ai newsFr., 30. Okt.
EilmeldungKI-Radar #5: Kurz vor AGI – warum gehen dann so viele? Die neuen KI-Labs und ihre Wetten

RepoSéance: The Ghost in Your Code — Bringing Forgotten Code Back to Life with Local Gemma AI

👻 RepoSéance: The Ghost in Your Code — Bringing Forgotten Code Back to Life with Gemma AI Every codebase has a ghost. Some are forgotten, some are abandoned, and some are waiting for someone to uncover their secrets. What I Built RepoSéance is a local AI-powered code investigator that gives forgot

dev.toFreitag 16:45 · 30.10.3 Min. Lesezeit
Bild: dev.to

Hacktoberfest Open-Source AI Challenge: Ghost in the Machine Submission 👻🌼

Every codebase has a ghost. Some are forgotten, some are abandoned, and some are waiting for someone to uncover their secrets.

RepoSéance is a local AI-powered code investigator that gives forgotten, abandoned, or confusing source code a voice.

The inspiration came from a simple thought: What if your old code could explain itself?

Developers frequently revisit projects they haven't touched in months or years. Functions lose their context, documentation becomes outdated, and the original purpose of code gets forgotten.

I interpreted the Ghost in the Machine theme by imagining a mysterious digital spirit living inside an abandoned codebase. Instead of simply displaying a technical explanation, RepoSéance lets developers summon that spirit and ask it to reveal the secrets hidden in their code.

With the help of Gemma, RepoSéance offers four investigation rituals:

It also features a Memory Vault, which saves previous investigations in the browser so developers can revisit their discoveries.

The idea is simple: make code exploration useful, interactive, and a little mysterious.

GitHub Repository: https://github.com/Manish010325/RepoSeance

RepoSéance currently runs locally using Ollama and Gemma. The repository includes the source code and instructions to install and run the application.

Note: A publicly hosted demo is not currently available. The application is demonstrated locally.

The project is organized into a simple full-stack architecture:

The project is built with the intention of being understandable, extendable, and open to future contributions.

One of the interesting parts was designing the AI prompt. I wanted the ghost to sound mysterious and entertaining without sacrificing technical accuracy. The responses needed to be creative, but the actual code analysis still had to be useful.

I chose Gemma through Ollama because I wanted to explore how open-weight models could power practical developer tools without depending on a hosted AI API.

Open innovation made RepoSéance possible in a way that aligns with the project's core philosophy: developers should have more control over the tools they build and the data they work with.

The source code is sent to a locally running Ollama service rather than a third-party hosted AI API. This gives developers greater control over where their code is processed.

Using an open-weight model allowed me to customize prompts, experiment with the ghost's personality, and shape the AI experience around a specific developer use case.

Developers can run the model locally without requiring a paid third-party AI API key. Once the model is downloaded, inference can run without an internet connection.

Building with Gemma and Ollama helped me understand how local AI models can be integrated into real applications, from backend communication to prompt engineering and frontend presentation.

For me, open innovation is not just about accessing a model. It is about having the freedom to understand, experiment, customize, and build something meaningful with it.

The development of RepoSéance involved hands-on experimentation with Gemma through Ollama.

I designed a custom system prompt to give the model a mysterious digital-ghost personality while keeping its code explanations technically focused.

I also tested the complete workflow locally, from submitting source code to receiving AI-generated investigations and saving them in the Memory Vault.

Every developer has encountered a piece of code that feels like a mystery.

Maybe it belongs to an old college assignment, an unfinished side project, or a repository that has not been opened in years.

The files are still there. The functions still execute. But the story behind them slowly disappears.

That is the ghost I wanted to bring to life.

With RepoSéance, instead of asking an ordinary AI assistant to explain a function, you summon a forgotten digital spirit and let it reveal what it remembers.

It might explain the purpose of a function, uncover a potential weakness, or suggest how an abandoned project could be improved.

The spooky interface makes the experience memorable, but the real purpose is to help developers reconnect with their forgotten work.

The code may be abandoned. Its story doesn't have to be.

👻 The ghost never really left. It was waiting for someone to ask the right question.

Quelle: dev.to (dev.to). Original öffnen