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