Guides

Agents in eggs

Give an agent a whole computer that is not yours, then attach Claude or Codex to it with one registration. Treat agents as untrusted code. Inside an egg, an agent has a shell, files, screen, and the network policy of your choosing — and nothing of yours: no shared kernel, no host filesystem, no keychain. Delete the egg and the mess is gone.

Four things you get for free:

  • Blast radius: experiments stay inside the machine.
  • Undo: snapshot before risky steps; restore is instant and total (RAM + disk + devices).
  • Eyes and hands: screenshots give the agent visual feedback; click/type/key give it a desktop, not just a shell.
  • Reproducibility: the same egg boots the same machine every time — agent runs are replayable.

Attach an agent

egg-mcp, Egg's MCP server, comes with the app. Sign in to Egg first, in the app or with egg login; egg-mcp won't start without it.

claude mcp add -s user egg -- egg-mcp

-s user makes Egg available in every project, not just the folder you ran it in. In the desktop app, the MCP menu's Copy Claude config gives the app's server instead:

claude mcp add --transport http egg http://127.0.0.1:7777/

Both clients reach the same eggs, with the same tools.

Then a session looks like this:

agent → image_pull("learn/agent-lab")          ✓ pulled + signature verified
agent → vm_start(...)                          ✓ VM booted
agent → vm_exec("pytest /opt/repo")            ✗ FAILED — 1 of 1
agent → snapshot_take({"label": "before-fix"}) ✓ saved
agent → vm_exec("pytest /opt/repo")            ✓ passed

Headless works: agents drive eggs with no window open (egg run <egg> --headless). The lab egg learn/agent-lab is egg/agent-base plus a small repo with a failing test — built for exactly this. Try it: run the lab, attach Claude or Codex, ask it to make the test pass.

Next: The agent's tools