🤖 AI Commit Assistant
Generate professional git commit messages instantly using Google Gemini AI - right inside VS Code!
✨ Features
- 🎯 AI-Powered: Analyzes your code changes and generates 3 commit message suggestions
- 📝 Conventional Commits: Follows industry standards (feat:, fix:, refactor:, etc.)
- ⚡ One Click: Click the sparkle icon in Source Control to generate messages
- 🔒 Secure: API key stored securely in VS Code settings
- 🌐 Smart: Handles multiple files and understands context
🚀 Quick Start
1. Install the Extension
Search for "AI Commit Assistant" in VS Code Extensions
2. Get Your API Key
- Visit Google AI Studio
- Click "Create API Key"
- Copy your key
Option A: When prompted
- The extension will ask for your API key on first use
Option B: Manually
- Press
Ctrl+Shift+P (or Cmd+Shift+P on Mac)
- Type:
AI Commit: Set API Key
- Paste your key
Option C: Settings
- Open Settings (
Ctrl+, )
- Search for
aiCommit.apiKey
- Paste your key
📖 Usage
Method 1: Source Control Icon (Recommended)
- Stage your changes (
git add )
- Click the ✨ sparkle icon in the Source Control panel
- Choose from 3 AI-generated messages
- Done! ✅
Method 2: Command Palette
- Stage your changes
- Press
Ctrl+Shift+P
- Type:
AI Commit: Generate Message
- Select your preferred message
🎯 Example
# You make changes to multiple files
# Stage them
git add .
# Click the sparkle icon ✨
# AI generates:
1. feat: add user authentication with JWT tokens
2. feat: implement login and signup endpoints
3. refactor: add auth middleware for protected routes
# Choose option 1 → Committed! 🎉
⚙️ Extension Settings
This extension contributes the following settings:
aiCommit.apiKey : Your Gemini API key (stored securely)
🔐 Privacy & Security
- Your API key is stored locally in VS Code settings
- Code diffs are sent only to Google's Gemini API
- No data is stored or logged by this extension
- You can remove your API key anytime in settings
🛠️ Commands
Command |
Description |
AI Commit: Generate Message |
Generate commit messages for staged changes |
AI Commit: Set API Key |
Configure your Gemini API key |
💡 Tips
- Stage only related changes for better commit messages
- The AI analyzes up to 3000 characters of your diff
- Messages are automatically limited to 72 characters
- You can always write a custom message if needed
🐛 Known Issues
- Requires internet connection for AI generation
- Works only with Git repositories
- Changes must be staged before generating messages
📝 Release Notes
1.0.0
- Initial release
- AI-powered commit message generation
- Support for conventional commits
- Interactive message selection
- Secure API key management
🤝 Contributing
Found a bug? Have a feature request?
Open an issue on GitHub
📄 License
MIT
Enjoy! ⭐ If you like this extension, please rate it on the marketplace!
| |