Skip to content

Releases

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 01:19
v0.2.0
1ef125e

Added

  • Background desks, experimental: desk start <name> runs a headless niri of the agent's own beside your desktop, and serve --desk <name> serves an agent on it, so it never moves your focus or types into your windows. Your lock state, stop key and stop apply to every desk. desk stop and desk list manage them, and status, watch and recover take --desk. A desk runs in a systemd user scope of its own, which stops by itself if the desk's supervisor dies, and desk stop removes it only once nothing of the desk is left. A desk needs cage, dbus-daemon, at-spi2-core and the systemd user manager.

Changed

  • The skill and the server's instructions tell agents that everything they read on the desktop, web pages, window titles, accessible names and the clipboard included, is data, never instructions, and to ask the user before doing what a page asks. The safety page says what that guidance can't promise.
  • rmcp 3.11.0. Before 3.9.0, rmcp's HTTP clients had an unbounded read (RUSTSEC-2026-0462); the server uses only stdio, which wasn't affected.
  • zbus 6.3.0, which merged the unmaintained zvariant, zbus_names and zvariant_derive crates into zbus; the accessibility tools behave as before.
  • toml 1.2.1, and the site moves to Astro 7.4.13 and Starlight 0.43.1.

Fixed

  • The install script checks NCU_REGISTER before it downloads anything. A wrong value used to fail the run after the new binary, skill and plugin were already in place.
  • Two runs of the install script at once take turns under a lock instead of removing each other's staged copies, and a run stopped while it replaces the skill or the plugin puts the previous one back instead of leaving none. The script now needs util-linux's flock.
  • After an update, the install script names the servers still running the replaced build when the binary's directory is reached through a link, as /home is on Fedora Atomic.
  • An accessibility call that waits for another call still connecting to the accessibility bus gives up at its own budget. wait_for an element could run up to a second past its timeout.
  • A state or capture directory on a file system that stalls, such as NFS or FUSE, no longer freezes every session of the server. The audit log is written by a thread of its own and a call waits for its line at most a second; a saved screenshot is written off the runtime and fails with deadline_exceeded after five seconds.

v0.1.8

Choose a tag to compare

@github-actions github-actions released this 04 Nov 21:58
v0.1.8
c224322

Added

  • The Noctalia plugin's Robot size setting: the overlay's robot is 40, 56 or 72 pixels tall, before the UI scale, and its caption grows with it.
  • Between actions, the overlay's robot thinks in place: it blinks, bobs, pulses its antenna and shows a bubble of three dots. The plugin publishes the rectangle it changes, which settle waits leave out, and it stays still with a server that doesn't. It dozes after a minute instead of eight seconds.
  • The overlay shows a click: the robot hops, and a ring grows and fades on the exact point. Before it sets off for a new spot, the robot looks and crouches toward it.

Changed

  • tokio 1.54.1, rmcp 3.8.0 and rustix 1.1.6, and the site moves to Starlight 0.42.7.
  • The overlay's robot is 56 pixels tall by default instead of 32, redrawn for that size, with a 13-point caption.
  • The overlay's robot takes the Noctalia theme's colours instead of fixed light grey ones.
  • The overlay's robot stands 16 pixels from a click instead of 12, which leaves room for the ring.
  • Settled screenshots and wait_for screen_stable leave out the rectangle the Noctalia plugin's overlay publishes in overlay.json, which watch's hello names as overlay, so the robot thinking in place doesn't keep them waiting.

Fixed

  • The install script's closing steps are numbered in the order they print. They read 1, 2, 4, 3.
  • release_desktop's description, the skill and the docs say that restored with accepted: false and observed: "focused" means the user's window already had focus, so nothing was sent; agents read it as a failure.

v0.1.7

Choose a tag to compare

@github-actions github-actions released this 30 Oct 21:03
v0.1.7
7eb96bb

Breaking

  • The Noctalia plugin needs Noctalia 5.4 or newer: it uses plugin API 36 for its overlay. Noctalia 5.3 lists it as incompatible and doesn't load it, bar widget, panel and glow included. The install script says so when Noctalia lists it that way.

Added

  • The Noctalia plugin's overlay: while an agent holds the desktop, a small robot stands beside where it acts, with a caption such as click or typing 12 chars in kitty. It sets off as a click goes out and stands beside it a moment later, holds still while the agent's screenshot is taken, and lets clicks pass through. The Show a robot where the agent acts setting turns it off.
  • watch sends a live line for each phase of the action in progress: when the server admits it, where it acts (the output and the point, or the window and its app_id), right before its screenshot is taken, and how it ended. The server keeps that record in live.json in the instance's runtime directory. The audit log is unchanged.

