DeskVNC DeskVNC

When the published app already speaks the protocol

Two ways exist for an AI agent to drive a remote desktop. The first installs a runtime on the remote. The second speaks a protocol the remote already speaks, and arrives through a port the remote was already holding open. The question this page answers is structural: under which circumstances does each approach have room to exist, and where does the protocol path become the only one the machine allows?

Five classes of production machine refuse an installed agent as a matter of policy or design, and the same five classes are exactly where a display or terminal protocol is already in place. An agent that speaks that protocol arrives through a door the security team has already approved.


The five classes of machine that refuse an installed agent

Citrix published apps and remote app surfaces. A published app runs on a server in the data centre, and the user sees a single window of the app on the endpoint. The install permission sits with the operations team that owns the server image, and that team does not host third-party runtimes on it. The remote already speaks the display protocol that streams the published app, and the same protocol is the path an agent uses.

Pooled VDI desktops. Every user gets a fresh desktop drawn from a base image on sign-in and returned to the pool on sign-out. Anything an installer dropped on the user side of the profile is thrown away with the session, and anything on the system side violates the image. The user reaches the pooled VDI over a display protocol, and the same protocol is the path an agent uses through the same broker and gateway.

Jump hosts and bastion gateways. A jump host exists to be the only path into a protected subnet, and its audit surface is small on purpose. Pushing a runtime onto a bastion defeats the role of the bastion. The bastion already speaks a terminal or display protocol, and an agent that speaks the same protocol on the same port under the same identity reaches the next host in the line without leaving a footprint on the bastion.

Client-owned and locked-down workstations. A workstation owned by a client and managed by the client's IT team sits underneath anyone else's control in name only. The IT team enforces an application allowlist, runs mobile device management, removes local admin rights, and blocks unknown binaries. The same IT team has typically already approved a remote support tool that uses a standard display protocol, and an agent that speaks the same protocol arrives through the same allowlist.

Kiosk shells and shell-replace endpoints. A kiosk is a single-purpose machine whose shell has been replaced so the user sees one application and nothing else. The shell-replace runs on top of a full Windows session that still has the display and input stacks, and the kiosk image typically ships with the remote administration protocol already enabled.


What "the protocol the machine already speaks" looks like in practice

Three protocols cover almost the entire production estate, and DeskVNC's dvv control plane speaks all three.

RDP for the helpdesk path. A Windows helpdesk, a pooled VDI desktop, a Windows jump host and a hardened Windows server all publish RDP for remote administration, with NLA, RemoteApp, resolution control, and the usual codecs. The agent opens a saved host over RDP through the same gateway the operator uses.

VNC for the Linux and Mac path. Linux desktops and macOS workstations ship a VNC server in the box. The RFB core in DeskVNC speaks RFB 3.3 through 3.8, every common encoding, VeNCrypt, RA2 and Apple authentication, and continuous updates, verified against x11vnc, TigerVNC, QEMU, RealVNC and macOS Screen Sharing.

SSH for the server path. Linux and BSD servers speak SSH, the bastion speaks SSH, and the entire server half of an estate is reachable over one terminal protocol. The SSH core in DeskVNC gives a terminal that survives a drop, SFTP transfers, tunnels, and PuTTY key files. When the path to a Linux or Mac box is through a bastion that exposes SSH only, the same login tunnels VNC and clipboard over a direct-tcpip channel.

Across all three protocols, the listener on the remote is the one that shipped with the operating system, the one the operations team already maintains, and the one the security team has already approved. Nothing is installed on the remote.


The agent experience, structurally

The agent lives on the operator's laptop, where the operator already controls what is installed. From there the agent talks to the dvv MCP server that sits inside the DeskVNC client. The client owns the protocol connection to the remote. The agent just decides what to type and where to click.

A typical four-call loop over a remote that has refused a runtime install looks like this:

dvv_hosts   {}
dvv_open    {"hostId": "<id>", "perceive": true}
dvv_control {"limbId": "...", "action": "acquire"}
dvv_screen  {"limbId": "...", "form": "full", "scale": 0.25}
dvv_click   {"limbId": "...", "x": 700, "y": 400, "generation": 1}
dvv_screen  {"limbId": "...", "form": "damage-crop"}
dvv_type    {"limbId": "...", "text": "notepad", "wpm": 3000}
dvv_key     {"limbId": "...", "keys": "meta+r"}

The first call lists the saved hosts. The second attaches a mirror and reports its size and state. The third takes an exclusive lease. The fourth reads the frame the agent is reasoning about. The fifth lands a click whose coordinate carries a generation read from the most recent screen, so a click computed against a stale frame is refused before it reaches the wire. Round-trip for the whole observe-then-act cycle, measured on a real 1920x1080 Windows desktop over LAN, is 19 ms.

Twenty-five tools are declared by the dvv manifest, including the group family dvv_group_open, dvv_group_list, dvv_group_run, dvv_group_grow, dvv_group_shrink, dvv_group_close for addressing several machines as one. Every machine is its own limb with its own lease, so ten machines are ten independent loops.


The safety property at machine speed

Speaking a protocol the remote already speaks is necessary, but not sufficient. The agent must also be unable to act on a screen it has not seen, unable to act on a screen that has since changed, and unable to keep control once a person at the remote wants the machine back. Three mechanisms give those guarantees.

The lease model. Every machine is its own limb with its own lease, acquired with dvv_control in acquire mode. While the lease is held, no other input can race in. A person at the remote can take the wheel at any moment, and taking the wheel revokes the lease.

The generation fence. A click is a coordinate plus a generation read from the most recent dvv_screen call. A click into a screen that has since resized is refused with GEOMETRY_CHANGED. A click into a screen that has since repainted significantly is refused with SCREEN_CHANGED, and the agent has to read the frame again.

Human takeback. When a person at the remote wants control, the lease is revoked and the agent receives LEASE_REVOKED. The right response is to call dvv_status and read lease.human_took_over. A value of true means a person is driving now, and the agent stops. The same four error codes cover the only conditions under which a coordinated loop has to pause: LIMB_GONE (list limbs and reopen), GEOMETRY_CHANGED (read again), SCREEN_CHANGED (read again), and LEASE_REVOKED (a person took control back).


When the protocol path is not the right fit

The protocol path is one of several right answers, and naming the cases where it is the right one is more useful if the other cases are named too. There are four classes of work where an installed agent is the obvious right answer.

Headless background work with no screen. A job that runs as a service on a server, never draws a window, and never needs a person to look at it is the natural fit for an installed background agent. The protocol path assumes there is a screen to read, and the work is better expressed as a service that produces structured output.

System-level work that needs kernel or driver access. Patching a kernel module, installing a driver, or modifying a service that runs below the display stack is the natural fit for an installed agent that lives at the same layer as the work. The protocol path reaches the user surface, and work that lives below it is the installed agent's home territory.

Long-running unattended automations on machines the operator owns outright. A developer laptop, a personal workstation, a build server, or a CI runner is the natural fit for an installed agent that lives on the same machine as the work. On a machine the operator already controls, an installed agent is a perfectly good tool.

Workflows that already centre on an installed agent. Programmes built around a runtime install for years, with their own scheduling, audit trail, and control plane, are the natural fit for the installed agent that already lives in the programme. Replacing one with the protocol path is a refactor, not an upgrade.

The protocol path is not in competition with the installed agent path. Each is the right answer for a different shape of work, and the operator picks the one that fits the machine in front of them.


Read more