ClaudeCommit
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.
Features
- Git & TFVC support — works with both Git repositories and Team Foundation Version Control pending changes
- One-click generation — toolbar button in the Git Changes / Pending Changes panel triggers generation instantly
- Conventional Commits by default — default prompt produces
type(scope): description messages
- 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
claude CLI; authentication is handled by the CLI itself
Requirements
| 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 claude process and captures its output. This keeps the extension thin and auth-free.
Usage
- Make changes in your repository
- Open the Tools menu
- Click the Generate Commit Message with Claude menu option
- Claude generates a message and injects it into the commit message field
- Review, edit if needed, then commit
For TFVC, the same process is available.
Configuration
Go to Tools > Options > Claude Commit.
Git Prompt Template
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.
TFVC Prompt Template
Same structure, used for TFVC check-in comments instead.
Placeholders
| Placeholder |
Replaced with |
{diff} |
Full diff content (staged + unstaged) |
{status} |
File status summary (added / modified / deleted) |
Claude CLI Path
Leave empty to use claude from your system PATH. Set an absolute path if you have a non-standard installation.