# Hush **The fastest computer use for AI agents.** [![OgnjenAdzic28/hush MCP server](https://glama.ai/mcp/servers/OgnjenAdzic28/hush/badges/score.svg)](https://glama.ai/mcp/servers/OgnjenAdzic28/hush) https://github.com/user-attachments/assets/d415d27b-6906-4f0c-a700-dbc79e826e34 Hush lets any agent see and drive the apps on your computer, in the background, while you keep working. Read a window, click, type, read it again: **178 ms**. The next fastest tool takes 653 ms. That's fast enough to win one-minute bullet against a 2200 chess.com bot, to play the third movement of the Moonlight Sonata at full tempo with every note on time, and to run ten agents on ten apps at once on one machine, all without anything coming to the front. ## How it compares Same window, same machine, one round of read, click, type, read ([details](docs/comparison.md)): | Tool | Round | Works hidden | Works on another Space | Tool list (MCP) | |---|---|---|---|---| | **Hush** | **178 ms** | yes | yes | **972 tokens**[^tools] | | agent-desktop | 653 ms | yes | no | 10,514 tokens | | cua-driver | 1,134 ms | yes | mostly | 50,397 tokens | | Peekaboo | 3,506 ms | no | no | 13,847 tokens | | open-computer-use | 4,297 ms | yes | yes | 2,654 tokens | On [Cua Driver Bench v2](docs/benchmark.md)'s background tasks, agents on Hush went **15/15** with Claude Sonnet 5.5 and with Claude Haiku 5.5, the user never disturbed once. Sonnet took a median 17.8 s per task. [^tools]: All seven tools, measured at 0.3.0. The other tool lists were measured on 15 Nov 2026. ## Hush Bench [Hush Bench](docs/hush-bench.md) measures the tool layer against an app that logs the truth: whether an answer already shows the result and how long after the app finished it came, refs that survive a list changing, typing that arrives exactly (emoji, right-to-left, combining marks), what a big window costs, how on time scheduled keys land, and whether the user was disturbed. Latest run: 0 disturbances, 8/8 typing samples exact, every ref kept, and with `wait` every slow reaction caught 23 to 46 ms after the app finished. ```sh cargo build --release -p hush -p hush-bench && target/release/hush-bench ``` ## What an agent sees An agent reads a window as a short outline, sends a batch of steps, and gets back only what changed: ```text observe TextEdit # TextEdit · window "Notes.rtf" 800x600 · focus t1 e1 window "Notes.rtf" e2 toolbar b1 button "Bold" p1 popup "Font" = "Helvetica" t1 textarea = "Meeting notes, 13 Nov. Ship the…" (412 chars) act TextEdit ["type t1 \" Done.\"", "key cmd+s"] # 2/2 steps · 0.09 s · settled in 31 ms ~ t1 textarea: = "Meeting notes, 13 Nov. Ship the…" (412 chars) → = "Meeting notes, 13 Nov. Ship the…" (418 chars) + e3 sheet "Do you want to save changes?" + b2 button "Save" ``` - **Never waits for nothing.** Hush listens to the app's accessibility events and answers the moment they stop. It learns each app's pace, so a fast native app is never made to wait like a web view. - **Tiny on tokens.** Short refs that survive re-renders, then only the diffs. A repeat read of an unchanged window is 12 tokens. - **Stays in the background.** Events go to the target app only. Your front app keeps focus, your pointer stays put, your clipboard is untouched. - **Any agent harness.** Claude Code, Codex, OpenCode, Gemini CLI, your own loop: as a CLI, an MCP server or a skill. ## Tools | Tool | What it does | |---|---| | `apps` | Find running and installed apps | | `observe` | The outline of a window, then only what changed; `focus` opens one part | | `act` | Run a batch of steps and return the change | | `timeline` | Play key and pointer events on a millisecond schedule (music, games, drags) | | `script` | Run AppleScript (in process, compiled once) or JXA | | `see` | A screenshot of one window or element, for what the outline can't show | | `record` | Film a window with an animated agent cursor | | `hush test`, `hush save` | Run desktop tests written as text; save an agent's run as one (CLI) | Steps: `click REF|X,Y`, `double REF`, `right REF`, `set REF VALUE`, `type [REF] TEXT`, `key COMBO [xN]`, `menu A > B`, `pick REF OPTION`, `select REF`, `focus REF`, `scroll REF up|down|left|right [N]`, `show REF`, `drag REF|X,Y to REF|X,Y`, `wait gone REF | REF | text "T" | change [REF] | 500ms [within 10s]`, `keep NAME REF`, `ask [until COND]`, `lane`, `unlane`. `ask` hands the window to the user for the part only they can do (a sign-in, a captcha, a payment) and waits until they're done: until they've switched to the app and away again, or until its condition holds (`ask until gone sheet "Sign In" within 5m`). A window the agent moved to the lane comes back where it was. Hush brings nothing forward; the agent tells the user in its chat what it needs. `keep total t3` remembers an element's value for the session. Any later step, in any app, can use it as `{total}`: `type t1 "{total}"`, `click button "{total}"`. The value goes from one app to the other inside Hush, so it never costs the agent tokens and the clipboard stays untouched. Any `REF` can also be the element as its outline line shows it: `click button "Save"`, `type field[2] "Ada"`. Hush finds it when the step runs, so an agent can act on a window it never read, and a batch can reach into a sheet that an earlier step opened. Timeline events, one per line: `MS down KEY`, `MS up KEY`, `MS tap KEY [HOLD]`, `MS down X,Y`, `MS move X,Y`, `MS up X,Y`, `MS tap X,Y [HOLD]`. Hush plays them on a real-time thread, under a millisecond off schedule at the median. ## Install ```sh curl -fsSL https://raw.githubusercontent.com/OgnjenAdzic28/hush/main/install.sh | sh ``` That's it. The installer puts `hush` in `~/.local/bin` and runs `hush setup`, which asks macOS for **Accessibility** and **Screen Recording** for your terminal and installs the Hush skill for Claude Code and in `~/.agents/skills`, the shared folder Codex, Cursor, Amp, Cline and most other agents read (plus a rule that lets Codex run `hush` outside its sandbox). Then ask your agent to do something in an app. Needs macOS 15 or later. Run `hush setup` again any time to check permissions or update the skill. On Linux the same command installs a static binary for x86_64 or arm64, and `hush setup` checks the accessibility bus, Xvfb and ffmpeg instead. On Debian or Ubuntu that's `sudo apt install xvfb at-spi2-core ffmpeg`; on Fedora, `sudo dnf install xorg-x11-server-Xvfb at-spi2-core ffmpeg-free`. **Pick your agents**: install the skill with the [skills](https://skills.sh) CLI instead, which lets you choose from 70+ agents: ```sh npx skills add OgnjenAdzic28/hush --skill hush ``` **Another harness**: `hush setup --skills-dir `, or use the MCP server: ```sh claude mcp add hush -- hush mcp ``` ```toml # ~/.codex/config.toml [mcp_servers.hush] command = "hush" args = ["mcp"] ``` **From source**: `cargo install --git https://github.com/OgnjenAdzic28/hush hush`, with Rust 1.100 or later (`rustup update`). **Try it yourself**: ```sh hush apps hush observe Notes hush act Notes 'click b2' 'type t1 "Groceries"' 'key enter' hush see Notes --out notes.jpg ``` ## Many agents at once One Hush host serves every agent on your machine. It starts with the first command and goes away after ten idle minutes. Each agent gets its own session with its own refs and diffs. Agents on different apps run in parallel; two agents on the same app take turns, so their clicks and keys never interleave. A window belongs to the agent acting on it. Another agent can still read it, but its `act` is refused with who holds the window, until 20 seconds after their last step or until their session ends. That way one agent never types into a field the other just cleared. Ten sessions hammering one host: 500 calls in 2.2 s, zero errors, observe in 48 ms and `see` in 28 ms at the median, on one core and 101 MB. ## The lane Agents don't need your screen. The `lane` step moves a window onto Hush's lane, a virtual display nobody can see, parked off a corner of your displays. If your pointer slips through that corner, Hush puts it straight back, so you never end up on a screen you can't see. Windows there still render, take clicks and keys, and can be captured. Only that window moves, and it comes back to where it was on `unlane`, the moment you switch to its app, or when the host exits. A window an app reopens on the lane after you quit it comes back to your screen too. In an app you're using, the agent doesn't take your window. `lane` opens another one, the way File > New Window would, and parks that. It's the same app on the same data, so the agent's work shows up in your window, and it stays on the lane when you switch to the app. While you're in the app, its keyboard and pointer stay yours: the agent keeps working through Accessibility actions, and steps that need keys or clicks wait until you switch away. An app with no New Window item is refused rather than taken. On Linux the lane is a hidden X server that Hush starts for itself. Every app an agent opens runs there from the start, whether your desktop is X11 or Wayland. ## Limits Decide what agents may touch, app by app, in `~/.config/hush/limits`: ```text never 1Password, Keychain Access, Messages # agents can't see these read Terminal, Mail # agents can read these, not act on them only Notes, TextEdit, Terminal, Mail # with an only line, every other app is off limits confirm Delete, Buy, Pay # agents ask you before pressing these, in any app confirm Mail: Send # or in one app ``` A `confirm` word stops any click, menu item or option whose label holds it as a whole word ("Delete All" yes, "Undelete" no). The agent is told to ask you, and runs the step again marked `confirm click b3` once you say yes. It keeps an agent from sending or deleting on its own; it isn't a sandbox against an agent that ignores you. Names are app names or bundle ids. While any limits are set, `script` is off, since a script can reach any app. `hush apps` marks limited apps, and a refused call tells the agent the user chose it, so it reports back instead of trying something else. Every command and new MCP session reads the file, so an edit applies at once. A file with a mistake stops Hush until it's fixed, so nothing runs without the limits by accident. ## Hush X-ray `hush view APP` writes one HTML page showing what an agent sees in a window: the screenshot with every element boxed and labeled with its ref, colored by kind (things to press, fields, choices, text), and the outline beside it. Hover a box and its line lights up, and the other way round; type to find an element. Over MCP, `see` with `view: true` writes the same page, so you can ask your agent to show you what it's looking at. ```sh hush view Notes --out notes.html ``` ## Recording demos `record` films a window while Hush works in it, lane included, and draws an agent cursor into the video: it glides to each click, leans into its motion, dips with a ripple on clicks and carries a name tag. The cursor lives only in the video, and the pacing is real. ```sh hush record Notes hush act Notes 'click b2' 'type t1 "Groceries"' hush record Notes --stop --label Claude --out demo.mp4 --captions ``` `--captions` (`captions: true` over MCP) puts each step along the bottom of the video as it runs, written the way a person reads it: `type field "Name" "Ada Lovelace"`, not `type t1 …`. Fast steps replace each other like a ticker. A failed test's movie (`hush test --record`) always has them, so it shows which step failed. ## Desktop tests A test is a text file: the app, the steps, and `expect` lines that check the window. It names elements the way the outline shows them, so it runs in any session, on any machine, with no model. ```text # notes.hush app Notes click button "New Note" type textarea[1] "Groceries" expect text "Groceries" expect button "Delete" ``` ```sh hush test notes.hush # or a folder: hush test tests/desktop ``` Each file runs in a fresh session and stops at its first failure, saying what the window shows instead (`expected = "Milk", but t2 field "Title" = "Mlk"`). A failed test leaves its outline and a picture in `hush-results/`, and with `--record` a movie of the run. Hush waits for each step to settle instead of sleeping, so a test is as fast as the app and doesn't flake on timing. On Linux, tests run on Hush's hidden display, which works on a CI runner with no screen. For CI, `--report` also writes `junit.xml`, which GitHub Actions, CircleCI and GitLab show as test results, and `report.html`, one page with each failure's line, reason, picture, movie and outline. `--repeat 5` runs every test five times; one that passes only some of those runs is reported as flaky and fails the command, so a timing problem shows up before it bites: ```sh hush test tests/desktop --repeat 5 --report --record # ok open.hush · 5/5 runs · 2.71 s # FLAKY sync.hush:7 `expect text "Synced"` · 6.02 s · passed 4/5 runs ``` An agent can write the test by doing the task once. Every step a session runs is kept with its refs turned into what the outline showed, so `hush save` turns the run into a test that replays with no model and no tokens: ```sh hush act Notes 'click b1' 'type t2 "Groceries"' hush save Notes notes.hush # app Notes · click button "New Note" · type textarea[1] "Groceries" hush test notes.hush ``` ## Platforms **macOS** 15 or later: everything above. **Linux**: Hush reads and drives apps through AT-SPI, the accessibility bus GTK, Qt, Firefox, Chromium and LibreOffice share. Apps an agent opens start on Hush's hidden display, where keys, clicks, drags, timelines, `see` and `record` all work and none of it can reach your screen. Apps you already had open take clicks, `set`, `type`, `select` and menus through accessibility, and nothing else, so an agent can never type into your window by mistake. `cmd+s` means Ctrl+S there. Every change runs the real binary against GNOME Calculator, Mousepad, GNOME Text Editor, FeatherPad (Qt), LibreOffice Writer, Firefox and Google Chrome: start, read, type, read back, picture. It also runs against a real GNOME Shell Wayland session, with an app open on the desktop that Hush reads and clicks without disturbing. Measured on GitHub's Linux runners: observe reads GNOME Calculator's 98 elements in 24 ms, a click settles in 20 to 35 ms, and timeline events land 0.18 ms late at the median. **Windows** is next. ## Contributing See `CONTRIBUTING.md` and `AGENTS.md`. Security reports: `SECURITY.md`. ## License MIT. See `LICENSE` and `NOTICE`.