Commit Generator
Built by Ciro Cesar Maciel — because I got tired of writing the same commit messages over and over.
I built this extension for myself. I was spending too many seconds (which add up to hours, which add up to days) staring at the commit input box trying to summarize what I just did. Existing tools either locked me into one model, one provider, or one pricing plan. So I built the one I actually wanted to use — and I'm sharing it.
One click → a clean commit message, written by the model you choose, paid by the token at OpenRouter prices.
✨ Click the comment icon in the Source Control title bar (or the Commit Msg button in the status bar) and the message lands in the input box ready to commit.
Why this one?
- Bring your own model. Any of the 350+ models on OpenRouter — Gemini 3.5 Flash, Claude Sonnet 4.6, GPT-4o, DeepSeek V4, Qwen Coder Flash, Llama, Mistral, you name it. Switch whenever a new one drops.
- Pay-per-token. No subscription. A typical commit message costs a fraction of a cent with Gemini Flash.
- No vendor lock-in. Your key, your account, your bill.
- Conventional Commits by default. Or switch to plain prose.
- Multilingual. English, Portuguese, whatever you set.
- Staged-first. Uses your staged diff if there is one; falls back to the working tree otherwise.
Setup
- Get an API key from openrouter.ai/keys.
- Open Settings (
Cmd+,) → search Commit Generator.
- Paste your key into
commitGenerator.openRouterApiKey.
- Pick a model from the dropdown in
commitGenerator.model — or run Commit Generator: Select Model from the Command Palette to browse the live list with prices and context windows.
| Setting |
What it does |
commitGenerator.openRouterApiKey |
Your OpenRouter key (sk-or-...). |
commitGenerator.model |
Any model slug from OpenRouter. Defaults to openai/gpt-4o-mini. |
commitGenerator.style |
conventional (default) or plain. |
commitGenerator.language |
english, portuguese, etc. |
commitGenerator.maxDiffChars |
Truncate large diffs before sending (default 12000). |
Use it
Two ways, pick your favorite:
- Comment icon in the Source Control title bar.
- Status bar:
💬 Commit Msg in the bottom-left.
Want a keyboard shortcut? Open the Keybindings UI, search for "Commit Generator: Generate" and bind any combo you like.
Edit files → click → review the message → commit.
About me
I'm a developer building tools I want to use. More of my stuff at ciromaciel.click.
If this saved you time, send it to a friend who still types fix stuff into the commit box.
Build from source
npm install
npm run sync-models # refresh the model list from OpenRouter
npm run compile
npm run package # produces a .vsix
Proprietary — see LICENSE.