LLM Commit Message

May 25, 2026 · View on GitHub

VS Marketplace Blog

AI-powered git commit message generator for VS Code. One click, perfect Conventional Commits.

🌏 한국어 | 简体中文 | 繁體中文-台灣 | 繁體中文-香港 | 日本語

How It Works

  1. Stage your changes
  2. Click ✨ in the Source Control panel
  3. Done — commit message generated

What Makes It Good

Deep context — not just the diff. Collects project tree, recent commits per file, open tabs, terminal output, and full file snapshots for complex changes.

Any model — GPT, Claude, Gemini, Llama, Mistral via OpenRouter. Default: google/gemini-2.5-flash-lite.

Multi-repo — handles workspaces with multiple git repos.

Transparent — every API request logged. Show Last Payload command to see exactly what was sent.

Setup

  1. Install from Marketplace
  2. Get an API key from OpenRouter
  3. Set kargnas.aiCommit.apiKey in VS Code settings

Key Settings

SettingDefaultDescription
kargnas.aiCommit.apiKeyOpenRouter API key
kargnas.aiCommit.modelgoogle/gemini-2.5-flash-liteModel ID
kargnas.aiCommit.commitLanguageautoOutput language (ko, ja, etc.)
kargnas.aiCommit.maxPatchBytes50000Max total diff size
kargnas.aiCommit.previousCommitLimit10Recent commits for context
kargnas.aiCommit.transportfetchHTTP transport (fetch or curl)

All settings →

Commands

  • AI Commit — Generate commit message from staged changes
  • Ping OpenRouter — Test API connection
  • Show Last Payload — Debug prompt/context
  • Show Logs — Open the AI Commit output channel on demand
  • Open in GitHub — Open current file on GitHub

License

MIT © Sangrak Choi


GitHub · Marketplace · OpenRouter