← All projects

Independent project · Developer tools

AI Commit Message Generator

A JetBrains IDE plugin that drafts editable Git commit messages from selected changes using OpenAI.

Commit messages inside the IDE.

Select your changes, generate a draft, and edit it in the same Commit window you already use.

The plugin is published under 0config.eu. It uses your own OpenAI API key and lets you choose the model and instructions for the message. Generation runs only when requested.

Architecture & decisions

A native IntelliJ Platform plugin collects the selected text changes as a unified diff and sends them, together with the custom prompt, to the OpenAI Responses API. The result is returned to the commit editor for review.

The API key is stored in JetBrains Password Safe. There is no plugin telemetry or request-body logging. Selected diffs are sent to OpenAI for generation, using the user’s API account.

Implementation details

IntelliJ Platform / OpenAI API / Gradle

  • Generate a commit message from the changes selected in the Commit window.
  • Choose an OpenAI model and customize the prompt, including branch and date placeholders.
  • Store the API key in JetBrains Password Safe.
  • Optionally include selected unversioned files without staging them.
  • Preserve the current draft if it is edited while generation is running.
  • Review and edit the result before committing; the plugin never commits or pushes.

The current package targets IntelliJ IDEA and GoLand 2026.2. Oversized diffs are rejected rather than silently truncated.

Outcomes

A focused tool for drafting commit messages without copying diffs into a separate chat. Developers keep control of the final message and the commit itself.

The plugin is free, with source code on GitHub under the MIT license. OpenAI API usage is billed separately.

Explore the project

Find the plugin on JetBrains Marketplace or browse the source.

Have something in mind?

Let's make it work.

[email protected]