thrisha432

Patchpilot — DevOps skill for Claude Code

DevOps community

AI code-migration agent that doesn't trust its own LLM: tree-sitter analysis, BM25 docs retrieval, scoped patches, Docker-sandboxed tests, repair from real failures.

How to install Patchpilot

This entry records only its repository, not the path inside it, so there is no exact command to give. Open thrisha432/patchpilot and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Patchpilot does

AI code-migration agent that doesn't trust its own LLM: tree-sitter analysis, BM25 docs retrieval, scoped patches, Docker-sandboxed tests, repair from real failures. Benchmarked on 40 Pydantic v1->v2 tasks with hidden tests.

Alternatives in DevOps

  • 16 Testing — Prompt 16: Add Test Infrastructure & Smoke Tests 2.3k ★
  • Cloudflare Skill — Comprehensive Cloudflare platform reference docs for AI/LLM consumption 709 ★
  • DevOps Docs Creator — Generate DevOps documentation automatically 210 ★

README

PatchPilot

An AI code-migration agent that doesn't trust its own LLM

Repository analysis (tree-sitter) · documentation retrieval (BM25) · scoped search/replace patches · tests in a locked-down Docker sandbox · repair from real test failures

[![CI](https://github.com/thrisha432/patchpilot/actions/workflows/ci.yml/badge.svg)](https://github.com/thrisha432/patchpilot/actions/workflows/ci.yml) ![Python](https://img.shields.io/badge/python-3.12%20%7C%203.14-3776AB?logo=python&logoColor=white) ![Tests](https://img.shields.io/badge/tests-96%20passing-2ea44f) ![mypy](https://img.shields.io/badge/mypy-strict-1f5082) [![License: MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)

[Results](#results) · [How it works](#how-it-works) · [What the benchmark found](#what-the-benchmark-found) · [Quick start](#quick-start) · [Docs](#documentation)


PatchPilot migrates a Python repository to a new library version. The first migration it supports is **Pydantic v1 → v2**. It finds the outdated code, retrieves the relevant section of the official migration guide, asks an LLM for small targeted edits, runs the repository's own tests in a sandbox, and repairs what the tests show is still broken.

The design rule: **the LLM proposes, the system verifies.** The model never chooses what runs next. It never touches the original repository or edits tests, and it cannot change code that no finding or failing test points to. A change only counts once the tests pass on the new version.

Runs solved per tier: PatchPilot 100% on all three tiers; the direct prompt with the same model 99%, 74%, 79%; bump-pydantic 17%, 0%, 0%

Results

A 40-task benchmark. Every task has visible tests, **hidden tests** that only the evaluator runs, and a hand-written reference solution. All three systems below use **Claude Haiku 5.5** (except the rule-based tool), with 3 repetiti