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
Metadata
Release files for patchwork-review 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| patchwork_review-0.2.0.tar.gz | 7.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| patchwork_review-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.8 kB
Release files / patchwork_review-0.2.0.tar.gz
| Download URL | patchwork_review-0.2.0.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83e4d435391e7e7b89b9379718b31fbc0dde3ca2d31da3f0b497fb34cddc6c52
|
|
BLAKE2b-256 checksum How to use checksums |
f8409dae66a7033eb5599dd76cf8498d729978047c0721cb27a6c2842222194e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / patchwork_review-0.2.0-py3-none-any.whl
| Download URL | patchwork_review-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59e9d9b38790d0a7f6ff03dd38c3c56f37100b5b8a441d611370269e785b8f7a
|
|
BLAKE2b-256 checksum How to use checksums |
1548c7c4bb96a7ea82806743f4ef1eaa36dba4577f4029b7a8dcc453bfe2dfdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|