Zeo, home

settings

theme
font size
font

features / around the editor

The agent sandbox

Run the agent inside a jail per project, with the memory, CPU and folders you allow, all set from one settings page.

patches
0057 (external), 0141 (external)
since
Zeo 0.5.0
recorded on
Zeo 0.27.0, scripted agent, no model

in the changelog

Every changelog entry for patches 0057, 0141, newest first, as written.

v0.19.2

  • changed:The agent sandbox ships in every Linux build: USE ai-jail is on by default for app-editors/zeo, and zeo-bin, the packages and the tarball include it (zeo-bin's USE ai-jail, on by default, pulls in sys-apps/ai-jail). It turns nothing on by itself: each project's lock does. Windows leaves it out; ai-jail is Linux-only (patches 0057, 0141).
  • changed:Without ai-jail installed, the thread's sandbox lock is disabled and its tooltip says what to install, and the Agent Sandbox settings cannot switch the sandbox on (they can still switch it off) (patch 0141).
  • fixed:Turning the sandbox on or off and restarting the agent from the lock icon no longer fails with "Resource not found": the conversation is carried into the Claude config directory the restarted agent uses, so it continues where it was, and a thread with nothing to continue yet starts a new session (patch 0141).

v0.19.1

  • fixed:Logging in to a jailed agent from Zeo works: the login, which runs outside the jail so the browser can complete it, now writes to the project's own Claude config directory, where the jailed agent reads it. Before, the login went to ~/.claude and the agent kept answering "Authentication required" (patch 0141).

v0.19.0

  • added:Resource limits for the agent sandbox: memory, CPU and processes for the whole jail (by default 8 GB, four CPUs, 4096 processes), set in agent_sandbox.limits and per project; 0 turns one off. If the installed ai-jail cannot apply them the agent does not start, and says what to install (patch 0141).
  • added:Each jailed project keeps its own home, /tmp and Claude login on disk, under agent_sandbox.state_root (/var/tmp/zeo-jail), instead of sharing ~/.claude-jailed (patch 0141). A project logs in once: CLAUDE_CONFIG_DIR=<its folder>/claude claude.
  • added:A disk quota for the jail (agent_sandbox.limits.disk_quota, off by default): past it the agent is paused, not stopped (its whole jail is frozen), and the thread shows "Paused: disk quota" with Resume and Stop (patch 0141).
  • added:A Stop button beside the sandbox icon ends a jailed agent and everything it started (patch 0141).
  • added:The Agent Sandbox settings page sets the limits per project, picks writable folders with Choose Folder…, shows the project's state folder with its login command, and its generated command carries the limits and the state folder (patch 0141).

v0.13.0

  • fixed:Turning the agent sandbox on no longer leaves the lock looking closed while the agent still runs outside it: the lock shows the change as pending, in the warning colour, and a click restarts the agent inside the sandbox, resuming the thread; with a turn running it asks first (patch 0057).

v0.6.1

  • changed:Connecting to an agent now tries ACP v2 first and falls back to v1. Claude Agent (Plus) answers v1, so it keeps working, but each connection briefly starts a second adapter process. Under ai-jail the v2 attempt runs inside the jail like the v1 one: in the jail's working directory, with its cleared environment, never through your login shell (patches 0001, 0057).

v0.5.0

  • added:An Agent Sandbox for the Claude adapters, under USE ai-jail (off by default). Settings → AI → Agent Sandbox (ai-jail) has a per-project switch "Run agents in ai-jail for this project", a default for other projects, writable folders, allowed hosts and the generated command, read-only and copyable. With the switch on, Claude Agent (Plus) and Claude Agent TUI start through ai-jail: the project is writable, its .git and .zed are read-only, Zeo's own settings and ~/.claude are out of sight, and only the hosts you allow are reachable. If ai-jail is missing or the configuration is unusable, the agent does not start and the thread says why. Turning the jail off always asks first, and Cancel is the default button. The settings live only in your user settings file, which the jailed agent cannot see (patch 0057).
  • added:A lock icon in the agent panel toolbar shows whether the thread's agent was started inside the sandbox, with the ai-jail version, writable folders, allowed hosts and forwarded ports in its tooltip. It turns to the warning colour for an ai-jail older than 2.4.0, and says when the settings changed and the agent needs a restart. Click it to open the Agent Sandbox page (patch 0057).
  • added:Palette commands agent sandbox: toggle, agent memory: status and agent memory: open project memory (patch 0057).