Patchwork is an open-source framework for patching and managing code repositories using large language models. PatchWork allows you to automate workflows like PR reviews, bug fixing, security patching, and more using a self-hosted CLI agent and your preferred LLMs.

Key Components

Steps: A set of reusable atomic actions that define various operations.

Prompts: Customizable natural language instructions that can be combined with user-defined inputs and/or systeme generated output to be passed to large language models.

Patchflows: LLM-assisted automations such as PR reviews, code fixing, debugging. Patchflows can be run locally in your CLI and IDE, or as part of your CI/CD pipeline.