The jail and undo
On Linux (bubblewrap) and macOS (Seatbelt), myth/acc runs every agent's coding tool in a filesystem jail. The whole system is read-only except the project, tool state, build caches and added folders. Before each turn, a hidden git snapshot enables one-click undo. The jail guards against accidents, not hostile code.
What a jailed agent can write to
- Its project folder.
- The coding tool’s own state.
- Build caches:
~/.cache,~/.npm,~/.cargo/registry,~/go/pkgand similar. - Your outbound logins (GitHub, GitLab, SSH, Cloudflare, Vercel, AWS, etc.) so agents can push and deploy. Toggle any off in Settings › Permissions.
- Extra folders added from the agent’s project chip.
Everything else on the machine is read-only, including the tool’s own hooks and settings, so an agent cannot plant commands that run outside the jail.
Host services that escape isolation (session bus, systemd and container engines) are also blocked. ssh-agent follows the SSH switch, the desktop keyring has its own switch, and Docker stays off unless explicitly enabled.
Because of this boundary, jailed agents skip edit and command prompts. The only exception is Plan mode, where you approve the plan.
Undo
Before each turn, the daemon snapshots the project into a hidden git ref. Turns that modify files end with Changed N files · View · Undo:
- View opens the diff.
- Undo restores files to before that turn (and can itself be undone).
What it does not do
- Logins and network stay usable. Enabled logins let agents push or deploy, and the network is open. Other tools’ logins and myth/acc’s own files stay hidden.
- Personal data stays hidden. Browser profiles, password stores, keyring files, shell histories, mail, messengers and unmanaged credentials (like
.pgpassor rclone) are always blocked. Other home files, including.envin other projects, remain readable. - Outbound actions cannot be undone.
git push, deploys and API calls cannot be reversed by a snapshot. - Snapshot limits. Requires git, skips ignored files, and keeps the last 20 per agent. Restoring reverts the agent’s folder (including overlapping edits by other agents), while leaving commits intact.
- No
sudoinside the jail. Install system packages from an unjailed Terminal window. - Home folder projects are unjailed. An agent opened directly in
~asks before every edit and command. - Only the agent is jailed. Terminal windows and
!commandsrun outside the jail. - Terminal view keeps CLI settings. It runs jailed, following that tool’s own approval settings.
- Delegation stays in bounds. Spawned agents can only open inside the parent’s project or added folders, never in credential or myth/acc folders.
Requirements
- Linux: requires
bubblewrapand unprivileged user namespaces (Ubuntu 24.04+ restricts these via AppArmor). - macOS: built in via
sandbox-exec(Seatbelt). Three differences from Linux: processes stay visible (only cross-process signals are blocked), Keychain remains reachable for Claude Code, and container sockets stay closed unless Docker is enabled. - Windows: no native jail yet. Use WSL 2 for jailing.
Without a working jail, agents prompt before every edit and command. Check Settings › Machines for status, or Accounts for setup commands. Set MYTHACC_NO_JAIL=1 to disable jailing manually.
Rules you set
Settings › Permissions configures blocked commands (e.g. rm -rf, git push --force), protected paths (e.g. .env), and allowed models and tools across the entire canvas.
See also Security for what stays local and what the server stores.