theuth
Reference

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

RiskMeaningDefault action
read_onlyreads, searches, screenshots, questions to youallow
mutatingwrites files, sends input, changes state that can be undoneask
destructiveruns arbitrary commands, deletes, removes servers or skillsask

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)

ToolRiskNotes
shelldestructivebrush 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, waitdestructive, mutating, read_only, read_onlya 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_jobread_only, mutatinglist and kill; cancel_job replies killed <id>; no <job_result> will follow
read_file, list_dir, grep, globread_only
write_file, editmutating
remind_me_in (direct), cancel_reminderread_onlyceiling tools.reminder_max_secs
ask_user (direct)read_onlymultiple-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)

ToolRiskNotes
spawn_subagent (direct)read_onlyonly 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_messagemutating, read_only, read_onlysame gate; send_message asks under the default policy
message_user (direct)read_onlytext and files to you on Slack, Signal or Telegram
list_models, session_readread_only
load_skillread_onlysee Skills
add_skill, add_skill_repo, sync_skillsmutating
remove_skill, remove_skill_repodestructive
python, todoread_onlyloop-local; python is the persistent runtime every other tool is callable from

MCP management (tools plugin)

ToolRisk
add_mcp_server, remove_mcp_serverdestructive
add_mcp_repo, sync_mcpmutating
GroupToolsRisk
websearch_web, read_urlread_only
webhttp_requestmutating; {{secret:NAME}} belongs in a header value
scrapescrape_url, crawl, map_siteread_only
codeindexcode_find, code_outline, code_refs, code_map, code_symbol, code_impact, project_profileread_only
knowledgeknowledge_search, knowledge_get, knowledge_list, knowledge_put, knowledge_share, knowledge_historyread_only (knowledge_put deliberately, every write is a git commit you can undo)
knowledgeknowledge_restoremutating
knowledgeknowledge_deletedestructive
rpcsearchread_only; one fuzzy search over sessions, artifacts, knowledge and its history
search-providerssearch_xread_only; only while an xai secret or login exists

Browser and desktop

GroupToolsRisk
browserbrowser_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_showread_only (the browser is an isolated headless instance per session)
browserbrowser_list_profilesread_only; only with browser.import_cookies: true
browserbrowser_import_cookies, browser_runmutating
computercomputer_screenshotread_only
computercomputer_move, computer_click, computer_drag, computer_scroll, computer_type, computer_key, computer_openmutating; macOS Screen Recording and Accessibility permissions are the consent

See Browser and desktop for usage.

Files for you, apps, documents

GroupToolsRisk
artifactshow (direct), artifact_readread_only
artifactdoc_exportmutating
appapp (direct), task_draft, agent_draftread_only; app never expands secret placeholders in its source
documentdoc_readread_only
documentdoc_insert, doc_replace, doc_delete, doc_move, doc_createmutating

Secrets, schedules, sandboxes

GroupToolsRisk
secretssecret_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_restoreread_only; none returns a value
scheduleschedulemutating
scheduleschedule_done, schedule_statusread_only
sandboxsandbox_listread_only
sandboxsandbox_create, sandbox_install_runtime, sandbox_start, sandbox_pause, sandbox_resume, sandbox_stop, sandbox_resize, sandbox_share, sandbox_unshare, sandbox_snapshotmutating
sandboxsandbox_restore, sandbox_destroydestructive

Meetings, tasks, roster, mesh, channels

GroupToolsRisk
meetingmeeting_topic (direct), meeting_brief (direct), meeting_read, meeting_search, meeting_speakers, meeting_list, brief_search, brief_list, brief_put, brief_deleteread_only
taskstask_inboxread_only
taskstask_create, task_checkout, task_update, task_move, task_reassign, task_note, task_place, escalate, decidemutating
rosteragents_list, desktop_handoff (direct)read_only
rosteragent_propose, agent_putmutating
routessite_learn, site_routes, site_callread_only
meshmesh_peersread_only
signal, slack, telegramsignal_status, slack_status, telegram_statusread_only
signal, telegramsignal_link, telegram_linkmutating

Voice and talk expose RPC methods and desktop controls, not model tools.

More groups

