tak-bro/aicommit2
A Reactive CLI that generates commit messages for Git and Jujutsu with Ollama, ChatGPT, Gemini, Claude, Mistral and other AI
What it solves
aicommit2 is a command-line interface (CLI) tool that automates the creation of commit messages for developers. It eliminates the manual effort of summarizing code changes by using AI to analyze staged changes and suggest a professional, well-formatted commit message.
How it works
The tool runs a diff of the current code changes (e.g., via git diff --cached) and sends that diff to a configured AI provider. The AI then generates a suggested commit message based on the prompt and desired format. The user can then select the best message from multiple AI providers simultaneously or edit the message before committing.
Who it’s for
Developers who use version control systems like Git, YADM (Yet Another Dotfiles Manager), or Jujutsu (jj) and want to save time and reduce the inconsistency of commit history.
Highlights
- Broad VCS Support: Works seamlessly with Git, YADM, and Jujutsu repositories with automatic detection.
- Multi-AI Integration: Supports a wide array of providers including OpenAI, Anthropic Claude, Google Gemini, Mistral, Cohere, Groq, Ollama, and others.
- Reactive CLI: Allows users to request messages from multiple AIs at once and pick the best one.
- Diff Compression: Reduces token usage by 30-60% through smart diff compression to handle larger changesets.
- AI-Powered Code Review: Provides a structured code review with severity levels before the commit is finalized.
- Customization: Supports user-defined system prompt templates and multiple commit formats like Conventional Commits and Gitmoji.
Related
- Project
- Project
- Project
- Project
- Project