r/coolgithubprojects • • 6d ago

Sidehand: AI agents operate Windows apps behind your window, without taking your mouse or keyboard (MCP server and CLI)

https://github.com/Blue-B/sidehand
0 Upvotes

3 comments sorted by

1

u/kantorcodes1 6d ago

I was reading the setup docs and stopped at SIDEHAND_ALLOW. You set it to window titles separated by semicolons, and every other window disappears from the agent's view, with captures, launch and the clipboard off.

What happens when a listed window changes its title mid-task, the way a browser window does when the tab changes? Does it drop out of view right away, even if an act is already partway through typing into it?

1

u/Agitated_Chair_4977 2d ago

Good catch. The check runs at the start of every call, against whatever the title is right then (plain entries match anywhere in the title, * and ? work too). So an act that already started just finishes. type is a single set-value call and press sends all its keys at once, so there's no slow per-character loop that could get cut off halfway. The next call on that window gets refused and it drops out of list_windows.

For a browser I'd match the part that doesn't change. Chrome ends every title with "Google Chrome", so that keeps the window in view whatever tab is open. The catch is that every tab in that window is allowed then, so it's really a per-window limit, not per-site.

1

u/kantorcodes1 2d ago

That bounds the risk in a way I had not seen from the docs. The check runs at the start of a call, and type and press each land inside one call, so a retitle cannot cut an act in half. The trade is the browser case you named: match on the part of the title that stays put, and every tab in that window is in scope on the next call.

I work on HOL Guard, the policy layer that sits in front of MCP servers. Sidehand maps onto a Guard descriptor with the split already in the product: list_windows stays at inherit, and the tools that act on a real window, type, press and launch among them, sit at review, so a person approves them before they run.

Would you add the descriptor? The file is contributions/mcp-servers/mcp.sidehand.json in hashgraph-online/hol-guard. First step: run python scripts/refresh_extension_artifacts.py --trust-only, which creates the trust binding at contracts/extensions/trust/command.mcp-sidehand.v1.json, then run the same script with --check-trust and tests/test_guard_mcp_server_contribution.py to verify. mcp.brickproof-adb.json is the closest descriptor already merged, a device-control server with the same observe and act split. The guide is here: https://github.com/hashgraph-online/hol-guard/blob/main/docs/guard/mcp-server-contributions.md