Changed

  • watch shows a stop, a lease change and the input-dirty marker at once instead of at its next 250 ms poll: it wakes on changes in the runtime directory.
  • The skill tells agents that a small robot with a caption in their screenshots is the Noctalia plugin's overlay, not part of the app, and that clicks pass through it.

Fixed

  • The Noctalia plugin's glow covered only the top-left quarter of an output at a scale of 1.25 or more: it divided the logical size Noctalia gives by the output's scale again.
  • The Noctalia plugin could say input may be stuck while an agent's click or key was still going out: watch reported the input-dirty marker that every input writes while it goes out. watch now sets input_dirty only once the marker's server is gone, was released or gave up on its input, which it notes in input-dirty.note beside the marker. A marker from a 0.1.6 server counts once it is a minute old, and any marker once it is five minutes old.

v0.1.6

Choose a tag to compare

@github-actions github-actions released this 30 Oct 17:36
v0.1.6
6ca63d0

Added

  • The Chromium and Electron section of the elements page, and the troubleshooting page, say how to start those apps with accessibility on, so elements works on them.
  • A bug report template that asks for the niri version, status output, the agent and model, and the error name and detail.
  • status reports stop_key: bound when the bind niri ends up with for a key runs niri-computer-use stop with a program that is there, not_found, or unknown with the reason in stop_key_detail. It reads the config file the running niri was started with and the files that file includes, and merges their binds as niri does. While it is not_found, acquire_desktop returns a warning with the bind line to add, which the agent is asked to pass on.
  • niri-computer-use status --check prints the readiness report as one line per prerequisite, ✓ or ✗ with the fix for each ✗, and exits 1 while something blocks the server: niri and its version, the display, the lock state, the pointer, grim, the accessibility bus, the stop key, the stop flag and input-dirty marker, the policy file and refused variables. The install script now ends with it, after registering and binding the stop key.
  • A granted lease puts a notification on the desktop naming the agent and its project, so you can see an agent drive without the Noctalia plugin. Each agent gets at most one every five minutes. It is skipped with confirm_lease on and while the Noctalia plugin, which sends its own, is enabled. The new policy key notify_on_lease = false turns it off. A missing or failing notify-send never refuses the lease; status.lease_notice_error and status --check report it.
  • launch_desktop_entries = true in the policy file lets launch start an installed app by its desktop entry id, such as org.gnome.Nautilus, without a preset. The server reads the entry when launch names it and has niri start its Exec line without a shell. It reads only entries in files root owns and only root can write, reached through directories and symlinks only root can change, so apps installed for the whole system start and one in ~/.local/share needs a preset. An entry that the user can write, is hidden, is for another desktop, runs in a terminal, starts a program the preset rules refuse, or runs flatpak with anything but flatpak run of an app and one --command fails with the new entry_refused, and the deny list covers an entry's id, StartupWMClass, flatpak app and program name. status.desktop_entries lists the ids launch would start and counts the user-writable entries, and unknown_preset names entries whose id or name contains the name asked for. The install script and the first-session page suggest the key.

