Skip to content

Permissions and safety

Every session runs in a mode, which decides when the agent has to ask you. Choose it from Mode under the message box; a change applies from your next message.

ModeWhat the agent may do without asking
ManualNothing that changes anything. It always asks first. This is the default
Accept editsEdit files in its own folder. Commands, and edits anywhere else, still ask
PlanNothing yet: it writes a plan for you to approve before making changes
AutoMost things. Each action is checked, and you are asked when it is unclear
Bypass permissionsEverything. It edits files and runs any command without asking

Auto means something slightly different for each agent, because each has different controls (see Agents):

  • Claude Code decides action by action, and asks when unsure.
  • Codex works inside its sandbox without asking, and asks to leave it.
  • OpenCode edits and runs commands without asking, and asks before a command reaches outside its folder.

Bypass permissions is confirmed each time you turn it on, for that session only. A new session never starts in Bypass: after one, the next starts in Auto. Unlike Auto, Bypass has no sandbox and no approvals at all, so use it only where a mistake costs nothing.

When an agent needs permission, an Approval needed card appears with what it wants to do and Allow or Deny. Everything waiting on you is also collected on the Needs you page.

Shell commands from Claude Code sessions that were started by another session, and from every Codex session, run in a sandbox: they can write in the session’s own folder and nowhere else.

When a command needs to reach outside it, the card offers more choices:

ChoiceEffect
AllowThis once
Allow all outside the sandboxFor the rest of this session
Always allow this commandAdds that exact command to your always-allowed list
Always allow this folderAdds that folder to your always-allowed list

Settings → Permissions → Always allowed outside the sandbox holds commands (such as git commit) and folders (read only, or read and write) that never need asking. It applies to every project.

Only you can add to this list, from the card or in Settings. No agent can. A command on the list is allowed only when it is the whole command: not chained with another, and not pointed at a path outside the session’s folders.

If your repository signs commits, a sandboxed session needs to reach your signing keys. Settings → Permissions → Commit signing lets it read them and talk to your key agent, never write there. It is on by default. You are still asked for your passphrase as usual.

These keep sessions from stepping on each other. They apply in every mode.

If an agent tries to edit a file that belongs to a different project in Kestrel, the edit is refused and the agent is told why. It then asks a session in that project to make the change, and reports the outcome back to you in the conversation you asked in.

Files that belong to no project (a dotfile, a config file elsewhere) are edited by the session itself, under its mode.

You can turn this off with Settings → Workflow → Keep each project’s edits in its own session. It is on by default. It covers file edits, not shell commands.

An agent cannot edit files in another session’s worktree. It asks that session to make the change instead.

The one exception is a part of a task handed to another agent in the same project: a design or build helper works in the original session’s worktree, and the original session waits until the helper hands back. A reviewer in the same worktree only reads.

A session that another session started:

  • starts in its parent’s mode, except that it never runs in Bypass (it runs in Auto instead);
  • stays inside its own worktree, whatever its mode;
  • cannot read, search or change the file where Kestrel keeps the tracker keys you pasted for Tickets. This holds in every mode, and the always-allowed list cannot lift it.

The agents differ in how firmly the last rule can be held (see Agents). A Claude Code session is held by the sandbox. Codex and OpenCode are refused when Kestrel sees the attempt, but a command Codex runs inside its own sandbox in Auto is not seen first. The file is encrypted, so what such a command could read is not the key itself.

Two things are never done on an agent’s own word:

  • A review of somebody’s pull request is posted from the review card, when you choose Submit review. The only exception is the setting Review and reply on their own, which you confirm before it is turned on. See Pull requests and reviews.
  • A ticket is changed only when you allow it. An agent can propose a status change or a comment; it cannot make one. See Tickets.

A session started without a project works in a scratch folder. To change a project’s files it asks to move there: Move this session to project? On Move it, it keeps its conversation and gets a worktree in that project when its turn ends.