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

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 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-model "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.2.tar.gz (552.0 kB 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.2-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: diffweave_ai-1.2.2.tar.gz
  • Upload date:
  • Size: 552.0 kB
  • 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.2.tar.gz
Algorithm Hash digest
SHA256 2ffbf8acdbebfc82ff6ef5fe91609bc06e1a971401fba0fc5263638be83ac258
MD5 b7810a50283d8f510acf444a0f68e0ac
BLAKE2b-256 26c61b5bdb92a24596f8b94fe1e632797b00211558bc81b60ff6734679223d5a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: diffweave_ai-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 20.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b6588046c5e85a9f47888a50870059531dbbe4065d0d1449e83829a1faa73793
MD5 43e1285704f0c7322d33ed0d52f5f392
BLAKE2b-256 3ad886bfef02630881a411293d074856565fe12b5b23d6f3c54ee3bd083509a5

See more details on using hashes here.

Provenance

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