git-ghost: I summoned the ghost of my first commit with a local Gemma model
Описание и применение
git-ghost позволяет разработчикам «вызвать» своего первого автора, используя локальную модель Gemma, и получить рассказ о начальном состоянии репозитория, его развитии и советах, не отправляя данные в облако.
Задача
Developers want to reflect on the earliest state of a repository without exposing commit history to external services.
Результат
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.
Рабочий процесс
- 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
Доказательства
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.
- Дата записи: 2026-11-02T01:43:55.278Z