logoalt Hacker News

esaymyesterday at 6:13 PM4 repliesview on HN

Outside of the article's mentioned graphics development, there is no reason to isolate an agent using actual hardware. I threw together this script[0] using libvirt to give claude its own graphical desktop env to be able to do user acceptance testing with Chrome. It has full root and can do what ever. If it makes a mess, I can dump and reinstall in seconds.

0: https://gist.github.com/smith153/04b4068b5a2d7b234f1c3d5992d...


Replies

andaiyesterday at 7:55 PM

Nice. I just have

  sudo useradd agent

  sudo su agent
So it can blow up its own files, but not mine.

It was also doing some kind of headless Chrome stuff in there. I don't know how that works, but it was taking screenshots iirc.

I did also set up VNC at some point but didn't find it worth using.

>If it makes a mess, I can dump and reinstall in seconds.

This is also true of a $3 VPS, where I found it very amusing to give my agent root. What's the worst that could happen ;)

jfbyesterday at 6:40 PM

You can run macOS in a VM guest on a Mac host; Apple explicitly allows this.

show 1 reply
mmh0000yesterday at 6:26 PM

This is neat, and thank you for sharing!

I've been wanting to set up something exactly like this for my own use, but... You know, time is limited.

This is just enough scaffolding to have a little project for Monday morning!

show 1 reply
hangrybear666yesterday at 9:45 PM

You mean you had claude throw together a script because this is heavily generated. Lost interest after about 250 lines, it's just tiresome reading through this incoherent amalgamation

show 2 replies