Developer Infrastructure · Autonomous AI Agent
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.
Passing unit tests with deterministic AST validation & zero regressions
GitHub stars across audited & verified open-source codebases
Target runtime & CI/CD matrix aware — zero broken build pipelines
Guaranteed to compile & run error-free via deterministic AST validation
Full transparency: Real-time visibility into open-source repositories audited, breaking SDK signatures refactored, and autonomous pull requests opened by ApiPatch.
"The refactored code worked as expected, error free." — Maintainer verified
5 agent core modules
Migrated deprecated resourceFromAttributes to modern Resource constructor
packages/backend/telemetry.ts
Modernized dynamic module loading to standard PEP 451 importlib
litellm/proxy/proxy_server.py
Migrated validator decorators and class Config to Pydantic v2 standards
duck_e/models/config.py
Refactored removed imp module to importlib.util for Python 3.12+ safety
materials/scraper.py
Preserved exact numerical tensor dimensions across modern PyTorch signatures
eqnet/models/core.py
Isolated deprecated resourceFromAttributes in production integration
typescript/src/integrations/ai-sdk/index.ts
Patched session.scalars(select(...)) tuple unpack to pass strict validate.sh
libs/agno/agno/storage/agent/sqllite.py
Early Design Partners & Production Proof
ApiPatch collaborates with leading software architects and autonomously delivers green, zero-error pull requests to top AI frameworks and global open-source codebases.
"The refactored code worked as expected, error free."
Autonomously audited runtime dependencies and refactored core framework logic. Passed CodeRabbit AI automated review with 0 issues, 5/5 pre-merge checks passed, and minimal merge risk. Contributor role recognized in Discord.
View Pull Request #7268 ↗Migrated critical proxy orchestration code to modern standards. Verified across comprehensive enterprise test suites: all 84 GitHub Actions CI jobs passed green with Greptile 5/5 review confidence.
View Pull Request #40983 ↗Clean autonomous migration of Python curriculum and utilities to modern SDK patterns, eliminating deprecation warnings while preserving identical AST semantic behavior.
View Pull Request #833 ↗Refactored research AI pipelines at UC Berkeley, preserving exact numerical tensor operations, model signatures, and scientific reproducibility without breaking dependencies.
View Pull Request #16 ↗Autonomous Refactoring
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.
Live Simulator
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.
Under The Hood
Zero guesswork. Grounded in live documentation, secured by AST compilers, and delivered via atomic Git commits.
Instantly pulls live official documentation, changelogs, and migration guides from PyPI, npm, and GitHub APIs in under 100ms to eliminate hallucinations.
Parses refactored Python and JavaScript/TypeScript through deterministic AST linters. Guarantees code compiles and runs error-free with zero broken imports or structural regressions.
Inspects GitHub Actions matrices, pyproject.toml, package.json engines, and Dockerfile to strictly guarantee refactorings never violate pinned runtime targets or break client CI builds.
Run apipatch pr owner/repo to audit remote repositories, fork, create isolated branches, commit refactorings, and open live PRs automatically.
Multi-threaded candidate file pre-filtering scans thousands of files concurrently using lightweight fast AST regex parsers before invoking the LLM.
Optimized for Google Gemini 2.5 Flash Lite, Claude 3.7 Sonnet, and GPT-4o with automatic fallback. Deploy with apipatch webhook for continuous 24/7 CI dependency monitoring.
Command Line Interface
ApiPatch provides intuitive CLI commands for local audits, proactive repository discovery, and autonomous pull requests.
.bak backups
$ apipatch pr CopilotKit/CopilotKit --max-files 50
=== ApiPatch: Autonomous GitHub PR Pipeline ===
Target Repository: CopilotKit/CopilotKit (37,381 ⭐)
Authenticated As: @MoradMoqbel
Base Branch: main
[*] Fetching monorepo tree across runtime packages...
[✓] Retrieved target repository files & AST dependency graph.
[*] Inspecting candidate files in parallel...
[✓] AST syntax & semantic structure validation passed (0 errors).
[*] Forking repository & generating atomic patch branch...
[*] Submitting live Pull Request via Git Data REST API...
🎉 SUCCESS! Pull Request Opened:
https://github.com/CopilotKit/CopilotKit/pull/7268
CodeRabbit Review: 5/5 Checks Passed · 0 Issues · Minimal Merge Risk
See It in Action
Watch ApiPatch discover deprecated syntax, validate logic via AST, and open live GitHub Pull Requests.
Design Partner Program
We are onboarding 5 engineering teams for our Q4 Private Pilot. Get automated breaking change audits, custom AST rules, and priority GitHub App integration.
Get Started Today
Install the CLI immediately via PyPI, or join our early access list for the hosted GitHub App (automatic 1-click CI/CD installs).
Open Source · MIT License · Free for public repositories.