Skip to main content

Patchwork — Autonomous Dependency Surgery

Patchwork is an autonomous agent designed to handle the "grunt work" of dependency upgrades. It doesn't just bump versions; it analyzes changelogs, identifies breaking changes, applies codemods, and verifies the upgrade with your test suite.

🚀 Pitch

Stop wasting hours on v1 → v2 migrations. Let Patchwork perform the surgery.

🛠 Architecture

      +-----------+       +-------------------+
      |  CLI/Web  | <---> |  Agent Loop       |
      +-----------+       | (Plan-Patch-Test) |
            ^             +---------+---------+
            |                       |
    +-------+-------+       +-------+-------+
    | Episodic Mem  |       | Semantic Mem  |
    | (SQLite/FTS)  |       | (Chroma/Code) |
    +---------------+       +---------------+
            |                       |
    +-------+-------+       +-------+-------+
    | LLM Gateway   | <---> | Tools         |
    | (Anthropic,..) |       | (AST, Git,..) |
    +---------------+       +---------------+

📦 Installation

pip install patchwork-cli
# or via poetry
poetry add patchwork

⚡ Quickstart

  1. Initialize Config:
    patchwork init
    
  2. Scan for Upgrades:
    patchwork detect
    
  3. Perform Surgery:
    patchwork upgrade pydantic --provider anthropic
    

⚙️ Configuration

Provider Status Config Key Env Var
Anthropic Native anthropic ANTHROPIC_API_KEY
Mistral Native mistral MISTRAL_API_KEY
Groq Native groq GROQ_API_KEY
Ollama Native ollama -

💰 Cost Transparency

Patchwork logs every token. Run patchwork cost to see exactly what you're spending on your migrations.

📄 License

MIT

Metadata

Release files for patchwork-ai 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for patchwork-ai 0.1.0
File Size Uploaded Provenance Actions
patchwork_ai-0.1.0.tar.gz 14.3 kB Without provenance Details for patchwork_ai-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for patchwork-ai 0.1.0
File Interpreter ABI Platform Actions
patchwork_ai-0.1.0-py3-none-any.whl Python 3 none any Details for patchwork_ai-0.1.0-py3-none-any.whl

Total release size: 35.5 kB

Release files / patchwork_ai-0.1.0.tar.gz

Download URL patchwork_ai-0.1.0.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
94f50b2435ff45e75397fec17ddd4a7f1b1079814316dcc70e9fda1662640c1a
BLAKE2b-256 checksum
How to use checksums
3a88fd39faad2e91dd5747366c0355142131b02b3bda9529632d013f844b7a84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / patchwork_ai-0.1.0-py3-none-any.whl

Download URL patchwork_ai-0.1.0-py3-none-any.whl
Size 21.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f00ca6bb0ffbe9130a535cb28c1be79995c537db2f27f64f4d839e17aebd70bc
BLAKE2b-256 checksum
How to use checksums
83440d92137ae3b8f91152647533eab4b1bdc6e036e5a6bedc8ff9b67d22c353
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Security for patchwork-ai 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page