How We Built an Autonomous AI Agent That Audited 187 Subprojects and Got PRs Merged by Google Cloud Engineers
Description and use
ApiPatch automatically audited 187 subprojects in the awesome-llm-apps monorepo, fixed deprecated API calls, and produced clean, subproject‑specific PRs that were merged by maintainers and Google Cloud engineers.
Problem
Fast‑moving dependencies in AI frameworks break existing code, causing import errors, runtime failures, and manual churn to fix deprecated API calls.
Outcome
ApiPatch audited 187 subprojects, generated 3 PRs (including a merged PR #1148), and demonstrated that automated, AST‑validated migrations can be accepted by large open‑source maintainers and Google Cloud engineers.
Workflow
- Scan repository to discover subproject roots via requirements.txt or pyproject.toml
- Analyze call sites against known deprecation patterns for major frameworks
- Validate proposed changes with AST integrity and syntax checks
- Create isolated Git branches per subproject and open surgical Pull Requests
- Maintain requirements alignment and import order
- Review and merge PRs by maintainers
Evidence
ApiPatch is an autonomous AI agent engineered specifically to detect and repair deprecated API calls across codebases, verify them against syntax and AST integrity shields, and automatically generate clean, partitioned pull requests.
We ran ApiPatch on awesome-llm-apps using subproject-level isolation. Here are the patches it generated: 1. Modernizing RouteLLM Config (PR #1148 — MERGED 🎉)
- Record date: 2026-09-15T02:30:54.478Z