# Choose a permission mode (/permission-modes)



The mode decides what the agent may do without asking you. It shows on the rule under the prompt, and each project
starts in the mode you last left it in. Debug is the exception: it is for one problem, so it isn't kept.

## The modes [#the-modes]

| Mode         | Runs without asking                                                                                               |
| ------------ | ----------------------------------------------------------------------------------------------------------------- |
| Manual       | Reads and a few safe commands                                                                                     |
| Accept edits | Also file edits in the project. `rm`, `rmdir`, `mv`, `cp` and `sed` still ask. The default in a new project       |
| Plan         | Reads only. The agent works out a plan and asks before it starts                                                  |
| Auto         | Routine work runs; a safety check blocks actions beyond your request, such as force pushes or sending secrets out |
| Full access  | Everything: edits, commands, commits, pushes and changes outside the project. The agent makes its own calls       |
| Debug        | What Accept edits runs. The agent [finds why something fails](/debug) and fixes it only when you say so           |

## Switch modes [#switch-modes]

Press `shift+tab` to step through the modes, or type `/mode` to pick one:

```text
+- Mode Claude ----------------------------------------------------------------------------+
|   1. Manual                                                                              |
|      Asks before every edit and every command outside a safe list                        |
| > 2. Accept edits                                                                current |
|      Edits files in the project without asking; asks before risky commands               |
|   3. Plan                                                                                |
|      Reads and plans; changes nothing until you approve the plan                         |
|   4. Auto                                                                                |
|      A safety classifier lets routine actions run and stops risky ones; writes outside   |
|      the project still ask, and commits too unless /commit-approval is off               |
|   5. Full access                                                                         |
|      Asks nothing: edits, commands, commits, pushes and files outside the project all go  |
|      ahead, and the agent makes its own calls                                            |
|   6. Debug                                                                               |
|      Finds why something fails: traces the code, adds diagnostics and reads what they    |
|      show; fixes only when you say so. Asks as Accept edits does                         |
+------------------------------------------------------------------------------------------+
| Enter select · Up/Down move · Esc cancel                                                 |
+------------------------------------------------------------------------------------------+
```

`/mode plan` switches straight away.

## Full access [#full-access]

Full access is for when you'd rather not be asked at all. Nothing waits for you: the agent edits, runs any command,
commits, pushes and changes files outside the project, and it is told to make the calls it can itself and to say in
its report which ones it made. It asks only when it is blocked on something only you can tell it.

The first time you pick it, Jinion says what it lets the agent do and asks you to turn it on; it doesn't ask again.
`shift+tab` never lands on it, so a key pressed by mistake can't turn every check off: pick it from `/mode`, the menu
under the desktop app's prompt, or with `/mode full`.

<Callout>
  Nothing stops a mistake in Full access before it happens. Use it on work you can get back, such as a project under git
  with everything committed, or in a [worktree](/worktrees).
</Callout>

<Callout>
  Auto needs a model that supports it, such as Opus or Sonnet. With another model the agent runs in Manual, and the
  rule under the prompt says so. The project keeps Auto for next time.
</Callout>

## Answer a permission request [#answer-a-permission-request]

When the agent wants to do something the mode doesn't allow, the permission panel takes the prompt's place:

```text
+- Permission -----------------------------------------------------------------+
| jinion wants to run a command                                                |
|   $ pnpm add zod                                                             |
|   Adds zod to validate the request body.                                     |
|                                                                              |
+------------------------------------------------------------------------------+
| > 1. Yes                                                                     |
|   2. Yes, and don't ask again for `pnpm add:*` in this project               |
|   3. No                                                                      |
|      Press n to tell jinion what to do instead                               |
+------------------------------------------------------------------------------+
| Enter select · n note · Up/Down move · Esc stop the turn                     |
+------------------------------------------------------------------------------+
```

| Choice                         | What happens                                                         |
| ------------------------------ | -------------------------------------------------------------------- |
| Yes                            | Runs it this once                                                    |
| Yes, and don't ask again for … | Saves the rule, such as `pnpm add:*`, for this project               |
| No                             | Tells the agent no. Press `n` first to say what it should do instead |
| `esc`                          | Stops the turn                                                       |

A long command scrolls in its own area above the choices: use `shift+up` and `shift+down`, or the wheel.

Rules you save live in the project's `permissions.json`. See [The \~/.jinion folder](/reference/jinion-folder).

## Plan first [#plan-first]

In Plan mode the agent reads, thinks and writes a plan without changing anything. When the plan is ready, it shows in
the conversation and the plan panel asks how to go on:

```text
+- Plan -----------------------------------------------------------------------------------+
| Ready to start? The plan is above.                                                       |
|                                                                                          |
+------------------------------------------------------------------------------------------+
| > 1. Yes, and use auto mode                                                              |
|      A safety classifier lets routine actions run and stops risky ones; writes outside   |
|      the project still ask, and commits too unless /commit-approval is off               |
|   2. Yes, and accept edits                                                               |
|      Edits files in the project without asking; asks before risky commands               |
|   3. Yes, and approve each edit                                                          |
|      Asks before every edit and every command outside a safe list                        |
|   4. No, keep planning                                                                   |
|      Press n to say what should change                                                   |
+------------------------------------------------------------------------------------------+
| Enter select · n note · Up/Down move · Esc stop the turn                                 |
+------------------------------------------------------------------------------------------+
```

Pick how freely to carry on, or keep planning and press `n` to say what should change.

## What always asks [#what-always-asks]

In every mode but Full access, Jinion asks before:

* a commit;
* a change to a file outside the project, through the file tools or through commands that write (`>`, `tee`), change
  (`rm`, `mv`, `chmod`, `sed -i`) or copy (`cp`, `ln`) there.

These requests have no "don't ask again" choice. Temporary folders such as `/tmp` don't count as outside. In a
[worktree](/worktrees), the project is the worktree, so a change to your own checkout asks too.

## With Codex [#with-codex]

Codex keeps the same modes, through its own sandbox:

| Mode         | On Codex                                                                                    |
| ------------ | ------------------------------------------------------------------------------------------- |
| Manual       | Reads run; every edit and every command that writes asks                                    |
| Accept edits | Edits and commands run inside the project; a commit, a write outside it or the network asks |
| Plan         | Codex's plan mode: it reads, writes a plan, and asks before it starts                       |
| Auto         | Codex's own reviewer answers what would ask, and stops what goes beyond your request        |
| Full access  | No sandbox, and nothing asks; takes effect from the next turn when switched during one      |
| Debug        | As Accept edits, with the agent working as Debug                                            |

"Don't ask again" on Codex lasts for the conversation. In Auto mode Codex's reviewer, not Jinion, decides about commits
and writes outside the project, so `/commit-approval` doesn't apply there.

### Stop asking before commits [#stop-asking-before-commits]

```text
/commit-approval off
```

Jinion stops asking before commits in this project. A commit then runs as any other command does in the mode you are
in: auto mode lets it run, the other modes still ask. `/commit-approval off global` does the same in every project,
and `/commit-approval on` asks again. A project's own setting comes before the global one.
