Engines

An engine is the coding agent CLI a run uses. Nolzu runs three of them: Claude Code, Cursor and Codex. It starts each engine's own binary, unchanged, with the login you already have, and it never reads, stores or passes on that login. Each run counts against your own plan or API key, under that vendor's terms. Nolzu is not made by or affiliated with Anthropic, OpenAI or Anysphere.

Each section below says what Nolzu runs, which phases the engine can run, how a run continues, how a second login works, and what Nolzu knows about usage limits. These CLIs change their flags between releases, so a newer version can behave differently. See Compatibility for what was tested.

Which engine runs which phase

Implement is the one phase that changes the project. Every other phase is read-only: it reads the project and writes its own notes in the card folder, .tasks/<key>/. The wrap-up, Optimize, Learn this project and Learn your repositories also write the project's knowledge folder. An engine runs a read-only phase only when something the model cannot turn off holds it there. That is Nolzu's wall, which the next section describes.

Where the wall starts, on macOS or on Linux with bubblewrap, all three engines run every phase. Where the wall cannot start, on Linux with no bubblewrap or with user namespaces blocked:

  • Claude Code runs every phase, held by its guard hook, and the secret files are not hidden.
  • Codex runs every phase under its own sandbox, and the secret files are not hidden.
  • Cursor runs only Implement.

When a row of Settings / Models or on a card's Settings tab names an engine that cannot run its phase, the row says so. A forward drop onto that stage is refused with the same sentence, so the run never starts. The sentence names the check that failed, and Settings / Engines says per engine which phases this machine runs and why.

New project asks for one engine that runs every phase on this machine. Where the wall starts, any of the three does. Where it cannot, Claude Code or Codex is needed. Every engine gets its prompt on stdin and never in its argument list, so the ticket text does not show in a process listing.

Walls

Every run, on every engine, is held by one operating-system wall around the whole engine process: sandbox-exec on macOS and bwrap (bubblewrap) on Linux. Inside it, Nolzu turns each engine's own sandbox off, because a macOS sandbox cannot start inside another one. The Wall guide says what a run may write and read, what stays hidden, what happens where the wall cannot start, and the project settings that change it.

A project's own phase instructions

A project can add its own instructions to any phase, such as "plan.md must also have a Risks section". Each phase has one Markdown file in the project folder, .nolzu/phases/<phase>.md, for example .nolzu/phases/plan.md. It is part of the project repository, so commit it to share it. Settings / Phase instructions edits these files, and an empty Save deletes one.

Nolzu adds the file's text to the run's prompt under "Project instructions for" and the phase's name, so it works the same on all three engines and the shipped skills stay unchanged. It reads the file from the project folder at the start of every run, never from the card's checkout, so an edit counts from the next run. It reads the first 16 KB and tells the run when the rest was cut. The instructions may change how a run works, the language of the text, and what goes into its documents, with extra sections under their own ## headings. The last line of the block tells the run what stays as the skill writes it: the names and places of the files, the headings and field names, the ids, the review block and the verdict line.

Plan also reads the files for Implement and QA, when they exist, and changes nothing in them. It turns each rule it can check into a plan step or a QA check and names the file the rule came from, so a rule such as "every change gets a changelog line" is planned and checked.

Nolzu reads some lines of what a run writes. It reads the Files:, Tests:, Undo: and Covers: fields of a plan step, and in a project with several repositories the Repositories: line of a refine or a plan. From QA it reads the pass, fail and not reached results and the Reason: lines of the report, and the verdict line QA prints. The prompt tells the run to keep those in English, as the skill writes them, whatever language an instruction asks for.

Switch the engine of a phase that started

A session belongs to the profile that started it, and no other engine or login can pick it up. So when you change the engine of a phase in Settings / Models, or on a card's Settings tab, after a run of that phase started, what happens next depends on what you press. Take an Implement run that started on Claude Code and stopped, with Implement now set to Cursor.

These go on in the old Claude Code session, on the profile that holds it:

  • Your answer, when the run stopped on a question.
  • A message on the phase's thread, on the card's Discussion tab.
  • Fix it after a QA FAIL, and Send back to Implement with 2 comments after a review with open comments.
  • Fix on a row of the PRs tab.

They run on the model a row still names for that profile, such as the project's row when you changed only the card's, and otherwise on the model the preset gives that profile. A Discussion message runs on the model you pick in its composer. When that profile is no longer on this machine, the start fails and says so. The automatic retry after an API error happens inside the run that hit the error, so it stays on that run's engine.

These start a fresh session:

  • Retry on a failed or stopped card, on the engine the row names now: Cursor.
  • A move back and a new drop onto Implement, on Cursor too.
  • Run on and a profile, on a failed card, on the profile you pick. After a usage limit it offers only another engine's profiles.

A fresh session remembers nothing of the old one, but the work stays. The card keeps its worktree, with every change the run left there, because Nolzu commits nothing on its own. The branch and the card folder stay too, with the plan and implement/progress.md. When that file lists steps as done, the fresh run's prompt names them and tells it to run the project's checks, then go on from the first step that is not done.

Claude Code

Nolzu looks up claude on the PATH of your login shell and runs it with these flags:

claude -p --output-format stream-json --verbose
  --strict-mcp-config --setting-sources project
  --tools <the phase's tools> --permission-mode acceptEdits
  --model <model> --effort <low|medium|high>
  --add-dir <card folder>
  --settings <a file that turns Claude's own sandbox off, and names the guard hook when the project has one>
  --session-id <new id>, or --resume <session id>

The run starts in the card's checkout, and the card folder is outside it, so every run passes the card folder with --add-dir. A phase adds --mcp-config when one of the project's MCP servers is on for it. Implement and QA add one --allowedTools Bash(<command>) entry for each command the project allows, and you edit that list in Settings / Project, under Commands the agent may run.

Claude Code gets the phase instructions the way every other engine does: Nolzu writes them to a file in the card folder from the installed skill, and the prompt's first line names it. A skill file you changed in the project's .claude/skills wins over the shipped one. --strict-mcp-config and --setting-sources project keep your personal hooks, MCP servers and output style out of the run, while the project's own settings still load. This is not a clean room. The CLI's own built-in skills, commands and agents still load.

Nolzu removes ANTHROPIC_MODEL, ANTHROPIC_DEFAULT_MODEL, every ANTHROPIC_DEFAULT_<family>_MODEL and CLAUDE_CODE_EFFORT_LEVEL from the run's environment. Each of them outranks the flags, so a value left in your shell would run the card on a model the card does not show.

Read-only phases

New project writes a PreToolUse hook into the project's .claude/settings.json, and Write the project files in Settings / Project writes it again. In a read-only phase that hook refuses every write outside the card folder. The flags alone cannot limit a write to a path, and the hook runs outside the model, so the model cannot turn it off. A card's checkout holds the project's .claude/ folder only when you committed it, so Nolzu hands every run --settings with a file in the data folder that names the hook by its full path. The hook also follows each phase's own limits: QA may run the project's commands, and the wrap-up, Optimize, Learn this project and Learn your repositories may write the knowledge folder. The hook judges Write and Edit, and Nolzu's wall around the run also holds Bash. The settings file turns Claude Code's own sandbox off, whatever your own settings say, so one wall holds the run. Where the wall cannot start, the hook alone holds the run, and the run log says the run is not walled and the secret files are not hidden.

Resume

A run continues its session with --resume. Nolzu does that for every action that goes on in a session: an answer, a Discussion message, Fix it, Send back to Implement with 2 comments, a Fix on the PRs tab, and the automatic retry. Switch the engine says which profile each one uses. When a run ends on an API error (status 429, 500 or 529, or a lost connection), Nolzu waits 2, then 5, then 15 minutes by default and resumes the same session, so the work done so far is kept.

A second login

Give a profile its own folder in Settings / Engines, and Nolzu sets CLAUDE_CONFIG_DIR to that folder on every run of the profile. Log in to Claude Code once with the same variable set. Nolzu never reads the login in it.

Usage limits

Claude Code reports the 5-hour and the weekly window when a run makes a model call on a subscription login. A run in API-key mode reports none. Settings / Engines shows the last reading of each profile with the time it was seen, and the reading never leaves your machine. When a run stops on a full window that resets after the retries would be over, the card names the limit and its reset time in your own time, such as "5-hour limit, resets 19:00".

