Gabriel Mitelman Tkacz

Gabriel Mitelman Tkacz

Software Engineer

Forums

smart-commit-rs: A lightweight CLI to manage and generate git commit messages

Hey everyone,

I wanted to share smart-commit-rs, a fast, lightweight cross-platform CLI tool I built to facilitate managing git commits, including generating messages via LLMs.

Why this commit generator? I really liked the workflow of tools like opencommit, but I hated the footprint and lack of customization. They require Node.js and pull in ~100MB of node_modules just to string together a diff and an API call. They also suffer from Node cold-start times (~300ms).

I rewrote this concept in Rust. smart-commit-rs (alias: cgen) is a single ~2MB static binary with absolutely zero runtime dependencies. It starts instantly and generates messages in ~800ms. The plan is to make the entire flow as customizable as possible. We currently have 21 configurable variables, with plans to make this even more tailorable to what you want.

View more