DiffWeave
DiffWeave is a tool that automatically generates meaningful Git commit messages and pull request descriptions using large language models (LLMs). It analyzes your staged changes and creates descriptive commit messages, saving you time and ensuring consistent documentation.
Screenshots
Interactive staging — a checkbox file tree with a live diff/contents preview pane (shown side-by-side on wide terminals, tree-only on narrow ones):
Commit review — edit the generated message, refine it with feedback, and regenerate, all in place:
Commit & push — the commit and push run live inside the TUI with status updates:
Installation & Quick Start
You can run DiffWeave via uvx diffweave-ai or from a local checkout using uv run diffweave-ai while developing this repo.
DiffWeave is installed as an isolated tool using uv:
# Make sure you have uv installed first
# https://docs.astral.sh/uv/getting-started/installation/
uvx diffweave-ai
Usage
Configure a model
Before generating commit messages, configure your model. DiffWeave supports two authentication types:
Token-based (OpenAI-compatible endpoints):
uvx diffweave-ai set-token-model "your-model-name" \
--token "$YOUR_API_TOKEN" \
--endpoint "https://your-endpoint-url"
The --endpoint flag defaults to https://api.openai.com/v1 if omitted.
Databricks (browser-based authentication):
uvx diffweave-ai set-databricks-browser-model "your-model-name" \
--account "your-databricks-account"
This opens a browser window for authentication and caches the resulting token automatically.
Generate a commit message
Once you have a model configured and some changes staged in your current Git repository, run:
uvx diffweave-ai
This will:
- Show the current
git status. - Open an interactive staging TUI — a checkbox file tree with a live diff/contents preview pane.
- Generate a commit message using your configured model.
- Open a review TUI where you can edit the message, refine it with feedback, and regenerate.
- Run
git commitandgit pushlive from the review screen. - Optionally open the repository in a browser (requires
--open-browser).
If you prefer a simpler, natural-language style instead of Conventional Commits, pass --simple:
uvx diffweave-ai --simple
To preview a message without committing:
uvx diffweave-ai --dry-run
For scripted or automated workflows (skips all prompts, commits, and pushes automatically):
uvx diffweave-ai --non-interactive
Generate a pull request description
To generate a PR title and body based on the diff between your branch and main:
uvx diffweave-ai pr
The result is copied to your clipboard automatically. Use --branch to diff against a branch other than main:
uvx diffweave-ai pr --branch my-base-branch
Features
- AI-powered commit message generation based on staged diffs
- Interactive staging TUI with a checkbox file tree and live diff/contents preview
- In-place commit-review TUI: edit, refine with feedback, regenerate, commit, and push
- Pull request description generation with automatic clipboard copy
- Interactive or non-interactive workflows
- Token-based (OpenAI-compatible) and Databricks browser authentication
- Optional simpler commit style via
--simple - Optional push and browser-open flow after committing
Metadata
Release files for diffweave-ai 2.1.1
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 |
|---|---|---|---|---|
| diffweave_ai-2.1.1.tar.gz | 580.9 kB | With provenance | Details for diffweave_ai-2.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| diffweave_ai-2.1.1-py3-none-any.whl | Python 3 | none | any | Details for diffweave_ai-2.1.1-py3-none-any.whl |
Total release size: 613.0 kB
Release files / diffweave_ai-2.1.1.tar.gz
| Download URL | diffweave_ai-2.1.1.tar.gz |
|---|---|
| Size | 580.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88ed0fc42504bbe0a036e99898fc74a0ccb809aad2f9c7553f2c65fe5a983895
|
|
BLAKE2b-256 checksum How to use checksums |
9df08b54aad086484f058b980ae45e391bc1dcc3807043605e2cab068d0259c1
|
| 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 Nov 3, 2026.
Transparency logRelease files / diffweave_ai-2.1.1-py3-none-any.whl
| Download URL | diffweave_ai-2.1.1-py3-none-any.whl |
|---|---|
| Size | 32.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7abf37fe980c83427233ee06e8cdec7d78e177d66792f261a4e2170c3d897df3
|
|
BLAKE2b-256 checksum How to use checksums |
a9b153348b6fbeb5c4c2e84bab817bada8a22fb9d97cbff7efb7af3dc2873094
|
| 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 Nov 3, 2026.
Transparency logSecurity for diffweave-ai 2.1.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
Both files in this release have been uploaded with provenance metadata.
Attestation for diffweave_ai-2.1.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 Nov 3, 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.