GroupToolsRisk
text editingclipread_only
text editingmove_text, copy_text, indentmutating
cellscell_runs, cell_output, interpretersread_only; the model can read cell runs, never start one (below)
code indexcode_overviewread_only
knowledgeknowledge_statsread_only
knowledgeknowledge_archive, knowledge_merge, knowledge_retitle, knowledge_supersede, knowledge_verifymutating
outputshow_web, web_views, show_note, show_file, show_diff, page_previewread_only
outputshow_ptymutating
browserbrowser_attachread_only
browserbrowser_show_elementmutating
computerapplescript, shortcuts (macOS), powershell (Windows)mutating
sandboxsandbox_desktopread_only
sandboxsandbox_takeovermutating
notebooksnotebook_list, notebook_get, notebook_ask, notebook_overviews, notebook_context_estimate, notebook_context_set, source_list, source_get, nb_searchread_only
notebooksnotebook_create, notebook_add, notebook_remove, notebook_overview_run, source_add, source_refresh, insight_run, insight_promotemutating
autoresearchautoresearch_status, autoresearch_draft, autoresearch_launch_cardread_only
autoresearchautoresearch_start, autoresearch_control, autoresearch_discard, autoresearch_probe, autoresearch_launch, experiment_begin, experiment_run, experiment_log, experiment_notesmutating
scheduleslist_sensors, routine_draftread_only
taskstask_waiting_on_userread_only
taskstask_move_homemutating
agentswait_peerread_only
meetingsmeeting_suggest_speakersread_only
decisionsdecide_many, decide_label, double_status, double_class, double_classesread_only
decisionsdouble_cap, double_pause, double_rollback, double_trainmutating
decisionsdouble_forgetdestructive
dreamingdreaming_state, case_list, replay_caseread_only
dreamingdreaming_journal, dreaming_ledger, dreaming_undo, case_put, skill_learned_edit, preferences_setmutating
shareshare_list, share_stopread_only
shareshare_publishdestructive, 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:

StateScopeWhere it is kept
Ondefault
Off herethis chat and its subagentson the session
Off alwaysevery chat on this machinetools.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:

  1. If the session (or an ancestor) has a subagent cap and the tool's risk is above it: deny.
  2. 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.
  3. tools.policy.<risk>.
  4. If any string argument contains a {{secret: placeholder and the tool consumes secrets: at least ask. The approval card shows the placeholder; the value is substituted only after approval.
  5. A human-only tool is at least ask, and nothing below rewrites that.
  6. If the result is ask and approvals are off for the session: its own pin, else the nearest ancestor's, else tools.approvals on 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:

SituationTool 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 toolunknown 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: 300

Approvals

Scope

CommandScopePersisted
/approvals offthis session and every subagent under it (its pin: off)yes: on the session; it survives a restart and a move to another machine
/approvals onthis session and its subagents (pin on): asks even when tools.approvals is falseyes: on the session
/approvals off alwaysevery sessionyes: tools.approvals: false
/approvals on alwaysevery sessionyes: 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

SurfaceAllowDeny
TUI modalyn or Esc; o opens the child session that asked
Print mode / piped stdina line ya line n; stdin closed = deny (denied: stdin closed)
DesktopAllow button on the cardDeny button
SlackAllow block buttonDeny; the card updates to ✅ tool allowed, ❌ tool denied or ⌛ tool timed out (denied)
Signalreact 👍 / ✅ / 👌, or /approve <code>react 👎 / ❌ / 🚫, or /deny <code>
TelegramAllow inline buttonDeny; the card updates to ✓ tool allowed by <name>, ✗ tool denied or ⌛ tool timed out and the buttons collapse into one disabled verdict
ACP editorsthe client's allow optionanything 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), not tools.policy, not /approvals off and not tools.approvals: false.
  • While such a card is pending, the agent's own input into theuth is refused: computer_* input into theuth's windows, applescript and shortcuts, and acting browser_* calls against theuth's web client.
  • Unanswered, it is denied after tools.approval_timeout_secs like 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:

RungWhat it does
L0observes only (every new class starts here)
L1suggests an answer on the card; you still press it
L2answers after a grace countdown (double.ladder.grace_secs, default 30 s) that you can take over
L3answers 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 started

Resolution 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_depth gets subagents are not available at depth N.
  • Each orchestrator tree runs at most max_concurrent native child turns at once, and separately at most max_concurrent_external ACP harness or mesh node children; further spawns queue and the parent is told.
  • A child turn over max_runtime_secs is 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. destructive means no cap. send_message is 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: false in 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.

  • Security: the security model behind approvals and human-only tools
  • Channels: answering approvals from Slack, Signal and Telegram
  • Sharing: share_publish and its owner-only approval
  • Secrets: placeholders and scrubbing

On this page