|
| 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. |
On the web, clawdCommit.model selects the matching claude-<model> family from the Language Model API; if it isn't available, the first available Anthropic model is used and a warning is shown. clawdCommit.includeFileContext applies to the desktop (CLI) only.
How it works
When you trigger ClawdCommit, it reads your staged diff and the last 5 commits, and sends them to Claude in a single request. On desktop, when includeFileContext is enabled, Claude may also read files in the repository to better understand the change. Claude generates a commit message matching your project's style and places it in the Source Control commit input box.
In multi-repo workspaces, clicking the button in a repository's Source Control title bar generates a message for that repository. When triggered from the keyboard or Command Palette, ClawdCommit uses the repository containing the active editor's file, falling back to the first repository.
Running locally
Clone the repo and install dependencies:
git clone https://github.com/shiftinbits/clawdcommit.git cd clawdcommit npm installOpen the project in VS Code.
Press F5 (or Run > Start Debugging). This launches a new Extension Development Host window with the extension loaded.
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 (desktop) and dist/web/extension.js (web).
Running tests
npm test
npm run test:coverage
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.