thomwebb/gac

Intelligent LLM-powered git commit message generator that understands your code! Supports multiple languages!

What it solves

gac (Git Auto Commit) is a CLI tool that automates the creation of high-quality, contextual commit messages. It replaces the manual git commit -m "..." process by using Large Language Models (LLMs) to analyze code changes and explain the "why" behind them, rather than just listing what changed.

How it works

The tool analyzes the current Git diff and code structure to understand the intent of changes. It then sends this context to a configured LLM provider to generate a commit message. Users can review, edit, or provide feedback to the reroll the message before confirming the commit.

Who it’s for

Developers who want to maintain a clean, descriptive commit history without the manual effort of writing detailed messages, and those who need to adhere to specific formats like Conventional Commits or DCO sign-offs.

Highlights

  • Extensive Provider Support: Supports over 35 LLM providers including OpenAI, Anthropic, Gemini, DeepSeek, and local options like Ollama.
  • Smart Analysis: Recognizes refactoring, bug fixes, and features, and can automatically group related changes into multiple logical commits.
  • C Customizable Formats: Offers one-liner, standard, verbose, and 50/72 rule formats, with support for 25+ languages.
  • Interactive Workflow: Features an interactive feedback system where users can refine messages via TUI or external editors, and an --interactive mode for the LLM to ask the developer questions.
  • Security: Includes built-in secret detection to prevent API keys and passwords from being committed.
  • Agent Integration: Provides an MCP server to expose commit tools to AI agents.
  • Usage Statistics: Local tracking of token usage, latency, and commit streaks.

Related

  • Project
  • Project
  • Project
  • Project
  • Project