Tools and permissions
Built-in tools by group, the read_only / mutating / destructive risk classes, tools.policy and approvals, per-session bypass, MCP gates and subagent caps.
Every tool call carries a risk class. tools.policy maps each class to an
action; ask puts a prompt in front of you and the call waits. This page
lists what the harness ships, how the gate decides, and how to answer or
turn off prompts on each surface.
Risk classes
| Risk | Meaning | Default action |
|---|---|---|
read_only | reads, searches, screenshots, questions to you | allow |
mutating | writes files, sends input, changes state that can be undone | ask |
destructive | runs arbitrary commands, deletes, removes servers or skills | ask |
The risk is fixed per built-in tool at compile time. The only per-tool
override is for MCP tools through mcp/config.yaml (below), where a fourth
value off exists; off is a gate, not a risk, and means "not registered at
all".
Built-in tools
Names are exact. Risk is the default class; direct marks tools the model
always sees as a tool definition even with the Python runtime on (the rest are
callable as async functions inside python).
Shell, jobs, files (tools plugin)
| Tool | Risk | Notes |
|---|---|---|
shell | destructive | brush bash in-process at the session cwd; output within tools.job_grace_secs comes back inline, otherwise a job id and a later <job_result> |
start, send, screen, wait | destructive, mutating, read_only, read_only | a command on a 120×40 pseudo-terminal ($SHELL -lc); ready: {log, port, host, timeout} waits for readiness; wait defaults to 30 s, max 120 |
jobs, cancel_job | read_only, mutating | list and kill; cancel_job replies killed <id>; no <job_result> will follow |
read_file, list_dir, grep, glob | read_only | |
write_file, edit | mutating | |
remind_me_in (direct), cancel_reminder | read_only | ceiling tools.reminder_max_secs |
ask_user (direct) | read_only | multiple-choice questions; gives up after tools.ask_timeout_secs |
Shell state (cwd, variables, functions) persists per session. There is no
sandbox around shell: it runs on the host as you. Isolated execution is
what sandboxes are for.
Agent, skills, communication (agent plugin)
| Tool | Risk | Notes |
|---|---|---|
spawn_subagent (direct) | read_only | only while agent messaging is on (agent.communication unset = on once a machine is paired; explicit true/false wins); tools: caps the child |
send_message (direct), discover_peers, peer_message | mutating, read_only, read_only | same gate; send_message asks under the default policy |
message_user (direct) | read_only | text and files to you on Slack, Signal or Telegram |
list_models, session_read | read_only | |
load_skill | read_only | see Skills |
add_skill, add_skill_repo, sync_skills | mutating | |
remove_skill, remove_skill_repo | destructive | |
python, todo | read_only | loop-local; python is the persistent runtime every other tool is callable from |
MCP management (tools plugin)
| Tool | Risk |
|---|---|
add_mcp_server, remove_mcp_server | destructive |
add_mcp_repo, sync_mcp | mutating |
Web, scraping, code, knowledge, search
| Group | Tools | Risk |
|---|---|---|
| web | search_web, read_url | read_only |
| web | http_request | mutating; {{secret:NAME}} belongs in a header value |
| scrape | scrape_url, crawl, map_site | read_only |
| codeindex | code_find, code_outline, code_refs, code_map, code_symbol, code_impact, project_profile | read_only |
| knowledge | knowledge_search, knowledge_get, knowledge_list, knowledge_put, knowledge_share, knowledge_history | read_only (knowledge_put deliberately, every write is a git commit you can undo) |
| knowledge | knowledge_restore | mutating |
| knowledge | knowledge_delete | destructive |
| rpc | search | read_only; one fuzzy search over sessions, artifacts, knowledge and its history |
| search-providers | search_x | read_only; only while an xai secret or login exists |
Browser and desktop
| Group | Tools | Risk |
|---|---|---|
| browser | browser_open, browser_read, browser_elements, browser_click, browser_fill, browser_type, browser_press, browser_select, browser_scroll, browser_wait, browser_eval, browser_back, browser_screenshot, browser_tabs, browser_close, browser_show | read_only (the browser is an isolated headless instance per session) |
| browser | browser_list_profiles | read_only; only with browser.import_cookies: true |
| browser | browser_import_cookies, browser_run | mutating |
| computer | computer_screenshot | read_only |
| computer | computer_move, computer_click, computer_drag, computer_scroll, computer_type, computer_key, computer_open | mutating; macOS Screen Recording and Accessibility permissions are the consent |
See Browser and desktop for usage.
Files for you, apps, documents
| Group | Tools | Risk |
|---|---|---|
| artifact | show (direct), artifact_read | read_only |
| artifact | doc_export | mutating |
| app | app (direct), task_draft, agent_draft | read_only; app never expands secret placeholders in its source |
| document | doc_read | read_only |
| document | doc_insert, doc_replace, doc_delete, doc_move, doc_create | mutating |
Secrets, schedules, sandboxes
| Group | Tools | Risk |
|---|---|---|
| secrets | secret_list, secret_request (direct; one value or several on one card), secret_request_form (direct; older name for the several-values shape), secret_capture, secret_restore | read_only; none returns a value |
| schedule | schedule | mutating |
| schedule | schedule_done, schedule_status | read_only |
| sandbox | sandbox_list | read_only |
| sandbox | sandbox_create, sandbox_install_runtime, sandbox_start, sandbox_pause, sandbox_resume, sandbox_stop, sandbox_resize, sandbox_share, sandbox_unshare, sandbox_snapshot | mutating |
| sandbox | sandbox_restore, sandbox_destroy | destructive |
Meetings, tasks, roster, mesh, channels
| Group | Tools | Risk |
|---|---|---|
| meeting | meeting_topic (direct), meeting_brief (direct), meeting_read, meeting_search, meeting_speakers, meeting_list, brief_search, brief_list, brief_put, brief_delete | read_only |
| tasks | task_inbox | read_only |
| tasks | task_create, task_checkout, task_update, task_move, task_reassign, task_note, task_place, escalate, decide | mutating |
| roster | agents_list, desktop_handoff (direct) | read_only |
| roster | agent_propose, agent_put | mutating |
| routes | site_learn, site_routes, site_call | read_only |
| mesh | mesh_peers | read_only |
| signal, slack, telegram | signal_status, slack_status, telegram_status | read_only |
| signal, telegram | signal_link, telegram_link | mutating |
Voice and talk expose RPC methods and desktop controls, not model tools.
More groups
| Group | Tools | Risk |
|---|---|---|
| text editing | clip | read_only |
| text editing | move_text, copy_text, indent | mutating |
| cells | cell_runs, cell_output, interpreters | read_only; the model can read cell runs, never start one (below) |
| code index | code_overview | read_only |
| knowledge | knowledge_stats | read_only |
| knowledge | knowledge_archive, knowledge_merge, knowledge_retitle, knowledge_supersede, knowledge_verify | mutating |
| output | show_web, web_views, show_note, show_file, show_diff, page_preview | read_only |
| output | show_pty | mutating |
| browser | browser_attach | read_only |
| browser | browser_show_element | mutating |
| computer | applescript, shortcuts (macOS), powershell (Windows) | mutating |
| sandbox | sandbox_desktop | read_only |
| sandbox | sandbox_takeover | mutating |
| notebooks | notebook_list, notebook_get, notebook_ask, notebook_overviews, notebook_context_estimate, notebook_context_set, source_list, source_get, nb_search | read_only |
| notebooks | notebook_create, notebook_add, notebook_remove, notebook_overview_run, source_add, source_refresh, insight_run, insight_promote | mutating |
| autoresearch | autoresearch_status, autoresearch_draft, autoresearch_launch_card | read_only |
| autoresearch | autoresearch_start, autoresearch_control, autoresearch_discard, autoresearch_probe, autoresearch_launch, experiment_begin, experiment_run, experiment_log, experiment_notes | mutating |
| schedules | list_sensors, routine_draft | read_only |
| tasks | task_waiting_on_user | read_only |
| tasks | task_move_home | mutating |
| agents | wait_peer | read_only |
| meetings | meeting_suggest_speakers | read_only |
| decisions | decide_many, decide_label, double_status, double_class, double_classes | read_only |
| decisions | double_cap, double_pause, double_rollback, double_train | mutating |
| decisions | double_forget | destructive |
| dreaming | dreaming_state, case_list, replay_case | read_only |
| dreaming | dreaming_journal, dreaming_ledger, dreaming_undo, case_put, skill_learned_edit, preferences_set | mutating |
| share | share_list, share_stop | read_only |
| share | share_publish | destructive, human-only (below) |
Each feature's page covers its tools: Notebooks, Web views, Autoresearch, Sharing.
Builtins switches
Every built-in tool belongs to one of 21 fixed categories: Files, Shell and jobs, Code index, Web, Browser, Computer use, Sandboxes, Knowledge and search, Documents and notebooks, Output and apps, Agents and peers, Tasks, Schedules and reminders, Autoresearch, Meetings, Secrets, Decision model, Dreaming, Skills and MCP setup, Channels, and Other (any builtin no other category claims, so a new tool is never beyond reach). A whole category or a single tool can be:
| State | Scope | Where it is kept |
|---|---|---|
| On | default | |
| Off here | this chat and its subagents | on the session |
| Off always | every chat on this machine | tools.builtins.disabled in config.yaml (comments preserved) |
Switch them in Settings › Tools › Builtins, or per chat in the composer's
tools sheet (/builtins opens it on the Builtins tab; /tools and /mcp
open the same sheet). A tool that is off is removed from the model's list.
tools.builtins.disabled takes tool names and category keys cat:<id>; a
category key also covers tools of that category added later:
tools:
builtins:
disabled: ["cat:computer", "http_request"]Category ids: files, shell, code, web, browser, computer,
sandbox, knowledge, documents, output, agents, tasks,
schedules, autoresearch, meetings, secrets, decisions, dreaming,
setup, channels, other.
Whole plugins still come and go with their own switch in config.yaml
(knowledge.enabled, browser.enabled, computer.enabled,
sandbox.enabled and so on). The communication trio needs agent messaging
on (agent.communication; unset = on once a machine is paired). MCP tools
are switched in the MCP tab of the same sheet and in mcp/config.yaml.
The gate
For every call the registry computes an action in this order:
- If the session (or an ancestor) has a subagent cap and the tool's risk is
above it:
deny. - If the tool is human-only and the owner is not the one in this
conversation (a contact's turn, or a session bound to a non-owner's
Slack, Signal or Telegram thread):
deny. tools.policy.<risk>.- If any string argument contains a
{{secret:placeholder and the tool consumes secrets: at leastask. The approval card shows the placeholder; the value is substituted only after approval. - A human-only tool is at least
ask, and nothing below rewrites that. - If the result is
askand approvals are off for the session: its own pin, else the nearest ancestor's, elsetools.approvalson the engine that owns the session. Off:allow.
deny is never rewritten by step 6. What the model sees when a call does not
run:
| Situation | Tool result |
|---|---|
policy deny | <tool>: denied by policy |
| you denied | <tool>: denied by user |
no answer within tools.approval_timeout_secs (300) | <tool>: approval timed out |
| subagent cap | <tool>: denied: subagent is capped at <risk> |
| human-only tool in a conversation that is not the owner's | <tool>: denied: only the owner can approve this, and this conversation is not the owner's (a contact's turn or a non-owner chat thread) |
| you dismissed the card in the Inbox | <tool>: not run, with the note that you left the call to the agent without approving it and that it should find a way that needs no approval or explain why it needs one |
| communication off | <tool>: communication_disabled: <why> |
| hidden or unknown tool | unknown tool: <name> |
| turn cancelled while waiting | <tool>: cancelled before it ran |
Policy configuration:
tools:
policy:
read_only: allow
mutating: ask
destructive: ask # deny on an unattended server
# approvals: false # never prompt for `ask`; `deny` still denies
approval_timeout_secs: 300Approvals
Scope
| Command | Scope | Persisted |
|---|---|---|
/approvals off | this session and every subagent under it (its pin: off) | yes: on the session; it survives a restart and a move to another machine |
/approvals on | this session and its subagents (pin on): asks even when tools.approvals is false | yes: on the session |
/approvals off always | every session | yes: tools.approvals: false |
/approvals on always | every session | yes: tools.approvals: true |
The same command exists on Signal and Telegram (/approvals on|off [always], owner only;
Telegram's reply is a panel with the three states as buttons) and Slack
(/theuth approvals on|off [always], owner only; its settings modal offers
the same three states), and the desktop app's Settings dialog has an
approvals switch. In the desktop chat's ⋯, Approvals ▸ has On, Off and
Machine default (on|off), which clears the pin. For a chat owned by
another machine the pin and the default are that machine's, and a relayed
card reads <engine> asks: <tool>. Children inherit the parent's pin,
hidden tools and cap.
Answering
| Surface | Allow | Deny |
|---|---|---|
| TUI modal | y | n or Esc; o opens the child session that asked |
| Print mode / piped stdin | a line y | a line n; stdin closed = deny (denied: stdin closed) |
| Desktop | Allow button on the card | Deny button |
| Slack | Allow block button | Deny; the card updates to ✅ tool allowed, ❌ tool denied or ⌛ tool timed out (denied) |
| Signal | react 👍 / ✅ / 👌, or /approve <code> | react 👎 / ❌ / 🚫, or /deny <code> |
| Telegram | Allow inline button | Deny; the card updates to ✓ tool allowed by <name>, ✗ tool denied or ⌛ tool timed out and the buttons collapse into one disabled verdict |
| ACP editors | the client's allow option | anything else |
Slack sessions started elsewhere send their approvals to the owner's DM when
slack.approvals: all, and nowhere when threads; Telegram does the same with
telegram.approvals and the owner's chat. On Signal, approvals for unbound
sessions go to the owner.
Dismissing an approval
Dismissing an approval card in the desktop Inbox (instead of Allow or
Deny) neither runs nor refuses the call: it is left to the agent. The
model is told the call was not run and to find a way that needs no approval
or explain why it needs one; nothing is recorded as a denial by you. Slack and
Telegram rewrite the card to <tool> left to the agent (not run, not refused), and Signal sends that line. For an external ACP harness the
dismissal goes back as a one-time rejection marked as left to the agent.
Human-only tools
Some tools act for you in a way the agent must never approve for itself.
share_publish, which puts something of yours on the public internet, is
the one such model tool today; accepting the sharing terms is gated the same
way. For these:
- Only the owner, in person, can answer: in the desktop or web client, in the
terminal, or from the owner's own Slack, Telegram or Signal account. On
channels the card says
Only the owner can answer this. - Not another allowed chat user, not the double, not a click in an
app (
<tool>: only the owner can approve this tool, in theuth itself; an app cannot run it), nottools.policy, not/approvals offand nottools.approvals: false. - While such a card is pending, the agent's own input into theuth is refused:
computer_*input into theuth's windows,applescriptandshortcuts, and actingbrowser_*calls against theuth's web client. - Unanswered, it is denied after
tools.approval_timeout_secslike any other.
Cells
A cell in a note runs only when a person presses Run. No tool, routine,
subagent, ACP child, MCP client, app, channel or the double can start one,
and nothing re-runs a cell on its own. The model can read past runs and
output (cell_runs, cell_output) and list interpreters.
The double
The double is an optional local model of your own answers (double.enabled,
default false, restart to change). It predicts your answer to each card
before you see it and scores itself afterwards. Its authority per class of
card climbs a ladder as its record earns it:
| Rung | What it does |
|---|---|
| L0 | observes only (every new class starts here) |
| L1 | suggests an answer on the card; you still press it |
| L2 | answers after a grace countdown (double.ladder.grace_secs, default 30 s) that you can take over |
| L3 | answers at once |
One override by you demotes the class a rung immediately. Caps
(double.ladder.caps): destructive is fixed at L1, mutating defaults to
L1 (higher only with a per-class opt-in), and read_only defaults to L2, so
L3 is not reached by default. Human-only cards are never predicted, learned
from or answered by it.
Apps
An app you click is different: the press is the
approval. A Mutation binding behind a button runs on click with no card,
a tool the policy would ask about becomes a Load/Refresh button whose press
is the consent, and a policy-denied tool is shown unavailable. Timer and load
reads never run mutations.
MCP gates
MCP tools default to the risk their server annotates: readOnlyHint: true
is read_only, destructiveHint: true is destructive, anything else
(including no annotations) is mutating and therefore prompts. Override per
server or per tool in <data_dir>/mcp/config.yaml:
servers:
kubernetes:
risk: read_only # every tool of the server unless a tool line says otherwise
tools:
pods_delete: destructive
helm_uninstall: off # not registered at all
teams:
risk: off # server not even startedResolution order is tool line, then server line, then annotations. The
/mcp menu writes this file (Space cycles the risk, Backspace resets it,
Enter asks whether to hide a server for this session or turn it off for
good); hand edits are picked up within a second. Details in
MCP.
Subagents
Configured under agent.subagents (defaults max_depth: 1,
max_concurrent: 16, max_concurrent_external: 32, max_runtime_secs: 600,
reply_timeout_secs: 120):
- A session at depth ≥
max_depthgetssubagents are not available at depth N. - Each orchestrator tree runs at most
max_concurrentnative child turns at once, and separately at mostmax_concurrent_externalACP harness or mesh node children; further spawns queue and the parent is told. - A child turn over
max_runtime_secsis stopped and its result is prefixed[timed out after Ns, stop=…]. spawn_subagent{tools: read_only|mutating}installs a cap: the child and its descendants are denied anything above it and do not even see those tools in their list.destructivemeans no cap.send_messageis exempt from caps so a capped child can still report back.- Children inherit the parent's approval bypass; their approval prompts surface in your UI like the parent's.
- Scheduled runs set
approvals: falsein the schedule file to run unattended; see Schedules.
More on spawning and ACP harnesses in Delegation and Agents.
Secrets in tool calls
{{secret:NAME}} in any string argument of a secret-consuming tool is
swapped for the vault value after approval and scrubbed from the output
(exact value and its base64, values of 8+ characters). Tools that take
literal sources or queries (app, task_draft, agent_draft, search,
code_*, project_profile, sandbox_*, secret_request, secret_request_form,
desktop_handoff) do not expand placeholders and do not raise the gate. See
Secrets.
Related
Configuration
The data directory, config.yaml and THEUTH_* environment overrides, every plugin's keys and defaults, and what applies live versus after a restart.
MCP
Register local and remote MCP servers from JSON files, expand credentials from the shell or the vault, gate tools by risk, log in to servers that need OAuth, and serve theuth itself to other MCP clients.