CommitWhisper is an AI-powered extension that automates your commit messages. Generate clear, concise, and informative commit messages based on your staged changes using Google's Gemini AI.
Features
Automated Commit Messages: Generates commit messages based on the git diff.
Incremental Generation: Supports large diffs by breaking them into chunks and combining responses.
Ticket Extraction: Optionally extracts a ticket number from your branch name and inserts it into a customizable commit title template.
Configurable: Modify settings such as your Gemini API key, ticket regex, and commit title template directly in VS Code.
Skip Pre-commit Hooks: New option to bypass pre-commit hooks (e.g., Husky, lint) during commit. By default, this option is disabled.
Commit Error Handling: If a commit fails (when pre-commit hooks are not skipped), an error is displayed with the generated commit message and an option to copy it to your clipboard.
Installation
Open VS Code.
Go to the Extensions view by clicking on the Extensions icon or pressing Ctrl+Shift+X (Cmd+Shift+X on macOS).
Search for CommitWhisper.
Click Install.
Setup
Before using CommitWhisper, you must generate a Gemini API key. If you don’t have one, generate it at: https://aistudio.google.com/apikey
Then, add the API key and other settings to your VS Code settings. For example: