VibeGit
Turn a busy Git working tree into focused, reviewable commits.
An example working tree before and after VibeGit groups the changes.
Turn mixed changes into focused commits
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.
Run VibeGit from anywhere inside the repository:
vibegit commit
VibeGit 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 interface where you review, rename, reorder, skip and apply them.
VibeGit is a single native binary (written in Rust) 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 that are in your files.
Features
- Semantic grouping: related hunks become one commit, including changes that span several files.
- Generated messages: a concise subject (and body, if the project style uses one) for every group.
- Interactive review: scroll through proposals, read the diff, edit messages in place or in
$EDITOR, skip or reorder proposals, commit one at a time or all at once, push when done. - Project rules and one-off instructions:
.vibegitrulessteers message style and granularity;-i "..."overrides it for one run and can also be entered from the interface. - Change exclusions: the model may set aside changes that look unfinished or sensitive; they are shown separately and never committed silently.
- Many providers: Google Gemini, OpenAI, xAI Grok, Anthropic, Ollama, Groq, DeepSeek, Cohere, OpenRouter, Together, Fireworks, and any OpenAI-compatible endpoint.
- Robust git handling: binaries, mode changes, symlinks, type changes, submodule pointer updates, CRLF, missing final newlines, unicode paths, detached and unborn HEAD, and unusual
diff.*configuration all work; merges in progress and conflicts are refused before anything is written.
Installation
With uv (recommended)
uv tool install vibegit
Prebuilt wheels contain the binary, so no Rust toolchain or Python dependencies are needed. Upgrade with uv tool upgrade vibegit, or try it without installing:
uvx vibegit --help
pipx install vibegit and pip install vibegit work the same way.
From source
cargo install --path .
Git 2.25 or newer must be on your 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
The setup wizard runs automatically the first time vibegit commit finds no configuration, and vibegit commit offers to derive .vibegitrules when a repository has none yet.
The interface
VibeGit ~/projects/app on main model google:gemini-3.8-flash
┌ Proposals (3 pending, 1 committed) ─┐┌ Proposal 2 of 4 ───────────────────────────┐
│ ✔ 1 add rust git runner ││ Message │
│▶○ 2 parse porcelain v2 status ││ parse porcelain v2 status │
│ ○ 3 wire the interface ││ │
│ ⊘ 4 fix typo in readme ││ Explanation │
│ ! excluded: scratch.py ││ These hunks introduce the status parser │
│ ││ │
│ ││ Files (2) │
│ ││ M src/git/status.rs +120 -3 │
│ ││ A tests/status.rs +80 -0 │
└─────────────────────────────────────┘└────────────────────────────────────────────┘
4 proposal(s) for 9 change unit(s) in 5 file(s).
[c Commit] [C Commit all] [e Edit] [d Diff] [s Skip] [i Instruct] [r Regenerate] [p Push] [? Help] [q Quit]
The bottom row is a button bar. Every button shows its shortcut; Tab moves the keyboard focus into the bar, ← → choose a button, Enter runs it, and buttons that do not apply to the selection are dimmed. The mouse works too: click a button or a proposal, scroll with the wheel. Dialogs show their choices as buttons as well.
| Key | Action |
|---|---|
↑ ↓ j k, PgUp PgDn, g G |
Move through the proposals |
Enter or d |
Show the full diff of the selection (n/p jump between proposals) |
c |
Stage and commit the selected proposal |
C or a |
Commit all pending proposals in list order |
e |
Edit the commit message in place (Ctrl+S saves, Esc cancels) |
E |
Edit the commit message in $EDITOR |
s |
Skip or unskip a proposal |
J K or Alt+↓ Alt+↑ |
Move the proposal down or up |
[ ] |
Scroll the detail pane |
i |
Regenerate the proposals with a one-off instruction |
r |
Regenerate the proposals |
p |
Push the created commits (sets an upstream when needed) |
m or Space |
Open the action menu |
? |
Show all keys |
Tab Shift+Tab |
Focus the button bar (← → choose, Enter runs, Esc leaves) |
q |
Quit; a summary of the created commits is shown first |
Y (in any confirmation) |
Confirm and never ask again for that action; see confirmations.* below |
Excluded groups appear at the end of the list in yellow. They are never committed; regenerate with an instruction (i) if they should be.
Non-interactive use
vibegit commit --yolo # apply every proposal, no interface
vibegit commit --yolo --push # ...and push afterwards
vibegit commit --yolo --unstage # unstage already staged changes without asking
vibegit commit -i "group all test files together"
vibegit commit --debug # write prompts and responses to $TMPDIR/vibegit-debug
In --yolo mode commits run with your terminal attached, so hooks, gpg prompts and editors behave as with plain git commit.
Configuration
vibegit config # setup wizard
vibegit config show # print the configuration (keys masked)
vibegit config get model.name
vibegit config set model.name openai:gpt-5.6-terra
vibegit config set model.temperature none
vibegit config path
vibegit config open # open the file in $EDITOR
The file lives at ~/Library/Application Support/vibegit/config.toml on macOS, ~/.config/vibegit/config.toml on Linux and %LOCALAPPDATA%\vibegit\vibegit\config.toml on Windows. VIBEGIT_CONFIG_PATH overrides the location. Existing configuration files from VibeGit 0.2 are read unchanged.
Models
Model names use the <provider>:<model> format. Gemini 3.7 Flash (google:gemini-3.8-flash) is the default; the wizard also offers Gemini 3.5 Flash-Lite, Gemini 3.1 Pro, GPT-5.6 Terra/Sol/Luna and Grok Code Fast.
| Provider | Example | API key |
|---|---|---|
google |
google:gemini-3.8-flash |
GOOGLE_API_KEY (or GEMINI_API_KEY) |
openai |
openai:gpt-5.6-terra |
OPENAI_API_KEY |
grok |
grok:grok-code-fast-1 |
GROK_API_KEY (or XAI_API_KEY) |
anthropic |
anthropic:claude-... |
ANTHROPIC_API_KEY |
ollama |
ollama:llama3 |
none |
groq, deepseek, cohere, openrouter, together, fireworks |
groq:... |
GROQ_API_KEY, ... |
API keys are read from the api_keys table in the configuration file first and from the environment second:
vibegit config set api_keys.OPENAI_API_KEY sk-...
Any OpenAI-compatible server works through base_url (the wizard's "Custom OpenAI-compatible endpoint" option):
vibegit config set model.name my-model
vibegit config set model.base_url https://api.example.com/v1
vibegit config set model.api_key <key> # optional for local servers
The legacy google-gla:, google_genai: and xai: prefixes are still accepted.
Options
| Path | Default | Meaning |
|---|---|---|
model.name |
google:gemini-3.8-flash |
Model in <provider>:<model> form |
model.temperature |
unset | Sampling temperature; none uses the provider default |
model.base_url, model.api_key |
unset | Custom OpenAI-compatible endpoint |
allow_excluding_changes |
true |
Let the model set unfinished changes aside |
watermark |
true |
Append "Commit generated by VibeGit" to messages |
context_formatting.include_active_branch |
true |
Send the branch name |
context_formatting.include_latest_commits |
5 |
Recent messages sent as style reference |
context_formatting.truncate_lines |
240 |
Cut long diff lines before sending them |
context_formatting.max_file_size_kb |
512 |
Larger files are sent as a placeholder only |
confirmations.commit_all, .push, .rerun, .quit, .unstage |
true |
Ask before committing all, pushing, regenerating, quitting with pending proposals, or unstaging. Pressing Y in the dialog sets the flag to false; set it back to true to ask again |
confirmations.derive_rules |
true |
Offer to derive .vibegitrules when a repository has none |
init.commits |
20 |
Recent non-merge commits analysed by vibegit init |
init.max_files_per_commit, init.max_lines_per_file |
8, 20 |
Diff detail per commit sent to the model during init |
init.max_total_kb |
150 |
Older commits are dropped once the rendered history exceeds this size |
Project rules (.vibegitrules)
A .vibegitrules file in the repository root customises proposals: message style, granularity, grouping, what to exclude. The -i flag and the i key provide one-off instructions that take priority over the file.
vibegit init derives the file from the repository's own history: it renders the last init.commits non-merge commits (messages plus abbreviated diffs, at most init.max_files_per_commit files and init.max_lines_per_file lines per file), asks the model to describe the conventions it sees, and shows the result for review before anything is written. The review screen lists the observed conventions and the proposed file; you can write it, edit it in place or in $EDITOR, regenerate, fall back to the bundled template, or cancel.
vibegit init # analyse the history, review, write
vibegit init -n 40 # analyse more commits
vibegit init --yes # write without the review (for scripts)
vibegit init --print # print the derived rules instead of writing
vibegit init --template # write the bundled template without analysing anything
vibegit init --force # replace an existing file
When vibegit commit runs in a repository without .vibegitrules, it offers the same derivation first (y derive, n not now, N never ask; the last choice is stored as confirmations.derive_rules). Repositories without commits get the bundled template.
What VibeGit does to your repository
- The working tree is never written. Only
git apply --cached,git reset -- <paths>,git commitand (on request)git pushrun; every commit contains exactly the bytes in your files, regardless ofapply.whitespaceor other settings. - An index that already contains staged changes is unstaged first, after you confirm. Intent-to-add entries count as staged.
- A merge, rebase, cherry-pick, revert or bisect in progress, and unmerged paths, stop VibeGit before anything happens.
- Submodule pointer updates are committed as one unit. Changes inside a submodule are reported and left alone; commit them in the submodule first.
- Nested repositories (an untracked directory with its own
.git) are skipped with a warning; usegit submodule addto track them. - Untracked files above 50 MB are skipped with a warning; files above
max_file_size_kbare committed as a whole but their content is not sent to the model. - Detached and unborn HEAD work; the first commit of a new repository can be created by VibeGit.
Troubleshooting
vibegit commit --debug writes the prompt, the model's answer and any error to vibegit-debug/ in your temporary directory and prints full error chains. A failed commit (for example a rejected pre-commit hook) leaves the index clean; the proposal shows the hook output and can be retried with c.
Development
cargo test # unit tests and git edge-case scenarios
cargo clippy --all-targets -- -D warnings
cargo fmt --check
uvx maturin build --release # wheel in target/wheels/
uvx --from target/wheels/*.whl vibegit --version
Releases are published by the Publish to PyPI workflow, which builds wheels for Linux (x86_64, aarch64), macOS (x86_64, arm64) and Windows on a GitHub release. The design rationale for the git layer, including every edge case covered by the test-suite, is in docs/specs/git-layer-refactor.md.
License
VibeGit is available under the MIT License. See LICENSE.
Metadata
Release files for vibegit 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vibegit-0.3.0.tar.gz | 515.2 kB | With provenance | Details for vibegit-0.3.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| vibegit-0.3.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for vibegit-0.3.0-py3-none-win_amd64.whl |
| vibegit-0.3.0-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.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| vibegit-0.3.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details for vibegit-0.3.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
| vibegit-0.3.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for vibegit-0.3.0-py3-none-macosx_11_0_arm64.whl |
| vibegit-0.3.0-py3-none-macosx_10_12_x86_64.whl | Python 3 | none | macOS 10.12+ x86-64 | Details for vibegit-0.3.0-py3-none-macosx_10_12_x86_64.whl |
Total release size: 21.7 MB
Release files / vibegit-0.3.0.tar.gz
| Download URL | vibegit-0.3.0.tar.gz |
|---|---|
| Size | 515.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9b122b079cbe85a36e88d6e2bddacf13797955765ed2342c563b182ed6c2e10
|
|
BLAKE2b-256 checksum How to use checksums |
2c98d8352074867a2c4c4c282d7f0243b52dfeb5ba2b508985666fc17c7adb1c
|
| 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 logRelease files / vibegit-0.3.0-py3-none-win_amd64.whl
| Download URL | vibegit-0.3.0-py3-none-win_amd64.whl |
|---|---|
| Size | 4.2 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ea68ccee2404054fd0526f0a36bc91e187992631c4e3855c3727ec90438eaab4
|
|
BLAKE2b-256 checksum How to use checksums |
af3f0faba316be9c167676ead65f96668f2adddf83f2c05dff9157718e221647
|
| 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 logRelease files / vibegit-0.3.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | vibegit-0.3.0-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 |
afa0079020e5afb06e1f1b1acaea56b483b790080672c60a7bfaa60fa8e4df6c
|
|
BLAKE2b-256 checksum How to use checksums |
10b77017c974a5cd09912a13cdc6d3421cfbd797917fbb9cd275ec702caa7e6d
|
| 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 logRelease files / vibegit-0.3.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | vibegit-0.3.0-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 |
2896f6a5f61165976abdb56e3f6aa684b41f530474c62f4f7045b31ed2bee2f2
|
|
BLAKE2b-256 checksum How to use checksums |
cc9f9b01a35d1dc98b74a33f5532c283337e97ca9cf3ff589fd51bdacb33e02d
|
| 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 logRelease files / vibegit-0.3.0-py3-none-macosx_11_0_arm64.whl
| Download URL | vibegit-0.3.0-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 |
41e0568cedaf2d611b7fe834c18bcd4fc43aa9cf52de2d3dbb3cc46ff78d2907
|
|
BLAKE2b-256 checksum How to use checksums |
24135c8fb43c7a2757934094bfaa167adbe775065df46e4cf291e87c24e5fe13
|
| 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 logRelease files / vibegit-0.3.0-py3-none-macosx_10_12_x86_64.whl
| Download URL | vibegit-0.3.0-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 |
f22a07b17812dce62cd23ab3105503b4508cdd56da38130d9f496652cb8d3aea
|
|
BLAKE2b-256 checksum How to use checksums |
43e37f9f942d512c798f9cd86eded3fbc1b3da13f955555d6da2498ea38bd6dc
|
| 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 logSecurity for vibegit 0.3.0
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.
Attestation for vibegit-0.3.0.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 logA 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.