Menu

The box an agent runs in — Rohan Adwankar

rohanadwankar.github.io·about 2 months ago
#BIUFUjRK
#firecracker#microvm#agents#vm#article
Reading 0:00
15s threshold

Hacker News Discussion

One awesome product evolution is that agents (Claude Code, Instinct, Poke, etc) are moving off our local computers so that we can use them on our phones. Ultimately this is great for the customer because that means the agent companies provide us with VMs for them to run on! Here's some notes on how the major platforms work based on looking around on ws-term .

Claude Code on Your Phone

Claude Code's box is its own Firecracker microVM , a KVM guest with its own kernel, booted straight into an init written in Rust:

$ cat /proc/cmdline ... rdinit=/process_api ... --listen-vsock-port 2024 $ uname -r 6.18.5-fc-v20 # -fc- = Firecracker; a custom-built guest kernel $ ps -o comm -p 1 process_api # PID 1 is not systemd; it's a Rust/Tokio binary

process_api is PID 1 and the host's control agent living inside your VM: it mounts the disks, then listens on vsock port 2024 so the host can drive the session from outside.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.