Choose an approval mode
Run the mode’s command from the table below. In VS Code, you can also select the approval control beside the chat input, which shows the current mode as Always ask, Manual, or Skip all, and choose a mode from its menu. Each new chat starts in Manually approve.
Switching to Skip all approvals also approves the requests already waiting, except document and schematic uploads.
Setting a goal with
/goal switches the chat to Skip all approvals while the goal is active.
Respond to a request
The request card shows the action and the files, command, or hardware it affects. The card also shows how many other requests are waiting, for example +2 waiting.
Declining also cancels the other requests waiting in the chat. In VS Code, you can also press
1, 2, or 3 to pick an option, or Ctrl+Enter (⌘↩ on macOS) to allow once. In the terminal UI, press F to review a file change full screen.
If you don’t answer a request within 10 minutes of its card appearing, it expires. Every request waiting behind it in the chat expires at the same time, including requests from subagents, so a turn doesn’t stall for 10 minutes per queued request. An expired request counts as unanswered, not as a rejection: Embedder can try the action again later or continue with other work.
Stop or decline mid-step
When you stop a turn or decline a request, Embedder records what became of each affected action, so its next turn doesn’t assume that an edit or command went through:
A command that was running when you stopped it may have partly completed. If it was changing the board, such as a flash or a hardware script, check the board’s state before you continue.
If you stop the turn or decline partway through a change-by-change review, Embedder restores the original file, including any changes you already accepted.
Review an edit change by change
In VS Code, you can keep part of a proposed file edit:- Select the diff on the request card. The proposal opens in a review tab.
- Select Accept or Reject on each change. You can also press
Alt+YorAlt+N(⌥Yor⌥Non macOS), andAlt+↑orAlt+↓to move between changes. - To decide the remaining changes at once, choose Accept all (
Ctrl+Enter, or⌘↩on macOS) or Reject all.
R on a file-edit request to review it block by block. Press Y or N to accept or reject the current block, ← or → to move between blocks, and Shift+Y or Shift+N to accept or reject all the remaining blocks.
What Allow always covers
- Shell commands inside the project. When Embedder can suggest a command rule, the option names it. In VS Code, its note reads, for example, Saves west build to your allowlist. In the terminal UI, the option reads Save west build to allowlist. The rule is added to your personal rules and applies to future chats in every project. Otherwise, the grant lets every shell command inside the project run without asking for the rest of the chat.
- Commands that touch a path outside the project. The grant covers only that exact command.
- Reading files outside the project. The grant covers that file or folder and everything under it, for the rest of the chat.
- Editing, creating, or deleting files outside the project. Not available. Each change outside the project gets its own card, and no earlier grant answers it. The card names the real location the change lands in, even when the path goes through a symbolic link inside the project.
- File edits, hardware actions, and other requests. The grant covers that kind of action for the rest of the chat. For example, allowing one file edit always also covers memory saves.
- Subagents. A chat’s grant also covers every subagent started from that chat. A subagent’s own grant doesn’t apply to the main chat or to other subagents.
- When it’s unavailable. You must approve document and schematic uploads each time, and Allow always is off while Always ask is on. In VS Code the option stays visible but dimmed, with the reason. In the terminal UI it’s hidden.
Approvals from subagents
Approval requests from the main chat and from every subagent it starts share one queue. Embedder shows the queue in the main chat one card at a time, in the order the requests arrive. A card from a subagent names the subagent that asked, and the subagent waits until you answer.
Subagent requests expire like any other request. When the card on screen expires, every subagent request waiting behind it expires too.
If the card isn’t in view when it arrives:
- In VS Code, if the chat holding the card isn’t visible, a notification names who is asking and which chat. Choose Open to switch to it.
- In the terminal UI, the subagent’s session shows Approval needed in the main chat. Press
↑to return to the main chat and answer.
What runs without asking
In Manually approve mode, a built-in allowlist of read-only commands runs without a prompt. The What runs without asking panel lists every entry, grouped as follows:
The toolchain group covers version, help, and read-only device queries only. Builds, flashing, and erasing always ask unless you add a rule for them. Any command that touches a path outside the project asks, even when it’s on the allowlist.
The Read environment variables and tool locations group can print secrets stored in environment variables. To make Embedder ask before those commands, turn them off in the panel.
Manage your command rules
Use What runs without asking to control which commands and folders skip the prompt in Manually approve mode. Your rules are personal and apply to every project.- VS Code
- Terminal UI
- Run
/approvals, or choose Configure what runs without asking… at the bottom of the approval menu. The panel opens on the Commands tab, with a banner that describes the current approval mode. - To check a command, type it under Would this ask?. The panel answers runs or asks and names the rule that decided. Nothing is executed.
- To let a command run without asking, enter a command prefix under Your rules and select Add. Select × to remove a rule.
- To make Embedder always ask before a built-in command, expand its group under Built in and turn the command’s switch off. To make every built-in command ask, turn off Let read-only commands run without asking. Your own rules still apply.
- On the Paths tab, add an SDK or toolchain directory under Allowed outside the project, such as
/opt/SEGGER. Shell commands that touch that directory then stop asking for that reason. Allowing a directory doesn’t also approve the commands that use it, and Embedder still asks before it reads files there directly.
west build doesn’t cover west flash, while west covers both. Each rule is one command, without shell operators such as ;, &, |, `, $, >, or <. A path rule must be an absolute path; your home folder and the filesystem root aren’t accepted.
The rules apply only in Manually approve mode. Would this ask? doesn’t account for Allow always grants in the current chat, and changing a rule doesn’t revoke them.
Change your personal rules in /approvals, not by editing a file. ~/.embedder/approvals.json is an older file that Embedder imports once; later edits to it have no effect.
Review project requests
A repository can include.embedder/approvals.json to share approval rules with everyone who opens it. Because anyone can commit this file, it can only make approvals stricter. It can’t grant itself new permissions.
Suggested commands and paths appear under This project asks to auto-run in
/approvals. In VS Code, the list is on the Commands tab; select Add to mine to copy an entry into your personal rules. In the terminal UI, select an entry and press Enter.
If the project file contains an error, the Files tab in VS Code, or the Files section in the terminal UI, marks it ignored and shows the problem. Embedder applies nothing from an ignored file, so fix it before you rely on its rules.