Patchwork is a self-hosted CLI agent that automates development tasks using LLMs, with customizable prompts and patchflows for tasks like PR reviews, code fixing, and documentation. It comes with a set of predefined patchflows and allows users to create their own, with options for overriding default attributes and using custom prompt templates.