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.2.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.2.0-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: diffweave_ai-1.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 94d1cf3635f595da3c94768c82893cfe9a069b765aaedfb7ba17bf3bc1451667
MD5 770bb49b6e902490368e9ca9f33a2440
BLAKE2b-256 f6c5b171462579ec803c96f15c1c35451e5b541dbd674908510a423179ae634e

See more details on using hashes here.

Provenance

The following attestation bundles were made for diffweave_ai-1.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: diffweave_ai-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 20.3 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 08d9f4c66c659c80695fd73fb5c8e44abd359dac94b9b17d9b686991206f5425
MD5 8530f1c0275dc554ed6079bdc79cc7a5
BLAKE2b-256 9477914f372f2140317c592a7c6ec797eff8e118a0c872e82897edcc1d2041ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for diffweave_ai-1.2.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