Skip to main content

Assists with git workflows using LLMs.

Project description

DiffWeave AI

DiffWeave is a tool that automatically generates meaningful Git commit messages using large language models (LLMs). It analyzes your staged changes and creates descriptive commit messages, saving you time and ensuring consistent documentation.

Documentation available here

Demo

Installation & Quick Start

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 at least one model endpoint:

uvx diffweave-ai add-model \
  --model "name-of-your-model" \
  --endpoint "https://endpoint-url" \
  --token "$TOKEN"

Then set the default model to use:

uvx diffweave-ai set-default "name-of-your-model"

You can still override the model per invocation with the --model / -m flag.

Generate a commit message

Once you have a model configured and some changes staged in your current Git repository you can run:

uvx diffweave-ai

This will:

  • Show the current git status.
  • Optionally stage files for you (interactive by default).
  • Generate a commit message using your configured model.
  • Let you review/refine the message.
  • Attempt git commit (and optionally git push and PR open if a URL is printed).

To specify a model for a single run:

uvx diffweave-ai -m "your-model-name"

If you prefer a simpler, more natural-language commit style rather than Conventional Commits, pass --simple:

uvx diffweave-ai --simple

You can also run in dry-run mode (generate and print a commit message without committing):

uvx diffweave-ai --dry-run

Or in a non-interactive mode, which will generate a message and attempt to commit and push without asking follow-up questions:

uvx diffweave-ai --non-interactive

Features

  • AI-powered commit message generation based on staged diffs
  • Interactive or non-interactive workflows
  • Support for configuring custom LLM HTTP endpoints
  • Ability to set and override the default model
  • Optional simpler commit style via --simple
  • Optional push and PR-open flow when git push prints a URL

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

diffweave_ai-1.1.0.tar.gz (14.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

diffweave_ai-1.1.0-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file diffweave_ai-1.1.0.tar.gz.

File metadata

  • Download URL: diffweave_ai-1.1.0.tar.gz
  • Upload date:
  • Size: 14.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for diffweave_ai-1.1.0.tar.gz
Algorithm Hash digest
SHA256 d2e77784067fe9c848413899211db1d84f29072c07da5862a0a98045d15af950
MD5 26faf1ac22e7a36f98673e1b2f8c5f3b
BLAKE2b-256 0eda003811c076d3a40a142d1f5c13fb69932d9c6f446d81b971b433e02101a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for diffweave_ai-1.1.0.tar.gz:

Publisher: release.yml on block/diffweave-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file diffweave_ai-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: diffweave_ai-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for diffweave_ai-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1190cc2dc16e569012ace38582c33f45ee90f7b73425b06db23e2eeb35d2e1ee
MD5 cc26115ecf1d5d43455089d103bbc2c2
BLAKE2b-256 2dedba5941013f44357635e94da976b2f4531e0653fa65ce3e85c16d86f42273

See more details on using hashes here.

Provenance

The following attestation bundles were made for diffweave_ai-1.1.0-py3-none-any.whl:

Publisher: release.yml on block/diffweave-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page