WTF Commit ✨
A minimalist VS Code extension that uses AI to generate concise and meaningful Git commit messages from your staged changes (or working tree changes).
⏱️ Quick Start
Install
Search for WTF Commit in the Open VSX Extensions marketplace and install.
Set API Key
Press Cmd+Shift+P, type WTF Commit: Set API Key, select your provider, and paste your key.
Generate
Press Cmd+Alt+G. The extension will automatically generate a message based on your code diff.
🚀 Features
Multi-lingual Support
Preset support for English, Chinese, Japanese, Classical Chinese, and Custom strings. Want emojis only? Set a custom language.
Conventional Commits
Automatically follows conventional commit standards (feat, fix, docs, etc.) for a clean and consistent Git history.
Intent-Aware Generation
Reuses any text already typed into the SCM input box as a zero-config generation hint for more accurate messages.
Streaming Generation
Real-time streaming output so you can see the commit message as it's being generated, no waiting for the full response.
Interactive Tuning
Auto-commit flows support real-time message editing without blocking Git staging. Fine-tune before pushing.
Lightweight Recovery
Offers an inline AI Repair action when the generated title format needs a quick fix.
Full Automation
Pipeline
-
🚀
Smart Diffing
Prioritizes staged changes, falls back to working tree changes, and strips low-value diff noise before generation.
-
🔄
Auto Commit & Push
Full automation pipeline — generate, commit, and push in one keystroke without lifting your hands.
-
�️
Reliable Request Flow
Built-in timeout + automatic retry with categorized API error handling. Extended reasoning for DeepSeek and other thinking models.
-
⌨️
Keyboard Shortcuts
Default binding Cmd+Alt+G (Mac) / Ctrl+Alt+G (Windows/Linux). Supports chorded keybindings.
Supported Providers
| Provider | Default Model |
|---|---|
| OpenAI | gpt-5-nano |
| DeepSeek | deepseek-v4-flash |
| Moonshot (Kimi) | kimi-k2.6 |
| GLM (Zhipu) | glm-5.1 |
| Gemini | gemini-3.1-flash-lite |
| OpenRouter | openrouter/free |
| Custom | Any OpenAI-compatible endpoint |
🕹️ Other Ways to Trigger
-
✨
Source Control Icon — Click the ✨ icon at the top of the Git panel.
-
🎨
Command Palette — Run
WTF Commit: GenerateorWTF Commit: Set API Key. -
🎹
Chorded Keybinding — Bind a double-press like Cmd+G Cmd+G via Keyboard Shortcuts (Cmd+K Cmd+S).
Ready to level up?
Simplify your workflow and keep your Git history clean with AI.