Green
Passes on its own. You never see it.
Yellow
Waits for you. Can become “always” in this session.
Red
Waits for you. Never becomes “always”.
Green
The entire list. There is nothing else:cat to ask for permission.
Red
Note the detail on
rm: rm -rf, rm -fr and rm -r -f are all red. But rm file.txt is yellow — deleting a file inside the worktree is normal agent work.
And the pipe into a shell is what catches curl ... | bash even when it’s written so that curl isn’t the first token.
Yellow
Everything else. Including an empty command.Leaving the worktree paints it red
Regardless of the command, any token that starts with/ or ~/ and resolves outside the session’s worktree escalates to red:
cargo build 2> /dev/null stays yellow instead of escalating.
The same goes for writes: writing inside the worktree is green; escaping it — via an absolute path, via ../, or through a symlink pointing outside — is red.
By tool
The network is always red because it is the way out: it is how content from your disk would turn into an outbound request.
On Codex,
apply_patch is classified by the worst path it touches — a patch with ten files inside the worktree and one outside is red.
What you answer
When something is waiting on you, TYBA notifies you and the session stays blocked until the answer.- Green and yellow
- Red
What “Always” really means
- It holds while the session lives. Closed, dead.
- It matches the exact string: allowing
cargo testdoes not allowcargo test --release. - It never accepts a red.
What never even gets asked
main or master is refused by the core. It doesn’t become an approval request, it doesn’t show in the inbox, there is no button. The agent gets the error directly:
HEAD:main, +main and the like fall under the same rule.
Fail-closed
If the session dies with pending requests, all of them become denied. If the approval channel breaks, the default is deny. There is no path where an infrastructure failure turns into permission.See also
- Platforms — what the sandbox guarantees on each system
- Repository configuration — the environment the agent receives