ai-commits-intellij-plugin

ai-commits-intellij-plugin

AI Commits for IntelliJ based IDEs/Android Studio.

Stars: 184

Visit
 screenshot

AI Commits is a plugin for IntelliJ-based IDEs and Android Studio that generates commit messages using git diff and OpenAI. It offers features such as generating commit messages from diff using OpenAI API, computing diff only from selected files and lines in the commit dialog, creating custom prompts for commit message generation, using predefined variables and hints to customize prompts, choosing any of the models available in OpenAI API, setting OpenAI network proxy, and setting custom OpenAI compatible API endpoint.

README:

logo

AI Commits

AI Commits for IntelliJ based IDEs/Android Studio.

Build Status


Description

AI Commits is a plugin that generates your commit messages by using git diff and LLMs. To get started, install the plugin and configure a LLM API client in plugin's settings: Settings > Tools > AI Commits

Features

  • Generate commit message from git diff using LLM
  • Compute diff only from the selected files and lines in the commit dialog
  • Create your own prompt for commit message generation
  • Use predefined variables and hint to customize your prompt

Supported models

  • Anthropic
  • Azure Open AI
  • Gemini
  • Open AI
  • Ollama
  • Qianfan (Ernie)

The plugin is implemented in a generic way and uses langchain4j for creating LLM API clients. If you would like to use some other LLM model that is supported by langchain4j, please make a feature request in GitHub issues.

Demo

Demo.

Compatibility

IntelliJ IDEA, PhpStorm, WebStorm, PyCharm, RubyMine, AppCode, CLion, GoLand, DataGrip, Rider, MPS, Android Studio, DataSpell, Code With Me

Install

Or you could install it inside your IDE:

For Windows & Linux: File > Settings > Plugins > Marketplace > Search for "AI Commits" > Install Plugin > Restart IntelliJ IDEA

For Mac: IntelliJ IDEA > Preferences > Plugins > Marketplace > Search for "AI Commits" > Install Plugin > Restart IntelliJ IDEA

Installation from zip

  1. Download zip from releases
  2. Import to IntelliJ: Settings > Plugins > Cog > Install plugin from disk...
  3. Set LLM client configuration in plugin's settings: Settings > Tools > AI Commits

Support

Change log

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Acknowledgements

License

Please see LICENSE for details.

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for ai-commits-intellij-plugin

Similar Open Source Tools

For similar tasks

For similar jobs