Skip to main content

AI code review for git diffs — powered by Claude

Project description

patchwork

AI code review for your git diffs. Powered by Claude.

pip install patchwork-review
export ANTHROPIC_API_KEY=sk-ant-...
patchwork review

Usage

# Review staged + unstaged changes
patchwork review

# Review only staged changes
patchwork review --staged

# Review last 3 commits
patchwork review --since HEAD~3

# Review diff vs main branch
patchwork review --since main

# Review a specific file
patchwork review -f src/auth.py

# Focus the review
patchwork review --focus "security vulnerabilities only"
patchwork review --focus "look for N+1 queries"

# Explain a file
patchwork explain src/utils.py

Output

Structured Markdown:

## Summary
...

## Issues
...

## Suggestions
...

## Verdict
**Approve** / **Request Changes** / **Needs Discussion**

Model

Defaults to claude-opus-4-6. Override with --model:

patchwork review --model claude-sonnet-4-6

License

MIT

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

patchwork_review-0.1.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

patchwork_review-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file patchwork_review-0.1.0.tar.gz.

File metadata

  • Download URL: patchwork_review-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for patchwork_review-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6b14ea107e61e05f98d54fe2d5b1b61eb7d8fe50cbfd7a10a811bafb0bb7e99a
MD5 3a836b8c0c4ef92415d634eaeef00586
BLAKE2b-256 6896e7bcb3f2ee32c6fce613dd5d4efd89bc39a480996889c0663b9c8c266d90

See more details on using hashes here.

File details

Details for the file patchwork_review-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for patchwork_review-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69eefdc6edcfae48162af51c1c7378d06ea841663ecf1d9759fcb340916d4a56
MD5 abfd588dc74346e7eef91153f7ed7254
BLAKE2b-256 8049f3653401446291048c3e5fb99453cb0e7c9056a332f72ad2cc34c5b358c3

See more details on using hashes here.

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