# Patchbay

> An agent that runs code migrations across TypeScript monorepos

- Author: James Hong
- Tags: ai, tooling
- Stack: TypeScript, Fastify, PostgreSQL, ts-morph, MCP, Docker, OpenTelemetry, Terraform
- URL: https://gnohj.net/projects/patchbay/

Name a migration, such as [Jest](https://jestjs.io/) to [Vitest](https://vitest.dev/) or a router major version, and Patchbay finds every call site and works through them in batches.

Each batch goes through the same loop: apply codemods first, use an LLM only for what is left, then verify with the type checker, tests and lint inside a sandbox.
A failure is fed back as context for a retry, within a budget, before it escalates to a person.

The output is one pull request per batch with the diff, the checks and the cost, for a human to approve or reject.
Every run is logged with tokens, cost and outcome, so the results can be measured.

In progress.
The write-up and numbers land here when it ships.
