-
Notifications
You must be signed in to change notification settings - Fork 155
Patchwork
Patchwork is an open-source framework to automated development gruntwork like PR reviews, bug fixing, security patching, and more using a self-hosted CLI agent and your preferred LLMs.
Once we install patchwork with
pip install 'patchwork-cli[all]' --upgrade
we can use it to run patchflows (workflows that automate development gruntwork).
patchwork AutoFix openai_api_key=<YOUR_OPENAI_API_KEY> github_api_key=<YOUR_GITHUB_TOKEN>
To use it with optillm all we need to do is just run optillm
python optillm.py
and replace the base_url, to run patchwork with the optillm proxy.
patchwork AutoFix client_base_url=http://localhost:8000/v1 openai_api_key=<YOUR_OPENAI_API_KEY> model=moa-gpt-4o-mini
You can prepend the slug
(from the list of approaches).
For example, above we use the technique moa
(mixture of agents) with the gpt-4o-mini
base model using optillm.