Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Git Message with Codex & ClaudeNew to Visual Studio Code? Get it now.
Git Message with Codex & Claude

Git Message with Codex & Claude

nicholas

|
1 install
| (0) | Free
Generate git commit messages from staged changes first, or fall back to working tree changes, and backfill VS Code's SCM input with local Codex or Claude CLI without auto-committing.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Generate Git Message

Generate concise Git commit messages from your VS Code changes with your existing local Codex or Claude CLI, then write the result directly into VS Code's native Source Control input box.

Why generate-git-message?

You're already investing in Codex or Claude Code. Why pay for Copilot or Cursor just for commit message generation?

This extension leverages your existing AI subscription to bring the same AI-powered commit message workflow directly to VS Code.

Zero additional cost. Zero complexity. Just works.

Usage

  1. Open the Source Control view.
  2. Stage changes if you want the message to use only staged diffs.
  3. Click Generate Commit Message in the Source Control title bar.
  4. Review or edit the generated message.
  5. Commit with VS Code as usual.

You can also open the Generate Git Message activity bar icon to choose provider, model, output language, commit templates, CLI paths, timeout, and debug logging.

Generation behavior

The extension reads staged changes first. If nothing is staged, it falls back to the working tree diff and tells you before generating.

The default prompt follows Conventional Commits: it asks the selected CLI to analyze the diff, choose an accurate type and optional scope, keep the description under 72 characters, add a body only when useful, and mark breaking changes with ! or a BREAKING CHANGE footer.

Settings

Common settings:

  • generateGitMessage.provider: codex or claude.
  • generateGitMessage.model: Codex model.
  • generateGitMessage.claudeModel: Claude model.
  • generateGitMessage.outputLanguage: en, zh, or zh-Hant (defaults to zh).
  • generateGitMessage.commitTemplateEn: English commit template. Use {{diff}} where the Git diff should be inserted.
  • generateGitMessage.commitTemplateZh: Simplified Chinese commit template. Use {{diff}} where the Git diff should be inserted.
  • generateGitMessage.commitTemplateZhHant: Traditional Chinese commit template. Use {{diff}} where the Git diff should be inserted.
  • generateGitMessage.debugLogging: writes diagnostics to the Generate Git Message output channel.

CLI settings:

  • generateGitMessage.codexPath: defaults to codex.
  • generateGitMessage.claudePath: defaults to claude.
  • generateGitMessage.timeoutMs: defaults to 50000.

Notes

  • The extension only fills the commit message box. It never commits for you.
  • Existing SCM input text is overwritten by the generated message.
  • Multi-repository workspaces are supported with a repository picker.
  • If the selected CLI is missing, times out, or returns empty output, the SCM input is left unchanged.

Publishing

  • npm run package:vsix builds a local VSIX file.
  • npm run publish:vsce publishes to the Visual Studio Marketplace.
  • npm run publish:openvsx publishes to Open VSX, which helps editors like Cursor and some other VS Code forks discover the extension.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft