What the agent does
The agent clones obytes/react-native-template-obytes, installs pnpm@10.12.3 (the version packageManager pins) with npm, and runs pnpm lint, pnpm type-check and pnpm test on the untouched clone; all exit 0. It runs npx expo install expo@latest and --fix, which moves the app from SDK 54 to 58 and TypeScript to 6.0.3.
That breaks the build, so it works out why: @react-navigation/native is imported in 4 files but not in package.json (it used to come in through expo-router), newArchEnabled is no longer an ExpoConfig key in app.config.ts, and refs and types changed in button.tsx, input.tsx, modal-keyboard-aware-scroll-view.tsx and src/lib/utils.ts. It resets package.json and pnpm-lock.yaml and runs npx expo install --fix on SDK 54 alone.
Start it with one API call
POST https://api.phoenix.so/o/{org}/sessions with this body:
{
"agent": "claude",
"input": "Upgrade the Expo SDK to the latest compatible versions with npx expo install --fix, run pnpm lint, pnpm type-check and pnpm test, and open a pull request with one line per bump. Leave out any upgrade that breaks the build or tests and say why.",
"resources": [
{
"url": "https://github.com/your-org/your-app"
}
]
}- Get an API key. In the console, open Settings, then API keys, and create a key for your org. Send it in the Authorization header as a Bearer token.
- Send the request. POST the body in request.json to https://api.phoenix.so/o/{org}/sessions, with your repository as the resources URL. The run starts in its own cloud sandbox.
- Read what came back. Follow the run on its live stream or wait for the run.completed webhook, then read the result and its trajectory.
What comes back
Tried on obytes/react-native-template-obytes at fd9b358: the app stays on SDK 54. 2 files changed, 356 insertions(+), 210 deletions(-) in package.json and pnpm-lock.yaml, nine patch bumps such as expo ~54.0.32 to ~54.0.38, expo-router ~6.0.22 to ~6.0.24 and jest-expo ~54.0.16 to ~54.0.18. Lint, type-check and test exited 0 before and after; the run reports 5 suites passing, and Jest still warns it "did not exit one second after the test run", as it did on the clone. The rejected SDK 58 tree failed pnpm test with Tests: 0 total. No pull request was opened.
For the reviewer: SDK 58 is its own migration (declare @react-navigation/native, update app.config.ts, fix 4 files, and choose TypeScript 6 or 5.9). expo-doctor was not run on the final tree, and nothing was built for a device.
Run it on every Monday morning
An automation with a schedule trigger, cron 0 9 * * 1 in your timezone, runs this prompt weekly. Most weeks that means patch bumps inside the current SDK, as here; the week an SDK move passes the three pnpm checks, the pull request carries it instead.
The use case this job follows, with its automation and trigger: Upgrade dependencies weekly.
Why run it on Rush?
The SDK 58 install itself ended Done in 16.3s; the breakage showed only in the checks. The run read the failures, traced them to a dependency SDK 58 stopped bringing in and a config key it dropped, and kept the safe half instead of shipping a broken SDK bump or nothing.
Frequently asked questions
Why not fix the SDK 58 errors in the same pull request?
The prompt asks to leave out any upgrade that breaks the build or tests. Fixing them means source edits in 4 files plus app.config.ts, which the agent judged beyond a dependency bump and listed as separate work.
What did TypeScript 6 break?
tsconfig.json(4,5): error TS5101: Option 'baseUrl' is deprecated. With TypeScript pinned back to 5.9, type-check still showed 10 errors from SDK 58 itself.
More React Native jobs
More jobs like this: Upgrade dependencies weekly
- Upgrade an Express 4 App to Express 5 in Node.js (Node.js)
- Upgrade firebase-functions and firebase-admin (Firebase Functions)
- Upgrade Laravel 11 to Laravel 13 (Laravel)