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, 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 analyses 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 analysed 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.
  • 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.1

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.1
File Size Uploaded Provenance Actions
vibegit-0.3.1.tar.gz 510.2 kB With provenance Details for vibegit-0.3.1.tar.gz

Built distributions (wheels)

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

Total release size: 21.6 MB

Release files / vibegit-0.3.1.tar.gz

Download URL vibegit-0.3.1.tar.gz
Size 510.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7ca72f8449887ee1840a43a9f7053695bedf0e9a8ccd1a2bb896c1109b878a8b
BLAKE2b-256 checksum
How to use checksums
71fc3b546142a53fc3735968fd05915a5192be560959a9a824732defdae06229
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 19, 2026.

Transparency log

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

Download URL vibegit-0.3.1-py3-none-win_amd64.whl
Size 4.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
8092375e6c91d1a0221955cd764d3a3e99b10ef48872ee7e612409acbe4b0fa2
BLAKE2b-256 checksum
How to use checksums
2c925ed4d153f552a01f5a2050fba92118e24c728d89d535cbc2bf75254fef99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 19, 2026.

Transparency log

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

Download URL vibegit-0.3.1-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
482f1815e27297ee92b5386280229b3a2840be84e833a54a8dd0f17cffce99aa
BLAKE2b-256 checksum
How to use checksums
9b1bb3f1a0e8a794cd2ae31fb28f14d807ad178fde0b0acff5059c0c5ebfd571
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 19, 2026.

Transparency log

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

Download URL vibegit-0.3.1-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
9f5bc54f8c7d953cd8a5d82874a77793c7b4801c173003c7cd4a7d6adf238951
BLAKE2b-256 checksum
How to use checksums
2d9a13bd97f0cf5a49321280a4607a6682ae770cd462e230228a5bf4067d1f2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 19, 2026.

Transparency log

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

Download URL vibegit-0.3.1-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
07fc78702c30d81168def1a6ab339cdcfc5c72c261de87105b4582e525697c77
BLAKE2b-256 checksum
How to use checksums
1d0f37c9b2718ae43ac64898c3a99f4274bf3e3fbe3265c7ab8ec33d95673e98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 19, 2026.

Transparency log

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

Download URL vibegit-0.3.1-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
a1099ecc81fe6b18ebf8a0e8931c003e65646ec352b3893fe227ef649fa7f43b
BLAKE2b-256 checksum
How to use checksums
d3b929a2412d63e9c7e8f45feb3054ff43fc0dce0b1bd1fce4259170cbe0ef97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 19, 2026.

Transparency log

Security for vibegit 0.3.1

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.1.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 19, 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