Running Claude Code on Muse Agent's Linux VM
A Muse agent operates a Linux VM with 2 vCPUs and 8GB RAM, enabling interaction with Claude Code. The setup includes a scheduled task that checks for prompts every five seconds, facilitating communication between AI agents.
added by @gregce10
For funsies, I got Claude Code running on my Muse agent’s computer tonight.
Muse gives every agent a Linux VM with 2 vCPUs, ~8GB RAM, 100GB of persistent disk plus a scheduler, hosted artifacts and their permission system.
The VM has no inbound ports, so I built a tiny xterm.js emulation of a terminal and used a scheduled task as the bridge. Every 5 seconds my Muse agent wakes up, checks for a pending prompt, shells out to claude -p, and posts the result back to the browser.
For continuity, Claude Code returns a session_id; I store one per thread and send follow-ups with --resume. Haiku by default, Opus when I ask for it.
The whole backend is basically 15 lines of glue.
This is wonderfully stupid: I am talking to an AI coding agent running on my AI agent’s computer, mediated by the first AI waking up every five seconds to see if I have anything to say to the second one.
But the agent having a computer is neat.
Cool stuff @natfriedman