Repository navigation
Release Notes
Released 26 November 2026.
Fewer calls for the same job. An agent can read a value in the middle of a batch, read a whole list in one call, set a date or time picker, move files to and from the phone, and go down a saved path as it opens an app. Most of it came from issues #41 and #52. It also fixes setting open on Android 17 and select on the Clock app's time picker.
init --skillinstalls the skill (D137): for each agent it finds,phonedriver init --skillwritesSKILL.mdwhere that agent reads a person's own skills (~/.claude/skills,~/.copilot/skills, and~/.agents/skillsfor Codex, Cursor and Gemini CLI) and says so on the agent's line. A file already there with other text is left alone. Plaininitis unchanged.- Fixed:
tapwithselecton the Clock app's time picker (Android, D135): it answeredthe time picker showed no field to type into, because Material Components draws the hour's text field over a chip at the same place and the chip was taken for it. Andselectsent to theOKof a picker that was already open tappedOKfirst, which saved the time the picker happened to show and then said nothing was confirmed; now the picker is set and read back before that button is tapped. Agents met one or the other in 9 of 9 runs of an alarm job; with the fix the job takes 12 or 13 turns, down from 19 to 24. - A skill a third of the size (D136):
SKILL.mdis 4,706 characters, down from 14,691. It no longer repeats what each tool's description and each error's hint say and keeps what they do not. Appended to an agent's system prompt it cost 21 to 24% more tokens than no skill on two jobs where the old one cost 41%. Plaininitdoes not install it: measured, an installed skill was opened in 2 of 6 runs and saved nothing when it was. - Agents chain a step further (D134): the server's instructions now say that a
thenpath may name steps on screens not seen yet, and that a wrong guess stops there with the screen and costs one call. In 9 agent runs with it, 12 steps rode on an earlier tap against 3 in 9 runs without, about one model turn fewer on a job that walks menus. - Fixed:
setting openshowed the first screen again (Android 17, D132): once one settings screen had been opened,setting openof another left the first in front and still answeredok opened. Settings hands its own link to the page it already shows, and that page ignores it. Each screen now starts in a cleared task, so the one asked for is the one shown. Seen on the API 37 emulator: SIMs, then Battery, Internet and Dark theme, each stayed on SIMs before and each opens now. setting opentakes the name on the screen (D132):setting open "Battery"opens the screen with that title, and a setting's key (mobile_network_list/mobile_data) opens the screen it sits on. A word that names no screen answers with the screens that hold it (open one of: top_level_apps (Apps)), so the next call is the right one and nofindgoes between.- For contributors:
CONTRIBUTING.mdsays how to build, what CI runs and what a pull request needs; issues have a bug form that asks forphonedriver doctor's output and an idea form; pull requests have a template. launchgoes down a saved path (#41, D131):launch Settings --path internet(MCPlaunchwithpath) opens the app, goes downpaths/<app id>/internet.stepsand answersarrived at "Internet"with the screen, in one call. The MCP server names the saved paths in its instructions, so an agent knows them before its first call, and the line afterlaunchsays where each path arrives. In runs with real agents a saved path was taken in 1 of 9 runs before and in 16 of 17 after, at 1 to 2 calls where it was 3 to 5.- A replay does not wait for a ticking screen (#41, Android): a replayed step, and a
batchstep, tells the daemon what the next step touches. When that target is in place and still, the reply stops waiting for every line of the page to agree, which a stopwatch or a ticker never lets happen and which cost a second a step; under a banner or a carousel that never stops, a step whose next target has just arrived no longer waits the whole 5 s. Every check is as it was, and a spinner, a page still sliding in, a covered target and atypewait as before. Plain quiet screens are no faster. replay --screenskeeps the screen that differed (#61): a step that stops for its screen writes what it saw beside the kept picture as05.now.pngand says so. A screen that differs is now looked at for 3 s before it counts, up from 1.5 s: an app on a slow machine drew nothing for 2.6 s in the middle of a switch's slide.- Fixed:
lane the phone's own screen of this device is already open from this daemon(#59): a screenshot that found the video stream gone reconnected while it still held the old connection, so the phone refused the new one. The daemon's log now says what the agent printed when a stream ends. - Named paths per app (#41): a run saved as
paths/<app id>/<name>.stepsis a path of that app. It ends on a landmark, a wait for the screen it arrived on thatsavewrites and a person can edit;launchnames the app's paths in one line, with the blanks each needs; andreplayof one answersarrived at "Internet"with the arrival screen and no step list. A path that ends anywhere else, even on a page whose title only holds the landmark's text, fails with the step, the screen, and nothing tapped after. No new tool, argument or file format; MCPreplaysaves and runs them. - Files in and out (#52, Android):
files push cat.jpgcopies a file from the one folder you name inPHONEDRIVER_FILESto the device's Pictures or Download, where the gallery shows it,files pull Download/a.pdfbrings one back, andfiles listshows the newest files in Download, Pictures and DCIM (files list DCIM/Camerafor more of one folder). A reply is a receipt (path, size, SHA-256) or a list of paths with sizes and ages, never contents. Nothing is replaced, a physical phone asks its owner for every file and before the first listing, and without the folder set everything is refused. MCP: afilestool (push,pull, or no argument to list). An iOS Simulator lists and pulls its photo library. - A shorter tool list (D130): what an agent reads of the MCP tool list on every turn is 6,877 characters, down from 7,366, with
filesas a tool of its own.replay'sfromandany_build,setting'svalueandbatch'sautonomousare still accepted and are named by the hint that needs them.setting'srestoreis now in the schema as a boolean, andtruesent as a string is read as true. The server's instructions say thatsnapshotwithnotificationsreads notifications, and the receipt of a pushed picture says the gallery shows it. setting restoreputs settings back (#52): the daemon keeps what each key was before its first write, in a file, so it works after a crash too. A restore prints what it did to each key and leaves one that someone else changed since.releaselists what is still changed and restores nothing, because the change may be the task. MCP:settingwithrestore: true.- A screenshot of one element (#52):
screenshot --within @e7(or its text; MCPwithin) is that element with 8 points around it, and says where its top left is on the screen, so a pixel of it is still a point to tap.--marksworks inside it. A Settings row is 10 KB where the screen is 121 KB. - A date or a time in one call (#52, Android):
tap "Date" --select 2026-12-18(MCP:tapwithselect) opens the picker, sets it, reads the value back from the picker and only then confirms; a time is19:45. It sets a calendar that names its days and a time picker with a text input mode, which covers Android's own pickers, a web page's date and time fields, Compose's calendar and Clock. A picker it cannot set (wheels, a Compose clock face) is left open and the error shows the screen.savekeeps the value. - Pickers of every kind, in any language, on Android and iOS (#52):
tapwithselectnow also sets date and time wheels, a Compose clock face (a minute between two marks is dragged to and read back), Material Components date and time pickers, and iOS's compact date picker and wheels. The month names and AM and PM come from the device in the language the app is drawn in, so nothing depends on English: German, Japanese and Arabic are run on the emulator and on the Simulator. A date decades away goes through the picker's list of years (11 to 15 s) or, on iOS, its year wheel (17 to 24 s). It still refuses rather than guesses: a calendar that is not Gregorian, a picker in a language the device does not name, and a confirm button it does not know are left to you, and the reply says which. iOS picker wheels now read assliderwith their value. No change to the tool list. - A long MCP call says what it is waiting for (#52): a client that sends a progress token with a call gets a progress notification after 2 s and then every 5 s, such as
wait: the condition has not held yet · 7s of 30sorreplay: step 4 of 12 · 7s. A client that sends none gets nothing new, and no text given to the call is ever in the message. - A replay finds its device once (#41): it used to look up the default device again for every step, 0.3 to 0.8 s a replay on a Mac with Xcode; every wait that guards a step is as it was. The build check now reads the app by its id: a run saved after
launch Settingskept another package's build, and one saved after a launch by a name with a space kept none and was never checked. scroll --collectreads a whole list in one call (#52): it scrolls a page at a time and returns every row it passed, each once and in order, with why it stopped (the list ended, the limit, the scroll limit). MCP:scrollwithcollect. Scrolls in abatchreturn one diff, so rows in the middle were lost.- Notifications without opening the shade (#52, Android):
notificationslists app, title, text and age, newest first (MCP:snapshotwithnotifications).wait notification:"code"returns the one posted since the session's last action, never an older one still up. The text stays out of traces and saved runs. checkreads a value in the middle of a flow (#52):check "Total"answers"Total" = "€24.99"and touches nothing; as abatchstep it costs no model turn, and withequalsit stops the batch before the next tap when the screen says anything else. A switch readsonoroff, a settings row reads its summary, and a password field is never read.savekeeps checks andreplayruns them.- A tap that finds nothing answers with the screen (#37): a
tap,type,scrollorcheckwhose target or@refis gone carries what changed since the screen the agent last saw, so the next call acts from the error instead of callingsnapshotfirst. - Small MCP fixes:
logstakessince,replaytakesscreens(a folder inside the server's own),snapshotlistsaudit,devicessays what a lane is, andscrollandswipelist the four directions as fixed values. - Replays check what they type (#41, #42): a replayed step whose field shows other text than typed, or that nothing confirms, stops the replay; a saved
type --submitsends Enter only once the field shows the text; the first line says how many typed texts were verified. - Saved files hold up better (#41): a field the keyboard pushed off the screen is saved by its label, and a failed
scroll --untilthat moved the list is kept as the scrolls the next step needs. - Read-backs (#41):
savenames typed values no later step reads back, andwaitfinds a phone number however the app formats it, never behind a country code it did not type. - Blanks with examples:
{{day1:Tuesday}}tells whoever fills the blank the wording the screen uses. - A replay checks the app's build:
savekeeps the build of each app it launches, andreplaystops before its first step when the app is now another build;--any-buildruns it anyway (#41). - A replay checks the screen before each step: a step runs only in the app it was saved in, and with a dialog in front exactly when there was one, so a surprise dialog or another app is never tapped (#41).
- A replay no longer stops for a page that is sliding in (#53): Android reports the arriving page as a window short of one edge, which read as a dialog and stopped 16 of 40 replays of plain Settings steps. A step now waits up to a second for the kind of screen it was saved on before it is refused, and a step done mid-slide is saved without a screen to compare.
launch --restartgets out of another app's screen (#51): on Android, a page that belongs to another package (Settings' search, Default apps) stayed in front of every restart of Settings. A restart now clears the app's task as well as stopping it.- A
batchstep does what its tool does alone (#50):thenon ataportypestep taps the texts it names, and awaitstep keeps its owntimeout_ms(--timeouton the command line). A step that names adeviceis refused instead of running on the batch's device, and so is any other batch-wide option written on a command-line step. - The approval guard is harder to get past: a button is judged by what it says when it is tapped, not when it was first seen; a label written in other characters (full-width letters, typographic quotes) is the same label; an approval needs one of the choices the prompt offered, and the prompt chooses none in advance.
autonomousnow covers abatchand athenchain as well as a single tap. - On a physical Android phone,
shellalso refusesinputtaps, swipes, text and the keyspresssends (those verbs do the same with the approval guard watching), intents that place a call, andfindthat deletes from the storage root;openrefuses anintent:link that places a call. Installs, media keys, Settings screens andfind -execwith a program that reads still run.PHONEDRIVER_GUARD=offlifts all of these, asforcedoes on one call. - The Android agent closes a connection that has not said hello within 5 seconds; any app on the phone could open one and hold a thread in the agent for as long as phonedriver ran.
- Secrets: a PIN or card security code field takes only
--secrettext; an argument error never quotes the value it was given; a question waiting for an approval keeps a hash of the call, not its text. waitanswers with what changed, as an action does, instead of the whole screen.launchsays when the app crashed at start and points atlogs. "The tap may have missed" follows only a tap.- Fewer reads: a connection lists its apps once instead of on every
launch, and a launch turns off the last app's OCR. - Clearer errors: a daemon bug in the middle of a call says so (
crashed) instead of "disconnected"; an option a method does not take is refused by name; several connected devices are listed with their models;phonedriver pairstops with adb's own error instead of waiting two minutes; the npm launcher says why a download failed and when Node ignores a set proxy;phonedriveralone lists every command. - Steadier: a rotation reported just before an action is kept; a client of another version no longer replaces a daemon someone else is using; the reads after a settle share one 10 s limit; an iPhone that cannot be described no longer empties
devices; a failed Android serial or version read is tried again;daemon.logis moved aside past 4 MiB; an odd-sized iOS frame or a restarted iOS video stream no longer breaks screenshots. - The screen text: an app's or a device's own name cannot add a line to a snapshot, and an empty field's placeholder prints as
hint "…"so it is not read as typed text. saveno longer writes an emptyactioninto steps that are not actions (files saved before still replay), andreplayover MCP reads only.stepsfiles.
Install phonedriver 0.1.8
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/hridaya423/phonedriver/releases/download/v0.1.8/phonedriver-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/hridaya423/phonedriver/releases/download/v0.1.8/phonedriver-installer.ps1 | iex"Install prebuilt binaries via Homebrew
brew install hridaya423/tap/phonedriverDownload phonedriver 0.1.8
| File | Platform | Checksum |
|---|---|---|
| phonedriver-aarch64-apple-darwin.tar.gz | Apple Silicon macOS | checksum |
| phonedriver-x86_64-apple-darwin.tar.gz | Intel macOS | checksum |
| phonedriver-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| phonedriver-aarch64-unknown-linux-gnu.tar.gz | ARM64 Linux | checksum |
| phonedriver-x86_64-unknown-linux-gnu.tar.gz | x64 Linux | checksum |