AI-powered git commit message generator for VS Code. Click the ✨ button in the Source Control panel and let Claude Code draft your commit message from the staged diff.
Spark Commit adds no proxy, no telemetry, and no third-party collection of its own. Your staged diff flows from VS Code to the Claude CLI on your machine, which then sends it to Anthropic under your own account — the same data path claude uses when you run it in a terminal.
- Claude Code CLI installed and authenticated. Verify with
claude --version. - Git (comes with VS Code's git extension; the CLI must be on PATH).
- VS Code
^1.85.0.
From the VS Code Marketplace: search for Spark Commit and install.
Or build from source:
npm install
npm run compile
npm run package
code --install-extension spark-commit-*.vsix- Stage changes with
git add(or via the Source Control panel). - Open the Source Control panel.
- Click the ✨ icon in the panel's title bar.
- The commit message field animates with
⏳ Generating commit message…. - Claude reads the staged diff, generates a message, and writes it to the field.
- Review, edit if needed, commit.
The button also works via the Command Palette: Spark Commit: Generate Commit Message.
In a multi-repository workspace the button operates on the repo whose title you clicked. When invoked from the Command Palette, the extension picks the repo of the active editor — or asks you if none matches.
Open Preferences → Extensions → Spark Commit.
| Setting | Description |
|---|---|
sparkCommit.cliPath |
Absolute path to the Claude CLI. Leave empty to use claude from PATH. Useful when VS Code doesn't inherit PATH from your shell. |
sparkCommit.prompt |
Prompt template passed to Claude. Use {diff} as a placeholder for the staged diff. If {diff} is missing, the diff is appended at the end. |
sparkCommit.model |
Model passed to the Claude CLI via --model. Shortcuts: sonnet, opus, haiku. Exact versions like claude-opus-4-7 also work. Empty = CLI default. |
Wygeneruj commit message po polsku w stylu conventional commits
(feat/fix/chore/refactor/docs/test/...).
Pierwsza linia max 72 znaki w trybie rozkazującym, bez markdownu.
{diff}
The VS Code Source Control panel has a built-in ✨ button, but it only works with GitHub Copilot and can't be rebound to another provider. Community alternatives exist but are small projects without audit. Spark Commit is minimal (≈150 lines of TypeScript, no runtime dependencies) — you can read the whole source before trusting it.
If Spark Commit saves you time, consider sponsoring on GitHub.