Skip to main content

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

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.2.0.tar.gz (7.3 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.2.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: patchwork_review-0.2.0.tar.gz
  • Upload date:
  • Size: 7.3 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.2.0.tar.gz
Algorithm Hash digest
SHA256 83e4d435391e7e7b89b9379718b31fbc0dde3ca2d31da3f0b497fb34cddc6c52
MD5 7c2d399f386d0dc2d2ca5d211cfa67af
BLAKE2b-256 f8409dae66a7033eb5599dd76cf8498d729978047c0721cb27a6c2842222194e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for patchwork_review-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 59e9d9b38790d0a7f6ff03dd38c3c56f37100b5b8a441d611370269e785b8f7a
MD5 b93eb52566ff3910c01a4a03d9307498
BLAKE2b-256 1548c7c4bb96a7ea82806743f4ef1eaa36dba4577f4029b7a8dcc453bfe2dfdd

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

Supported by

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