typesafe-computer-use

Budget desktop automation for macOS that picks each action with a small classifier.

Overview

typesafe-computer-use, also called jev, is a computer-use agent for macOS that drives a machine toward a goal typed in plain English. It reads the screen deterministically, relies on a small classifier to choose each next action, and calls a writing model only when free text is needed or when the classifier has stopped and the screen must be interpreted. The project is in beta, and its settings and behavior may change between 0.x releases.

The design separates responsibilities: a classifier makes the choice among actions, code settles factual questions, and a writer is reserved for free text. Facts such as a date, whether a field is focused, or whether a URL is clean are computed in code and supplied as state to the decision. The project's stated aim is cheaper and faster task completion, not fewer language models; accuracy takes priority, so a genuinely stuck run is handed to an LLM rather than guessed at, and the handoff carries the goal, prior actions, and how the current screen was reached.

Compared with frontier-model computer use, the project claims substantially lower cost and latency per decision while doing comparable input token volume in its measurement. The stated caveat is that reasoning a large model performs from raw pixels must be rebuilt here as deterministic state, such as parsing dates. On macOS it requires version 14 or newer; a Windows adapter exists as an experimental, untested option.

Best for

  • Desktop automation engineers
  • AI agent developers
  • QA and test automation specialists
  • Productivity tooling developers
  • Benchmark and evaluation researchers
  • Software development
  • Automation and agent tooling

How to use

  1. Confirm macOS 14 or newer, Python 3.12 or newer, and uv are installed, then clone the repository.
  2. Run uv sync and copy .env.example to .env, filling in the required TypeSafe API key and any optional keys.
  3. Grant your terminal Screen Recording and Accessibility permissions in System Settings under Privacy & Security.
  4. Clear the terminal, which is itself OCR input, and run a dry run that prints what one step would do.
  5. Add the --act flag to drive the machine, adjusting the step limit and delay as needed.
  6. Stop a live run with Ctrl-C or by moving the mouse into the top-left corner of the screen.

What it can do

Deterministic screen reading

Each step captures the frontmost window and applies Vision OCR on a crop, then merges lines into blocks and removes lines that echo the goal. It also walks the accessibility tree for labelled, on-screen controls that OCR cannot see, such as icons. Items record whether they came from OCR, the accessibility tree, or both, so the classifier can distinguish a real control from a line of text.

Code-computed facts

The system adds context that a model would otherwise have to infer: the date on a block and how far off it is, which field is focused, the row of a repeated label, the frontmost app and active tab URL, local time, and which actions were already tried on the same screen and led back.

Three-part classifier decision

One TypeSafe request answers three choices: which kind of action, which item, and which site, with a fourth for off-screen controls when present. TypeSafe returns a probability distribution and calibrated confidence over up to 255 options. Splitting the decision keeps screen noise out of the action choice; confidence reflects concentration, so overlapping options read as doubt.

Writer handoff

When the classifier stops, a writing model reads the screen and answers, or returns the run with a single focus or a question for the user. It never picks an action. The writer is also used for free text in fields, writer-proposed URLs, and the final answer, and can be pointed at another model or any OpenAI-compatible endpoint.

Popup-aware clicking

Chrome bubbles, menus, and dialogs are separate windows in front of the page. When the selected item sits under a popup, the loop closes the popup first using its own close button or Escape, then clicks the item in the same step. The tree-based path presses such controls through the accessibility tree instead.

Incremental OCR reuse

Captures are compared with the previous one in tiles, and unchanged tiles keep their prior lines. Changed regions become rectangles read on their own, merging as needed, with a full re-read when change exceeds 60% of tiles or area, or on an app switch or window move. A timing line reports how much was read and in how many pieces.

Run replay

Every run writes a folder under runs/, so a stalled run can be replayed offline. The inspect command captures the annotated screen and payload for a given goal, and a replay reads the whole image without reusing prior OCR, so an offline reproduction matches the original run.

How it works

Setup starts from the repository: clone it, run uv sync, copy .env.example to .env and fill in keys, then grant Screen Recording and Accessibility to the terminal. The TypeSafe key is required for every decision; Anthropic keys, an email, and a browser choice are optional. Without Screen Recording, captures are wallpaper, and without Accessibility, synthetic clicks are silently dropped and --act refuses to start. Entry points include clicker and clicker-inspect, both reading the repo-root .env.

Each step reads the frontmost window and accessibility tree, merges them into one numbered item list, adds computed facts, and asks TypeSafe for the kind, item, and site choices. The action then runs deterministically and the next capture is the only evidence of the result. When the classifier stops, the writer reads the screen and either answers or returns a single focus or a question to the user; it does not choose actions. A human still approves machine-driving runs by choosing to add --act and by deciding when to stop.

Supervised

The agent executes multi-step tasks but requires a dry run first, refuses --act without Accessibility permission, and hands stalled runs back to a writer that only answers or asks for human focus.

