Yet another git commit redactor in chief.
Implements a CLI tool that generates conventional commit messages using Claude AI via Google Cloud Vertex AI. The tool analyzes git diffs and repository context to produce structured, informative commit messages following conventional commit format.
- Integration with Vertex AI's Claude Sonnet 4.5 model for commit message generation
- Support for both git and jujutsu version control systems
- Configurable commit scope (api, auth, db, etc.) via flags or YAML/JSON configuration files
- Work-in-progress context tracking to document known issues, planned improvements, and implementation notes
- Git log context analysis to reference related commits
- Prompt template system for consistent AI interactions
- Debug mode that persists prompts and configuration for review
cmd/contains Cobra CLI commands for commit workflowsinternal/agent/handles AI prompt construction and templatinginternal/commit/config/manages YAML/JSON configuration with scope and WIP context unmarshalinginternal/commit/scope/defines conventional commit scopesinternal/commit/wip/categorizes work-in-progress notes (blockers, testing needs, technical debt, etc.)internal/snake/provides case conversion utilities
- Collecting git diff output and optional git log context
- Building a structured prompt with diff, scope, and WIP notes
- Posting to Vertex AI Claude API with OAuth token refresh
- Extracting commit message from response via jq
- Writing to
.commit-stashfor review before committing
Configuration can be prepared via --prepare flag or read from
.prepare.yaml/.prepare.json files, allowing users to specify commit
scope and document WIP context (known issues, planned improvements,
testing needs) that gets incorporated into the final commit message
body.
- spf13/cobra for CLI framework
- uber-go/zap for structured logging
- gopkg.in/yaml.v3 for YAML config parsing