Nutlope/aicommits
A CLI that writes your git commit messages for you with AI
What it solves
Writing meaningful git commit messages is often a tedious chore. aicommits automates this process by using AI to analyze your staged changes and generate a concise, descriptive commit message for you.
How it works
The tool reads the list of staged files and their diffs from Git. It then sends this information to a configured LLM provider. Depending on the provider, it uses either an agentic generation flow (where the model requests specific diffs it needs) or a one-shot path. It ensures that only staged changes are sent to the AI, protecting your unstaged edits.
Who it’s for
Developers who want to save time and maintain a consistent commit history without manually writing every message.
Highlights
- Multi-provider support: Works with TogetherAI, OpenAI, Groq, xAI, OpenRouter, Ollama (local), and LM Studio (local).
- Customizable formats: Supports multiple styles including plain, Conventional Commits, gitmoji, and subject+body formats.
- Flexible integration: Can be used as a standalone CLI tool or integrated as a Git hook (
prepare-commit-msg) for a seamless workflow. - Prompt customization: Allows users to provide custom prompts to guide the AI's tone, language, or focus.
- Multiple recommendations: Ability to generate several options to choose from using the
--generateflag.
Related
- Project
- Project
- Project
- Project
- Project