Skip to content

Patchwork

Patchwork is a GitHub agent built at the Zero to Agent: Vercel x Google DeepMind Hackathon in NYC.

Core trick

A GitHub issue webhook makes Gemini 2.5 Pro read the codebase, write a regression test, and open a PR as background work.

Tags

Description

Patchwork is a GitHub agent built at the Zero to Agent: Vercel x Google DeepMind Hackathon in NYC. File a bug report as a GitHub issue. Patchwork automatically reads your codebase, writes a regression test using Gemini 2.5 Pro, and opens a PR — so that bug can never silently ship again. 🔗 Live demo: https://pensive-jang.vercel.app 🔗 GitHub: https://github.com/rohan1402/patchwork 🔗 Demo repo: https://github.com/rohan1402/patchwork-demo ⚙️ Tech Stack - Gemini 2.5 Pro via Vercel AI SDK — reasoning about bug reports and generating tests - Next.js on Vercel — webhook receiver and dashboard - GitHub API via Octokit — reading codebases, creating branches and PRs - Supabase — logging runs for the live dashboard - waitUntil from @vercel/functions — background processing after webhook response Built by Rohan Pant 🔗 linkedin.com/in/rohan1402
rohan1402/patchwork★ 00 forksTypeScriptCreated Mar 21, 2026 · last push Mar 21, 2026

README excerpt

# Patchwork 🪡

**Bug reports in. Regression tests out.**

![Gemini 2.5 Pro](https://img.shields.io/badge/Gemini_2.5_Pro-4285F4?style=flat&logo=google&logoColor=white)
![Vercel](https://img.shields.io/badge/Vercel-000000?style=flat&logo=vercel&logoColor=white)
![Next.js](https://img.shields.io/badge/Next.js-000000?style=flat&logo=next.js&logoColor=white)
![TypeScript](https://img.shields.io/badge/TypeScript-3178C6?style=flat&logo=typescript&logoColor=white)

---

## What it does

When a bug gets fixed, the regression test almost never gets written. Developers fix the issue, close the ticket, and move on. Six months later the same bug ships again in a slightly different form.

Patchwork fixes this at the source. Install it on a GitHub repo, open an issue describing the bug, and Patchwork automatically reads your codebase, reasons about the failure with Gemini 2.5 Pro, writes a regression test that would catch it, and opens a pull request — before anyone has touched the fix.

The test fails while the bug exists. It passes once the bug is fixed. It lives in your repo forever.

---

## How it works

**1. Install the Patchwork GitHub App on your repo**

Patchwork receives a webhook for every new issue opened in repos where it's installed.

**2. Open a GitHub issue describing the bug**

Write it the way you normally would — title, description, reproduction steps. Patchwork reads your existing test files to understand your testing framework and conventions, then uses Gemini 2.5 Pro t

Team