- Rust 78%
- JavaScript 13.6%
- Shell 4.8%
- Python 2.6%
- HTML 0.9%
- Other 0.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
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. |
||
| crates | ||
| docs | ||
| patches/sway | ||
| scripts | ||
| spikes | ||
| tests | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| PLAN.md | ||
| README.md | ||
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
- docs/usage.md - components, environment variables, agent model
- docs/bitwarden-setup.md - setting up the agent browser profile
- docs/sway-patch.md - what the sway patches change
- docs/development.md - development dependencies
- docs/spikes.md - results of the initial experiments
- PLAN.md - original design and roadmap
License
MIT; see LICENSE. The sway patches in patches/sway/ are derived
from sway and, like sway, are under the MIT license.