CLI tool for generating git commit messages using AI
Top 6.1% on sourcepulse
AI Commits is a command-line interface (CLI) tool designed to automate the creation of Git commit messages using AI. It targets developers who want to streamline their workflow by generating descriptive commit messages based on code changes, saving time and ensuring consistency.
How It Works
The tool leverages git diff
to capture staged code modifications. This diff output is then sent to OpenAI's GPT models (defaulting to gpt-3.5-turbo
) for processing. The AI generates commit messages based on the provided code context, which are then returned to the user for review and use in their Git commits.
Quick Start & Requirements
npm install -g aicommits
aicommits config set OPENAI_KEY=<your token>
Highlighted Details
--generate <i>
).--type conventional
).prepare-commit-msg
hook for seamless usage.aicommits --all
).Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The tool relies on OpenAI's API, incurring costs based on token usage. Using more advanced models like GPT-4 may improve quality but increases expenses. The max-length
default is 50 characters, which might be restrictive for complex changes.
11 months ago
Inactive