Menu

Exorcist: I made the ghosts of legacy Java code explain themselves (and tried to stop them lying)
📰

Exorcist: I made the ghosts of legacy Java code explain themselves (and tried to stop them lying)

DEV Community: java·Matheus Ferreira·18 days ago
#1LOEqCAv
#devtojava#devto#dev#line#code
Reading 0:00
15s threshold

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

What I Built

Every legacy codebase is haunted. You open a 25-year-old class, there's a catch (Exception e) that returns null , and the person who could explain why left the project in 2004.

Exorcist is a terminal app that summons them back. It reads a Git repository, works out who really wrote each Java class, and lets the ghost of its main author explain the class in first person, confess its sins line by line, and propose a refactoring as a diff. The model is open-weight and runs locally through Ollama, so the code never leaves your machine.

.-.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.