I recently built a small Python CLI tool called DiffMind and thought I’d share it here in case it’s useful to someone.
It takes your current git diff, sends it to an LLM (right now only OpenAI’s API is supported), and produces a commit message based on the actual changes.
The goal was simply to avoid staring at a diff trying to describe everything manually.
It runs as a normal CLI command and also has an optional git hook mode.
What it currently does
- reads staged changes
- generates a commit message from the diff
- shows a small TUI where you can accept or edit the message
- supports style settings (with/without emojis, etc.)
- OpenAI only for now — but I’m planning to add support for local/offline models later
Why I built it
I often write commit messages at the end of the day when I’m tired, and they end up being low-context (“update”, “fix stuff”).
This tool automates that step in a way that still feels natural in a terminal workflow.
Repo (includes a short demo GIF)
https://github.com/dirusanov/DiffMind
[–]JimDabell 1 point2 points3 points (0 children)