Focused context
The diff you need.
Not the repository you don’t.
Move from a whole commit to one changed file in a keystroke. Search diffs, filter commits, and make every prompt deliberate.
Git history, finally conversational
Browse branches, commits, files, and colorized diffs in one terminal view. Then ask the selected change what it does, why it exists, and where it might break.
01 choose a branch02 find a commit 03 focus a file04 inspect the diff 05 ask with that exact context
The problem
Commit messages are often too short. Diffs are too large. And copying both into a generic chat window loses the thread every time. git-explain-tui keeps the evidence, the question, and the answer in one place.
A better investigation loop
Switch branches, filter commit history, and move through focused changes without leaving your terminal.
Ask about the full patch, a selected file, a concise summary, or a branch range. Big changes stay manageable.
Chats remain scoped to the selected commit, file, or range, so follow-up questions retain their evidence and history.
Focused context
Move from a whole commit to one changed file in a keystroke. Search diffs, filter commits, and make every prompt deliberate.
Built for review
One-key actions summarize the change, surface risks, suggest tests, explain a bug fix, or draft a PR note.
History that stays useful
Chats are saved per repository and commit. Copy or export the result when it belongs in a review, issue, or release note.
.git/git-explain-tui/chats/
Pricing
There is no paid tier, feature gate, or git-explain-tui subscription.
Your chosen model provider may charge for its API; local models remain local.
“A terminal-first tool for the question every unfamiliar commit creates:”
Get started
Works on macOS and Linux with Git. The standalone path needs no Python; PyPI options need Python 3.10+. Add a model key only when you want chat.
# macOS / Linux: download the right release binary
curl -fsSL https://raw.githubusercontent.com/mmcs-work/git-explain-tui/main/install.sh | sh
# inside any Git repository
git-explain-tui
# isolated Python tool installation
uv tool install git-explain-tui
# inside any Git repository
git-explain-tui
# if pipx is already installed
pipx install git-explain-tui
# then, inside any Git repository
git-explain-tui
Developing or need unreleased changes? uv tool install git+https://github.com/mmcs-work/git-explain-tui.git. The README also covers virtual-environment installation.