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.

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.2.tar.gz (87.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.2-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: commiter-0.1.2.tar.gz
  • Upload date:
  • Size: 87.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.2.tar.gz
Algorithm Hash digest
SHA256 5be19e1d270cd3cf19aa0e4488f9a568fefe9e4e172ce8a0d7d4adab3c273965
MD5 12704ed2903a75da325283524d171397
BLAKE2b-256 094db9478c93e3ba5bbb41eb59744d3869b0d9edbdac769d807694648b3a437c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: commiter-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 25.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7a5848ecd10540acff1caf88f59a17739592e63a00cdf8fb1c9cf9371e9562bd
MD5 7882e184cc83c1a969d6d735a1bb2115
BLAKE2b-256 bb6152679b5de0310ebe6ed63766a766be4d3b48d44e9d7a227ebf0b2ae2649f

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