Approvals
Bots read files, run commands, use a browser, and change data. The approval mode decides which of those happen on their own and which wait for you. Hexbot follows Codex and Claude Code: an operating-system sandbox is the boundary, and in Auto a review by the bot’s model decides which steps outside it need you. Set the mode in Settings, Approvals; a bot or a room can override it.
The workspace is the bot’s working directory (~/Hexbot by default) plus its artifact and attachment folders and the temp folders.
Auto
Auto is the default. Bots work freely inside the workspace, and only risky steps outside it ask.
- Shell commands run in a sandbox with no internet access and no access to local service sockets, and can write only inside the workspace. They cannot signal your other programs, and they can start only a few hundred processes, so a runaway loop stops there. Shell profiles and login items stay read-only even there; on Linux, a profile that does not exist yet is not protected when the workspace holds your home folder, and a service socket inside your home folder stays reachable (the ones in
/runand/tmpare hidden). - When a command needs the internet or must write outside the workspace, the bot says why in one sentence. Before it runs, a model reviews the step against what you asked: the bot’s own, unless you chose a review model. File changes outside the workspace, connected tools that change something, and browser page scripts get the same review.
- Routine work toward what you asked runs without a card: reading or downloading public pages, saving into the workspace or a temp folder, installing packages, builds and tests, pushing a feature branch.
- Risky steps show a card with the step, the bot’s reason and why it asks: deleting or overwriting data outside the workspace, force pushes or pushes to main, running downloaded code, sending private data or credentials anywhere, changing system settings, deploying, publishing, sending messages or paying. Approve covers that one step; Allow for now is not offered.
- What you approve counts for the rest of that turn. The reviewer reads the steps you approved since your last message, so the same kind of step, such as the next edit to the same Notion page, can run without another card. It still reviews each step, and a different kind of step asks.
- The review also asks when it fails or takes over a minute, when the step is over 20,000 characters (a connected-tool call with longer arguments always shows a card), when your messages cannot be read, and when you write or queue a message while it runs. Changing the mode or working directory while it runs stops the step. While it runs, the chat shows “Checking this step”.
- The reviewer reads your own messages, in the bot’s chat and in rooms, not other people’s. In a long chat it reads your most recent messages up to its limit and is told that earlier ones are missing; then only a step it rates low risk runs without a card, since an earlier message might have ruled it out.
- The review is a model making a judgment, not a sandbox. In Auto, internet access and changes outside the workspace depend on it. The step it reads is written by the bot, and a web page or file the bot read can plant instructions in it that talk the reviewer into allowing a harmful step. A small or local model judges less well. Choose Manual when you want to see every step outside the sandbox.
- File-tool changes to shell profiles and login items ask you instead of being reviewed; Allow for now can cover them. A full-access command that changes them is reviewed and can run without a card when you asked for that exact change. File and browser steps a code run asks for through Hexbot’s tools always ask.
- The reviewer loads no project instructions, skills or tools. Its usage counts toward chat, room and daily totals.
- By default each bot’s own model does the review. To use one model for every bot, such as a faster one, choose it under Review model in Settings, Approvals. If that model cannot answer, Auto shows a card for the step. Removing its provider puts reviews back on each bot’s own model.
- File tools change files inside the workspace without asking.
- Python code and scheduled scripts run in the same workspace sandbox without asking. Scheduling a script by an absolute path asks.
- Reads are free everywhere except credential files, which stay private.
Copilot ACP reviews use an empty working directory and a separate temporary
home, including the Copilot and XDG settings folders. They keep explicitly
configured GitHub login tokens, but do not import your saved Copilot CLI login
or configuration. If the CLI needs that stored login, or an older or custom
ACP command rejects the required isolation flags, Auto shows a one-step card
instead. Configured ACP arguments beyond --acp and --stdio also fall back
to a card. Copilot ACP currently reports zero token usage and cost, so its
reviews add no measured usage to budgets or totals. Ordinary ACP chat keeps
its existing login behavior.
Manual
Manual is for work you want to watch closely. Reads are free; every change asks.
- Shell commands run in a read-only sandbox with no internet access, without asking. A command that needs to write or reach the internet asks first, with the bot’s reason.
- Every file change asks. Every code run asks, then runs in the workspace sandbox.
- Browser page scripts and absolute-path scheduled scripts ask.
Bypass
Bypass is plain Pi, the agent runtime: no prompts, no sandbox, no credential checks. Bots can read and change anything the daemon’s user account can, including Hexbot’s own credential files and provider keys. Scheduled jobs and their delegates run in Auto instead, including scheduled scripts. HexBot, your primary bot, still asks before it deletes a bot, room, or job, changes an approval mode or a working folder, or changes a setting, skill, or connector. Reserve it for a machine you can rebuild.
Connected tools
Bots call connected tools from short scripts they run. Manual asks for every connected-tool call. Auto runs tools marked read-only freely and reviews the others first, asking only when a call looks risky or its arguments are over 20,000 characters. Adding or editing content that fits what you asked runs; deleting, sharing, and anything that notifies other people asks. The reviewer cannot check which page or file an id names, so use Manual when an edit to the wrong one would matter. Bypass never asks. Reading a resource needs no approval. In Manual, Allow for now covers that server while the bot’s agent process runs. Auto reviews each changing call again; its cards offer Approve and Deny only. Shell and file calls inside a script still follow their usual approval rules. Removing or turning off a server stops its tools at once, even in an open chat.
Connected servers are trusted code you configure. They run outside the shell sandbox, in a daemon-owned directory. Each chat, room conversation, and job starts its own process per connected server. A server receives its explicit environment settings and the runtime’s allowed environment variables, rather than every connector key. Add references for any keys it needs. New servers must use stdio or streamable HTTP; existing SSE servers work only in saved conversations that already used them. Connection problems appear under the conversation header. The last 2 KB of server stderr may reach the bot in a connection error.
Removing or disabling a connected server stops further calls in open chats, even in Bypass. Changing its configuration or credentials blocks the old connection and reconnects at the next message. Adding, removing, or turning on a server changes the bot’s chat from your next message; rooms keep the tools they started with. A background job with no visible chat or room cannot wait for approval; the bot must ask you to run that action in its chat.
Codemode scripts cannot use Node, files, or the network directly. Their model helpers can call provider APIs with the bot’s credentials and incur costs.
Answering a card
Each card shows the command or action and why it asks. Approve runs it once. Deny stops it, and the bot sees that you declined. Reviewed Auto cards offer only those two choices.
Stop cancels pending approvals, questions and Auto reviews, including the cards HexBot shows in Bypass. Requests that arrive while the turn is stopping are cancelled too. An answer accepted before Stop can finish; a card Stop has already cancelled cannot approve a step. Background results, including ones already queued before Stop, wait until Stop and the current turn or compaction finish, then run before newer messages. Steering waits too. Bots can ask again on the next turn.
When a Manual or unreviewed card offers Allow for now, it stops asking for that kind of request until the bot’s agent process restarts: after it has been idle a while, when you change its model or tools, or when the daemon restarts. For example, Manual can allow full-access commands, outside file changes, or one connected server. In Auto, unreviewed shell requests without a sandbox and host-configuration file requests can offer Allow for now. It never covers reviewed Auto steps. Nothing is saved, so after a restart it asks again. Incomplete file scans and requests the daemon raises itself, such as code runs, browser scripts and scheduling, offer Approve and Deny only.
Delegates and background jobs cannot wait for approval; actions that need it are refused.
Answer a card or a bot’s question in any app connected to the daemon: the desktop app, a browser, or your phone. The card settles in every app, and the bot shows Working again. When the bot stops waiting, for example after Stop, the card settles everywhere too. This works in rooms as well. An app that was offline catches up when it reconnects or opens the chat.
Read the command and the reason before approving. A familiar tool can still do damage with broad arguments.
Credential and browser access
In Manual and Auto, shell commands, Python code, and scheduled scripts cannot read Hexbot credential files, including device tokens in desktop-data/. They cannot write the Hexbot home except the artifact and attachment folders. Hexbot refuses a workspace or bot working directory inside its home, symlinks included. The default workspace at ~/Hexbot stays writable. On macOS the sandbox is sandbox-exec; if the operating system cannot apply the profile, the command fails. Linux uses bubblewrap after a successful startup probe.
If bubblewrap is missing or cannot start, Hexbot has no OS sandbox: a shell command, Python code, or a script can read any file you can, including credentials. Hexbot logs a warning at startup and Settings, Approvals shows a notice. Manual and Auto then require your approval for shell commands and code runs, including full-access commands; model review cannot replace that approval. Allow for now can quiet the shell prompt until the bot’s agent process restarts. Scheduled scripts refuse to run until you install bubblewrap. Hexbot checks for bubblewrap when the daemon and each conversation start, so restart the daemon after installing it. On Ubuntu 24.04 and later, the package alone is not enough: bubblewrap also needs the AppArmor profile from Install.
On Windows the sandbox is an AppContainer, the app sandbox built into Windows, with one container for each combination of mode, working folder and bot, which that bot’s conversations share. Shell commands and scheduled scripts run in it with no network access at all, not even to your own computer. They see the workspace, the bot’s output folders, Hexbot’s Python and shell, Git for Windows, and what Windows lets every sandboxed app read, such as Program Files; your user folder and the Hexbot home stay out of reach. Auto writes the workspace and the output folders; Manual writes only the output folders. Shell commands and .sh and .bash scripts run in the POSIX shell (ash) of BusyBox for Windows, which ships with Hexbot. It is not Bash: arrays and brace expansion such as {a,b} do not work. .py scripts run with Hexbot’s Python and .exe scripts run as themselves. Bypass runs commands in Git Bash, so install Git for Windows to use it. The same credential stores stay private, along with Windows’ own: browser profiles under AppData, the Windows credential, vault and DPAPI folders, _netrc and pgpass.conf. The file tools refuse network, device and stream paths, and write and edit go through the daemon, which follows no link or junction and does not change files in OneDrive or other cloud-synced folders. Windows has no full access: a command that needs the internet or a file outside the workspace cannot run in Manual or Auto, so use Bypass for it. Code runs (execute_code) refuse in Manual and Auto, and Copilot is not available on Windows. If the sandbox cannot start, Manual and Auto refuse shell commands and file tools instead of asking, scheduled scripts do not run, and Settings, Approvals says so; restart Hexbot to try again.
Credential stores stay private in Manual and Auto: ~/.netrc, ~/.pgpass, ~/.npmrc, ~/.pypirc, ~/.git-credentials, ~/.aws, ~/.gnupg, ~/.kube, ~/.docker, ~/.azure, ~/.config/gh and ~/.config/gcloud. The file tools neither read nor write them, and the workspace sandbox hides them from every program a command starts. A command you approve for full access can read them, since tools like aws or gh need their keys, but it still cannot write them. macOS protects these names even before they exist and keeps ~/.config in place so a nested store cannot be renamed out of reach. Linux protects stores that exist when a command or code run starts; a store that does not exist yet can be created by a full-access command, or by any command when the workspace holds your home folder, and one created later stays visible to a code run that is still going.
Project secrets and browser data are private the same way. Files named .env, .envrc or .env.<anything> (but not .env.example, .env.sample, .env.template or .env.dist), your keychains, and browser profiles, which hold cookies and saved passwords, are unreadable and unwritable to the file tools and to sandboxed commands. Browser protection includes Chrome Beta/unstable and Snap and Flatpak profiles. macOS also refuses secret and browser-store renames, including their scanned ancestors. When a bot needs a .env to run something, it asks for full access. On Linux the sandbox hides .env files that exist in the workspace, up to three folders deep, when a command starts.
Git metadata (.git, linked gitdir and commondir targets, bare *.git repositories with HEAD and objects, and core.hooksPath directories set by the repository or your own Git config) is read-only inside the sandbox within the scan limits below. File tools also refuse writes there. A bot changes protected metadata with a full-access command, which Auto reviews and Manual asks about first. Tracked hook scripts remain writable unless selected by a configured core.hooksPath or a hooks link in the Git metadata, and edits appear in git status. Review them before running them. When hooks, config, config.worktree or commondir in the Git metadata is a symbolic link to something in the workspace, that target is read-only too.
Linux protects repositories that exist when a command starts. Repositories created during a command are not protected on Linux. macOS filename rules also cover new .git metadata directories. Bare *.git repositories must exist when the scan starts on either platform. The scan visits workspace and output roots breadth-first through three nested folders, skips dependency/runtime folders and shared temporary roots, and has a 1,000-directory budget. It also reads at most 50,000 entries in the folders it visits. Only Linux bubblewrap commands refuse to run when a budget is exhausted and require an approved full-access retry. For execute_code, choose a smaller workspace or run the Python code through the terminal tool with full_access and a reason; a scheduled script needs a smaller workspace. Linux repositories and secrets beyond these scan limits are not covered. Manual scans read-only workspaces too and resolves secret symlinks. macOS and file tools use partial results when the budget is reached. File changes ask for approval in Auto mode when the scan is incomplete, every time: that approval covers one change and is never remembered. The cwd-ancestor Git pointer walk is unbudgeted, and macOS .git and secret filename rules still apply. File tools ask for approval if Git configuration or a directory cannot be scanned. Repository configs and their includes are parsed with the system Git at /usr/bin/git; without it, a repository with a config counts as unreadable. Your own Git config and its includes are read too, from the files Git reads: $GIT_CONFIG_GLOBAL, or ~/.gitconfig and $XDG_CONFIG_HOME/git/config, and $GIT_CONFIG_SYSTEM or /etc/gitconfig and Homebrew’s /opt/homebrew/etc/gitconfig and /usr/local/etc/gitconfig unless GIT_CONFIG_NOSYSTEM is set. A Git build that keeps its system config elsewhere, such as Xcode’s, is not read. A hooks path your config sets, such as .githooks, is protected in every scanned repository. Each config file is read once per scan, and a scan that meets more than 64 included files beyond the repository and user configs for one repository, more than 256 in all, or more than 10,000 settings, counts as unreadable and says which limit it reached. Included files and configured hook paths inside the workspace or an output folder are protected, with their ancestors up to that folder. Ones outside are already read-only to sandboxed commands; a hook path that contains the workspace, such as / or the home folder, is ignored. FIFOs and other special files in Git metadata stay locked and are never read. On Linux a configured hooks folder or included file that does not exist yet is locked through its nearest existing parent inside a repository, such as .husky for a missing .husky/_. When that parent would be a repository’s own folder, the workspace or an output folder, and is not already protected as Git metadata, the command asks for approval instead of making all of it read-only. A dangling link names the folder or file it points to. The reason names every missing target and one command that creates them (mkdir -p for folders, touch for included files), and after that commands run in the sandbox again. A .git entry, hooks folder or included file reached through a symbolic link inside the workspace asks the same way on Linux, until the link is replaced by what it points to, and hooks-link/../hooks counts as reaching through hooks-link. A link inside the Git metadata is protected with it and does not ask; a link in the workspace that it passes through, such as .githooks for .git/hooks -> ../.githooks -> store/hooks, asks. macOS locks the link itself. Python code and scheduled scripts cannot ask, so they stop with the same explanation.
On macOS, sandboxed commands cannot send Apple Events, so they cannot drive Finder or another app.
In Manual, approved Python code runs read-only too. It can write only its own output folder in the Hexbot home.
Shell profiles, ~/.gitconfig, launch agents, autostart entries and systemd user units are read-only inside the sandbox; file tools ask you before writing one, unless you chose Allow for now. File tools refuse writes under /etc and /private/etc in Manual and Auto. Commands that change these settings need full access. Manual asks; Auto reviews them against your request, and can run an exact change you requested without a card. sudo system administration stays possible with full access.
SSH private keys are private; config, known hosts, authorized keys, and public keys are not. Commands can use your SSH agent for Git without reading private keys. Reaching a remote host needs full access for the network, so Manual asks and Auto reviews ssh, scp, rsync and similar commands first.
Scheduled scripts must live in the bot scripts folder or workspace and run without provider credentials. A job that watches a URL follows the same network rules as the web tools.
Navigation and page actions require a local browser managed by Hexbot. Browsers connected through a debugging address or a cloud provider support inspection only until network interception is available. Browser code execution is unavailable without interception. Allowing private URLs still blocks cloud metadata and the daemon’s own listener.
Bot-specific browser settings override matching fields in the daemon settings. Other nested browser fields keep their daemon defaults. A bot’s explicit private-URL setting takes precedence over the daemon’s setting.
Manual scheduled scripts cannot write workspace files or artifacts. Only approved execute_code runs receive an explicit exception for their own output folder.