Hacker News new | ask | show | jobs
by egeozcan 7 days ago
Couldn't agents just Remote Desktop or ssh into them?

For seriously older stuff, I'd run the disk image in a VM.

If they interact with legacy systems and/or virtualizing is no option and/or they have no internet access, a simple USB-to-COM adapter can create wonders. I remeber doing that on a win3.1 machine using TERMINAL.EXE many many years ago.

3 comments

In general, I've wondered whymost (all?) harnesses perform the API calls to the provider from the same machine that runs the tools. Why not have a client/server architecture? Then one session could talk to as many tool harnesses as it wanted to and you wouldn't have this kind of arbitrary limit of the session being tied to one specific workspace.
My harness actually has 3 distinct components: the LLM gateway, the agent session manager, and the tool server, and they can be run on different machines. The most obvious use case is the LLM gateway being a central router for all provider queries with multiple machines running the agent sessions.

The agent session manager talks to the LLM gateway over HTTP using a standard internal protocol, then the gateway has adapters for each upstream provider and translates between their external API format and the standard internal one.

The tool server is a separate jar running as a separate server process with its own systemd unit and the agent session manager talks to the tool server over a beanstalkd queue. The primary motivation for having 2 processes was total separation for unprivileged agent tool call execution (ie. the tool server systemd unit runs as a user with no sudo whereas the agent session manager can execute as root, so the user can run scripts through the interface that do things like install packages and access secrets, but the agent can't do that.

The tool server could just as easily be talking to beanstalkd over a Cloudflare tunnel or ssh port forward, though, and a session could be routed to different machines, allowing execution of tool calls in different environments within the same context window/agent session.

I regularly remote into my Hermes harness with a variety of means (Android client, Whitenoise, mostly). It's not that hard to then use sshfs to mount a shared filesystem in either direction. It's not THAT easy either because Google is draconian about Android but with root or just Graphene you've got generally what you're looking for (it may be possible without root but it's not nearly as smooth as it should be). The machine a system is on and the filesystem it is working on don't need to be one and the same, and the machine needn't even really know this.

Is this not trivial with other harnesses or something?

I had ChatGPT install NTFY over RDP. All I had to do was assign the DNS. So, yes. This is totally an option.

The reason I had chatgpt install it wad because I could just tell these guys weren't Windows developers and I expected issues. And honestly, I wasn't in the mood for dealing with issues. I had other stuff to do. I probably should have had it submit bug reports because I could see it struggle with things it should not have encountered.

A typical scenario is that you walk into a small company and find they're still using Windows 7 or an early version of Windows 10. Then you have to help them deal with all sorts of problems.