What is a Patchflow?
In its simplest form, a patchflow is a Python script that defines a series of function (Steps) and LLM (Prompts) calls to execute a development task, generally in the context of a target code repository.What makes a good Patchflow?
Patchflows are meant to automate repetitive, well-defined development tasks so that they can be executed end-to-end without active manual intervention. When deciding what tasks to automate using a patchflow, consider the following:- Repetitive: The task should be something that is done frequently and is well understood.
- Effort: The task should ideally be time-consuming or error-prone when done manually.
- Scope: The task should be well-defined and have clearly identifiable inputs and outputs.
- Asynchronous: The task should be something that can be done in the background, so as to not block active development or require manual intervention.
- Expectations: An ideal task is one where the output can be easily verified manually.