NEW v0.9.0 Live on PyPI & GitHub Actions with Monorepo Subproject Discovery & Enterprise AST Guards

Developer Infrastructure · Autonomous AI Agent

Stop chasing
broken APIs.

ApiPatch detects third-party breaking changes, fetches live changelogs via DocHunter™, rewrites deprecated code with AST safety validation, and opens ready-to-merge GitHub Pull Requests.

terminal — pip install
$ pip install apipatch
111/111

Passing unit tests with AST validation & zero regressions

<0.1s

DocHunter™ live grounding against official package changelogs

100%

Autonomous workflow: scan, fork, branch, AST validate & PR

5+

Languages & formats: Python, JS, TS, JSX, TSX, JSON

Autonomous Refactoring

From breaking changes
to merged PRs —
zero hallucinations.

Tools like Dependabot only bump version numbers in configuration files. ApiPatch understands actual code semantics, validates changes through AST syntax trees, and submits ready-to-merge Pull Requests.

  • DocHunter™ Grounding: Resolves live PyPI/npm documentation and changelogs before writing code.
  • AST Self-Healing: Detects and repairs LLM syntax or structural errors automatically.
  • Atomic GitHub Commits: Opens live PRs directly on target repositories via Git Database REST API.
Verified Live PR: jedarden/duck-e #1 ↗
app/models/user.py
Live PR #1 Generated
1 from enum import Enum
2 from pydantic import BaseModel, Field
3+from pydantic.config import ConfigDict
4
5 class UserTierConfig(BaseModel):
6 session_timeout: int = Field(description="Timeout in seconds")
7
8- class Config:
9- frozen = True # Deprecated Pydantic v1 syntax
10+ model_config = ConfigDict(frozen=True)
services/ai_service.py
OpenAI v1.0 SDK Refactored
1 # OpenAI SDK v0.x Legacy Migration
2-import openai
3-response = openai.ChatCompletion.create(
4- model="gpt-4o",
5- messages=[{"role": "user", "content": prompt}],
6-)
7-return response["choices"][0]["message"]["content"]
8+from openai import OpenAI
9+client = OpenAI()
10+response = client.chat.completions.create(
11+ model="gpt-4o",
12+ messages=[{"role": "user", "content": prompt}],
13+)
14+return response.choices[0].message.content
payments/billing.py
SCA & 3DS Safe
1 # Stripe Charges ➔ PaymentIntent Migration
2-charge = stripe.Charge.create(
3- amount=2900,
4- currency="usd",
5- source=card_token,
6-)
7-return charge.id
8+intent = stripe.PaymentIntent.create(
9+ amount=2900,
10+ currency="usd",
11+ payment_method_types=['card'],
12+)
13+return intent.id

Live Simulator

Test ApiPatch on Real Code

Pick a legacy SDK pattern or paste your own code. Watch DocHunter™ ground the official changelogs, run AST validation, and modernize the code in real time.

models.py (Legacy Source) Deprecated API
Detected: pydantic (v1.10)
models.py (Modernized) PR Ready ✅
🌐
DocHunter™ Grounding: Verified against official PyPI & GitHub changelogs (0.08s)
🛡️
AST Safety Guard: Parsed AST syntax tree, 100% logic and docstrings intact

Under The Hood

Engineered for real-world production codebases.

Zero guesswork. Grounded in live documentation, secured by AST compilers, and delivered via atomic Git commits.

DocHunter™ Live Grounding

Instantly pulls live official documentation, changelogs, and migration guides from PyPI, npm, and GitHub APIs in under 100ms to eliminate hallucinations.

AST Self-Healing Loop

Parses refactored Python and JavaScript/TypeScript through AST linters. If syntax or structural errors occur, ApiPatch automatically prompts the AI to self-heal.

Autonomous GitHub PR Pipeline

Run apipatch pr owner/repo to audit remote repositories, fork, create isolated branches, commit refactorings, and open live PRs automatically.

10x Parallel Async Auditing

Multi-threaded candidate file pre-filtering scans thousands of files concurrently using lightweight fast AST regex parsers before invoking the LLM.

Multi-LLM Engine

Optimized for Google Gemini 2.5 Flash Lite, Anthropic Claude 3.7 Sonnet, and OpenAI GPT-4o with automatic fallback and key discovery.

GitHub App & Webhook Daemon

Run apipatch webhook on your CI/CD server or cloud container to receive push webhooks and maintain 100% up-to-date dependencies 24/7.

Command Line Interface

One command to audit.
One command to patch.

ApiPatch provides intuitive CLI commands for local audits, proactive repository discovery, and autonomous pull requests.

$ apipatch scan ./src
Local recursive scan with colorized diffs
$ apipatch fix ./src --write
Apply fixes in-place with automatic .bak backups
$ apipatch pr owner/repo
Autonomous end-to-end GitHub Pull Request
$ apipatch discover "topic:ai"
Proactively find & audit trending active repos
bash — apipatch pr jedarden/duck-e
Pipeline Completed
$ apipatch pr jedarden/duck-e --max-files 20
=== ApiPatch: Autonomous GitHub PR Pipeline ===
Target Repository: jedarden/duck-e
Authenticated As: @MoradMoqbel
Base Branch: main (6ff958ac)

[*] Fetching file tree for jedarden/duck-e...
[✓] Retrieved 304 total repository files.
[*] Inspecting candidate code files in parallel...

  ⚡ Breaking changes detected in app/models/user.py
  Pydantic v1 `class Config` ➔ Pydantic v2 `model_config = ConfigDict`

[✓] AST syntax & structure validation passed (0 errors).
[*] Forking repository to @MoradMoqbel...
[*] Creating branch 'apipatch/migrate-1787384283'...
[*] Committing 2 modernized file(s)...
[*] Submitting live Pull Request...

🎉 SUCCESS! Pull Request Opened:
https://github.com/jedarden/duck-e/pull/1

See It in Action

Live execution in 60 seconds.

Watch ApiPatch discover deprecated syntax, validate logic via AST, and open live GitHub Pull Requests.

Get Started Today

Keep your codebase
modern forever.

Install the CLI immediately via PyPI, or join our early access list for the hosted GitHub App (automatic 1-click CI/CD installs).

terminal — install
$ pip install apipatch

Open Source · MIT License · Free for public repositories.