Skip to content

AI Commit Message Generator

jorsm edited this page May 31, 2026 · 3 revisions

AI Commit Message Generator

Generate conventional commit messages directly from VS Code's Source Control view.

Table of Contents

What it does

The extension uses Vertex AI to analyze your staged Git changes and write a professional commit message.

It is designed to produce messages in Conventional Commits style with:

  • an imperative subject line
  • no trailing punctuation
  • a short subject and more descriptive body
  • a proper commit type such as feat, fix, refactor, docs, or chore

How to run it

The command is available in the Git SCM toolbar as a wand icon and also in the Command Palette as:

  • Vertex AI Models Chat Provider: Generate Commit Message

Requirements

  • The workspace must use Git with staged changes.
  • The vscode.git extension must be available.

What it uses

The message generator sends your staged diff to Gemini 3 Flash model and streams the response into the Git commit input box.

It also records usage metrics so the cost dashboard can show the token impact of the request.

Benefits

  • Saves time on commit message writing
  • Encourages consistent commit formatting
  • Works without API keys, using your configured Google Cloud project credentials

Clone this wiki locally