Temivor
A prototype assistant that operates an Android phone through a Kotlin AccessibilityService, or headless Chrome over DevTools. It is built around five OpenAI API integrations and a Node.js home server. It has never been released and has run on emulators and demo sites only.
What it is for
Temivor handles phone and web requests from plain text or speech. The first intended users are older adults and the people who help them.
It has two places to work. One is your own phone, for anything that lives there: settings, alarms, messages and the apps you are signed in to. The other is a browser on its own cloud computer, for the web: finding, comparing, booking and filling in forms.
It is a prototype. It has run on Android emulators and on demo sites, never with real accounts, and it has no users.
Requests from recorded runs
- "Turn on Do Not Disturb."
- Typed in chat. Done on the phone in Quick Settings.
- "Set the screen timeout to 2 minutes."
- Typed in chat. Done on the phone in Settings.
- "Answer the text message from 555-0100 from its notification. Say "Yes, see you at six"."
- Typed in chat. Replied from the notification. The number is made up.
- "In 2 minutes, set the screen timeout to 2 minutes."
- Kept as a scheduled job, then run on the phone when it came due.
- "Book me a ride home on the Tidewater Rides site."
- Done in headless Chrome over DevTools on a demo site. The full request also gave a pickup place, time and address.
- "Dr Patel is my doctor."
- Kept on the Memory list, where it can be edited or forgotten. The name is made up.
What I worked with
Technology, and what I did with it
- OpenAI Chat Completions (function calling)
- I defined eight JSON-schema tools (use_your_phone, use_its_computer, use_your_computer, make_a_call, remember, do_it_later, add_a_connector, use_a_connector) so one model call picks the tool for each request.
- OpenAI-compatible model relay
- I exposed /v1/chat/completions on the Node.js home server, so the Python planning loop authenticates with a per-job token and never holds an API key. The server swaps in the pinned model and reasoning effort, sets a prompt cache key per job so the stable prefix is read from cache, and records tokens, latency and estimated cost for every call.
- OpenAI Responses API (computer tool) and Chrome DevTools
- For web tasks I wired the Responses API computer tool to headless Chrome over the DevTools protocol. The server performs each computer action the model returns and sends back a screenshot.
- OpenAI Live voice API (WebRTC) and audio transcription
- The page sends its WebRTC offer to the home server, which opens the Live voice session with its own key, so the key never reaches the browser. Spoken requests go into the same job loop as chat. Recorded voice notes go through OpenAI audio transcription first.
- MCP client
- I built an MCP client into the home server. A person adds an outside service by name and address, and the assistant talks to it as an MCP server.
- Spend ledger and caps
- A ledger with per-model prices tracks every model call, with a cap per job and a cap per day.
- Kotlin, Android AccessibilityService, Jetpack Compose
- I wrote the phone shell as an AccessibilityService that reads the UI tree, sends gestures with dispatchGesture, clicks and sets text with performAction, takes screenshots, and reads and answers notifications. The Chat, Activity and Memory screens are in Jetpack Compose.
- Node.js, TCP and TLS, VM deployment
- I built the 26-module Node.js home server and the phone link: one JSON object per line over a TCP socket, with TLS and a pinned public key when the server is remote. The repo holds systemd, Caddy and Docker files for running it on a cloud VM.
Operating an Android phone
Temivor runs on the phone as an Android accessibility service. At each step it reads the screen as a tree of labelled elements and as a screenshot. Then it taps, swipes and types the way a person would.
Planning runs on a cloud server, so the phone only reads the screen and performs each input. While a job runs, Stop stays on screen.
Pick a request
Typed in a chatTurn on Do Not Disturb.
- Temivor's label
- Finished, not checked
- Checked on the phone afterwards
- Do Not Disturb read off before the request and on after it.
One emulator run, Nov 16, 2026.
Requests and outcomes are from recorded emulator runs. The screens are redrawn for this page.
Three requests from recorded emulator runs, using GPT-6.1 Sol at low reasoning effort. Each shows one run.
How a request moves
Temivor has four parts. This is one real request, "Turn on Do Not Disturb.", followed through all of them, with the routes it called and the lines it left in the job journal.
- AppKotlin, Jetpack Compose. Chat, Activity and Memory screens.
- Home serverNode.js on a cloud VM. Jobs, model calls, journal.
- Planning loopPython. MobileRun's open source loop, pinned.
- Phone shellKotlin accessibility service. Reads the screen, performs each act.
The request goes to the home server as plain text. The app then polls for the job state while it runs.
POST /v5/ask { "text": "Turn on Do Not Disturb.", "source": "chat" }The home server exposes its tools as functions: your phone, its cloud computer, remember, do it later and others. Here the model picks the phone and writes the goal in plain words. Both lines below come from the journal.
{"kind":"pick","model":"gpt-6.1-sol","ms":2593,"usd":0.003212,"picked":"your phone"} {"kind":"start","text":"Turn on Do Not Disturb.","tool":"your phone","source":"chat", "goal":"Turn on Do Not Disturb. Verify that it is on; if already on, leave it on."}A warm Python worker runs MobileRun's loop for this job. It gets the home's address and a job token. It never gets an API key: its environment is stripped of every variable named KEY, TOKEN or SECRET.
Each read is a call to the home server, which forwards it over the phone link and waits for the answer. The loop gets a screenshot and the tree of on-screen elements.
POST /v5/job/call { "job", "token", "method": "get_ui_tree", "args": {} } {"kind":"call","method":"screenshot","ok":true,"ms":65} {"kind":"call","method":"get_ui_tree","ok":true,"app":"com.google.android.apps.nexuslauncher","ms":30}The loop calls the home as if it were the model provider, with the job token as its key. The home swaps in the pinned model and its own key, and records tokens, time and cost.
POST /v5/model/v1/chat/completions Authorization: Bearer <job token> {"kind":"model","status":200,"ms":2741,"in":4871,"out":89,"usd":0.011695, "reply":"1. Atomic action: swipe down. 2. Target: top of the screen. ..."}The act is written to the journal before it is sent. Then one JSON line goes down the link, the accessibility service performs the gesture, and one line comes back. This run needed a swipe to open Quick Settings and a tap on the tile.
home -> shell { t: "call", id, method: "swipe", args: { x1: 540, y1: 0, x2: 540, y2: 1699, duration_ms: 1000 } } shell -> home { t: "result", id, ok: true, ms } {"kind":"acting","method":"swipe","args":{"x1":540,"y1":0,"x2":540,"y2":1699,"duration_ms":1000}} {"kind":"call","method":"swipe","ok":true,"ms":1224} {"kind":"call","method":"tap","args":{"x":794,"y":383},"ok":true,"ms":783}After another look at the screen, the loop reports that it is finished and why.
POST /v5/job/end {"kind":"end","ending":"complete","success":true,"proof":false,"steps":3, "reason":"Do Not Disturb is now on. Verified that its Quick Settings switch shows On."}The receipt is built from the journal alone, with no model call. Its label reads "Finished, not checked", because the model saying "verified" is not a check. The label becomes "Done" only when the home itself reads the result back, and that read-back is not built yet.
GET /v5/now { "ok": true, "last": { "asked": "Turn on Do Not Disturb.", "tool": "your phone", "acts": 2, "actsOk": 2, "ending": "complete", "label": "Finished, not checked", ... } }
One recorded run on an Android emulator, Nov 16, 2026: 21 journal lines, 6 model calls, 2 acts on the phone, 24.8 seconds, about 7 cents of model use. Journal lines are trimmed of ids and timestamps.
Interfaces
The parts talk through four small interfaces: the home server's HTTP routes, the tools the model can pick, the messages on the phone link, and the acts the phone can perform.
Home server routes (the main ones)
POST /v5/ask- Take a request as text. Pick a tool and start a job.
POST /v5/voice- Take a voice note as audio, transcribe it, then treat it as a request.
GET /v5/now- The running job and the last finished one, as receipts.
GET /v5/activity- The list of what Temivor did, newest first.
POST /v5/stop- Stop a job. Acts after it are refused and the loop is killed.
POST /v5/job/call, /v5/job/end- The planning loop's calls: perform one act, end the job. Both need the job token.
POST /v5/model/v1/chat/completions- The loop's model calls, relayed with the home's key and the pinned model.
POST /v5/schedules- Keep a job for later: once, every day or every week.
POST /v5/memory, /v5/memory/forget- Add, edit or forget an item on the Memory list.
POST /v5/helpers- Make a link for a helper, who can see Activity, press Stop and send requests.
Tools the model can pick
use_your_phone(task)- Anything on the person's phone: its screen, apps, messages and settings.
use_its_computer(task)- A browser on its own cloud computer, for the web: find, compare, book, fill in forms.
use_your_computer(task)- The person's own desktop or laptop, once linked.
remember(fact)- Keep something the person said about themselves on the Memory list.
do_it_later(task, at, every)- Keep a job for a time they name.
add_a_connector, use_a_connector- Keep and use an outside service the person adds by name and address.
make_a_call(to, purpose)- Phone a business by voice. Written, but not wired to a phone line, so it is not offered.
Phone link: one JSON object per line, over one socket
{ t: "hello", token, device, shell }- First line from the phone. A wrong token closes the socket.
{ t: "call", id, method, args }- Home to phone: perform one act or read.
{ t: "result", id, ok, value, error, ms }- Phone to home: what happened.
{ t: "ping" } / { t: "pong" }- Every 5 seconds, so a dropped link is noticed.
{ t: "stop", from }- Phone to home when the person holds Stop.
Acts the phone shell performs
get_ui_tree, screenshot- Read the screen as a tree of elements, or as an image.
tap, hold, swipe, drag- Gestures at screen coordinates.
input_text, press_button- Type into the focused field. Press back, home or enter.
start_app, get_apps, get_date- Launch an app, list installed apps, read the phone's clock.
get_notifications, reply_notification, dismiss_notification- Read notifications and answer one in place.
The phone dials the home and stays connected. On one PC the link is plain TCP. When the home runs elsewhere it serves TLS, and the phone trusts only the pinned key it was paired with.
Design decisions
Keep planning on the server
The phone shell executes each act and reports the result. Keeping jobs, model calls and the journal on the home server keeps the phone app small and lets one planner serve every kind of request.
MobileRun's loop, not my own planner
On the same 52 AndroidWorld tasks, my own planning loops finished 21 and 29, and MobileRun's open source loop finished 47. Version 5 pins their loop unchanged. I wrote the shell to its driver interface, so nothing is copied from their phone app.
Instead of the planner I had written for version 4.
Trim the screen tree before the model reads it
A layout node with no text and no action is lifted out and its children take its place. On captured Settings screens this cut what the model reads from 7,191 to 3,063 characters. Nothing with words or an action is dropped.
Journal before act
Each act is written to the journal before it is sent to the phone. If the link drops or the server crashes mid-act, the record shows that act as in doubt.
The status label comes from the journal, not the model
The receipt is built with no model call. It says "Done" only when a read-back proves the result, and "Finished, not checked" otherwise. In one recorded calendar run the model wrote "Saved and verified" while the label stayed at "Finished, not checked".
Keys and passwords never reach the model
The planning loop holds a job token, not an API key. The home relays each model call and adds its own key. A saved password is typed by its name: the value exists only in the message to the phone, and the journal records the name alone.
An act answers with ok or a fact
The phone and the home return either ok or a plain fact: no such app, permission not granted, link down, stopped by the person. There are no policy errors for the planner to argue with.
No confirmation prompts
On Nov 10, 2026 I removed the prompt from the current build. It acts without asking, keeps Stop on screen and lists what it did. It has only run on emulators that hold no accounts.
Instead of the earlier build, which stopped before any tap that sends, pays, buys or deletes and showed a card with Yes, No and Stop. temivor.com still shows that behaviour.
A step budget taken from recorded runs
A request gets 36 steps and 720 seconds. The smaller budget of 15 steps and 300 seconds cut a job off partway through a playlist.
Browser automation
The current build does web tasks in a headless Chrome on its own cloud computer, driven over the DevTools protocol. A web task is a job like any other, with the same journal, Activity list, Stop and receipt.
An earlier browser prototype, from October 2026, read compact page structure and batched several actions into one step. In an early mock checkout run it reached the order review screen and reported success with one requested item missing from the cart. So I added a final-state check that compares the finished page against the original request. In a separate targeted test, failed conditions go back to the planner so it can try again.

