Skip to content

VizzleTF/CommitSage

Folders and files

NameName
Last commit message
Last commit date
Feb 1, 2025
Feb 10, 2025
Feb 10, 2025
Jan 21, 2025
Jan 29, 2025
Jan 21, 2025
Sep 30, 2024
Jan 29, 2025
Jan 29, 2025
Feb 1, 2025
Jan 30, 2025
Jan 29, 2025
Feb 17, 2025
Feb 17, 2025
Jan 21, 2025
Feb 1, 2025
Jan 20, 2025

Repository files navigation

Commit Sage (formerly GeminiCommit)

Visual Studio Marketplace Version Visual Studio Marketplace Last Updated Visual Studio Marketplace Installs Visual Studio Marketplace Rating

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)

Commit Sage in action

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

  • Provider Selection (commitSage.provider.type):

    • Choose between: gemini, openai, codestral, ollama
    • Default: gemini
  • Gemini Settings:

    • Model (commitSage.gemini.model):
      • Options: gemini-1.0-pro, gemini-1.5-pro, gemini-1.5-flash, gemini-2.0-flash-exp
      • Default: gemini-1.5-flash
  • OpenAI Settings:

    • Model (commitSage.openai.model): Default gpt-3.5-turbo
    • Base URL (commitSage.openai.baseUrl): For custom endpoints/Azure
  • Codestral Settings:

    • Model (commitSage.codestral.model):
      • Options: codestral-2405, codestral-latest
      • Default: codestral-latest
  • Ollama Settings:

    • Base URL (commitSage.ollama.baseUrl): Default http://localhost:11434
    • Model (commitSage.ollama.model): Default llama3.2

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

  • Enable (commitSage.commit.useCustomInstructions):

    • Default: false
  • Instructions (commitSage.commit.customInstructions):

    • Custom prompt instructions
    • Used when enabled

Telemetry

  • Enable (commitSage.telemetry.enabled):
    • Collects anonymous usage data
    • Default: true

Usage

  1. Stage your changes in Git
  2. Press Cmd+G (Mac) / Ctrl+G (Windows/Linux)
  3. Or click the Commit Sage icon in the Source Control view
  4. Wait for the AI to analyze changes and generate a message
  5. Review and edit the message if needed
  6. 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 ΠΈ Π΄Ρ€ΡƒΠ³ΠΈΠ΅).

Установка

  1. УстановитС ΠΈΠ· VS Code Marketplace
  2. ΠŸΠΎΠ»ΡƒΡ‡ΠΈΡ‚Π΅ API ΠΊΠ»ΡŽΡ‡:
    • Для Gemini: Google AI Studio
    • Для Codestral: Mistral AI Console
    • Для Π΄Ρ€ΡƒΠ³ΠΈΡ…: Π˜ΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠΉΡ‚Π΅ ΠΊΠ»ΡŽΡ‡ ΠΎΡ‚ OpenAI ΠΈΠ»ΠΈ Π΄Ρ€ΡƒΠ³ΠΎΠ³ΠΎ совмСстимого сСрвиса
  3. НастройтС ΠΊΠ»ΡŽΡ‡ Π² 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 ΠΊΠ»ΡŽΡ‡

ИспользованиС

  1. Π”ΠΎΠ±Π°Π²ΡŒΡ‚Π΅ измСнСния Π² Git (git add)
  2. ΠžΡ‚ΠΊΡ€ΠΎΠΉΡ‚Π΅ ΠΏΠ°Π»ΠΈΡ‚Ρ€Ρƒ ΠΊΠΎΠΌΠ°Π½Π΄ (Ctrl+Shift+P / Cmd+Shift+P)
  3. Π’Π²Π΅Π΄ΠΈΡ‚Π΅ "Commit Sage: Generate Commit Message"
  4. ΠŸΡ€ΠΎΠ²Π΅Ρ€ΡŒΡ‚Π΅ ΠΈ ΠΏΠΎΠ΄Ρ‚Π²Π΅Ρ€Π΄ΠΈΡ‚Π΅ сгСнСрированноС сообщСниС

Настройка

ВсС настройки доступны Ρ‡Π΅Ρ€Π΅Π·:

  • ΠŸΠ°Π»ΠΈΡ‚Ρ€Π° ΠΊΠΎΠΌΠ°Π½Π΄ β†’ "Preferences: Open Settings (UI)"
  • Поиск "Commit Sage"

ΠŸΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ°