The wall

Every engine run starts inside one sandbox that the operating system builds around the whole agent process. Nolzu calls it the wall. The agent cannot turn it off, because the wall is not part of the agent.

How it works

On macOS the wall is sandbox-exec, and on Linux it is bwrap (bubblewrap). Nolzu checks once at start whether the wall can be built on this machine, so restart Nolzu after you change something here. Each run gets exactly one wall, never two inside each other, because a macOS sandbox cannot start inside another one. So Nolzu turns each engine's own sandbox off inside it.

If the wall was found ready and then fails to start, the run does not start. There is no run without a wall on a machine where the wall works. The first line of every run log says which wall holds the run and lists the folders it may write.

What a run may write

A run may read the project and write only where its phase needs to write. The rest of the disk, your home folder included, stays read-only.

  • A read-only phase, such as Refine or Plan, writes its card folder, the engine's session folders and the temp folder.
  • Wrap-up, Optimize, Learn this project and Learn your repositories may also write the knowledge folder.
  • Implement may also write the card's worktree and its git folder.
  • QA works on a throwaway copy of the worktree, so the project's checks can write their caches there. The real worktree stays read-only, and the copy is deleted after the run.

Implement, QA and the app QA starts get the npm, yarn and pnpm caches in the caches folder of Nolzu's data folder, which the wall opens to them, because ~/.npm stays read-only.

What stays hidden

No run can read these, Implement included:

  • Your keys and logins: ~/.ssh, ~/.aws, ~/.gnupg, ~/.config/gcloud, ~/.azure, ~/.kube, ~/.docker/config.json, ~/.netrc, ~/.config/gh/hosts.yml, ~/.git-credentials, ~/.pypirc, ~/.cargo/credentials.toml and ~/.gemini.
  • The project's .env files, and the login files of the engines that are not running.
  • Your shell and REPL history, and your browser profiles.
  • The Docker and Podman sockets, because a daemon could write anywhere in your home folder. A project whose tests need Docker cannot run them inside the wall.

~/.npmrc stays readable on purpose, so a run can install private packages with your own npm login. A login kept in the macOS Keychain has no file, so the wall cannot hide it. The running engine keeps its own login.

No run can change an engine's config or hook files, or the worktree's git hooks and git config, so a run cannot plant a command in them that fires later outside the wall. In the worktree, the folders .claude, .cursor, .agents, .agent, _agents, _agent, .codex and .gemini, the file .mcp.json and .git/hooks are held the same way. Implement cannot change a repository's own .claude files, so change them yourself, outside a run.

Checks after a run

After every read-only run Nolzu compares HEAD, the refs and git status with the state before the run. Behind the wall a read-only run cannot write the checkout, so a change found then is yours or another program's: Nolzu changes nothing, and the card's Overview shows a warning with the diff, as it always does in your own project folder. After a run with no wall, in a worktree Nolzu made for the card, it puts back what changed, except files git ignores, and says so in the run log.

Some files an engine needs stay writable and could start something later, such as the MCP servers and hooks in ~/.claude.json. Nolzu compares them with the state before the run and stops the card on a change. It does the same for the files that tell git where a repository is.

git writes some files in its folders by name, such as COMMIT_EDITMSG and the reflogs, and follows a link there. So after an Implement run Nolzu looks in those places in the card's git folders, and fails the card on a link, a file with a second name or a named pipe. Each git command of Nolzu's that writes there looks again first. These checks look before git writes, not while it writes, so a run live at the same time in the same repository, such as another card's run, can still swap a folder in between. The open gaps on the Security page say more.

Each engine inside the wall

Claude Code
Nolzu hands every run a settings file that turns Claude Code's own sandbox off. In a read-only phase, a guard hook from that file also refuses every Write and Edit outside the card folder.
Codex
Runs with sandbox_mode="danger-full-access" and no approval questions, so the wall alone holds it.
Cursor
Runs with --sandbox disabled, so the wall alone holds it.

The Engines guide has every flag Nolzu passes to each engine.

Where the wall cannot start

On Linux with no bubblewrap, or where the system blocks user namespaces, the wall cannot start. Then each engine runs this way, and the first line of the run log says so:

  • Claude Code runs every phase. The log starts with "Not walled.", the reason, and that secret files such as ~/.ssh and .env are not hidden. In a read-only phase it adds that the guard hook still holds Write and Edit to the card folder.
  • Codex runs every phase under its own sandbox. The log starts with "Held by the Codex sandbox, because Nolzu's wall cannot start here.", the reason, and that the secret files are not hidden.
  • Cursor runs Implement only, under its own sandbox, and the log starts with "Not walled." as for Claude Code. Nolzu refuses a read-only phase on it before the process starts.

The project lists below do not apply there.

To get the wall, install bubblewrap with your package manager, such as:

sudo apt install bubblewrap
sudo dnf install bubblewrap

If bubblewrap is installed and still cannot start, the system blocks user namespaces, the kernel feature bubblewrap builds its wall from. On Ubuntu, allow them with:

sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0

On Debian, use:

sudo sysctl kernel.unprivileged_userns_clone=1

A sysctl setting lasts until the next restart, so put the same line in a file under /etc/sysctl.d/ to keep it. Restart Nolzu after either change.

Settings that change it

Settings / Wall shows the fixed rules under Always hidden, each group with its paths, and what leaves the machine another way. Nothing in a project can loosen them.

Settings / Project has a box called Walls with three lists that add to the fixed rules. The screen refuses a bad entry and says why, and the runner checks every entry again when a run starts.

More paths to hide
Hidden from every run, Implement included. It takes any path, such as ~/private. A path without ~ or / is read from the project folder.
Secret exceptions
The .env files of this project that a run may read, such as a .env.test your tests need. Never a path in the home folder or outside the project.
More writable folders
Folders that Implement and QA may write, for a build cache, such as ~/.gradle. Read-only phases never can.

Two more settings in Settings / Project decide what a run may do:

Commands the agent may run, in the Agent box
With Claude Code, Implement and QA run only these commands, and an empty list allows none. A * at the end allows any arguments. Codex ignores the list, and Cursor runs any command. Whatever the list says, every command still runs inside the wall.
Start the app
How QA starts each repository's app. A start script from package.json runs in a wall of its own. Your own commands run with no wall, so they can start Docker. Read them before a QA run. The Concepts guide has the details.

What the wall does not hold

The network stays open in every run, so a run can still have a side effect elsewhere: a curl -X POST, a gh pr create, or an MCP tool that writes to a ticket system. The phase prompts limit these, and for Claude Code each phase's tool list does too. A run can write anything inside the folders it may write. "Do not fix the code" in QA and "stay in the method" in every phase are prompt rules, not walls.

The Security page lists the gaps that are known and not fixed yet. The Security guide says where Nolzu keeps your data and tokens.