Cursor

Nolzu looks up cursor-agent on the PATH of your login shell and runs it with these flags:

cursor-agent -p --output-format stream-json
  --model <id> --trust --force --sandbox disabled
  --resume <session id>, when the run continues one

--trust is there because every card runs in a fresh checkout, and Cursor refuses a headless run in a folder you never trusted. --force is there because without it Cursor rejects every shell command and still reports success. There is no effort flag, because the effort is part of the model id. The ids come from cursor-agent --list-models. Nolzu never asks for the Auto model, because Auto lets the vendor change the model inside a run.

A free Cursor plan runs the Auto model and nothing else, so a card cannot run on a free login. Upgrade the plan, or run those cards on another engine. No command reports the plan, so Settings / Engines says this on every Cursor profile.

Cursor gets the phase instructions the way every engine does, as a file in the card folder that the prompt names. Nolzu removes CURSOR_API_KEY and CURSOR_API_ENDPOINT from the run's environment, because either one would send the run to another account or another place than the card shows. A profile on Cursor's default config folder still loads the MCP servers and other settings kept in that folder. A profile with its own folder loads only what that folder holds.

Read-only phases

Nolzu's wall holds them. Neither Cursor's plan mode nor its own sandbox is a limit, so Nolzu turns that sandbox off with --sandbox disabled and holds every run in its wall. Where the wall cannot start, Nolzu refuses every read-only phase on Cursor before the process starts. Implement then runs under Cursor's own shell sandbox, and the run log says the run is not walled.

Resume

--resume <session id> continues the session. A resumed run remembered the earlier turn.

A second login

Nolzu sets CURSOR_CONFIG_DIR to the profile's folder. Two logins were told apart this way: cursor-agent status under each folder named a different account. The model picker shows the models of the login Nolzu itself starts with. A run under another login still checks its model against that login's own list.

Usage limits

Cursor reports no usage window in its output, so the limit block in Settings / Engines reads "Not available for this engine." That is a normal state and not a gap. A Cursor run reports tokens and no cost, so the card shows the tokens only.

Codex

Nolzu looks up codex on the PATH of your login shell and runs it with these flags:

codex exec --json --ignore-user-config
  -m <model> -c model_reasoning_effort=<level>
  -c sandbox_mode="danger-full-access" -c approval_policy="never"
  -C <checkout> -

The effort is separate from the model, and its levels come from the model list, codex debug models --bundled, which works offline. --ignore-user-config keeps a value in your own config.toml from changing the model or the sandbox the card chose, and your login still works with it. Codex gets the phase instructions the way every engine does, as a file in the card folder that the prompt names.

Read-only phases

Codex runs inside Nolzu's wall with its own sandbox off, for every phase. Its own sandbox limits writes, but its modes still read ~/.ssh and .env files, and one sandbox cannot start inside another. The two -c values after the effort turn its sandbox and its approval questions off, since a headless run cannot answer a question.

Where the wall cannot start, Codex falls back to its own sandbox for every phase. A read-only run then starts in the card folder under -s workspace-write, so it can write its notes there and nowhere else. Implement starts in the checkout and adds the card folder with --add-dir. QA starts in its throwaway copy, and the wrap-up, Optimize, Learn this project and Learn your repositories add the knowledge folder as one more writable root. The plain summary pass writes nothing, so it runs under -s read-only in the checkout. The run log then says the secret files are not hidden.

Resume

codex exec resume <thread id> - continues the thread. A resumed run remembered the earlier turn, and the read-only sandbox held across the resume. The Discussion tab copies codex resume <thread id>, so you can continue the session at a terminal.

A second login

Nolzu sets CODEX_HOME to the profile's folder. That folder holds the login and the sessions together, so a session belongs to the profile that started it, and only that profile can resume it.

Usage limits

Codex reports no usage window in a normal turn, so the limit block reads "Unknown. No usage window has been seen for this profile." Nolzu cannot yet tell a Codex usage limit from another failure. A Codex run reports tokens and no cost.

Antigravity

Nolzu does not run Antigravity. Google's Antigravity FAQ says that running agy inside a third-party app is not supported on a personal Google plan, and its terms call it a breach that can suspend the account.