gut-cli

AI-Powered Git Workflow Tool

Streamline your git workflow with AI. Generate commit messages, PR descriptions, code reviews, and more in seconds.

Why gut?

Unlike general-purpose AI coding assistants, gut focuses specifically on git operations for speed and efficiency.

Fast

Results in seconds, not minutes. Focused only on git operations.

🔐

Secure

API keys stored in OS native credential managers. Never in plain text.

🎯

Flexible

Support for Gemini, OpenAI, Claude, and Ollama. Bring your own API key.

Features

Supported AI Providers

Gemini

Default

🤖

OpenAI

GPT-4

🧠

Claude

Anthropic

🦙

Ollama

Local

Installation

npm install -g gut-cli

Quick Start

# 1. Set up API key (stored securely in system keychain)
gut auth login --provider gemini

# 2. Generate commit messages with AI
gut commit

# 3. Generate PR descriptions
gut pr --create

# 4. Get AI code review
gut review

# 5. (Optional) Customize with project templates
gut init

Customizable Templates

Customize AI behavior with project-level or global templates

# Initialize templates in your project
gut init

# Templates are created in .gut/ directory:
# - commit.md    - Commit message format
# - pr.md        - PR description rules
# - review.md    - Code review criteria
# - branch.md    - Branch naming conventions
# - merge.md     - Merge conflict resolution
# - and more...

# Example: Custom commit template
cat .gut/commit.md

Get Started

Open source and free to use. MIT License.

Products

gut-cli - AI搭載Gitワークフローツール