A smart, free, and customizable AI-powered commit message generator for VS Code.
Just click the robot icon and instantly generate meaningful commit messages for your staged changes — no typing, no guesswork.
⭐ If this project saved you time, please give it a star — it helps a lot!
🍴 Fork it if you want to customize prompts or add features.
You should fork this repository if you want to:
- Customize the AI prompt for your team or workflow
- Switch AI models (Gemini → OpenAI → Claude)
- Add commit styles (emoji, Jira, conventional)
- Publish your own VS Code extension
GitHub Copilot does offer commit message generation — but it’s limited in the free tier.
This extension solves that problem by using Google Gemini AI, giving you:
- ✅ Free commit message generation
- ✅ Customizable prompts
- ✅ Clear, meaningful, and professional commits
- ✅ One-click usage from the VS Code UI
Perfect for developers who want clean commit history without paying for premium tools.
A robot icon appears in your VS Code UI.
Click it → AI analyzes your staged changes → generates a commit message instantly.
Uses Google Gemini instead of Copilot:
- Free to use
- Fast
- Custom prompt support
Automatically generates:
- Clear summaries
- Conventional commit-style messages
- Context-aware descriptions based on code changes
Example:
feat(auth): add JWT-based authentication middlewareBefore installing the extension, make sure your system meets the following requirements:
- Git installed and available in PATH
- Node.js (v18 or later recommended)
- npm installed
- Visual Studio Code
- A valid Google Gemini API key
- A Git repository initialized (git init)
Follow these steps to install the extension manually from source.
git clone https://github.com/your-username/git-auto-commit-generator.git cd git-auto-commit-generator
npm install
Open the file: src/extension.ts
Locate the following line: const apiKey = "Enter your API Key";
Replace it with your actual Google Gemini API key: const apiKey = "YOUR_GEMINI_API_KEY";
Save the file.
npm run compile
If vsce is not installed globally, install it first: npm install -g vsce
Generate the VSIX file: vsce package
This will create a file similar to: git-auto-commit-generator-1.0.0.vsix
- Open Visual Studio Code
- Press Ctrl + Shift + P
- Select Extensions: Install from VSIX
- Choose the generated .vsix file
- Restart VS Code if prompted
- Make code changes
- Stage your files: git add .
- Click the 🤖 Robot Icon or open Command Palette
- Run Generate Commit Message
- Review the generated commit message
- Commit instantly 🚀
- Works only when files are staged
- Large diffs may take slightly longer to process
- Requires active internet connection for Gemini API
Want to contribute? Start here:
- Add emoji commit support
- Improve diff summarization
- Add settings UI for prompt customization
- Improve large diff handling
- 🎉 Initial release
- 🤖 Robot icon integration
- 🧠 Gemini AI-based commit generation
- ⚙️ Custom prompt and style support
This extension follows VS Code best practices. https://code.visualstudio.com/api/references/extension-guidelines
❤️ Built for developers who care about clean Git history