Changed

  • The skill and the server's instructions tell agents to load the tool schemas before the first call in Claude Code, that submitted: true means Enter went out and a late-drawn message is not a reason to send it again, to take a screenshot before typing after ctrl+t or a closed file picker, to hand the desktop back on a focus_mismatch that names their own terminal, and to tell you once that restarting a Chromium or Electron app enables element tools.
  • The README opens its Safety section with a six-row table and no longer shows a harness run as its example. The home page says the audit log records every call that reaches a tool.
  • crates.io links the project site as homepage and documentation.
  • A tool given a field it doesn't take now fails naming that field and the ones it expects, such as unknown field `direction`, expected one of `keys`, `screenshot_ref`, … for scroll. It used to drop the field and fail on another one, or act without it. Every tool's schema says so with additionalProperties: false.
  • close_window takes the window as window_id, like every other tool. id still works.
  • wait_for also takes until: {"screen_stable": {}}. JSON sent inside a string, such as "\"screen_stable\"", fails with the forms that work.
  • Calls refused for their arguments before the tool runs are written to the audit log as invalid_arguments, with the names of the fields they were given and never their values.
  • The noctalia tool's description says that every call needs the lease, even ["--help"] and ["plugins", "list"].
  • The skill and the keyboard page tell agents to paste into web form fields that reformat what is typed, such as amounts or phone numbers, and check the field. Fields built on @react-input can keep only the first character typed into them in Chromium, while type_text reports sent.
  • The pointer tools work with more than one monitor. pointer_move, click, drag and scroll act on the monitor of the screenshot they aim through when it is at transform Normal, whatever the other monitors are; a rotated monitor still refuses them with untested_output_config. A gesture stays on one monitor. status lists the monitors they run on in outputs.pointer_outputs.
  • Calls the server answers itself with engine_lost or engine_unavailable are written to the audit log, so watch and the Noctalia plugin show them. They were never logged, since the shared engine never saw them. A call the engine cut short as it exited has that one line, not also cancelled.
  • The Noctalia plugin notifies once per agent session when an update replaced the agent's server and its calls fail with engine_lost or engine_unavailable, naming the agent and saying to restart it. Later such failures of that session don't notify. The same errors from a server of the installed build count as failed actions.
  • tokio 1.53.3, which fixes RUSTSEC-2026-0386, and rmcp 3.7.0.

Fixed

  • Typed text puts a symbol on a spare key when the layout has it only on a key Chromium drops. US maps have € only on <I443> (evdev 435), so € typed into Chromium and Electron apps arrived as nothing. A symbol also on a normal key types there, so US $ uses Shift+4 instead of <I442>, which Chromium dropped too.
  • The Safety page said the pointer tools don't check whether windows moved since the screenshot. They have refused such a screenshot with layout_changed since 0.1.2.
  • A pointer gesture whose monitor niri unplugs, turns off or reconfigures while it goes out stops, or is refused before anything is sent, and is never reported sent: niri may have placed what went out elsewhere, so it ends uncertain. A change of scale or mode during a drag on a single monitor used to let the rest of the drag through, aimed for the old geometry.
  • A screenshot that waits for the screen to settle, an action's screenshot: true or wait_for screen_stable, compares raw pixels and counts the screen as still when two captures in a row each differ from the capture before them both by at most 0.5 % of the pixels. A clock, a CPU graph, a spinner or a caret no longer keeps the wait going until the 1.5-second limit. A window still sliding into place adds up past that and keeps the wait going. The screenshot's metadata says in changing how much changed last.
  • focus and release_desktop's restore_focus that time out with no window focused, and keyboard and element tools refused with focus_mismatch because no window has keyboard focus, say in detail what may hold it: niri's overview, Noctalia's open panel, or the layer-shell surfaces niri lists with exclusive keyboard focus (on-demand ones only as a maybe), and how to close it: niri_action CloseOverview, shell_panel, or key Escape with expect: "none".
  • A wait_for window condition that times out lists the windows that opened during the wait in opened, with their app_id, so a wrong app_id such as helium-browser for helium shows.
  • After an update, or a reinstall of the same release, the shared engine of the replaced build hands over: the first client of the installed build to connect while no agent holds the desktop ends it and is served by an engine of the new build, instead of running standalone, or failing with engine_unavailable when it requires the shared engine, until every old agent restarts. While an old agent holds the desktop, the old engine keeps it until it is given up. Old agents get one engine_lost, then engine_unavailable saying to restart them, and no longer start an engine of their replaced build. Engines of 0.1.5 and older don't hand over, so updating from them still needs the old agents restarted.
  • While the screen is locked, screenshot, elements and wait_for are refused with screen_locked, elements and wait_for also when the screen locked during the call, and desktop_state gives every window's title as null with titles_hidden saying why. Before, any connected agent could read accessible names and window titles while the screen was locked. A lock state that is unknown still lets them through, since actions already refuse then.

v0.1.5

Choose a tag to compare

@github-actions github-actions released this 18 Oct 04:43
v0.1.5
0205d26

Changed

  • The Noctalia plugin's panel puts Stop in its status card, beside the settings button. It shows only while an agent holds the desktop, for five minutes after one gives it back, since agents often take it again before asking you something, and while watch is down. It used to sit in the Activity heading, where it read as stopping the feed, and showed while no agent was there.
  • An agent's consecutive key presses, each within 30 seconds of the last, share one row in the panel's feed, such as Pressed 4 keys, with each call's keys under it and in its tooltip. A failed press, another agent or any other call starts a new row.
  • With more than three rows, the panel's agent list shows only the driver, or the first agent while none drives, then and N more, where it showed three. Its heading counts the connected agents and says once how many are on an old build; each of their rows says old build, where it said old build, restart it.
  • The audit log, and so watch, names a noctalia call's command, with Noctalia's description of it, when its first argument is exactly a command in Noctalia's own noctalia msg --help list, and for plugin the plugin's id when plugins list lists it. The other arguments are still logged only as their count and lengths, never their text. The server reads both lists from Noctalia right before it sends a call that holds the lease and has valid arguments, and waits at most 300 ms for them. The Noctalia plugin's activity feed shows that description, such as Toggle caffeine (idle inhibitor), or Sent an event to ayagmar/obs-control for a plugin call, and Sent a Noctalia command as before when the log names neither.

Fixed

  • The panel's unfolded agent list scrolls within its height. It grew to fit every row and pushed the activity feed down to two rows with eight agents connected.
  • Two sessions of one agent in one project showed as two identical rows in the panel's agent list. They now share a row that counts them, such as 2 sessions, with their PIDs in its tooltip. The driver keeps a row of its own, and servers whose agent watch couldn't name never share one.
  • The bar tooltip separates the last call from its time with · instead of a comma, so Pressed Escape, c no longer reads as one more key. Connected agents and old builds share one line.

v0.1.4

Choose a tag to compare

@github-actions github-actions released this 18 Oct 00:42
v0.1.4
30d2dbd

Added

  • The install script also offers to register the server in Amp, GitHub Copilot CLI, Gemini CLI and Qwen Code when they are on PATH, through each one's own mcp add at user scope. The client setup page gives their commands, and the config entries for Cursor CLI, Factory Droid, OpenCode, Kilo Code CLI, Goose and Crush, which the script leaves to you.

Changed

  • The install script is meant to be piped into sh: curl -fsSL https://github.com/ayagmar/niri-computer-use/releases/latest/download/install.sh | sh. The whole script is now one brace group, which sh reads to its end before running any of it, so a download cut short runs nothing, and an agent's mcp add that reads stdin can't take the script's own lines. Its questions are still read from the terminal.
  • With more than four agents connected, the Noctalia plugin's panel shows the driver and two more, and folds the rest into +N more, with how many of them are on an old build, so the activity feed keeps its room. Unfolded, the list scrolls within about four rows, and it folds again whenever the panel opens.

Fixed

  • The install script no longer stops, after installing, when its output is a terminal it can't open, such as a session with no controlling terminal. It registers in no agent then, and prints the commands to run by hand.
  • The Noctalia plugin sends failed-action notifications at normal urgency rather than critical, since agents retry most failures. Stuck input, and a Stop or Resume that failed, stay critical.
  • When watch exits with an error of several lines, before or after it started, the Noctalia plugin's panel shows its first three lines rather than only the last, so a panic shows its message instead of the RUST_BACKTRACE note after it.
  • set_element_text refuses text ending with tool-call closing tags such as </parameter> or </invoke> that no opening tag earlier in the text balances, with leaked_tag and the tags named in detail, as type_text has since 0.1.2. It used to set such text, so a leaked tag landed in the field. Nothing is set; send the text again without the tags.

v0.1.3

Choose a tag to compare

@github-actions github-actions released this 17 Oct 19:53
v0.1.3
811c106

Added

  • niri-computer-use watch prints what agents are doing on this niri instance as JSON lines: who holds the lease and since when, in which project, whether the stop flag or the input-dirty marker is set, which agents have a server on it and whether an update replaced that server's binary, and each tool call the audit log records, the last 20 marked backlog, for a shell such as Noctalia to show. It never connects to niri, and the lines hold only what the audit log and the lease record hold.
  • A Noctalia plugin, in noctalia/niri-computer-use, shows which agent drives the desktop and what it does. Its bar widget breathes in the accent colour with the agent's name while one drives, and right-click stops agents or resumes them. Its panel shows who drives, in which project and for how long, every connected agent with the ones left on an old build marked, a Stop button, a settings button and the last 50 calls in words, opening on the newest and following new ones. Its desktop glow frames the output behind the windows while an agent drives, and it notifies when an agent takes the desktop, once for an agent that takes it back within five minutes, when agents are stopped, when input may be stuck and when an agent is left on a replaced build; failed actions only when turned on. What it finds when it starts isn't announced. It reads niri-computer-use watch.
  • The install script installs the Noctalia plugin from the same release to ~/.local/share/niri-computer-use/noctalia/niri-computer-use and, when noctalia is on PATH, links it into Noctalia's plugin directory and prints the command that enables it. It doesn't enable it.
  • After an update, the install script lists each niri-computer-use serve still running the binary it replaced, by PID and the agent that started it, so you know which agents to restart or reconnect.

Changed

  • A server that requires the shared engine, and couldn't reach it or was refused when it started, now tries again on every call, starting an engine if none runs. Once the cause is gone, such as an engine of an older build that exited after its last client, the next call is served, without restarting the MCP server. Until then every call fails with engine_unavailable as before. A cause no call can fix, such as a socket path over 108 bytes, still needs a restart.
  • Such a server no longer lists noctalia while unrestricted is off, and once a call reaches an engine it sends notifications/tools/list_changed, since the engine leaves out the tools that need Noctalia or an accessibility bus when they aren't there.

v0.1.2

Choose a tag to compare

@github-actions github-actions released this 16 Oct 22:19
v0.1.2
c211261

Added

  • shared = "required" in the policy file, or NIRI_COMPUTER_USE_SHARED=required, makes the shared engine required, so every client of a niri instance is served by one process, with one crash guardian, niri event stream, accessibility connection and audit writer. A server that can't reach the engine, or that the engine refuses, no longer serves its client on its own: it lists the client's tools, every call fails with engine_unavailable, and the detail and the server's stderr say why, such as the engine's socket path and the connect error, or the refusal. Restart the server once the cause is fixed. A wrong NIRI_COMPUTER_USE_SHARED doesn't drop a requirement the file sets, and neither does a mistake elsewhere in the file, even one that stops it parsing as TOML. status.shared reports the setting (on, off or required) and why the variable was refused. The default, true, still falls back to serving the client on its own.
  • wait_for waits on a window's accessible elements: {"element": {"window_id", "role", "name_contains", "state", "absent"}} waits until an element elements would list, with that role, name text and state (a name from a JSON listing's states, or disabled for one without sensitive), is there, or with absent: true until none is. A met wait for an element that appeared returns its element_ref while you hold the lease, with unbound or unmappable when elements would give them, and no ref, with the reason in detail, when a walk cut short can't tell it from a look-alike further on. A window that closes ends the wait as window_gone, and one whose app isn't on the accessibility bus as not_accessible. A walk cut short, or one that skipped an object gone by the time it read it, and with it everything under it, never counts as proof that the element is gone, and a wait that times out after such a walk says which in detail. A walk that the wait's own end cut short, one that began with less than its three-second budget of the wait left, doesn't count against the walk before it, so a wait whose earlier walks read the whole tree doesn't time out saying the last walk was cut short. A walk that began earlier and ran out of its own budget still says so, even when it came back after the wait's end. The audit log keeps the role and state names and the length of name_contains, never the text.
  • activate_element and set_element_text return effect: seen when reading the element back showed the action's effect, differs when a field holds other text than was sent, none_seen when nothing the server can read changed, and unverified when it couldn't be read. A read that fails after the action went out is unverified with the reason in detail, never an error. The audit log keeps effect beside observed.
  • activate_element reads the value of an element that has one, such as a slider or spin button, before and after, and says in element.value_changed whether it changed, never the value. It also compares the element's name, and says in element.name_changed whether a button relabelled itself, never either name.
  • When elements, wait_for's element condition or an action's element_changes finds the window of a Chromium, Electron or CEF app off the accessibility bus and the session's accessibility is off, the server turns it on by registering an AT-SPI event listener, as a screen reader does, and holds it on until the server ends, however it ends. Chromium, Electron and CEF apps join the bus only when it was on when they started, so apps started after that are listed; one already running needs a restart, and not_accessible's detail says to ask the user first. The server tells such an app by the files Chromium maps (icudtl.dat or v8_context_snapshot.bin in /proc/<pid>/maps); for any other app off the bus, such as a terminal, or a process it can't inspect, it changes nothing and gives the plain not_accessible. The server never writes org.a11y.Status, leaves accessibility alone when something else turned it on, and needs at-spi2-core 2.61 or later: with an older one it lets go and says so. turn_on_accessibility = false in the policy file turns this off. status.accessibility_switch says what the server did (off, on, turning_on, unsupported, or let_go once accessibility read off while the server's listener held it on, which two overlapping calls don't cause), and status.policy.turn_on_accessibility whether it may. The launcher also sets GSettings' toolkit-accessibility to true, as it does when a screen reader starts, and that stays after the server ends; gsettings reset org.gnome.desktop.interface toolkit-accessibility undoes it.
  • elements asks a Chromium window for its page's tree when it shows none, as Chromium builds it only once an assistive technology asks. That listing has building: true, or the app built its tree just now in the compact header: list again a second later for the page.

Changed

  • set_element_text on an editable field that has no EditableText interface, as Chromium's text fields are, fails with text_not_settable instead of a plain invalid arguments: that read as a mistake to fix and send again. Its detail says to focus the field with activate_element, then send the text with type_text, pressing ctrl+a with key first to replace what it holds. A password field without EditableText is secret_field, and an element that isn't editable is still an argument mistake.
  • A shared engine that refuses a client's server because it runs another build says what to do. After an upgrade, a client still running the old build whose engine ended meets an engine of the new build, which refuses it for as long as it runs: its engine_unavailable detail now names both builds and says to restart that MCP client, where it said only that the engine runs another build, and the bridge no longer adds that the next call tries again. An engine whose own file was replaced since it started says to restart the clients it serves. When neither file was replaced, as with two installs on different paths, where restarting either client runs its build again, it names both files and says to point the clients at one. Bridges name their release in the hello, which engines of 0.1.1 and older ignore.
  • A client started after an upgrade beside a shared engine of 0.1.1 or older, which it is served standalone beside, says in status.engine.fallback that engine's PID and what to do, from the files that engine and this server were started from: when an upgrade replaced the engine's file, that it serves the clients started before the upgrade until the last of them ends, and to restart those clients to end it; when both builds are still installed, to point the clients at one file. That engine's own words say only that it runs another build, or, from 0.1.0, the bridge speaks hello Some(3); this engine speaks 2. Engines now name their release in a refusal, so a bridge adds this only to an older engine's.
  • elements reads the elements inside a container of more than 64 children, such as a long list, table or grid, after the rest of the window, and lists them after it. A window whose walk is cut short inside such a list still lists its own controls, such as the toolbar's and the buttons below the list, where it used to stop before them; those outside a named list row are unbound: cut_short, since the unread part may hold a look-alike.
  • elements reads up to 20,000 objects of a window's tree, up from 2,000. One long list, table or grid used to stop the walk before the rest of the window, so its other controls were never listed, or were unbound: cut_short. In nested GTK 3, GTK 4 and Chromium windows of 2,218 to 15,022 objects, the whole tree now reads in 0.15 to 0.82 s and every control outside the list has a bound ref; listing such a window takes that long. A window over 20,000 objects, or too slow to read in the three seconds, is still cut short.
  • type_text refuses text, typed or pasted, that ends with tool-call closing tags such as </parameter> or </invoke> that no opening tag earlier in the text balances, each opening tag balancing one closing tag, with leaked_tag and the tags named in detail. Models sometimes leak their own tool-call markup into the end of a long argument. Nothing is typed or pasted; send the text again without the tags.
  • set_element_text reads the field's text back and compares it with the text sent, instead of comparing only the character count. A field that reformats or masks text without changing its length is now differs, not matched. Neither text is returned or logged.

Fixed

  • A pointer tool no longer fails with lock_stale before its first input, or stops partway with its button released, when nothing was slow. Each look in a gesture kept a lock read under 250 ms old and then required it to be under 250 ms old at its end, so a read that turned 250 ms during the look itself stopped the gesture. Such a look now reads the lock state again and looks once more. A gesture still stops when that second look is too slow.
  • A pointer tool aimed at pixels of a screenshot no longer goes out after the windows on that output moved since the capture. The ref was checked only against its age and its output, so two clicks 5 and 12 seconds after their screenshots pressed wherever the screen had moved to: in a real session, the user resized the browser and later focused their terminal beside it, and the agent's clicks went to the browser's blank margin and into the terminal. The call now fails with ref_invalid and layout_changed when the overview, the output's workspace, a window on it opening, closing, moving or resizing, or the window niri scrolls the view to changed after the capture began, even if the change was undone since, and says which. niri's initial state counts as a change on every output, both when the server starts reading niri's events, since niri may be ...
Read more

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 14 Oct 15:52
v0.1.1
b9764ab

