local_commit_msg
Generates commit messages from diffs with a local code model. Reads diff files server-side so large diffs don't enter the AI's context.
Instructions
PREFER this tool over reading the file with Read when the file is large (>200 lines / >10 KB) and you only need a commit message, not the literal content.
Drafts a commit message from a diff, with a local code model.
Pass 'path' to a diff file (e.g. the output of `git diff` dumped to a file) and it is read
server-side, so the full diff does NOT enter Claude's context. Alternatively pass 'diff' as
text. ALWAYS review the message before using it.
Args:
diff: The diff as text (use this or 'path').
path: Path to a file with the diff (read server-side).
style: 'conventional' (Conventional Commits) or 'plain'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | ||
| path | No | ||
| style | No | conventional |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |