Back to browse
GitHub Repository
6 starsRust

Smart-commit-rs – A zero-dependency Git commit tool in Rust

by gtkacz·Mar 2, 2026·2 points·0 comments

AI Analysis

●●SolidSlickSolve My Problem

2MB Rust binary replaces 100MB Node.js alternative; extensive LLM provider coverage with fallback support.

Strengths
  • Single static binary with zero runtime deps eliminates Node.js cold-start overhead (~300ms vs ~800ms generation).
  • 10+ LLM provider integrations (Groq, OpenAI, Anthropic, DeepSeek, local Ollama) with configurable fallback ranking.
  • Diff exclusion globs and preset management enable fine-grained control over what the LLM sees.
Weaknesses
  • Conventional Commits and Gitmoji are solved problems; competes directly with opencommit without architectural innovation.
  • No demo output or benchmarks provided; claims about speed improvement lack independent verification.
Target Audience

Git users wanting fast, offline-friendly LLM-powered commit message generation without Node.js overhead.

Similar To

opencommit · aicommits · conventional-changelog

Post Description

Hey yall,

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

Here are some of the main features:

* *Convention following:* The tool by default will generate commit messaged according to the Conventional Commit standard, and optionally according to Gitmoji as well. * *Extensive LLM Provider Support:* Built-in integration for Groq (default), OpenAI, Anthropic, Gemini, Grok, DeepSeek, OpenRouter, Mistral, Together, Fireworks, and Perplexity. * *Customer LLM Support:* You can easily point it to a custom provider like a local Ollama instance using OpenAI-compatible endpoints. * *LLM Presets:* You can save various provider presets, being able to freely switch between them. If your primary API throws an HTTP error, you can also configure a fallback rank so the tool automatically retries using the alternate LLM presets you've configured. * *Diff Exclusion Globs:* You can exclude minified assets, `.lock` files, PDFs, etc., from the LLM analysis to save tokens, while still officially committing them. *Advanced Git Tooling:* Message generation doesn't work just with commits. You can use `cgen alter <hash>` to rewrite a specific commit's message, `cgen undo` for a safe soft reset with Conventional Commit-compliant revert messages, or `cgen --tag` to automatically compute and create the next semantic version tag. * *Commit Tracking:* It maintains a per-repository cache of managed commits, browsable via `cgen history` with native `git show` integration.

*A quick note on development:* While the project is rigorously human-reviewed and heavily backed by strict unit testing (matching CI coverage gates), a large portion of the boilerplate and core logic was written using agentic AI.

You can grab it via Cargo (`cargo install auto-commit-rs`) or via the curl/PowerShell install scripts in the repo: https://github.com/gtkacz/smart-commit-rs

Any feedback or contribution is more than welcome, and GitHub stars are greatly appreciated.

Thank you for your time!

Similar Projects

Security●●Solid

AIIR: track AI-assisted Git commits with cryptographic receipts

Zero-dependency cryptographic receipts for AI-assisted commits with SLSA-compatible VSA.

Big BrainNiche Gem
nerlwein
102mo ago