git-ofrenda: an altar for the code your repo buried, with epitaphs by Gemma on a plain CPU ๐ฏ๏ธ
This is a submission for the Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine What I Built git-ofrenda ๐ฏ๏ธ๐ผ builds an ofrenda for the code your repo buried. Every repository that lives long enough has a graveyard. Files that handled real traffic for years, got touched by a hundred commits and half a dozen people, and then vanished in a commit called "Removed old cruft" . gitโฆ
git-ofrenda is a Python tool that creates an "ofrenda" for files that have been deleted from a Git repository and never returned. The tool analyzes the repository's history to gather information about each deleted file, such as when it was created, who added and removed it, the commit message that killed it, how many commits it lived through, and its last lines of code.
An open-weight language model, Gemma 3, then writes an epitaph and a short remembrance for each file. The tool builds a static webpage with a headstone for each file, displaying the model's words and Git's facts separately. Users can interact with the deceased files through a sรฉance, allowing them to ask questions based on the file's recorded history.
This project emphasizes the importance of remembering the code that has been maintained and eventually retired within open-source projects.
Written by urgent.news from Dev.to's reporting โ not their text. Machine-written โ may contain errors; check the original before relying on it.