Added

  • install.sh offers to register the server in each of Claude Code, Pi and Codex it finds on PATH, through the agent's own mcp add command, asking per agent when its output is a terminal. NCU_REGISTER=1 registers in all of them without asking, NCU_REGISTER=0 in none. An agent that refuses doesn't fail the install; its command is printed under the next steps.

Changed

  • key, type_text and a paste's key always go through the server's own virtual keyboard with the compositor's keymap, and click, drag and scroll take held keys without configuration. In Chromium and Electron apps, wtype's keys lost spaces and punctuation and missed shortcuts such as VS Code's ctrl+s; the native keyboard types text your layout has exactly. Symbols your layout lacks, such as accented letters, Greek, Cyrillic or arrows on a US layout, arrive exactly there too, because native puts them on keycodes Chromium knows, F13 to F24 among them. Emoji and other characters outside the Basic Multilingual Plane still arrive as other characters there, so paste them.
  • Native text with more distinct symbols the layout lacks than the keymap has spare keycodes, 14 in a US layout, is typed in parts, each with a temporary keymap of its own, instead of refused.
  • A native key combination, a paste's key included, that the active layout lacks goes out in another of your layouts that has it, so ctrl+v and ctrl+s work while a layout such as Russian is active.
  • After a native call, a lock that was on, such as Caps Lock or Num Lock, reads as off in the focused application until you press a modifier or lock key, the keymap changes or focus moves.

Removed

  • The wtype keyboard. NIRI_COMPUTER_USE_KEYBOARD is no longer read, and any value is ignored rather than refused, since 0.1.0's docs told you to set it to native; a setting of wtype now gets the native keyboard. wtype is no longer needed at run time, and status.binaries lists only grim and notify-send.
  • recover no longer ends an input program or offers to end your wtype processes. It releases the keys and buttons the marker names, asks for the manual check, and clears the marker after yes. An input-dirty marker 0.1.0 wrote while wtype ran can't be read by this version, so input stays blocked until you run recover. Restart every MCP client after upgrading, so no 0.1.0 server keeps running beside this one: a marker it writes while typing reads as unreadable here, and sends agents to recover until it finishes.

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 14 Oct 05:22
v0.1.0
4053ae3

The first release: an MCP server over stdio that lets an AI agent read and act on a niri 26.04 desktop.

Upgrading

  • If you run a source build of main, end every running niri-computer-use process (servers, bridges and shared engines) before installing this one, then start your clients again. pgrep -a '^niri-computer-u' lists them. Older builds of main kept their runtime directory under XDG_RUNTIME_DIR, so an old and a new server on one niri would share neither the lease nor the stop flag. Tools were also merged and renamed during development; link or copy skills/niri-computer-use again so your agents read the current names.

