Patchwork
A self-hosted CLI agent framework that automates development chores such as PR reviews, bug fixing and security patching by combining reusable steps, prompt templates and an LLM.
Patchwork automates development gruntwork, such as pull-request reviews, bug fixing, security patching, dependency upgrades, documentation and README generation, using a self-hosted CLI agent paired with a user's preferred LLM. It is built from three kinds of pieces: steps, reusable atomic actions such as creating a pull request, committing changes or calling an LLM; prompt templates, customizable prompts tuned for a specific chore; and patchflows, which combine steps and prompts into a complete automation such as an AutoFix or a PR review.
Patchflows can run locally from the CLI or an IDE, or as part of a CI/CD pipeline, and several are available out of the box alongside the ability to create custom ones. It installs from PyPI with optional dependency groups for security-scanning tools such as semgrep and depscan, for a RAG-based issue resolver, and for notification integrations such as Slack. It is written in Python and licensed under AGPL-3.0.