Results and limits
On the phone, five complete emulator runs of the same 13 AndroidWorld tasks on Nov 14, 2026 finished 11 to 13 of them. That is my own harness on a subset of the tasks, not a public score. One run on a real Galaxy S26 used an earlier build. The read-back that would turn a receipt's label to "Done", and the phone line for make_a_call, are not built.
For that earlier browser prototype, I timed structure reads and batched actions against a screenshot-based baseline on five mock workflows. Across ten matched comparisons, Temivor's median runtime was 39.8% to 73.0% lower.
- Temivor: page structure, batched actions
- Baseline: screenshot-based agent
- Median of passing trials
GPT-6.1 Terra, default tier. 10 trials per arm per workflow. Recorded Oct 27, 2026.
Mock sites and two matched pairs, with the prompt tuned on earlier runs. Results are not pooled.
Elapsed time per trial, in seconds. Each mark is one recorded trial.
GPT-6.1 Sol, ultrafast tier. 5 trials per arm per workflow. Recorded Oct 27, 2026.
Mock sites and two matched pairs, with the prompt tuned on earlier runs. Results are not pooled.
Elapsed time per trial, in seconds. Each mark is one recorded trial.
150 trials on mock sites, recorded Oct 27, 2026. Temivor's prompt had been tuned on earlier runs of the same workflows, and the smaller pair has five trials per arm, so read these as a prototype result.
All ten comparisons as a table
| Mock workflow | Temivor median | Baseline median | Reduction | Passed, Temivor | Passed, baseline |
|---|---|---|---|---|---|
| GPT-6.1 Terra, default tier, 10 trials per arm per workflow | |||||
| Flight search | 7.33 s | 20.27 s | 63.8% | 10 of 10 | 10 of 10 |
| Shopping checkout | 10.96 s | 25.58 s | 57.2% | 10 of 10 | 10 of 10 |
| Data table | 4.38 s | 7.75 s | 43.5% | 10 of 10 | 10 of 10 |
| Appointment change | 9.29 s | 18.44 s | 49.6% | 10 of 10 | 10 of 10 |
| Prescription refill | 8.58 s | 29.61 s | 71.0% | 10 of 10 | 10 of 10 |
| GPT-6.1 Sol, ultrafast tier, 5 trials per arm per workflow | |||||
| Flight search | 7.00 s | 13.90 s | 49.6% | 5 of 5 | 5 of 5 |
| Shopping checkout | 8.96 s | 26.70 s | 66.4% | 5 of 5 | 5 of 5 |
| Data table | 4.49 s | 9.88 s | 54.5% | 5 of 5 | 5 of 5 |
| Appointment change | 10.03 s | 16.66 s | 39.8% | 5 of 5 | 5 of 5 |
| Prescription refill | 6.86 s | 25.44 s | 73.0% | 5 of 5 | 5 of 5 |