Skip to main content

AI-powered git commit grouping — intelligently splits messy changes into atomic, well-described commits.

Project description

Commiter AI 🤖

AI-powered git commit grouping. Intelligently splits your messy changes into atomic, well-described commits.

Features

  • Intelligent Grouping: Automatically groups lines and files into logical commits using AI.
  • Interactive TUI: Review and refine proposed commits in a beautiful terminal interface.
  • Headless CLI: High-performance CLI flags for power users.
  • Persona Support: Choose between "senior dev", "junior dev", or "newbie" commit styles.
  • Diff Optimization: Handles large diffs by intelligently truncating less relevant parts.
  • Filtering: Target specific files or patterns for commit.
  • Branching: Create new branches on the fly.
  • Auto-Push: Seamlessly push your changes after committing.

Installation

# Inside the repo
uv sync

Quick Start

Run commiter to start the interactive TUI. Use arrow keys to navigate, Space to toggle commits, and Enter to execute.

Power User CLI

Commiter supports a wide range of flags for quick headless execution:

Basic Headless Flow

# Auto-group all changes and execute
commiter --auto --yes

# Auto-group and preview before confirming
commiter --auto --preview

# Instruct AI to make exactly 3 commits
commiter --commits 3 --yes

Filtering and Context

# Only consider python files in src/
commiter --auto --include "src/*.py" --preview

# Exclude documentation
commiter --auto --exclude "docs/*"

# Provide specific hints to the AI
commiter --auto --context "Refactor the authentication logic to use JWT"

Workflow Automation

# Create a new branch, commit everything, and push
commiter --auto --branch feature/login-v2 --yes --push

# Do a dry run to see what AI suggests without changing anything
commiter --auto --dry-run

Advanced Overrides

# Override the AI model for a single run
commiter --auto --model gemini-2.0-flash

# Disable diff truncation (send the full diff to AI)
commiter --auto --no-optimize

# Override the commit persona
commiter --auto --persona "junior dev"

Requirements

  • Python >= 3.10
  • Git
  • Valid API key for Gemini (default), OpenAI, or Anthropic.

Configuration

On first run, commiter will guide you through an interactive setup to save your API key and preferences to ~/.commiter/config.toml. You can always re-run the setup with:

commiter --config

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

commiter-0.1.0.tar.gz (85.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

commiter-0.1.0-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file commiter-0.1.0.tar.gz.

File metadata

  • Download URL: commiter-0.1.0.tar.gz
  • Upload date:
  • Size: 85.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for commiter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 700e94b6f1295273a50f421853f6df37a474c491ce2dc50170d963c4a6931bb7
MD5 08d7f9890ca424febd34bc26e2490fa9
BLAKE2b-256 b1f77f29417d51a396804b9ad19711f5f1812f25e0f23edc1c530a40eb8a29dd

See more details on using hashes here.

File details

Details for the file commiter-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: commiter-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for commiter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 53dca0ceb48680337a556b64ede27bb1e1f449e0c088d093d0b083a308ba5793
MD5 e6dbbe116005c0e34d2e19f7c0b7d852
BLAKE2b-256 b2c8a8fb166a746a083c83bfd6ede6ab13ddd0000a470896f9f0d01ac8b5f016

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page