Where it fits

  • Run a dry-run step for a goal to see what the agent would do before it acts.
  • Drive a browser to reach a specific page and complete a multi-step task.
  • Replay a stalled run offline from its run folder to diagnose the stop.
  • Run a real desktop task in OSWorld beside the benchmark's own GPT agent.

Good fit

  • Repetitive Mac goals where a short list of candidate actions covers most steps, such as navigating to a page and picking a dated item
  • Cost-sensitive automation loops that want a cheap per-step decision instead of paying for a large model on every action
  • Browser tasks on Chrome where the accessibility tree and page structure supply most of what the loop needs
  • Teams willing to run dry runs first and replay saved runs offline when debugging a stalled task

Not a fit

  • Screens or apps with little labelled structure, since the accessibility tree misses icons and some shells expose almost nothing
  • Anyone needing a stable, finished tool, as the project is in beta and settings and behavior can change between 0.x releases
  • Windows users expecting a proven setup, because the Windows adapter is described as untested

How to evaluate

  1. Confirm your macOS version is 14 or newer and Python 3.12 or newer with uv available before installing
  2. Check that your terminal has Screen Recording and Accessibility permissions, since without them captures or synthetic clicks fail
  3. Test with a dry run on a representative screen to see whether the classifier's short action list matches what the task needs
  4. Verify whether your target apps expose labelled controls, since coverage varies widely and OCR only sees text
  5. Review how much deterministic state your task requires, because reasoning a frontier model does for free must be rebuilt in code here

Our take

This tool narrows computer use to a cheap classifier that picks among a small set of actions, with code computing facts like dates, focus, and URLs and a writing model limited to free text. The tradeoff is explicit: it can be far cheaper and faster per step than a frontier model, but anything the big model infers for free has to be rebuilt as deterministic state. It is a beta aimed at people who want to experiment and can inspect runs when something stalls. The Windows path is described as untested, so treat Mac as the supported ground.

Alternatives

AgentPricingAutonomyBest for
hermes-agent—SupervisedAI researchers, Developers, System administrators, DevOps engineers, Technical founders
deer-flow—SupervisedSoftware developers, AI and agent engineers, Research engineers, Technical teams building agent workflows, Data pipeline builders
OpenMausBot—SupervisedDevelopers and engineers, Technical founders and small product teams, DevOps and IT administrators, Operations specialists who coordinate recurring tasks, AI power users comfortable with command-line tools
Toonflow-app—SupervisedShort drama creators, Comic video producers, Storyboard artists, Previsualization artists, Video editors, Independent animators, Content studio operators
rowboat—SupervisedSoftware engineers, Engineering managers, Product managers, Support teams, Operations leads, Founders, Research and knowledge workers
artemis—SupervisedMobile QA engineers, Test automation engineers, AI coding assistant users, Android developers, CI and DevOps engineers

FAQ

What does the tool actually automate?
It drives a Mac toward a goal written in plain English by reading the screen, choosing an action from a short list, and executing that action deterministically. It runs from a command line and can operate in a dry-run mode that prints what it would do.
How is the cost kept low?
Most steps are handled by a decision model that answers a multiple-choice question quickly, and a larger writing model is called only when free text is needed or the classifier stops. The source reports per-decision and per-task cost comparisons against a frontier model, with exact figures in the pricing object.
What does it need installed and configured?
It needs macOS 14 or newer, Python 3.12 or newer, and uv. You fill in environment keys, with a required TypeSafe key for every decision and an optional writer key, and your terminal must be granted Screen Recording and Accessibility permissions.
Can I try it without letting it control the machine?
Yes. Running a goal without the act flag performs a dry run that prints the intended action, and the documentation recommends starting that way since the tool uses the real mouse and keyboard.
How does a run stop?
A live run ends when the task is done, when confidence is low, when it detects a stall, or when it hits the step limit. You can also stop it yourself with Ctrl-C or by moving the mouse to the top-left corner, and the writer then reads the screen and prints an answer.
What happens when the classifier gets stuck?
The classifier's stop ends its portion of the run, and the writer takes over by reading the screen and answering or handing control back with a focus or a question. The handoff is meant to carry the goal and the history so the larger model does not restart from nothing.
Is there a way to inspect or replay a run?
Every run writes to a run folder, and the documentation describes replaying a stalled run offline. A separate inspect command captures the screen and opens an annotated view with the payload.
Does it work on Windows?
A Windows adapter exists using UI Automation, SendInput, and Windows OCR, but the documentation calls it untested and likely to break. Differences include English-only OCR without confidence scores, process-name matching for apps, primary-monitor-only capture, and a fallback module invocation when a policy blocks the installed executable.

Comments

No comments yet.

Embed a listing badge

Featured on AI Agents Marketplace
<a href="https://aiagentsmarketplace.dev/agents/typesafe-computer-use"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
See badge options