Skip to content

Fast, local, AI-powered Git commit message generator. Works with Ollama, OpenAI, or Claude. Supports Conventional Commits and auto-commit. No bloat. Built with TypeScript for speed and portability.

License

Notifications You must be signed in to change notification settings

thegreatbey/commit-gen

Repository files navigation

commit-genie

commit-genie logo

Fast, local, AI-powered Git commit message generator. Light weight (if a bit slow)

npm version downloads license bundle size npm install CI provenance


Features

  • ✏️ Generate commit messages from staged Git diffs
  • 🤖 Works with local AI models (via Ollama)
  • 🌐 Optional: Use OpenAI or Claude API
  • 🔧 Supports Conventional Commits (--conventional)
  • 🧑‍💻 Optional --commit flag to auto-commit
  • 🧪 Built with TypeScript, lightweight, zero bloat
  • ✅ Cross-platform (Windows/Linux/Mac)
  • 📁 .commitgenrc.json for persistent config
  • 📦 Tiny footprint, zero dependencies for core functionality

Global Installation

npm install -g @cavani21/commit-genie
# or
npx @cavani21/commit-genie --help

Usage

npx commit-genie

# Or manually:
git add .
commit-genie                 # Generates a commit message from staged changes
commit-genie --commit        # Also commits it
commit-genie --conventional  # Format as Conventional Commit

Example Output

feat: add initial CLI support with local AI (Ollama)

Config

You can save settings in a .commitgenrc.json file:

{
  "provider": "ollama",
  "model": "mistral",
  "conventional": true
}

License

MIT © 2025 cavani21

About

Fast, local, AI-powered Git commit message generator. Works with Ollama, OpenAI, or Claude. Supports Conventional Commits and auto-commit. No bloat. Built with TypeScript for speed and portability.

Resources

License

Stars

Watchers

Forks

Packages

No packages published