Skip to content

ShiftinBits/ClawdCommit

Repository files navigation

ClawdCommit

Current Release Test Results Code Coverage Snyk Security Monitored License

A VS Code extension that generates git commit messages using the Claude Code CLI.

Stage your changes, click the button in the source control panel "Changes" bar, and ClawdCommit will draft a commit message based on your staged diff and recent commit history using Claude Code CLI.

Installation

  1. Visit the ClawdCommit listing in the Visual Studio Marketplace
  2. Click on "Install" button
  3. Proceed with the extension installation process

Prerequisites

Configuration

All settings are available under Settings > Extensions > ClawdCommit or via clawdCommit.* in settings.json.

Setting Type Default Description
clawdCommit.model haiku | sonnet | opus sonnet Claude model to use for commit message generation.
clawdCommit.includeFileContext boolean true Allow Claude to read files in the working directory for additional context beyond the diff. Disable to restrict analysis to the staged diff only.

How it works

When you trigger ClawdCommit, it reads your staged diff and recent commit history, optionally fetches the full content of changed files for richer context, and sends everything to Claude in a single request. Claude generates a commit message matching your project's style.

Running locally

  1. Clone the repo and install dependencies:

    git clone <repo-url>
    cd ClawdCommit
    npm install
  2. Open the project in VS Code.

  3. Press F5 (or Run > Start Debugging). This launches a new Extension Development Host window with the extension loaded.

  4. In the Extension Development Host, open a git repository, stage some changes, and click the ClawdCommit icon in the Source Control title bar.

Development build

npm run compile

This type-checks with tsc then bundles with esbuild into dist/extension.js.

Packaging as a .vsix

npx @vscode/vsce package

This produces a .vsix file you can install in VS Code via Extensions > Install from VSIX....

License

MIT — see LICENSE.

About

VSCode extension to simplify generating commit messages with Claude Code CLI

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors