
Commit Sage is a VSCode extension that automatically generates commit messages using various AI providers:
- Gemini (default, requires API key, free)
- OpenAI (requires API key or compatible provider)
- Codestral (requires API key, free)
- Ollama (local, free)

Features
- 🤖 AI-powered commit message generation
- 🌍 Multiple language support (English, Russian, Chinese, Japanese)
- 📝 Various commit formats (Conventional, Angular, Karma, Semantic, Emoji)
- 🔄 Smart handling of staged/unstaged changes
- 🚀 Auto-commit and auto-push capabilities
- 🎯 Custom instructions support
- ⚡ Fast and efficient processing
Configuration
Get your API key:
AI Provider Settings
Commit Settings
Language (commitSage.commit.commitLanguage ):
- Options:
english , russian , chinese , japanese
- Default:
english
Format (commitSage.commit.commitFormat ):
- Options:
conventional , angular , karma , semantic , emoji
- Default:
conventional
Staged Changes (commitSage.commit.onlyStagedChanges ):
- When enabled: Only analyzes staged changes
- When disabled:
- Uses staged changes if present
- Uses all changes if no staged changes
- Default:
false
Auto Commit (commitSage.commit.autoCommit ):
- Automatically commits after message generation
- Default:
false
Auto Push (commitSage.commit.autoPush ):
- Automatically pushes after auto-commit
- Requires Auto Commit to be enabled
- Default:
false
References (commitSage.commit.promptForRefs ):
- Prompts for issue/PR references
- Default:
false
Custom Instructions
Telemetry
- Enable (
commitSage.telemetry.enabled ):
- Collects anonymous usage data
- Default:
true
Usage
- Stage your changes in Git
- Press
Cmd+G (Mac) / Ctrl+G (Windows/Linux)
- Or click the Commit Sage icon in the Source Control view
- Wait for the AI to analyze changes and generate a message
- Review and edit the message if needed
- Commit as usual
Requirements
- VSCode 1.93.0 or higher
- Git installed and configured
- Internet connection (except for Ollama)
- API key for OpenAI/Codestral (if using those providers)
License
MIT
Support
If you encounter any issues or have suggestions, please open an issue.
Commit Sage (на русском)
Commit Sage - расширение VSCode для автоматической генерации сообщений коммитов с использованием Gemini AI от Google, Codestral API или OpenAI API (OpenAI, Ollama, LocalAI и другие).
Установка
- Установите из VS Code Marketplace
- Получите API ключ:
- Настройте ключ в VS Code:
- Откройте палитру команд (Ctrl+Shift+P / Cmd+Shift+P)
- Введите "Commit Sage: Set Gemini API Key", "Commit Sage: Set Codestral API Key" или "Commit Sage: Set Custom API Key"
- Введите ваш API ключ
Использование
- Добавьте изменения в Git (git add)
- Откройте палитру команд (Ctrl+Shift+P / Cmd+Shift+P)
- Введите "Commit Sage: Generate Commit Message"
- Проверьте и подтвердите сгенерированное сообщение
Настройка
Все настройки доступны через:
- Палитра команд → "Preferences: Open Settings (UI)"
- Поиск "Commit Sage"
Поддержка
| |