cd /news/ai-tools/i-built-a-cli-tool-that-writes-bette… · home topics ai-tools article
[ARTICLE · art-14487] src=dev.to pub= topic=ai-tools verified=true sentiment=↑ positive

I Built a CLI Tool That Writes Better Git Commits Than I Do

A developer built git-copilot, a CLI tool that generates conventional commit messages by analyzing staged diffs using pure Python standard library with no AI or API calls. The tool automatically detects commit types based on file patterns, infers scope from directory names, and identifies breaking changes from migration files or keywords.

read1 min publishedMay 26, 2026

Have you ever stared at a terminal after git commit

, trying to remember what you changed?

I have. Every single day.

Then I'd type "fixed stuff" or "update" and move on. Six months later, every git log

was a graveyard of useless messages.

So I built git-copilot.

$ git add .
$ git-copilot gen
✨ feat(api): add user routes and controller
3 file(s), +124/-15 lines

Reads your staged diff, analyzes the files, and generates a conventional commit message. About 5 seconds.

No AI. No API calls. No internet. Pure Python stdlib with smart heuristics.

Change Auto-detects
src/*.py, *.js feat
_test.py, spec.js test
README.md, docs/* docs
Dockerfile, .github/ build or ci
*.css, *.scss style

Scope is inferred from directory names - api/, ui/, db/, auth/, config/. Breaking changes detected from migration files or BREAKING CHANGE keywords.

pip install git-copilot

Or from GitHub:

git clone https://github.com/zhirenhun-stack/git-copilot
cd git-copilot && pip install -e .
git-copilot gen
git-copilot gen --type fix
git-copilot config
git-copilot init

The free version is fully functional and open source. The Pro Pack includes:

I got tired of writing "wip" for every commit. Now I run git-copilot gen | git commit -F -

and get back to coding. Clean commits, every time.

Repo: https://github.com/zhirenhun-stack/git-copilot

Pro Pack: https://zhirenhun.gumroad.com/l/git-copilot-pro

── more in #ai-tools 4 stories · sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-built-a-cli-tool-t…] indexed:0 read:1min 2026-05-26 ·