Added

  • niri-computer-use serve, an MCP server over stdio, and the commands status, stop, resume, recover and --version.
  • 22 tools. Reading, with no lease: status, desktop_state, screenshot, elements and wait_for. The lease: acquire_desktop and release_desktop. Under the lease: clipboard_read, and the tools that act, focus, launch, close_window, niri_action, pointer_move, click, drag, scroll, key, type_text, activate_element, set_element_text, and with Noctalia installed shell_panel, and noctalia when unrestricted is on as well. elements, activate_element and set_element_text are listed when the session has an accessibility bus.
  • desktop_state: windows, workspaces, focus, the overview, keyboard layouts and outputs from niri's event stream, and with Noctalia installed its status as shell.
  • screenshot: one output or a region inside one, through grim, as JPEG or PNG, at most 1280 pixels wide unless max_width says otherwise. A region of an earlier screenshot, named by its screenshot_ref, is captured again at full resolution to read small text. save_path writes a PNG under ~/Pictures/niri-computer-use, or the policy's capture_dir, never through a symlink and never over an existing file.
  • elements: one window's accessible elements over AT-SPI, one line each with an element_ref, role, name, states, actions and box in layout coordinates. activate_element runs an element's own action and set_element_text replaces a field's text, both through the accessibility bus. The pointer tools take an element in place of screenshot pixels.
  • wait_for: waits for a window to appear, close or change its title, or for the screen to stop changing, for up to 30 seconds.
  • focus a window or workspace, launch an app from a policy preset, optionally reusing an open window, and close_window. niri_action sends any niri action in niri's IPC JSON, such as fullscreen, floating or a column's width, and returns the window's state after it.
  • Pointer input through niri's virtual pointer (pointer_move, click, drag, scroll), aimed at a screenshot's pixels through a screenshot_ref that expires after 60 seconds or when its output changes.
  • Keyboard input through wtype into the window named in expect: key presses up to 16 combinations, and type_text types up to 1000 characters in parts of 100, with focus and the lock state checked again before each part. submit: true presses Enter only once all of the text went out. via: "paste" pastes up to 1 MiB through the clipboard and puts the clipboard back afterwards. NIRI_COMPUTER_USE_KEYBOARD=native selects an experimental backend on niri's virtual keyboard that checks focus before every key.
  • Every action result says whether niri accepted the action and what was observed after it. changes lists what niri saw change, such as windows opened, closed or moved and focus moving, and element_changes lists the accessible elements that changed. screenshot: true adds a screenshot taken once the screen stopped changing.
  • clipboard_read: the clipboard's text, under the lease.
  • shell_panel opens and closes the Noctalia panels control-center, wallpaper and tray-drawer. noctalia sends any Noctalia command and is listed only with unrestricted on.
  • A policy file at $XDG_CONFIG_HOME/niri-computer-use/policy.toml with launch presets ([[preset]] with name, argv, app_id and env), deny_input_app_ids, capture_dir, unrestricted, confirm_lease, shared and tools. NIRI_COMPUTER_USE_UNRESTRICTED, NIRI_COMPUTER_USE_CONFIRM_LEASE, NIRI_COMPUTER_USE_SHARED and NIRI_COMPUTER_USE_TOOLS set the same for one client.
  • Tool profiles: tools = "observe" lists only the five reading tools, "act" leaves out niri_action, noctalia and shell_panel, and "full", the default, lists every tool.
  • A shared engine per niri instance, on by default: each client's serve relays to one niri-computer-use engine, started in its own systemd user scope where systemd allows it. Policy, keyboard backend, PATH and working directory stay per client.
  • Session discovery: with no XDG_RUNTIME_DIR, NIRI_SOCKET or WAYLAND_DISPLAY from the client, the server takes them from the user's only running niri, so no client needs environment settings.
  • The niri-computer-use skill in skills/, which tells agents how to use the tools, with tool and error tables in references/.
  • An audit log of every tool call at $XDG_STATE_HOME/niri-computer-use/audit.jsonl, with argument metadata and outcomes but no typed text, clipboard, window titles or images, moved aside at 10 MiB with three old logs kept.
  • Failures carry a stable error name and the upstream detail; the skill's references/errors.md and the documentation site list them.
  • The documentation site, with llms.txt and a Markdown address for every page.
  • Release tarballs for x86_64 and aarch64 Linux with the binary, the skill and the licenses of the crates built in, and install.sh, which installs the binary and the skill from one of them.

Security

  • One server at a time holds the lease on a niri instance, an exclusive flock in a runtime directory beside niri's socket. Only the holder acts; another session's acquire_desktop fails with lease_held.
  • niri-computer-use stop, meant for a niri bind, cancels the running action and takes the lease back until niri-computer-use resume. It doesn't connect to niri, so it works while niri hangs.
  • Every action goes out within 250 ms of a read of the lock state, from Noctalia and logind, that said unlocked. A locked or unknown state fails with screen_locked, and a read that got too old before the call could go out fails with lock_stale.
  • With confirm_lease on, acquire_desktop waits for you to choose Allow on a desktop notification sent with notify-send. A denial, a dismissal or no answer within 60 seconds fails with lease_declined.
  • An input-dirty marker is written before input and removed once the input is released. A crash mid-input leaves recovery_required until you run niri-computer-use recover. A crash guardian beside each server releases held native keys and pointer buttons when the server dies.
  • Keyboard and pointer input refuse with app_denied while an app on the deny list has focus, and element actions and close_window refuse on its windows. set_element_text and activate_element refuse fields marked as passwords with secret_field.
  • launch only starts presets, and a preset can't start a program that runs whatever follows it, such as tmux, ssh, flatpak-spawn or docker. niri_action refuses actions that run programs, write files or reach past the layout, such as Spawn and DoScreenTransition, with unrestricted_required. unrestricted, off by default, allows both, and lists noctalia.
  • clipboard_read returns only what was copied while the lease was held (copied_before_lease otherwise), and never text its owner marked secret for clipboard managers, such as a password copied from KeePassXC (secret).
  • The name an MCP client gives itself is cut to 64 characters of ASCII letters, digits, spaces and ._-+@ before it labels the audit log, the lease holder and the confirm_lease prompt.