git_check_commits
Validate commit messages in a specified range against commit guidelines and return a pass/fail summary and exit code.
Instructions
Validate commit messages in a range against commit guidelines (read-only — never modifies commits). Use this to report problems; use git_twiddle_commits instead to rewrite the messages. range is required (e.g. HEAD~3..HEAD). Mirrors omni-dev git commit message check. Returns a YAML payload with the full CheckReport, a pass/fail summary, and the exit code the CLI would use (honouring strict).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Claude model override (e.g. `claude-sonnet-4-6`). Defaults to the model from settings, then the built-in default, when omitted. | |
| range | Yes | Commit range to check (e.g., `HEAD~3..HEAD`, `abc123..def456`). Required — unlike the CLI, this tool does not default to "commits ahead of the base branch". | |
| strict | No | When true, warnings are treated as non-zero exit conditions. Defaults to `false` (only errors fail). | |
| repo_path | No | Path to the git repository. Defaults to the current working directory. | |
| guidelines_path | No | Optional explicit path to the guidelines file. When omitted the tool falls back to `.omni-dev/commit-guidelines.md` via the standard resolution chain. |