An intelligent VS Code extension that generates AI-powered commit messages using OpenAI's GPT models. Perfect for developers who want to write better, more descriptive commit messages with minimal effort.
✨ Features
🤖 AI-Powered Commit Messages: Generate intelligent commit messages using OpenAI's GPT-4o-mini model
🔧 Customizable Settings: Configure API keys, models, temperature, and token limits
🎯 Smart Context: Analyzes staged and unstaged changes to generate relevant messages
⚡ Quick Integration: Seamlessly integrates with VS Code's built-in Git functionality
🔒 Secure: API keys are stored securely in VS Code's configuration
🚀 Installation
From VS Code Marketplace
Open VS Code
Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
Search for "AI Commit Gollmann"
Click Install
📋 Prerequisites
OpenAI API Key: You'll need an OpenAI API key to use this extension
Git Repository: The extension works with Git repositories
🛠️ Configuration
Initial Setup
Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
Run "AI Commit: Configure Settings"
Enter your OpenAI API key
Configure other settings as needed
Available Settings
Setting
Description
Default
Range
aiCommit.apiKey
Your OpenAI API key
-
-
aiCommit.model
AI model to use
gpt-4o-mini
gpt-4o-mini -gpt-4.1-mini
aiCommit.temperature
Creativity level (0=focused, 2=creative)
0.7
0-2
aiCommit.maxTokens
Maximum tokens for commit message
150
10-500
aiCommit.customPrompt
Custom prompt template
See below
-
🎯 Usage
Generate Commit Message
Use the Source Control panel
Open the Source Control panel (Ctrl+Shift+G / Cmd+Shift+G)
Click the "Generate AI Commit Message" button in the title bar
What Happens
The extension analyzes your staged changes (or unstaged if no staged changes)
Sends the changes to OpenAI's API with your configured prompt
Generates a commit message based on the AI response
Automatically sets the commit message in the Source Control input box