# Real phone jobs benchmark (2026-11-07) Status: Phase A (design and checks) and Phase B step 0 (checks proven on emulator-5558) are done. Runs, fixes and medians follow at "go runs". Files: `bench/agent-eval/tasks.yaml` (sets `jobs` and `jobs-mixed`), `bench/agent-eval/jobs/jobs.py` (seed, check, clean), `bench/agent-eval/jobs/test_jobs.py`, testbed screens in `testbeds/android/.../Buggy.java`, runner `bench/agent-eval/run-harness.sh `. The prompt in `tasks.yaml` is the same for every harness. ## Rules for a job - `jobs` (UI-only core, 7 tasks): the result cannot be produced by adb, `am`, `cmd`, `settings`, `content` or a browser. The reason is written per task below. - `jobs-mixed` (2 tasks): the agent may use any route. Each needs a device-side read (shell) and a UI step, so a tool that holds both in one session needs fewer calls. - Checks never read the agent's claim as proof. They read device state (private app state as root, appops, MediaStore, the contacts provider, the testbed event log). The two bug-report jobs also match the agent's written report against a planted-bug list (regexes, no LLM judge) and require the event log to show the bug paths were exercised. - Cleanup removes every contact, SMS, picture, setting and appop a job created. ## Jobs | Job | Set | Prompt (short) | Why adb or the web cannot do it | Check | |---|---|---|---|---| | qa-signup | jobs | Test the testbed Signup tab, report every bug with steps | The bugs exist only in how the screen behaves under use (a welcome line that drops the email's last character; the Create button ignores the tap that follows a rejected submit). No intent or command exercises a form's validation path. | Report matches both planted bugs and lists steps; log shows an invalid submit, then an ignored tap, then a success | | qa-shop | jobs | Test the testbed Shop tab (quantity, totals, SAVE10 = 10%) | Same: total stale after Decrease, SAVE10 takes a flat 10.00. | Report matches both bugs and lists steps; log shows a quantity decrease and SAVE10 applied | | relay-code | jobs | Copy the Relay tab's pickup code into a new contact "Locker 7" | The code is random per run, exists only in a TextView and the app's private storage. Shell use is detected in the tool log and fails the run. | Contacts provider: exactly one "Locker 7" whose phone equals `run-as ... cat files/relay_code` | | chrome-prefs | jobs | DuckDuckGo as default search engine, "Always use secure connections" on | Chrome keeps both in its private `Preferences` file. No intent, `cmd` or `settings` key reaches them and the web cannot change a native browser's settings. | Root read of `Preferences`: `default_search_provider_data` is DuckDuckGo and `https_first_balanced_mode_enabled` (or `https_only_mode_enabled`) is true | | clock-settings | jobs | Tokyo and London world clocks, snooze 15 min, silence after 5 min | World clocks and Clock settings live in Clock's private prefs; the AlarmClock intents set alarms and timers only. | Root read of Clock's prefs: Tokyo and London in the world-clock list, snooze 15, silence 5 | | messages-pin-archive | jobs | Pin Bob Park's thread, archive Carol Diaz's, leave Alice Chen's | Pin and archive are Messages-private flags. Seeding is `adb emu sms send` (harness side); setting the flags has no command. | Root read of Messages' `bugle_db`: `conversation_pin` and `conversations.archive_status` per person | | photos-crop | jobs | Crop jobs-harbor to a square, save a copy, keep the original | The Photos editor is the only crop tool on the image; a shell has no image editor. | MediaStore: original still 1200 wide; a new image added after the baseline, square, at most 800 px | | wakelock-restrict | jobs-mixed | Find the app holding a wakelock, set its battery usage to Restricted | Shell finds the holder (`dumpsys power`: `jobs:drain`, package `dev.phonedriver.testbed`); Settings sets the restriction. A shell could also run `cmd appops set`, so this job rewards the agent that combines them rather than requiring both. | `cmd appops query-op RUN_ANY_IN_BACKGROUND ignore` against a baseline: only the testbed is newly restricted | | log-code | jobs-mixed | Find the pickup code the testbed wrote to the device log, put it in a contact "Locker 9" | The code is only in logcat (shell); the contact is made in the Contacts UI. | Same contact check as relay-code, shell allowed | ## Dropped candidates and why Contact add (`content insert` does it), calendar event (provider insert), dark mode and screen timeout (`cmd uimode`, `settings put`), alarm and timer (AlarmClock intents), SMS send (SENDTO intent plus a tap), Chrome live fact and the web shopping cart (a browser does them), the Uber-Eats-style order (needs sign-in). Maps transit time was not added: Maps on the web gives the same answer. ## Phase B step 0: checks proven by hand on emulator-5558 (2026-11-07) Image: `google/sdk_gphone64_x86_64/emu64xa:17`, userdebug, a 2560x1600 tablet, reached through the 5038 tunnel. `su 0` works; `run-as dev.phonedriver.testbed` works (debug build). Each check was driven by hand with adb input (no agent): a pass state, and a fail state for every distinct failure it reports. Commands were `python3 jobs.py seed|check|clean ` with `SERIAL=emulator-5558`. | Job | Pass | Fail cases shown | What the device showed and what changed | |---|---|---|---| | qa-signup | report with both bugs, steps, full log | vague report; no log | Both bugs reproduce by hand (terms error, tick, tap: nothing; third tap: `Welcome, ada@example.co!`). | | qa-shop | report with both bugs | vague report; no log | Total stays `$36.00` after Decrease; SAVE10 gives `$14.00` at quantity 2 (flat 10). Fix: the report splitter cut sentences at the decimal point in `$36.00`, so a correct report failed; it now splits only at a full stop followed by space or a newline (unit test added). | | relay-code | UI-made contact is read by the provider | no contact; wrong number; shell in the transcript | The code in the app's `files/relay_code` equals the code on screen. The Contacts app saves a signed-out contact with a null account; phone digits are compared by suffix since the editor may add a `+1`. | | log-code | contact with the logged code | (same checks as relay-code) | The code is logged as `{"ev":"pickup_code"}` at screen open. | | chrome-prefs | DuckDuckGo plus the switch on | no Preferences file; default prefs | Changed: Chrome 17-era keeps "Always use secure connections" in `https_first_balanced_mode_enabled`, not `https_only_mode_enabled`; either true passes. The `Preferences` file is written within 5 s of the toggle. Chrome first run needs two taps ("Stay signed out", "No thanks"). A missing file now fails with a message, not a traceback. | | clock-settings | Tokyo, London, snooze 15, silence 5 | cleared Clock | Keys are `place_timezone_id_N` (`Asia/Tokyo`, `Europe/London`), `snooze_duration`, `auto_silence`. Changed: the old "any file mentions London" test would pass on a fresh Clock, because `home_time_zone` is `Europe/London` on this host; the check now reads only the world-clock list. | | messages-pin-archive | Bob pinned, Carol archived | both reset | Messages opens signed out via "Use Messages without an account"; pin and archive are by long press. Pins live in `bugle_db` table `conversation_pin`, archive in `conversations.archive_status`; the old check looked for a pin column in `conversations` and would never have passed. Changed: the check joins the two tables. | | photos-crop | cropped copy present | no copy; original removed | Photos opens signed out after a Back press on the backup screen. Edit, Crop, Square, Save copy produced `jobs-harbor~2.jpg` at 799x800, kept next to the 1200x800 original; the check allows a 1 px difference. Changed: cleanup now deletes `jobs-harbor*` through MediaStore. | | wakelock-restrict | testbed restricted | testbed not restricted; another app restricted | `dumpsys power` shows `jobs:drain` for uid 10234 (`dev.phonedriver.testbed`). In Settings, App info, App battery usage, turning off "Allow background usage" sets `RUN_ANY_IN_BACKGROUND ignore`. Restricting releases the wakelock. | Facts a run will meet: - The local adb client cannot reach a tunnelled emulator's console (`adb emu` connects to local port 5558). Seeding SMS goes through `EMU_ADB="ssh win-ts /d/Android/Sdk/platform-tools/adb.exe"`, which `jobs.py emu` uses. It is the only thing that needs the SSH host besides the tunnel. - Messages is seeded once: contacts Alice Chen, Bob Park and Carol Diaz and one SMS each stay on the emulator, and `seed`/`clean` only reset pins and archives (`jobs.py purge messages-pin-archive` removes everything). A "Spam protection" dialog was dismissed once. - Contacts and Photos first-run prompts were dismissed once (Contacts notification prompt: "Don't allow"). - `uiautomator dump` fails with "could not get idle state" on the Contacts list screen. Anything that reads that screen through uiautomator (the `adb` harness) must retry; to look at in Phase B for phonedriver and the others. - Left on the emulator: the three seeded contacts and SMS above, the installed testbed, a Chrome and Clock state cleared by each cleanup. Nothing else. ## Run budget Core 7 + mixed 2 = 9 tasks. One pass per harness (phonedriver, phone-harness, mobile-mcp) is 27 runs; the second pass for medians doubles it. The bug-report and Messages/Photos jobs are the longest. Phase B runs phonedriver alone first, as asked. ## Phase B results (2026-11-07) Setup: `claude -p` on the subscription, `claude-sonnet-5-5`, `ANTHROPIC_API_KEY` unset, emulator-5558 (a 2560x1600 tablet image, API 37) through the 5038 tunnel, one agent at a time. Each harness ran the 9 jobs twice (18 runs), reset and checked by `jobs.py` (root reads of app state, never the agent's reply). Core jobs (7): harness limited to its own tools, no adb. Mixed jobs (log-code, wakelock-restrict): any route allowed, `ALLOW_ADB=1`, and the adb harness runs only these two. Tokens are input + output + cache creation + cache read. Raw runs: `docs/bench/jobs.json` (`runs`, `medians`, `totals`); rebuilt with `python3 bench/agent-eval/jobs/summarize.py p4=... --md`. phonedriver is the final binary (`126db3e`), runs `p4` and `p5`. phone-harness 0.3.3 ran as `h1`, `h2` (its qa-shop run in `h2` was invalid: a permission pattern blocked the tool, 7 s, 1 call; rerun as `h3`, which is what the table uses). mobile-mcp 1.0.16 (`@mobilenext/mobile-mcp`) ran through a private adb server on port 5097. The first rubric scored the report jobs by sentence; v2 reads headings and sections too and counts a message that stayed as a dead tap (the old rubric failed correct multi-line reports; rescoring is in `summarize.py`, `success_as_run` keeps the original verdict). ### Totals (sum of per-job medians) | Harness | Passed | Tokens | Tool calls | Wall s | |---|---|---|---|---| | phonedriver | 18/18 | 977,780 | 123.5 | 466.5 | | phone-harness | 14/18 | 1,272,617 | 101 | 1,946 | | mobile-mcp | 18/18 | 4,892,241 | 270.5 | 910 | | adb (mixed jobs only) | 4/4 | 144,669 | 17.5 | 94.5 | ### Per job | Job | Harness | Passes | Median tokens | Median calls | Median wall s | |---|---|---|---|---|---| | log-code | adb | 2/2 | 66,158 | 7.5 | 45.5 | | wakelock-restrict | adb | 2/2 | 78,510 | 10 | 49 | | chrome-prefs | mobile-mcp | 2/2 | 595,815 | 33.5 | 179.5 | | clock-settings | mobile-mcp | 2/2 | 843,472 | 41.5 | 112.5 | | log-code | mobile-mcp | 2/2 | 129,150 | 8.5 | 103.5 | | messages-pin-archive | mobile-mcp | 2/2 | 497,776 | 24.5 | 56.5 | | photos-crop | mobile-mcp | 2/2 | 1,071,665 | 47 | 112 | | qa-shop | mobile-mcp | 2/2 | 476,136 | 31.5 | 85.5 | | qa-signup | mobile-mcp | 2/2 | 514,062 | 39.5 | 110 | | relay-code | mobile-mcp | 2/2 | 611,976 | 35.5 | 122 | | wakelock-restrict | mobile-mcp | 2/2 | 152,188 | 9 | 28.5 | | chrome-prefs | phone-harness | 2/2 | 193,370 | 19 | 250.5 | | clock-settings | phone-harness | 2/2 | 76,850 | 8.5 | 162 | | log-code | phone-harness | 2/2 | 40,748 | 5.5 | 41.5 | | messages-pin-archive | phone-harness | 2/2 | 45,825 | 5 | 57.5 | | photos-crop | phone-harness | 2/2 | 103,776 | 12 | 237.5 | | qa-shop | phone-harness | 1/2 | 338,406 | 13 | 392.5 | | qa-signup | phone-harness | 1/2 | 246,327 | 14.5 | 459 | | relay-code | phone-harness | 0/2 | 147,436 | 14 | 280 | | wakelock-restrict | phone-harness | 2/2 | 79,878 | 9.5 | 65.5 | | chrome-prefs | phonedriver | 2/2 | 104,302 | 13.5 | 60.5 | | clock-settings | phonedriver | 2/2 | 95,116 | 13.5 | 48 | | log-code | phonedriver | 2/2 | 59,470 | 8 | 38 | | messages-pin-archive | phonedriver | 2/2 | 47,090 | 6 | 30 | | photos-crop | phonedriver | 2/2 | 220,836 | 20.5 | 78 | | qa-shop | phonedriver | 2/2 | 138,557 | 18 | 65 | | qa-signup | phonedriver | 2/2 | 181,518 | 27 | 80 | | relay-code | phonedriver | 2/2 | 69,994 | 9 | 38 | | wakelock-restrict | phonedriver | 2/2 | 60,896 | 8 | 29 | ### What each harness failed at - phone-harness, relay-code (0/2): it reads screens through uiautomator dumps, and the dump fails with "could not get idle state" on the Contacts list screen, so it could not see the Contacts app. Run 1 gave up after 17 calls, run 2 after 11, and asked the user whether to tap blind. The contact was never created. - phone-harness, qa-signup (1/2) and qa-shop (1/2): pass 1 of each hit the run limit (601 s with 7 calls; 607 s with 20 calls) and failed; pass 2 passed (317 s with 22 calls; 178 s with 6 calls). Why pass 1 stalled was not diagnosed beyond the wall time. - mobile-mcp: 18/18 but 4.9M tokens, 5x phonedriver. Every action returns a screenshot or an element list; photos-crop (1.07M) and clock-settings (843k) are the worst. - phonedriver: 18/18. Before the rubric rescoring p4 qa-shop was recorded as a failure (a correct report with a "Bug 3: not a bug" heading); it is a pass under rubric v2 and the original verdict stays in `success_as_run`. ### Where phonedriver does not win - Tokens: phone-harness is cheaper than phonedriver on photos-crop (104k against 221k), clock-settings (77k against 95k), log-code (41k against 59k), chrome-prefs is higher for phone-harness (193k against 104k), and messages-pin-archive is about equal (46k against 47k). Over all 9 jobs phonedriver is 23% lower in the sum only because phone-harness failed and spent tokens in the three jobs above. - Wall time: phonedriver is lowest on 8 of 9 jobs; mobile-mcp is 0.5 s ahead on wakelock-restrict (28.5 s against 29 s). Even where a shell can do the work, adb took 45.5 s (log-code) and 49 s (wakelock-restrict) against 38 s and 29 s. - Not fixed: Photos screens are screenshots (the editor has no tree), the unlabeled child button inside a labeled group needs a point tap, and the first tap on the Messages archive action replies "no element changed" because the list settles late. ### phonedriver fixes from this benchmark | Fix | Commit | Before | After | |---|---|---|---| | A dismissed approval prompt (headless, no one to answer) returned "declined", a dead end; now it says what to retry | `ca5c56b`, D27 note | relay-code and qa-shop ended with the agent giving up on Place order | qa-shop completes; the agent retries with `autonomous: true` | | `autonomous: "true"` as a string was rejected as an invalid type | `66b96f7` | retry failed with invalid type | accepted | | Contacts' phone field refuses `set_text` and the error was mapped to "run doctor" | `aa3f4c3` (Java Ctrl+A plus paste; a backspace version was tried and failed on an unmappable key) | type failed, agent fell back to many taps | relay-code 112k tokens, 16 calls, 67 s (p1) to 70k, 9 calls, 38 s (p4/p5 median) | | A formatted phone number (`(555) 010-0100`) failed verification of a typed value | `ca5c56b` | extra confirming reads | verified | | `launch` takes an app name; the instructions and the tap description say tools go one at a time | `9e50691`, `ca5c56b` | agents opened with `devices` and `apps` | gone from the runs | | Server instructions batch sentence removed | `126db3e` | 1 batch call in 18 runs after it | no effect, so removed | Round 1 (`p1`, before these fixes) was 9/9 passed at 955,535 tokens, 572 s; the final `p5` was 9/9 at 932,417 tokens, 493 s and `p4` 9/9 (rubric v2) at 1,023,143 tokens, 440 s. The fixes mostly removed dead ends in single jobs (relay-code above); the sum of tokens did not move much, and run-to-run spread in qa-shop and photos-crop is larger than the difference. ## Rerun of phonedriver on the current build (2026-11-10) Why: the totals above date from 7 November, and three days of changes went in after them. Only phonedriver was rerun. mobile-mcp is still 1.0.16 and phone-harness still 0.3.3, the versions measured above. Setup: build `add1a2b`, three passes (`p6`, `p7`, `p8`), `claude -p` on the subscription, `claude-sonnet-5-5`, Claude Code 2.1.319. The agent and phonedriver ran on the Mac mini. The tablet emulator of 7 November no longer existed, so `emulator-5558` is a new AVD of the same image and size (`Pixel_Tablet_API_37`, 2560x1600, API 37, 4 GB RAM). Raw runs: `docs/bench/jobs.json`, passes `p6` to `p8`, and `rerun_2026_11_10`. Result on the eight jobs that could be compared: 24 of 24 passed, and the sum of per-job median tokens is 1,066,097, against 916,883 for the same eight jobs on 7 November (16% more). mobile-mcp's sum for these eight jobs is 4,740,053, so the ratio is 4.4x, against 5.2x on 7 November. | Job | Passed 7 Nov | Passed now | Tokens 7 Nov | Tokens now | Change | Outside the spread? | |---|---|---|---|---|---|---| | chrome-prefs | 2/2 | 3/3 | 104,302 | 138,521 | +32.8% | yes, higher | | clock-settings | 2/2 | 3/3 | 95,116 | 96,562 | +1.5% | no | | log-code | 2/2 | 3/3 | 59,470 | 53,333 | -10.3% | no | | messages-pin-archive | 2/2 | 3/3 | 47,090 | 79,799 | +69.5% | no | | photos-crop | 2/2 | 3/3 | 220,836 | 322,153 | +45.9% | no | | qa-shop | 2/2 | 3/3 | 138,557 | 93,950 | -32.2% | no | | qa-signup | 2/2 | 3/3 | 181,518 | 217,250 | +19.7% | no | | relay-code | 2/2 | 3/3 | 69,994 | 64,529 | -7.8% | no | "Outside the spread" means no run of one group falls inside the range of the other (`bench/agent-eval/jobs/compare.py`). With two and three passes this shows only large changes. What the rerun says, plainly: - The changes since 7 November did not lower tokens on these jobs. Seven of eight jobs moved inside the run-to-run spread. chrome-prefs is higher in all three passes (138,359, 138,521 and 527,834). Not diagnosed. One candidate: a cold Chrome launch now lists the first-run screen where it used to list an empty pager. - Wall time is not comparable. The agent ran on a Mac mini that other work was loading, through two SSH tunnels. The times are in `jobs.json` and are not used. - wakelock-restrict is excluded. On the new AVD the seeded `jobs:drain` wakelock was gone before the agent started in most runs (the first `dumpsys power` shows `Wake Locks: size=0`), so the job measured the seed, not the tool. One run with the lock in place passed with 55,251 tokens and 7 calls. The seed now waits for the lock before it presses Home, which was not enough. - The rerun found a regression and it is fixed. In the first pass, qa-signup failed: since 8 November a plain `type` into a password field is refused, and the refusal said "Ask the user for the text". The agent stopped and asked for test passwords. The message now says to use `secret` and that a made-up test value needs no asking (`add1a2b`). The three passes above ran with that fix. - Runs that hit a dropped adb connection were rerun: relay-code in `p6` and `p8`. The discarded files are kept outside the repository. The emulator was the cause of the higher numbers, not the tool: see the next section. ## phonedriver and mobile-mcp on the same device, same day (2026-11-10) Why: the rerun above ran on a starved emulator. The new AVD drew 2560x1600 with SwiftShader, Contacts was left in front redrawing, and the guest load was 7 on 4 cores. 17 launches answered "not settled", and one job met "Chrome isn't responding" seven times. Setup: the same AVD started with `-gpu host -cores 8 -memory 8192`. `claude -p` on the subscription, `claude-sonnet-5-5`, Claude Code 2.1.319, agent and tools on the Mac mini, one agent at a time. phonedriver build `cfa37b2`, three passes (`p15` to `p17`). mobile-mcp 1.0.16 (its helper `mobilecli` 1.0.22), two passes (`m3`, `m4`), with adb allowed on the two mixed jobs as on 7 November. phone-harness 0.3.3, two passes (`h4`, `h5`), and adb on the two mixed jobs, two passes (`a3`, `a4`), ran later the same day after the emulator was started again. Raw runs: `docs/bench/jobs.json`, `same_device_2026_11_10`. | | Passed | Tokens (sum of job medians) | Tool calls | Wall s | |---|---|---|---|---| | phonedriver `cfa37b2` | 27/27 | 657,542 | 99 | 306 | | mobile-mcp 1.0.16 | 17/18 | 4,567,200 | 276.5 | 523 | | phone-harness 0.3.3 | 14/18 | 1,127,495 | 104.5 | 1,360.5 | | adb (2 jobs) | 4/4 | 203,751 | 20.5 | 83 | mobile-mcp used 6.9x the tokens of phonedriver (5.0x on 7 November). Its one failure: chrome-prefs in `m3` ended with "Always use secure connections" off. | Job | phonedriver passed | phonedriver tokens | mobile-mcp passed | mobile-mcp tokens | Ratio | |---|---|---|---|---|---| | qa-signup | 3/3 | 121,854 | 2/2 | 549,354 | 4.5x | | qa-shop | 3/3 | 92,570 | 2/2 | 473,095 | 5.1x | | relay-code | 3/3 | 49,126 | 2/2 | 574,428 | 11.7x | | chrome-prefs | 3/3 | 98,576 | 1/2 | 1,052,348 | 10.7x | | clock-settings | 3/3 | 95,962 | 2/2 | 691,926 | 7.2x | | messages-pin-archive | 3/3 | 45,240 | 2/2 | 315,560 | 7.0x | | photos-crop | 3/3 | 61,477 | 2/2 | 636,680 | 10.4x | | wakelock-restrict | 3/3 | 38,775 | 2/2 | 122,772 | 3.2x | | log-code | 3/3 | 53,962 | 2/2 | 151,038 | 2.8x | phone-harness used 1.7x the tokens of phonedriver and 4.4x the time, and failed four runs: relay-code twice (no contact was saved), wakelock-restrict once, and qa-signup once (stopped by the 10-minute limit; its tokens are summed from the transcript). It used fewer tokens than phonedriver on two jobs (clock-settings and messages-pin-archive). | Job | phonedriver passed | phonedriver tokens | phone-harness passed | phone-harness tokens | |---|---|---|---|---| | qa-signup | 3/3 | 121,854 | 1/2 | 305,766 | | qa-shop | 3/3 | 92,570 | 2/2 | 136,428 | | relay-code | 3/3 | 49,126 | 0/2 | 161,444 | | chrome-prefs | 3/3 | 98,576 | 2/2 | 151,782 | | clock-settings | 3/3 | 95,962 | 2/2 | 79,931 | | messages-pin-archive | 3/3 | 45,240 | 2/2 | 42,452 | | photos-crop | 3/3 | 61,477 | 2/2 | 65,703 | | wakelock-restrict | 3/3 | 38,775 | 1/2 | 54,694 | | log-code | 3/3 | 53,962 | 2/2 | 129,294 | adb on its two jobs: 4 of 4 with 203,751 tokens; phonedriver's sum for the same two jobs is 92,737. phonedriver against its own 7 November runs (`p4`, `p5`): 657,542 tokens against 977,780 (33% fewer), 99 calls against 123.5. The device is not the same as on 7 November, so part of this is the device. Earlier builds on the same device, same day: `add1a2b` (`p9` to `p11`) 27/27 with 808,241 tokens and 114 calls; `778b6e7` (`p12` to `p14`) 27/27 with 781,132 and 108. The largest single change is photos-crop, 151,431 to 61,477: the reply to the Edit tap now lists the editor's tabs (`cfa37b2`), and the emulator was not restarted before `p15` to `p17`, so Photos did not show its "Update" prompt in them. The two effects are not separated. What was thrown away, and why: - Two chrome-prefs runs (`p9`, `p11`) lost the adb tunnel mid-job and were rerun. - The first qa-shop run of `p14` ran as the emulator process ended. The emulator was restarted and the run repeated. - The first 5 mobile-mcp runs went through a tunnelled adb server. `mobilecli` forwards a port to its device server, which a remote adb server binds on the wrong machine, so every tool call failed. The Mac mini was given its own adb server and the passes started again. - A whole second mobile-mcp pass ran with the guest load between 9 and 16 and failed five jobs for device reasons. The emulator was rebooted and the pass repeated as `m4`. - Photos shows an "Update" prompt after each emulator restart. Both tools met it; it adds calls to photos-crop. - The first phone-harness run met Android's one-time taskbar tutorial after a cold boot. The tutorial was cleared and the pass started again. The discarded files are kept outside the repository. Until 5 December 2026 claims outside this file said "6.9x" and named 10 November; they now give the run of 5 December below. This section's totals are kept in `jobs.json` as `totals_2026_11_10`, and the 7 November totals as `totals_2026_11_07`. ### Notes for the site The site's blog text now says a field that refuses `set_text` is selected with Ctrl+A and pasted over, which is what `TextInput.java` and `Input.java` do. The results are on the benchmarks page and in blog post 4. ## phonedriver 0.2.0 and mobile-mcp 1.0.21 on the same emulator image, same day (2026-12-05) Why: the 6.9x of 10 November was measured on a 0.1.0 build against mobile-mcp 1.0.16. Both tools have changed since. These are the same nine jobs, the same checks and the same model name, run on the day 0.2.0 was released. Result: mobile-mcp used 2.7x the tokens of phonedriver. On 10 November it was 6.9x. The ratio fell from both sides: phonedriver used 86% more tokens than on 10 November (1,226,236 against 657,542) and mobile-mcp used 27% fewer (3,328,365 against 4,567,200). phonedriver failed one run of 27. mobile-mcp passed all 18 and made fewer tool calls (110.5 against 145).

