Skip to main content

VibeGit

Turn a busy Git working tree into focused, reviewable commits.

PyPI - Version CI status


Working tree before using VibeGit Working tree after using VibeGit

An example working tree before and after VibeGit groups the changes.


During a long coding session, unrelated changes pile up in the same working tree. Turning them into small, coherent commits means inspecting hunks, staging them one by one and writing matching messages. VibeGit does that for you:

vibegit commit

It reads the diff, the current branch and the recent history, asks a model for semantically related groups of hunks with commit messages, and opens an interactive review where you edit, reorder, skip and apply them.

VibeGit is a single native binary that drives the git command line. It never modifies your working tree: it only stages exactly the hunks it was told to and creates commits, so every commit contains precisely the bytes in your files.

Features

  • Semantic grouping of related hunks into commits, including changes that span several files.
  • Generated messages that follow the style of the repository, guided by a .vibegitrules file derived from your own history.
  • Interactive review with a diff viewer, in-place or $EDITOR message editing, reordering, skipping, commit-and-push in one step, and a button bar with mouse support; press ? for all keys.
  • Change exclusions: changes that look unfinished or sensitive are set aside and shown separately, never committed silently.
  • Many providers: Google Gemini, OpenAI, Anthropic Claude, Grok from SpaceXSI (formerly xAI), any model on OpenRouter with one key, Ollama, Groq, DeepSeek and others, plus any OpenAI-compatible endpoint.
  • Robust git handling: binaries, mode changes, symlinks, submodules, CRLF, unicode paths, detached and unborn HEAD, and unusual diff.* configuration all work; merges in progress and conflicts are refused before anything is written.

Installation

uv tool install vibegit     # or: pipx install vibegit, pip install vibegit

Prebuilt wheels contain the binary, so no Rust toolchain or Python dependencies are needed. uvx vibegit runs it without installing. Git 2.25 or newer must be on your PATH. To build from source, run cargo install --path ..

Quick start

vibegit config   # pick a model and store its API key
vibegit init     # derive .vibegitrules from the project's history and review it
vibegit commit   # review and apply proposed commits

Both setup steps also happen on demand: the wizard runs when no configuration exists, and vibegit commit offers to derive .vibegitrules when a repository has none.

Commands

vibegit commit opens the review interface. Useful flags:

vibegit commit -i "group all test files together"   # one-off instruction
vibegit commit --yolo [--push] [--unstage]           # apply every proposal without the interface
vibegit commit --debug                               # dump prompts and responses to $TMPDIR/vibegit-debug

vibegit init analyzes the last init.commits commits (messages and abbreviated diffs), derives the project's conventions into .vibegitrules, and shows the result for review before writing it. --yes skips the review, --print prints instead of writing, --template writes the bundled template, -n N changes the number of commits, --force replaces an existing file.

vibegit config runs the setup wizard, which ends with a short test request to the chosen model. test repeats that check; show, get <path>, set <path> <value>, path and open manage the file directly, and set re-runs the check after model or key changes. For example:

vibegit config set model.name openai:gpt-6.1-terra
vibegit config set api_keys.OPENAI_API_KEY sk-...

Configuration

The file lives in the platform configuration directory (~/Library/Application Support/vibegit/config.toml on macOS, ~/.config/vibegit/config.toml on Linux); VIBEGIT_CONFIG_PATH overrides it. Files from VibeGit 0.2 are read unchanged.

Models use the <provider>:<model> format, with google:gemini-3.8-flash as the default. Keys are read from the api_keys table or the usual environment variables (GOOGLE_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY, XAI_API_KEY, ...). openrouter:<vendor>/<model> with OPENROUTER_API_KEY reaches any model on OpenRouter; the wizard searches its catalog. Any OpenAI-compatible server works through model.base_url and model.api_key.

Other settings: allow_excluding_changes, watermark, context_formatting.* (branch, recent commits, line truncation, size cap), init.* (commits analyzed and diff detail for vibegit init), and confirmations.*. Each confirmation dialog has a "don't ask again" choice that is stored there. Run vibegit config show to see every setting with its current value.

Project rules

.vibegitrules in the repository root tells VibeGit how commits should look: message style, granularity, grouping, exclusions. vibegit init writes it from your history; edit it freely. A -i instruction takes priority over the file for one run.

