AI-generated commit messages and TFVC check-in comments — directly inside Visual Studio.
One click in the Git Changes or Pending Changes panel sends your diff to Claude and injects the result straight into the message field. No copy-paste, no context switching, no API key to manage.
- Git & TFVC support — works with both Git repositories and Team Foundation Version Control pending changes
- One-click generation — a Generate Commit Message button is injected directly above the commit message field in the Git Changes and Pending Changes panels; no menu navigation required
- Conventional Commits by default — default prompt produces
type(scope): descriptionmessages - Fully customizable prompts — edit the prompt template in Tools > Options > Claude Commit using
{diff}and{status}placeholders - Cancel mid-generation — a Cancel button replaces the toolbar button while Claude is running; click it to kill the process and restore the panel
- Error InfoBar — if the CLI is missing or fails, a non-blocking notification bar appears with context
- No API key required — the extension shells out to the
claudeCLI; authentication is handled by the CLI itself
| Requirement | Detail |
|---|---|
| Visual Studio | 2022 (17.x) or 2026 (18.x), x64 |
| Edition | Community, Professional, or Enterprise |
| .NET Framework | 4.7.2 or later |
| Claude CLI | Must be installed and authenticated on the machine |
Claude CLI is a hard dependency. The extension does not call the Anthropic API directly — it spawns the
claudeprocess and captures its output. This keeps the extension thin and auth-free.
Search for ClaudeCommit in Extensions > Manage Extensions or visit the Marketplace page.
- Download the latest
.vsixfrom the Releases page - Double-click the file — the VSIX installer opens automatically
- Restart Visual Studio
- Make changes in your repository
- Open the Git Changes panel (View > Git Changes or
Ctrl+0, Ctrl+G) - Click Generate Commit Message above the commit message field
- Claude generates a message and injects it into the field
- Review, edit if needed, then commit
- Make your pending changes
- Open View > Pending Changes
- Click Generate Commit Message above the check-in comment field
- Claude generates a message and injects it into the field
- Review, edit if needed, then check in
Tip: While Claude is running the button changes to Cancel Generation — click it at any time to abort.
The same commands are also available from the Tools menu and the Extensions menu if you prefer keyboard-driven access.
Go to Tools > Options > Claude Commit.
Template sent to Claude for Git commits. Default:
Generate a concise git commit message following the Conventional Commits format
(type(scope): description).
Changed files:
{status}
Diff:
{diff}
Output ONLY the commit message. No explanation, no markdown, no quotes.
Same structure, used for TFVC check-in comments instead.
| Placeholder | Replaced with |
|---|---|
{diff} |
Full diff content (staged + unstaged) |
{status} |
File status summary (added / modified / deleted) |
Leave empty to use claude from your system PATH. Set an absolute path if you have a non-standard installation.
The extension shells out to the claude CLI rather than calling the Anthropic API directly. This means:
- No API key stored in VS settings
- Authentication is managed by the CLI (same session the developer already uses)
- Model selection, rate limiting, and API versioning are handled by the CLI
- The extension stays thin with no Anthropic SDK dependency
Trade-off: the claude CLI must be installed. If it is missing, the InfoBar will surface an error explaining how to install it.
See ADR-0001 for the full decision record.
git clone https://github.com/Isipharm/ClaudeCommit.git
cd ClaudeCommit
# Open ClaudeCommit.sln in Visual Studio 2022 or later
# Build > Build Solution (F6)The output VSIX is written to src/ClaudeCommit/bin/Release/net472/.
install.ps1 bumps the patch version, builds the VSIX, kills lingering MSBuild workers, waits for all Visual Studio instances to close, then installs into every detected VS instance:
.\install.ps1Issues and pull requests are welcome. Please open an issue first for significant changes so we can discuss the approach before you invest time in an implementation.
See LICENSE.