← Work

Developer tooling

git-auto-commit

A Rust CLI that reads staged Git changes, asks a local Ollama model for a commit message, and confirms before running the commit.

Role
CLI tool author
Year
2026
Stack
Rust, Ollama, clap, reqwest, Git

Problem

Writing commit messages is small work, but it interrupts flow. The useful version of this idea is not a magic auto-commit button; it is a tool that reads the staged change, proposes a message, and still lets the developer confirm before anything is committed.

Approach

The CLI is written in Rust and uses clap for command-line structure. It reads staged Git diffs, skips common build artifacts and noisy files, sends the useful diff context to a local Ollama model, and prompts for confirmation before running git commit.

Outcome

The CLI turns staged Git changes into locally generated commit-message suggestions while preserving a confirmation step before committing. The repository includes tests, installation scripts, and release workflows for a repeatable command-line distribution process.