gitmyhub

git-ai

Rust ★ 2 updated 2mo ago

Git-AI: Let AI handle the words so you can handle the code.

A Rust command-line tool that writes AI-generated git commit messages and reviews your staged changes before you push.

RustCargosetup: moderatecomplexity 2/5

Git-AI is a Rust command-line tool that uses AI to generate commit messages and conduct code reviews based on your staged Git changes. Instead of writing a commit message yourself, you stage your files as normal and run the tool, which analyzes the diff and produces a well-worded message. The review feature compares your current branch against a target branch and returns an AI-generated assessment of the changes, including checks for whether the code appears to complete a given ticket, whether previous reviewer comments were addressed, and whether the diff is too large to review meaningfully.

The tool is provider-agnostic, meaning it does not lock you into a single AI service. You can configure it to use OpenAI, Anthropic, Gemini, Groq, DeepSeek, or Perplexity by setting the appropriate environment variable or editing a configuration file. Switching providers or models is also possible per-command via flags.

Configuration is handled through an interactive arrow-key menu in the terminal, where you choose the provider, AI model, commit message format, and color theme. Terminal themes support custom RGB palettes and automatic dark or light mode detection. API keys are stored in environment variables rather than the config file to avoid accidentally committing secrets.

The tool is built in Rust for fast startup and includes release builds for Linux, Windows, and macOS. Installation is via the Cargo package manager or by building from source. The license is MIT.

Where it fits