Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Commit MateNew to Visual Studio Code? Get it now.
Commit Mate

Commit Mate

Chandru Vinayagam

|
3 installs
| (0) | Free
AI-powered Git commit message generation using local Ollama models. Supports Conventional Commits, works offline, and keeps your code private.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CommitMate Local

Generate concise Git commit messages — and Python docstrings — inside VS Code, powered entirely by local Ollama models.

No cloud API. No subscription. No data leaving your machine.

What it does

CommitMate Local reads your staged Git diff and asks a local Ollama model to write a concise, Conventional Commit-style message — right from the Source Control panel. Everything runs on your machine, so your code diffs never leave localhost.

Features

  • ✅ Generate commit messages directly from the Source Control view
  • ✅ Analyzes only staged changes (git diff --cached)
  • ✅ Runs fully locally through Ollama — no external AI API required
  • ✅ Ships with qwen2.5-coder:3b as the default model
  • ✅ Produces Conventional Commit-style messages (feat:, fix:, chore:, …)
  • ✅ Auto-fills the commit input box — review and edit before committing
  • ✅ Skips generation entirely when nothing is staged
  • ✅ Excludes lockfiles and minified files, and truncates huge diffs to fit the model
  • ✅ Switch model or endpoint from the status bar or Command Palette
  • ✅ Generate Google-style docstrings for Python functions (select the function, then Cmd+Shift+D)

Requirements

Before using this extension, make sure you have:

  • Ollama installed and running locally

  • The default model pulled:

    ollama pull qwen2.5-coder:3b
    

Start the Ollama server before generating commit messages:

ollama serve

By default, Ollama listens on http://127.0.0.1:11434.

Installation

Install CommitMate Local from the VS Code Marketplace (search for "Commit Mate"), or download the latest .vsix from the GitHub Releases page and run:

code --install-extension commit-mate-local-<version>.vsix

Getting Started

  1. Install and start Ollama, then pull the default model (see Requirements).
  2. Open a Git repository in VS Code.
  3. Stage the changes you want to commit (git add <file>, or use the Source Control view).
  4. Open the Source Control panel.
  5. Click Generate Local Commit Message.
  6. Review the generated message in the commit input box — edit if needed.
  7. Commit as usual.

Example output:

feat: add membership cancellation eligibility validation

Generating Docstrings

  1. Open a Python file and select a whole function, starting at its def line.
  2. Press Cmd+Shift+D (macOS) or right-click and choose CommitMate: Generate Docstring.
  3. A Google-style docstring is inserted as the first statement of the function.

Docstring generation is currently Python only. It skips functions that already have a docstring, and it will not edit the file if you change it while the docstring is being generated.

Extension Settings

Setting Description Default
commitmateLocal.model Ollama model used for generation qwen2.5-coder:3b
commitmateLocal.ollamaUrl Ollama /api/generate endpoint http://127.0.0.1:11434/api/generate
commitmateLocal.timeoutMs Milliseconds to wait before aborting a request (raise it if a large model is slow to load) 30000
commitmateLocal.confirmOverwrite Ask before overwriting an existing commit message true
commitmateLocal.maxDiffChars Max diff characters sent to the model; larger diffs are truncated per file 12000

You don't have to edit settings by hand. Click the model name in the status bar, or run CommitMate Local: Select Ollama Model to pick from the models installed in Ollama, and CommitMate Local: Set Ollama Endpoint to change the server URL. Pointing at a non-local endpoint asks for confirmation, because your diffs would leave your machine. Changes are saved to your user settings, or to the workspace settings if the workspace already overrides that setting.

Privacy

CommitMate Local is designed to work exclusively with a locally running Ollama server. Staged Git diff content is sent only to your local endpoint (http://127.0.0.1:11434 by default) for commit-message generation. No external AI API key is required, and no diff content leaves your machine under the default configuration. If you point the extension at a non-local endpoint, it asks you to confirm first.

Known Issues

  • No staged changes → nothing to generate. Stage at least one change first.
  • If Ollama isn't running, generation will fail — start it with ollama serve.
  • If the configured model isn't installed, pull it with ollama pull qwen2.5-coder:3b (the error message names the model).
  • The first request after Ollama starts can be slow while the model loads. If it times out, raise commitmateLocal.timeoutMs.
  • Very large diffs are truncated per file to commitmateLocal.maxDiffChars, and lockfiles and minified files are ignored, so the message reflects the most important changes rather than every line.
  • Docstring generation supports Python only, and needs a selection that includes the whole function signature.

See the issue tracker for the latest known issues.

Release Notes

Every merge to main publishes a new version. See the GitHub Releases page for what changed in each one, or CHANGELOG.md for the early history.

Feedback & Contributing

Bug reports, feature requests, and pull requests are welcome on GitHub.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft