AI Git
AI-Powered Git Commits

AI Git

Generate semantically correct, Conventional Commits-compliant git commit messages with AI. Analyze your changes, understand your intent, commit automatically.

Terminal — ai-git
AI Git v2.0.0
▄▀█ █   ▄▄ █▀▀ █ ▀█▀
█▀█ █   ░░ █▄█ █ ░█░
Welcome to AI Git!
~/projects/my-app
Features:
  • • Conventional Commits format
  • • Smart scope detection
  • • Interactive refinement
Tip: ai-git --dry-run
Print the prompt without calling AI

Features

Everything you need for perfect commit messages

AI-Powered

Analyzes diffs and understands the semantic intent behind your code changes.

Conventional Commits

Strictly adheres to v1.0.0 specification with 50-character header limits.

Interactive TUI

Beautiful terminal UI for staging, editing, and confirming your commits.

Token Efficient

Uses TOON format to minimize prompt size and reduce API costs.

Multiple Providers

Claude Code, Gemini CLI, OpenRouter, OpenAI, Anthropic, and more.

Secure Storage

API keys stored in macOS Keychain, never in config files.

How It Works

Three simple steps to perfect commit messages

1

Run AI Git

Just run ai-git in your repository. No manual staging required.

bash
ai-git
2

Select Files to Stage

Interactively choose files to stage: select all, pick specific files, or skip if already staged.

terminal
? Select files to stage
◉ src/auth/oauth.ts
◉ src/auth/session.ts
◯ src/utils/helpers.ts
> Stage selected Stage all Skip
3

Review & Commit

Review the AI-generated message, edit if needed, and commit with confidence.

commit
feat(auth): add OAuth2 login flow
- implement Google OAuth provider
- add session token management
- create login/logout endpoints

Supported Providers

Choose from local CLI tools or cloud APIs

Claude CodeCLI

Anthropic's Claude via local CLI

Gemini CLICLI

Google's Gemini via local CLI

OpenRouterAPI

Access 100+ models via API

OpenAIAPI

GPT models via API

AnthropicAPI

Claude models via API

Google AI StudioAPI

Gemini models via API

CLI providers work locally without API keys. API providers require keys stored securely in your macOS Keychain.

Installation

Get started in seconds

bash
brew tap sadiksaifi/tap
brew install ai-git

Recommended for macOS users

First Run

After installation, simply run the command to start the interactive setup:

bash
ai-git