Safety

  • Only git apply --cached, git reset -- <paths>, git commit and, on request, git push run. The working tree is never written.
  • Editors and git clients that re-scan the repository after each commit briefly hold index.lock; VibeGit waits for it instead of failing.
  • Staged changes are unstaged first, after confirmation. Merges, rebases, cherry-picks and conflicts stop VibeGit before anything happens.
  • Changes inside submodules and nested repositories are reported and left alone; files above 50 MB are skipped.
  • A failed commit (for example a rejected hook) leaves the index clean and can be retried.

Development

cargo test
cargo clippy --all-targets -- -D warnings
uvx maturin build --release        # wheel in target/wheels/

Releases publish wheels for Linux, macOS and Windows through the Publish to PyPI workflow. The design notes for the git layer are in docs/specs/git-layer-refactor.md.

License

MIT, see LICENSE.

Metadata

Release files for vibegit 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vibegit 0.3.4
File Size Uploaded Provenance Actions
vibegit-0.3.4.tar.gz 520.7 kB With provenance Details for vibegit-0.3.4.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for vibegit 0.3.4
File Actions
vibegit-0.3.4-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for vibegit-0.3.4-py3-none-win_amd64.whl
vibegit-0.3.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for vibegit-0.3.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
vibegit-0.3.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for vibegit-0.3.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
vibegit-0.3.4-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for vibegit-0.3.4-py3-none-macosx_11_0_arm64.whl
vibegit-0.3.4-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for vibegit-0.3.4-py3-none-macosx_10_12_x86_64.whl

Total release size: 22.0 MB

Release files / vibegit-0.3.4.tar.gz

Download URL vibegit-0.3.4.tar.gz
Size 520.7 kB
Tags Source
SHA-256 checksum
How to use checksums
be323f8608a42cc4bbf108f2073589a6cc844ab2ecd466c19fcbe85818ae6ed8
BLAKE2b-256 checksum
How to use checksums
e0e5d215263b06a099b859bdf50875af6f564c06230e3d936f8cd3d483ce8f79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / vibegit-0.3.4-py3-none-win_amd64.whl

Download URL vibegit-0.3.4-py3-none-win_amd64.whl
Size 4.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
9124d69ad45acfe644d65971061c81aab63e697156866d7c67625f797d874f2e
BLAKE2b-256 checksum
How to use checksums
7bf41c8897dc2aed1989c5e18da342fdef93e3174ba5044e3395e3cca49ed11d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / vibegit-0.3.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL vibegit-0.3.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 4.5 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
12ae786951e1ab4b06891bd3174e9867f8ca89845535926163916e624ac557a9
BLAKE2b-256 checksum
How to use checksums
5279ef7f64c92cc90f0328b61be4e7e35d4ff6870685f4427041d5a32a5f8f6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / vibegit-0.3.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL vibegit-0.3.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 4.2 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
ca879c67b1e51b22bedc3d59074e0efd97bf2558333532a56c044c4568e6b49e
BLAKE2b-256 checksum
How to use checksums
72edab843e0f263c3c89ec979f5e4a197d3468c46503673108aa311911d6c20a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / vibegit-0.3.4-py3-none-macosx_11_0_arm64.whl

Download URL vibegit-0.3.4-py3-none-macosx_11_0_arm64.whl
Size 4.2 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
53629d86f8a7e1c609284c54b9dcf13f6815d89839366cab8f1cde8ca18d5666
BLAKE2b-256 checksum
How to use checksums
be4d219c25d98f0eb38249891e59e989687e170d8b7ed04306dd2ea1a2e50dcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / vibegit-0.3.4-py3-none-macosx_10_12_x86_64.whl

Download URL vibegit-0.3.4-py3-none-macosx_10_12_x86_64.whl
Size 4.4 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
c5c3999d4053360e0c128c9f1f908eef22487b360eaf987ea2687d1a87ee2d6e
BLAKE2b-256 checksum
How to use checksums
1274900eb45e0da7befd6e5fe0afbf7e79bc086fdec3f94c2c95b19b440438cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for vibegit 0.3.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for vibegit-0.3.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page