On 9 real phone jobs on three instances of one Android emulator, 5 December 2026, with Claude Sonnet 5.5, mobile-mcp used 2.7 times the tokens of phonedriver. phonedriver: 1,226,236 tokens, 145 tool calls, 26 of 27 runs passed, 7.3 min; mobile-mcp: 3,328,365 tokens, 110.5 tool calls, 18 of 18 runs passed, 11.5 min. Sums of per-job medians.

Setup: `claude -p` on the subscription, `claude-sonnet-5-5`, `ANTHROPIC_API_KEY` unset. phonedriver build `024f6dd2` (0.2.0 with the fixes of D1187), three passes (`p21` to `p23`). mobile-mcp 1.0.21 (its helper `mobilecli` 1.0.25), two passes (`m7`, `m8`), with adb allowed on the two mixed jobs. adb on the two mixed jobs, two passes (`a5`, `a6`). phone-harness was not run: its last numbers are 10 November's, in the section above. Raw runs: `docs/bench/jobs.json`, `same_device_2026_12_05`. What differs from 10 November: - Claude Code 2.1.336, was 2.1.319. The model name is the same. The first request of a run carries 7,564 tokens with phonedriver (5,499 on 10 November) and 16,647 with mobile-mcp (14,684): about 2,000 more for each tool, sent again on every turn. Claude Code's own prompt and each tool's list both changed, and the two are not separated here. - The agent and the tools ran on a MacBook, not on the Mac mini. Wall times are not compared across the two dates. - Three read-only instances of the AVD `Pixel_Tablet_API_37` ran side by side on one Windows host, one agent to an instance. On 10 November there was one emulator and one agent at a time. mobile-mcp and adb ran on `emulator-5558`. phonedriver ran `p22` and `p23` on `emulator-5564`, and `p21` on `emulator-5560` for four jobs and on `emulator-5564` for five. Every instance starts from the same stored state with the flags of 10 November plus `-read-only`. - The emulator reads the same system image from a copy on an SSD. The guest reports 6 processors although the flags ask for 8. - mobile-mcp is 1.0.21 with `mobilecli` 1.0.25 (was 1.0.16 with 1.0.22). `mobilecli` 1.0.25 keeps a daemon on the host, and the harness stops it before and after each mobile-mcp run. - phonedriver's MCP server also gets `PHONEDRIVER_ALLOW_DEVICES` set to its own instance, so it cannot touch another one. - adb's own runs go through the private adb server that mobile-mcp uses, which lists one device. - The log-code seed waits for the logged code before it presses Home. - The testbed app is built from the 0.2.0 tree. Load: when each pass started, the Windows host ran no compiler (`rustc` count 0) and the guest's 1-minute load was between 0.2 and 2.9. Another build ran on the host on and off from the end of `m8` and `p23` through the two adb passes (`rustc` count 1 to 2 when each ended, 0 when each started). The guest's 1-minute load was 3.5 at the end of `p22`, and its 5-minute load 4.4 at the end of `p23`. ### Totals (2026-12-05) | | Passed | Tokens (sum of job medians) | Tool calls | Wall s | |---|---|---|---|---| | phonedriver 0.2.0 `024f6dd2` | 26/27 | 1,226,236 | 145 | 440 | | mobile-mcp 1.0.21 | 18/18 | 3,328,365 | 110.5 | 689 | | adb (2 jobs) | 4/4 | 200,377 | 13.5 | 45 | mobile-mcp used 2.7x the tokens of phonedriver. It made fewer calls and each carried more: 30,121 tokens a call against 8,457. | Job | phonedriver passed | phonedriver tokens | phonedriver calls | mobile-mcp passed | mobile-mcp tokens | mobile-mcp calls | Ratio | |---|---|---|---|---|---|---|---| | qa-signup | 2/3 | 471,678 | 49 | 2/2 | 755,238 | 19.5 | 1.6x | | qa-shop | 3/3 | 103,876 | 31 | 2/2 | 530,054 | 15.5 | 5.1x | | relay-code | 3/3 | 72,998 | 7 | 2/2 | 320,344 | 12 | 4.4x | | chrome-prefs | 3/3 | 101,380 | 10 | 2/2 | 341,094 | 12 | 3.4x | | clock-settings | 3/3 | 110,002 | 11 | 2/2 | 303,100 | 11 | 2.8x | | messages-pin-archive | 3/3 | 60,302 | 6 | 2/2 | 205,034 | 8 | 3.4x | | photos-crop | 3/3 | 168,674 | 18 | 2/2 | 389,232 | 11.5 | 2.3x | | wakelock-restrict | 3/3 | 74,150 | 7 | 2/2 | 215,782 | 10.5 | 2.9x | | log-code | 3/3 | 63,176 | 6 | 2/2 | 268,486 | 10.5 | 4.2x | The ratio runs from 1.6x (qa-signup) to 5.1x (qa-shop). On 10 November it ran from 2.8x to 11.7x. adb on its two jobs: 4 of 4 with 200,377 tokens. phonedriver's sum for the same two jobs is 137,326. ### phonedriver 0.2.0 against its own 10 November numbers | Job | Passed 10 Nov | Passed now | Tokens 10 Nov | Tokens now | Change | Calls 10 Nov | Calls now | Outside the spread? | |---|---|---|---|---|---|---|---|---| | qa-signup | 3/3 | 2/3 | 121,854 | 471,678 | +287.1% | 23 | 49 | yes, higher | | qa-shop | 3/3 | 3/3 | 92,570 | 103,876 | +12.2% | 15 | 31 | no | | relay-code | 3/3 | 3/3 | 49,126 | 72,998 | +48.6% | 8 | 7 | yes, higher | | chrome-prefs | 3/3 | 3/3 | 98,576 | 101,380 | +2.8% | 13 | 10 | yes, higher | | clock-settings | 3/3 | 3/3 | 95,962 | 110,002 | +14.6% | 13 | 11 | yes, higher | | messages-pin-archive | 3/3 | 3/3 | 45,240 | 60,302 | +33.3% | 6 | 6 | yes, higher | | photos-crop | 3/3 | 3/3 | 61,477 | 168,674 | +174.4% | 8 | 18 | yes, higher | | wakelock-restrict | 3/3 | 3/3 | 38,775 | 74,150 | +91.2% | 5 | 7 | yes, higher | | log-code | 3/3 | 3/3 | 53,962 | 63,176 | +17.1% | 8 | 6 | no | 1,226,236 tokens against 657,542 (86% more) and 145 calls against 99. Seven of nine jobs are higher and outside the spread. What the transcripts show: - **Every request starts about 2,000 tokens heavier.** messages-pin-archive made the same 6 calls in the same 7 requests on both dates and cost 60,302 tokens against 45,240. relay-code, chrome-prefs, clock-settings and log-code made the same number of calls or fewer than on 10 November and still cost 3% to 49% more. - **qa-signup is 350 thousand of the 569 thousand more.** The agent tests more than it did: 43 to 49 calls against 23, in 24 to 29 model requests against 13 to 16, with rotation, Home and reopen, and 5 to 7 screenshots against 1 or 2. Its last request carries about 30,000 tokens against about 12,000. It is not going in circles, and `press portrait` works on the first call. The job says "find what is wrong", so how much testing is enough is the model's choice. - **photos-crop is 107 thousand more, in all three passes** (17 or 18 calls against 8). The agent opens Photos' navigation drawer, then two taps by reference, on "Hide Navigation Drawer" and on the picture, each answer "no change" after 2 s. It takes screenshots, closes the drawer with Back or a tap by coordinates, and goes on. Not diagnosed. - **The same model name on a later Claude Code is not the same agent.** mobile-mcp's qa-signup and wakelock-restrict are also higher than on 10 November and outside the spread (table below). - **The old binary costs more today than 0.2.0 does, on the one job tried.** After the passes, the v0.1.0 release binary (the 10 November build plus Windows build fixes) ran qa-signup three times under the same Claude Code 2.1.336 on `emulator-5558`: 721,180, 380,184 and 691,102 tokens in 100, 80 and 97 calls, two passed and one failed the same check `p22` failed. On 10 November that build took 114,463 to 155,169 tokens in 22 to 25 calls. 0.2.0 took 430,408 to 497,166 in 43 to 49 calls on the same day. With the old binary the agent also restarted the app (1 to 4 times), batched, took 3 to 10 screenshots, and in one run turned the screen through `shell` and pressed Home, none of which it did in November. So on this job the rise comes from the agent, and 0.2.0's batches about halve the calls. Three runs of one job with a wide spread; it does not separate Claude Code from what the model name serves today, and no other job was tried. These runs are in no total (`old_binary_0.1.0_qa_signup` in `jobs.json`). mobile-mcp 1.0.21 against 1.0.16: 3,328,365 tokens against 4,567,200 (27% fewer), 110.5 calls against 276.5, and 18 of 18 runs against 17 of 18. In the 18 runs of 10 November the agent took 177 screenshots and made 170 single taps. In the 18 runs of 5 December it made 162 `mobile_batch_commands` calls and took 4 screenshots. | Job | Passed 10 Nov (1.0.16) | Passed now (1.0.21) | Tokens 10 Nov | Tokens now | Change | Outside the spread? | |---|---|---|---|---|---|---| | qa-signup | 2/2 | 2/2 | 549,354 | 755,238 | +37.5% | yes, higher | | qa-shop | 2/2 | 2/2 | 473,095 | 530,054 | +12.0% | no | | relay-code | 2/2 | 2/2 | 574,428 | 320,344 | -44.2% | no | | chrome-prefs | 1/2 | 2/2 | 1,052,348 | 341,094 | -67.6% | yes, lower | | clock-settings | 2/2 | 2/2 | 691,926 | 303,100 | -56.2% | yes, lower | | messages-pin-archive | 2/2 | 2/2 | 315,560 | 205,034 | -35.0% | yes, lower | | photos-crop | 2/2 | 2/2 | 636,680 | 389,232 | -38.9% | yes, lower | | wakelock-restrict | 2/2 | 2/2 | 122,772 | 215,782 | +75.8% | yes, higher | | log-code | 2/2 | 2/2 | 151,038 | 268,486 | +77.8% | no | ### Before and after the fixes of D1187 The first passes of 5 December ran on the build before D1187 (`d140a8c4`): `p18` and `p19` complete, `p20` stopped after three jobs. Tokens / tool calls per run: | Job | `p18` before | `p19` before | `p20` before | `p21` after | `p22` after | `p23` after | Median before (`p18`, `p19`) | Median after | Outside the spread? | |---|---|---|---|---|---|---|---|---|---| | qa-signup | 448,016 / 44 | 845,339 / 70 | 627,417 / 59 | 471,678 / 49 | 430,408 / 49 (failed) | 497,166 / 43 | 646,678 | 471,678 | no | | qa-shop | 193,480 / 40 | 157,222 / 31 | 131,635 / 41 | 103,876 / 31 | 71,553 / 17 | 141,174 / 34 | 175,351 | 103,876 | yes, lower | | relay-code | 77,822 / 7 | 87,545 / 8 | 87,659 / 8 | 72,992 / 7 | 83,980 / 8 | 72,998 / 7 | 82,684 | 72,998 | no | | chrome-prefs | 100,318 / 10 | 107,396 / 10 | not run | 101,310 / 10 | 101,380 / 10 | 101,417 / 10 | 103,857 | 101,380 | no | | clock-settings | 129,898 / 12 | 130,556 / 12 | not run | 122,918 / 13 | 109,899 / 11 | 110,002 / 11 | 130,227 | 110,002 | yes, lower | | messages-pin-archive | 74,127 / 7 | 74,140 / 7 | not run | 60,302 / 6 | 60,263 / 6 | 60,409 / 6 | 74,134 | 60,302 | yes, lower | | photos-crop | 108,245 / 14 | 111,118 / 12 | not run | 168,674 / 18 | 153,575 / 18 | 175,560 / 17 | 109,682 | 168,674 | yes, higher | | wakelock-restrict | 122,188 / 11 | 72,403 / 8 | not run | 74,150 / 7 | 94,337 / 7 | 72,020 / 6 | 97,296 | 74,150 | no | | log-code | 81,507 / 7 | 81,433 / 7 | not run | 63,176 / 6 | 87,742 / 10 | 60,503 / 6 | 81,470 | 63,176 | no | Sum of the per-job medians: 1,501,376 before (`p18`, `p19`; 1,468,848 with the three runs of `p20`) and 1,226,236 after, 18% fewer, with 158.5 calls before and 145 after. qa-shop, clock-settings and messages-pin-archive are lower and outside the spread. photos-crop is higher and outside the spread. qa-signup's runs overlap (448,016 to 845,339 before, 430,408 to 497,166 after). Before the fixes 21 of 22 runs opened with a `devices` call; after them none does. The first request carries 7,564 tokens against 8,173. ### What failed, and why (2026-12-05) - phonedriver, qa-signup in `p22`: the check answered `planted bug not reported: create-button-dead-after-an-error`. The dead taps were answered `ok 2 steps ยท no element changed`, which is what happened on the screen, and the agent read that as the form accepting the input. The report names four other problems. The run stays as a failure. - mobile-mcp and adb failed no run. ### Where phonedriver does not win (2026-12-05) - Runs passed: 26 of 27 against mobile-mcp's 18 of 18. - Tool calls: 145 against mobile-mcp's 110.5. mobile-mcp 1.0.21 puts several steps in one call. - Wall time on wakelock-restrict: 40 s against mobile-mcp's 27 s. On the other eight jobs phonedriver's median is lower. - Against itself: 86% more tokens than on 10 November. - These are two or three runs per cell. They describe what happened and are not rates. ### What was thrown away, and why (2026-12-05) - `p21` clock-settings did not start on `emulator-5560`: that instance stopped answering adb after the pass's fourth job, with no agent running, and the harness blocked on its first adb call. No transcript exists. The instance was ended, and the five jobs left of `p21` and all of `p23` ran on `emulator-5564`. - The passes on the build before D1187 (`p18`, `p19`, three runs of `p20`) are kept in `runs` and shown above. They are in no total. - One mobile-mcp pass and part of a second, taken beside the build before D1187, are not used. mobile-mcp was run again beside the fixed build as `m7` and `m8`. - At the first start, two of the three instances hung before boot when the three were started 8 s apart. They were ended and started one at a time. No run was affected. - Photos showed its "Update" prompt after boot on each instance and it was cleared before the first pass, as on 10 November. The discarded files are kept outside the repository. Claims outside this file say "2.7x" and name 5 December. The chart and `totals` in `jobs.json` are this section's numbers for phonedriver, mobile-mcp and adb. phone-harness was not run again, so its entry in `totals` is still 10 November's. All four totals of 10 November are kept as `totals_2026_11_10`.