Click the image above to see Patchwork in action.
Patchwork is your AI-powered development assistant that takes the hassle out of achieving complex development goals. It automates the process, making it smooth and error-free.
Manual development tasks can be tedious and time-consuming, but with Patchwork, it's a breeze! Here's why you'll love it:
- AI-Driven Coordination: Our main agent,
agent_coordinator
, directs everything seamlessly. - Smart Task Generation: Patchwork uses AI to generate tasks based on your input goal.
- Precision Editing:
agent_editor
creates diff code changes for each task. - Feedback Loop: For each task, Patchwork applies diff's changes and gives feedback on the success, ensuring everything works smoothly.
Clone the repository and install the required dependencies.
git clone https://github.com/yourusername/patchwork.git
cd patchwork
# Create a virtual environment
python -m venv .venv
# Activate the virtual environment
source .venv/bin/activate
# Install the required dependencies
pip install -r requirements.txt
For Unix-like systems, put patchwork.sh
in your PATH (i.e.: make it executable) from any directory.
export PATH=$PATH:/path/to/patchwork
or, permanently add it to your .bashrc
or .zshrc
file.
For Windows, use patchwork.cmd
:
setx PATH "%PATH%;C:\path\to\patchwork"
or, permanently add it to your system's environment variables through the System Properties.
Alternatively, you can use a .env
file.
- Rename
.env.example
to.env
. - Open
.env
and add your API keys:OPENAI_API_KEY=your_openai_api_key GEMINI_API_KEY=your_gemini_api_key
Call it from within any Git repository by passing the repo as the first argument.
cd /path/to/your/git/repo
patchwork.sh .
or for Windows:
cd /path/to/your/git/repo
patchwork.cmd .
Let Patchwork handle the development process. You'll provide an initial goal, a set of files, and Patchwork will take care of the rest.
Patchwork is licensed under the MIT License. Go nuts if you want, but giving credit is always appreciated.
Patchwork leverages AI to handle complex development tasks automatically. Here's how it operates:
- Identify:
agent_coordinator
finds the important files based on your goal. - Generate Tasks:
agent_suggestor
uses AI to create specific tasks for each file. - Edit and Change:
agent_editor
generates diffs for each task and applies them one by one. - Feedback and Iterate: It checks the success of each change, making adjustments as needed.
With Patchwork, achieving complex development goals is no longer a chore. Let our AI agents take care of the hard work while you relax and enjoy a perfectly developed project. Happy coding! 😄