Patchwork OS — Summary
One-line description
Patchwork is a Python CLI and framework for automated code patching via composable AI-powered pipelines called "patchflows," targeting CI/CD integration for security fixes, dependency upgrades, and documentation generation.
Classification
- Archetype: automated-pipeline-runner (closest to: none of the five seed archetypes — independent Python CLI, not Claude Code or IDE-centric)
- Primary use case: CI/CD automation for code quality tasks (security patching, PR review, docstring generation, dependency updates)
- Methodology fit: not a coding methodology; patchflows are standalone automation pipelines, not agent guidance frameworks
Key facts
| Field | Value |
|---|---|
| Repository | https://github.com/patched-codes/patchwork |
| License | AGPL-3.0 (framework); Apache-2.0 (individual steps + patchflows) |
| Stars | ~1,558 |
| Language | Python |
| Install | pip install patchwork-cli |
| Binary | patchwork |
| Version | 0.0.124 |
| Last commit | 2025-04-18 |
| Contributors | 15 |
Core abstractions
- Step: reusable atomic Python class; 46+ built-in (CallLLM, CreatePR, ScanSemgrep, ModifyCode, ExtractDiff, etc.)
- Patchflow: Python class that chains Steps + YAML prompt templates into a named automation pipeline
- Prompt template: JSON/YAML files with
{{variable}}substitution; one per patchflow, stored underpatchwork/patchflows/<Name>/
Built-in patchflows (11)
AutoFix, DependencyUpgrade, GenerateCodeUsageExample, GenerateDiagram, GenerateDocstring, GenerateREADME, GenerateUnitTests, LogAnalysis, PRReview, ResolveIssue, SonarFix
Relationship to spec-driven development
Patchwork is not a spec-driven development framework. It does not generate code from specifications, manage agent context, or orchestrate developer workflows. It is a code automation tool that uses LLMs to patch, review, and document existing codebases, typically invoked from CI pipelines (GitHub Actions, etc.).
Included in this research batch because it was listed as a "Reddit-confirmed alt-SDD" reference — the Reddit context appears to be users describing automated code quality pipelines as a form of spec-driven maintenance.
Quality tier
Tier A — comprehensive: 1558-star active project with full Python source, pypi package, detailed docs.