Permissions
An edit's approval prompt and its card in the conversation show a line diff: unchanged lines near the change stay dimmed, and within a changed line the words that differ are marked. Previews are short, and the prompt warns you when one is cut off. Press d in the prompt to read the whole change, or F4 at any time to page through this session's edits (←/→ move between them; subagents' edits are included, up to the last 100). An overwrite is compared with the file it replaces.
| Mode | Behavior |
|---|---|
default |
Read-only tools and sandboxed bash commands run freely. Edits, and commands run outside the sandbox, ask first (except a few side-effect-free commands like git status and ls). |
accept-edits |
Edits inside the working directory run without asking. Commands still ask. |
plan |
Only read-only tools run. When the plan is ready, the model presents it with exit_plan_mode; approving it switches to accept-edits or default. |
auto |
Edits inside the working directory run without asking. Anything else that would ask is first checked by a model: what it judges safe runs, and the rest asks you, with its reason. |
yolo |
Tools run without prompts. Deny rules and the file-tool project boundary still apply. |
Auto mode. auto sits between accept-edits and yolo: you are asked only about the calls that matter.
- What the check sees: the tool call, the working directory, and your last few prompts. Tool output, file contents and the model's own text are not shown to it as instructions, so text planted in a web page or a file can't talk it into approving something.
- What it allows: ordinary steps of the work you asked for whose effects stay in the project: builds, tests, the project's package manager, local git, reading documentation.
- What it sends to you: deleting or rewriting things that are hard to get back (
git reset --hard, deleting source or data), anything others see (git push, publishing, deploying, opening issues or pull requests), changes outside the project, handling secrets, downloading and running code,sudo, and anything it can't assess. If your prompt explicitly asks for one of these ("commit and push"), that counts as your approval of that action. - When it asks, the prompt shows its reason. If the check fails or times out, you are asked. A call it approved is not checked again in the same session.
- What stays the same: deny rules, allow rules, the sandbox (sandboxed commands still run without any check) and the project boundary for file tools. A plan is always yours to approve. In
larik -p, a call the check doesn't approve is denied, as any prompt is. - Which model: the session's model, at low reasoning effort; each check adds a second or two and a small cost. To use another, set
"auto_mode": {"model": "anthropic/claude-haiku-4-5"}(aprovider/modelor a routing role). Only personal config files can set this, or selectautoas the mode: a repository can't choose what approves its own commands.
The check is a model's judgment, not a guarantee. It reduces how often you're asked; it doesn't replace the sandbox or deny rules for things that must never happen.
Leaving plan mode. In plan mode the model is told it is planning. bash is blocked, even for apparently read-only commands (including graphify queries); calling it from run_code is blocked too. Use read, grep, and glob to explore instead. When the plan is ready it calls exit_plan_mode. Larik prints the plan in the conversation and asks: Yes, and accept edits, Yes, but ask before each edit, or No, keep planning, which lets you say what to change. Approving switches the mode for this session only; your saved default stays as it is. In larik -p plan mode can't end, so the model gives the plan as its answer.
Questions. When a choice is yours to make, the model can stop and ask with ask_user: a question and up to four options, its recommendation first. Pick one by number, or choose Type something else to answer in your own words. Esc dismisses the question, and the model goes on with its best judgment and says what it assumed. A question always waits for you, in every mode including yolo and auto; add ask_user to your deny rules to turn it off. Subagents can't ask. In larik -p nobody can answer, so the model decides for itself.
Rules are written as tool or tool(pattern). Bash patterns match the command, with * as a wildcard. File-tool patterns are globs on the path. Deny rules always win. Use /permissions or Permission rules in /config to add, edit, and remove validated allow/deny rules for all projects or only this project; saved changes apply immediately.
While a permission request is open, the prompt and live status explicitly show Waiting for your approval, with elapsed time since the request was created—even when it was queued or came from a background agent. That time is not presented as model execution time; approving or denying still works the same way.
Answering "always allow" writes the rule to private project settings under ~/.config/larik/projects/ (or $XDG_CONFIG_HOME/larik/projects/). If saving fails, Larik reports the error and the rule applies only for the current session.
write, edit, multi_edit and notebook_edit operate only inside the working directory. They reject symlink paths and protected project files (.git itself and the parts of it that decide what code git runs, such as hooks, config and commondir, plus .larik, .claude, and .mcp.json) in every mode. If a checkpoint cannot be saved, the write stops.
Notebooks. read shows a Jupyter notebook (.ipynb) as its cells, each with its index, id, type, source and text outputs, and names image outputs rather than sending them; offset picks the first cell. notebook_edit replaces, inserts or deletes one cell by index or id. It keeps the rest of the file as it was and clears a code cell's outputs when its source changes. Permissions treat it as edit: accept-edits allows it in the project, and edit rules cover it.
For several independent files, write_files creates them in one model turn. Each file still goes through write's permission check, hooks, checkpoint and diagnostics. If one file fails, the tool stops and reports which earlier files were already written.