aicm-0.1.0 is not a library.
aicm
AI-assisted Git commit message generator for staged changes.
aicm reads git diff --cached, asks opencode to write a Conventional Commit message, then lets you approve the commit and optional push.
Requirements
- Rust and Cargo
- Git
opencodeinstalled and available onPATH
Install
You can also run it directly from the repository:
Usage
Stage the changes you want to commit:
Generate a commit message:
After generating the message, aicm prompts before running:
If you accept the second prompt, it pushes the current branch:
Print help:
Commit Message Format
Generated messages are prompted to follow Conventional Commits, use imperative mood, omit markdown/commentary, and keep the subject at 72 characters or less.
Development
This is a single Rust binary crate. The entrypoint is src/main.rs.