AIGitCommit
AI Git Commit
AI Git Commit is a JetBrains IDE plugin that analyzes the changes selected in the Commit tool window and generates a clear commit message with the AI provider and model you configure.
Features
- Generate commit messages from selected files, unversioned files, and selected commit hunks.
- Compact large change sets automatically to stay within model context limits.
- Choose the output language and use editable model IDs.
- Create, edit, and reuse multiple custom prompt templates.
- Load a project-specific prompt from
commit-prompt.txtin the project root. - Exclude generated files, lock files, build output, or custom wildcard patterns.
- Use the IDE system proxy when required.
- Review and copy the most recently used prompt.
- Stream generated text when the selected provider supports streaming.
Project prompt files must contain the {diff} placeholder and may use {language} for the selected output language.
Supported AI providers and gateways
- OrcaRouter (free models available)
- Google Gemini
- DeepSeek
- OpenAI API
- OpenAI-compatible providers with a custom endpoint, API key, and model ID
- OpenRouter
- Ollama
- Alibaba Cloud Model Studio (百炼)
- SiliconFlow
- VolcEngine
- Cloudflare Workers AI
- Kimi (Moonshot AI)
The model selector is editable. Model availability and pricing are controlled by each provider and may change over time.
Installation
AI Git Commit requires a JetBrains IDE based on IntelliJ Platform 2024.1 or later.
Install it from the JetBrains Marketplace, or open Settings/Preferences > Plugins > Marketplace, search for AI Git Commit, and select Install.
Quick start
- Open Settings/Preferences > Tools > AI Git Commit.
- Select an AI provider, model, and commit-message language.
- Open the provider settings, then enter the endpoint and API key if required.
- Optionally configure custom prompts, file filtering, and the system proxy.
- In the Commit tool window, select the changes to include and choose Generate AI Commit Message.
Privacy
Generating a commit message sends the selected change context and prompt to the AI service you configured. Review that provider's privacy and data-retention policies before sending sensitive source code. Use Ollama if you prefer a locally hosted model.
Development
The project targets Java 17 and IntelliJ Platform 2024.1.
./gradlew check
./gradlew buildPlugin
See IDE compatibility for supported IDE profiles and release verification steps.
Support
License
Licensed under the GNU General Public License v3.0.
