AIGitCommit

Project Url: HMYDK/AIGitCommit
Introduction: This plugin uses AI to automatically generate commit messages based on the changes in your code.
More: Author   ReportBugs   OfficialWebsite   
Tags:
AI Git Commit logo

AI Git Commit

JetBrains Marketplace downloads JetBrains Marketplace version

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.txt in 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

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.

Install AI Git Commit from the JetBrains Marketplace

Quick start

  1. Open Settings/Preferences > Tools > AI Git Commit.
  2. Select an AI provider, model, and commit-message language.
  3. Open the provider settings, then enter the endpoint and API key if required.
  4. Optionally configure custom prompts, file filtering, and the system proxy.
  5. 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.

Apps
About Me
GitHub: Trinea
Facebook: Dev Tools
AI Daily Digest