Releases: coder11125/patchwork
Releases · coder11125/patchwork
v0.1.0
v0.1.0 — Initial Release
What is Patchwork?
Patchwork is a BYOK (Bring Your Own Key) autonomous dependency upgrade framework. You provide your own LLM API key — there's no proxy, no SaaS, no vendor lock-in. Patchwork runs entirely on your machine using your credentials.
It detects outdated packages, analyzes changelogs for breaking changes, plans safe upgrade paths (with risk scoring), applies automated code transformations, runs your tests in isolation, and opens pull requests — all in one command.
Supported ecosystems
| Ecosystem | Detector | Manifest | Codemod | Test runner |
|---|---|---|---|---|
| Go | GoModDetector |
go.mod |
replace + tidy |
go test ./... |
| npm | NPMDetector |
package.json |
Version bumps | npm test |
| pip | PipDetector |
requirements.txt |
Version bumps | python -m pytest |
| Cargo | CargoDetector |
Cargo.toml |
Version bumps | cargo test |
| RubyGems | BundlerDetector |
Gemfile |
Version bumps | bundle exec rspec |
| Maven | MavenDetector |
pom.xml |
Version bumps | mvn test |
LLM providers
| Provider | Auth | Default model |
|---|---|---|
| Anthropic | x-api-key |
claude-3-5-sonnet-20241022 |
| Mistral | Bearer token |
mistral-large-latest |
| Groq | Bearer token |
llama-3.3-70b-versatile |
| Ollama | None (local) | llama3.2 |
Commands
| Command | Description |
|---|---|
patchwork configure |
Set LLM API key (stored in OS keychain) |
patchwork detect |
Scan directory for outdated packages |
patchwork analyze |
Fetch changelogs and analyze breaking changes |
patchwork plan |
Generate upgrade plan with risk scores |
patchwork apply |
Apply codemods without running tests |
patchwork run |
Full pipeline: plan → codemod → test → PR |
patchwork pr |
Create a PR from an existing plan |
patchwork serve |
Start HTTP API server |
API server endpoints
- GET /health → {"status": "ok"}
- POST /detect → { "dir": "." } → detects packages
- POST /plan → { "dir": "." } → detect + analyze + plan
- POST /run → { "dir": "." } → detect + analyze + plan + codemod + test + PR
Installation
curl -fsSL https://github.com/coder11125/patchwork/main/install.sh | sh
Or build from source (requires Go 1.25):
git clone https://github.com/coder11125/patchwork.git
cd patchwork
make build
Quick start
Configure your LLM API key
patchwork configure
Scan current directory
patchwork detect
Preview upgrades
patchwork plan
Full pipeline: detect → plan → codemod → test → PR
patchwork run
License: MIT