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.
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. - Prompt you to stage files interactively.
- Generate a commit message using your configured model.
- Let you review and refine the message before committing.
- Run
git commit, then prompt whether togit push. - 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
- 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.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| diffweave_ai-2.0.3.tar.gz | 659.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| diffweave_ai-2.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 680.0 kB
Release files / diffweave_ai-2.0.3.tar.gz
| Download URL | diffweave_ai-2.0.3.tar.gz |
|---|---|
| Size | 659.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f06fee223b99fcb2037bd4439d20ea94f622b2679617c3a0d7eb718284e9781e
|
|
BLAKE2b-256 checksum How to use checksums |
0e95953c0ccd97582af4b2adc80d719638b94f7afbac42ca124a064004368d2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 29, 2026.
Transparency logRelease files / diffweave_ai-2.0.3-py3-none-any.whl
| Download URL | diffweave_ai-2.0.3-py3-none-any.whl |
|---|---|
| Size | 21.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e1f94cf52a29962d37dbebcc8174fb790f7028408310f4bca6dec9c8f5ada934
|
|
BLAKE2b-256 checksum How to use checksums |
f14b95bf1d7a4f2826508529ba2efe078d7c3fad64be7d872f98f3ef8111373d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 29, 2026.
Transparency log