I built a small cli called git-ai that adds a git ai commit command to your workflow.
It reads git diff --staged, sends the diff to your preferred AI CLI (Claude, GitHub Copilot, or OpenAI Codex), and generates a Conventional Commit message automatically. A spinner animation shows the progress, and if one model isn't installed or fails, it silently falls back to the next available one.
$ git add .
$ git ai commit
⠹ Generating commit message with copilot...
✅ Generated by copilot
Proposed: feat: add user authentication middleware
Features:
- Supports Claude CLI, GitHub Copilot CLI, and OpenAI Codex CLI
- Auto-detects which model to use (claude → copilot → codex)
- --edit / -e flag to review and modify in vi before committing
- Pure bash, no dependencies beyond the AI CLI itself
- One-line install via install.sh
The motivation was simple: I kept writing the same kinds of commit messages over and over. With git-ai, I just stage my changes and let the AI handle the wording — it's surprisingly good at following Conventional Commits format.
GitHub: https://github.com/0xkohe/git-ai

Top comments (0)