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, xAI Grok, Anthropic, 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; show, get <path>, set <path> <value>, path and open manage the file directly, for example:

vibegit config set model.name openai:gpt-5.6-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, GROK_API_KEY, ANTHROPIC_API_KEY, ...). 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.3

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.3
File Size Uploaded Provenance Actions
vibegit-0.3.3.tar.gz 513.4 kB With provenance Details for vibegit-0.3.3.tar.gz

Built distributions (wheels)

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

Total release size: 21.7 MB

Release files / vibegit-0.3.3.tar.gz

Download URL vibegit-0.3.3.tar.gz
Size 513.4 kB
Tags Source
SHA-256 checksum
How to use checksums
12229fe07cbcfcb878cf93f2c26de90ab97502f95e2881bee1a92fd304022dc3
BLAKE2b-256 checksum
How to use checksums
d90a965ba2956d16133813c381410a7d5292f001e1e221259898d9fad0f968cb
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.3-py3-none-win_amd64.whl

Download URL vibegit-0.3.3-py3-none-win_amd64.whl
Size 4.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
1dbc3b8dc0f6e70eedf41d2ba3dc7fd581271ebf62d10f4bf3c57779bf621a1a
BLAKE2b-256 checksum
How to use checksums
b7e506a051ffea74f95d8a8b6ad59ac438635baa67fc7c2a5582c5bdb1f894de
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.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL vibegit-0.3.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 4.4 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
bc9f9c53a928f873bef6045379bc1163c1b297e465aa65a98e4addd5d929eee5
BLAKE2b-256 checksum
How to use checksums
29664b068b835f6ce73f74d1ec95d9c5bbc78b5174547ed335a6954a9b118e0d
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.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL vibegit-0.3.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 4.1 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
641ee806909d17021555e5bb4483b6a3405dba42a0a1b19004424a93c2b6b745
BLAKE2b-256 checksum
How to use checksums
706550b87168f38fab74c339cbe2ccf7e4ba5a181ee35485b62a41de02fa46f4
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.3-py3-none-macosx_11_0_arm64.whl

Download URL vibegit-0.3.3-py3-none-macosx_11_0_arm64.whl
Size 4.1 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2526ff2fb3e0ea64a1ba7578ac78e4be6c2677151d3365bf741911538cde626a
BLAKE2b-256 checksum
How to use checksums
cf8ba4c82843142262d82d4594e54796db6425ce76399a51f0ba5555d00405cc
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.3-py3-none-macosx_10_12_x86_64.whl

Download URL vibegit-0.3.3-py3-none-macosx_10_12_x86_64.whl
Size 4.3 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
2d1b81a19889be1727ac096cc1a30660389728f40da60b4dc4cb97033784f2a2
BLAKE2b-256 checksum
How to use checksums
70f0b0aaa155802c5990d642708362487dacd7200331ed9b4a0c7f83af98cd76
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.3

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.3.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