git-ghost: I summoned the ghost of my first commit with a local Gemma model
Description and use
git-ghost lets developers summon their first author using a local Gemma model to receive a fact-based narrative of a repository’s origins, evolution, and advice, all without sending data to the cloud.
Problem
Developers want to reflect on the earliest state of a repository without exposing commit history to external services.
Outcome
git-ghost enables developers to hear a nostalgic, fact-based story of their project’s earliest days, providing insight and actionable advice without external data exposure.
Workflow
- 1. Run
python git_ghost.py <repo_path> - 2. git_ghost.py executes
git logto fetch first and latest commits - 3. It streams the commit data to a local Ollama instance via
/api/chat - 4. The Gemma model generates a three-part narrative based on the commit facts
- 5. The output is printed to the terminal and fades back into .git
Evidence
git-ghost is a tiny command-line tool that summons the ghost of your past self from the oldest commits of any git repository.
It reads your first commits (the memories) and your latest commits (the living developer), then lets Gemma, an open-weight model running locally through Ollama, speak as the ghost of the developer you used to be.
The whole tool is one Python file with zero dependencies: git log through subprocess, and a streaming call to the local Ollama /api/chat endpoint with urllib.
- Record date: 2026-11-02T01:43:55.278Z