No description
  • Rust 78%
  • JavaScript 13.6%
  • Shell 4.8%
  • Python 2.6%
  • HTML 0.9%
  • Other 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Satya Benson 1736b97af6 Update MCP runtime dependencies and make browser smoke checks meaningful
Upgrade rmcp to 3.8.0 for bounded transport input, protocol validation and EOF cancellation fixes; Tokio to 1.54.1 for runtime/I/O fixes; serde_json to 1.0.154 for parsing corrections. Keep unrelated dependency versions and the sway/wlroots pair unchanged.

The old smoke test could pass with a dead daemon and expected an unimplemented URL restriction. Assert successful open and screenshot, navigation/history and a no-tab error instead, with a time limit.
2026-11-05 10:07:11 -05:00
crates Update MCP runtime dependencies and make browser smoke checks meaningful 2026-11-05 10:07:11 -05:00
docs Fix Bitwarden sign-in with the 2026.10 background wrapper 2026-10-19 13:46:19 -04:00
patches/sway Add sign_in via Bitwarden autofill and sway seat focus patch 2026-09-26 10:18:30 -04:00
scripts Initial commit: deskhand phase 0 spikes and phase 1 core 2026-09-25 23:19:39 +02:00
spikes Add a cross-site concurrent sign_in test and Bitwarden focus spikes 2026-10-06 10:20:15 -04:00
tests Update MCP runtime dependencies and make browser smoke checks meaningful 2026-11-05 10:07:11 -05:00
.gitignore Initial commit: deskhand phase 0 spikes and phase 1 core 2026-09-25 23:19:39 +02:00
Cargo.lock Update MCP runtime dependencies and make browser smoke checks meaningful 2026-11-05 10:07:11 -05:00
Cargo.toml Add deskview take-over viewer 2026-09-28 09:01:57 -04:00
LICENSE Add README and MIT license 2026-10-05 15:27:49 -04:00
PLAN.md Add deskview take-over viewer 2026-09-28 09:01:57 -04:00
README.md Add README and MIT license 2026-10-05 15:27:49 -04:00

deskhand

Gives AI agents (Claude Code and other MCP clients) their own desks on a Linux desktop without interfering with the user's session or with each other.

Agents run in "agentland", a headless nested sway with one seat and one output per agent. A single shared browser process (Helium, driven over the Chrome DevTools Protocol) lives in agentland; each agent's tabs are windows on its own workspace. Logins go through the Bitwarden browser extension's autofill, so passwords never enter the model's context. The user can take over any desk in a viewer window and hand it back.

This is not a security sandbox: the aim is no interference by default, not containment.

Status: the browser side works. Native desktop apps and desktop notifications are planned (see PLAN.md).

Components

Crate What
crates/deskd Daemon: starts agentland and the browser, serves a JSON-RPC control socket
crates/deskhand-mcp stdio MCP server, one per agent session; starts deskd if needed
crates/deskctl CLI: status, stop, run a tool as an agent, open the viewer
crates/deskview Take-over viewer: shows an agent's desk and forwards your input to it
crates/proto Shared protocol types

Agent tools include browser_open, navigate, click, type, key, scroll, tabs, select_tab, close_tab, screenshot, ui_tree, wait_for, run_script, desk_size and sign_in.

agentland needs a patched sway (patches/sway/, six patches on sway 1.12) that adds per-seat client binding and a few seat commands; see docs/sway-patch.md.

Build

Needs Rust, and for the patched sway: meson, ninja, a C compiler, and the sway/wlroots 0.20 development headers.

scripts/build-sway.sh        # fetches sway 1.12, applies patches/sway, installs it
cargo build --release        # deskd, deskhand-mcp, deskctl, deskview
cargo test

Register with an MCP client by pointing it at target/release/deskhand-mcp.

Documentation

License

MIT; see LICENSE. The sway patches in patches/sway/ are derived from sway and, like sway, are under the MIT license.