theuth
Automation

Automation and orchestration

How theuth runs work without you at the keyboard. Subagents, a roster of hired agents with desks, a task board, routines and watchers, autoresearch studies, channels, other machines, contacts, public sharing, sandbox VMs, and the browser and desktop controls, with the one permission gate that sits under all of it.

A theuth session is one model talking to you and calling tools. Everything on this section's pages is a way to make work happen beside or after that conversation: a child session that does a sub-task, an agent you hired that owns a standing role, a task that waits on the board until someone picks it up, a routine that fires at 09:00, a watcher that fires when a sensor says so, a Slack thread or a phone, another machine, or an isolated Linux VM. All of it runs inside the same single process (t) on your data dir (~/.theuth unless you moved it), and all of it goes through the same tool-permission gate.

The pieces

PieceWhat it isWhere you see itPage
SubagentA child session spawned by the model (spawn_subagent): a native theuth child, an external coding harness over ACP (opencode, omp, …), or a theuth on another machineSidebar tree under the parent chat; /agents in the terminal; a thread per child on SlackDelegation
Agent (roster)A standing role you hire: a charter, a manager, a model, a tool ceiling, an optional monthly budget, and one pinned desk session that receives workAgents and Desks in the sidebar; /roster in the terminalAgents
TaskA unit of work on a board with an owner, a state, blockers and a thread; agents are woken by task eventsTasks in the sidebar; t tasks list; /tasksTasks
Routine (schedule)A markdown file with cron:, every: or at: and a prompt; each fire is a turn in that routine's own session, optionally looping until a check passesRoutines in the sidebar; /schedulesSchedules
WatcherA routine with when: <sensor>.py …: a small Python sensor polled on a cadence; the prompt runs only when the sensor says fireSame Routines list, with a Test button and a last check columnWatchers
Autoresearch studyA measured experiment loop: the agent tries one idea per run in its own git worktree, the harness runs your benchmark, and a change is kept only when it beats the noiseAutoresearch tab; /autoresearch <goal>Autoresearch
ChannelSlack, Signal and Telegram as frontends: messages become turns, approvals become buttons or reactions, voice notes are transcribedSettings › ChannelsChannels
Mesh / nodes / devicesOther engines (machines) that replicate your sessions and records, remote boxes reached over the link relay, and phones or browsers paired to the meshSettings › Network, Settings › Link; the engine switcherMesh
ContactAnother person's theuth, paired by a code both of you confirm; it reaches only the agents and chats you grant, and can exchange filesSettings › Sharing and the contact listContacts
Public shareA local dev server or folder published at a real https:// URL through the sharing edge, with TLS ending on your machine; owner approval, expiry and one-press StopSettings › Sharing; the red "you are public" stripSharing
Sandbox VMAn isolated Linux desktop microVM on this machine that joins the mesh as an engine, with chosen host folders shared inSettings › Network › Sandbox VMs; Open desktopSandboxes
Browser and desktopAn embedded headless browser per session, and native control of your own screen, mouse and keyboardThe globe (Live browser) in the chat header; Settings › ComputerBrowser and desktop

The dependencies between them are few and worth knowing:

  • Subagents are the unit of doing. A desk never works in its own session; it spawns a child for every task. A routine with an agent: line does not run a prompt — it files a task for that agent. A sandbox is used by spawning a child on it (spawn_subagent{agent: "<vm name>"}).
  • spawn_subagent only exists when communication is on (agent.communication unset is on once a machine is paired, off otherwise; an explicit true or false wins). With it off, desks, routines and tasks still work, but nothing can delegate.
  • Routines, desks and devices are served by whichever engine holds the mesh hub lease. On a single machine that is always this one; in a mesh, the other engines show a not hub chip and wait.
  • Channels (Slack, Signal, Telegram) only run in the daemon (t --headless, which the desktop app starts for you). The terminal UI alone does not connect them.

How a piece of work flows

you (chat, Slack, Signal, Telegram, phone)   clock / sensor
        │                                      │
        ▼                                      ▼
   root session  ──spawn_subagent──▶  child session(s)      routine session
        │                                      │                   │
        │  task_draft → Add to backlog/Start   │                   │ agent: <name>
        ▼                                      ▼                   ▼
   ┌───────────── task board ─────────────────────────────────────────┐
   │ backlog → todo → doing → review → done          blocked ⇄       │
   └──────────────┬───────────────────────────────────────────────────┘
                  │ wake (assigned, comment, answer, review, …)
                  ▼
        agent desk session  ──spawn_subagent──▶  child on this engine,
                                                 a node, or a sandbox VM

Every arrow that calls a tool passes the same gate, and every approval it raises lands in whichever UI you are looking at: the terminal, the desktop card, a Slack or Telegram button, a Signal reaction.

The permission gate

There is one decision per tool call, made in the tool registry:

  1. Every tool has a risk: read_only, mutating or destructive. MCP tools take theirs from their annotations (unset means mutating; mcp/config.yaml overrides per server or tool).
  2. A session may carry a cap — a ceiling set by spawn_subagent{tools: …} or by an agent file's tools: line. A call above the cap is denied outright (denied: subagent is capped at <risk>), and children inherit the lowest cap of their ancestors. send_message is exempt so a capped child can still report.
  3. tools.policy maps the risk to allow, ask or deny. The default is {read_only: allow, mutating: ask, destructive: ask}. A {{secret:NAME}} placeholder in the arguments raises the answer to at least ask.
  4. An ask becomes allow when approvals are off for the session (/approvals off, inherited by its children) or globally (/approvals off always, which writes tools.approvals: false). A deny is never rewritten.

An approval is an Allow / Deny card. It waits tools.approval_timeout_secs (300 s) and then counts as denied. There is no per-tool "always allow"; the knobs are the policy, the approvals switch and the cap. Tools and permissions has the full reference; each page in this section lists what asks and what never asks for its own tools.

Two switches are capabilities, not approvals, and sit above the gate:

SwitchDefaultWhat it controls
agent.communicationunset: on with at least one paired machineWhether spawn_subagent, discover_peers and send_message exist at all. Absent = on once a machine is paired, off otherwise; an explicit true or false always wins. /communication on always writes the key; /communication off opts one session and its descendants out in memory. The global value is a ceiling: a session can opt out under it, never in above it.
a2a.enabledfalseRemote agents over A2A — a separate network switch that also needs communication on. Not covered further here.

Unattended runs — routines with approvals: false, desks with approvals off — are the only places theuth acts without a human able to answer a card. Both are explicit, per-file or per-session choices, and the pages that describe them say what to expect.

Budgets, caps and cost

There is no global money or token cap per session or per day. What exists:

  • Roster agents can carry budget: <amount> <CUR>/month. At 80 % a task is filed for the agent's manager; at 100 % the agent is paused and a Budget override task is filed; un-pausing lifts the cap for the rest of that month. See Agents.
  • Structural limits that bound a runaway session: agent.max_tool_rounds (32 tool rounds per turn), agent.subagents.max_concurrent (16 native children per orchestrator tree) and max_concurrent_external (32 external harness children), max_runtime_secs (600 s per child turn), max_depth (1: children cannot spawn children by default), schedule.run_timeout_secs (1800 s per routine run), and tools.job_timeout_secs (1800 s per shell job).
  • Cost tracking everywhere: /cost in the terminal, the cost pill in the desktop chat header (direct, descendants, total), per-child cost in the sidebar tree, and per-session cost on a task's detail page. External harnesses report what they report; opencode before 2.0 reports the last request only, and the UI says so.

Where things live

Everything is a file or a SQLite database under the data dir, so you can inspect, back up or hand-edit it. The pages name the exact paths; the short map:

PathHolds
config.yamlEvery section's settings (agent, tools, schedule, roster, tasks, mesh, link, nodes, sandbox, slack, signal, telegram, browser, computer, …). Any key can be overridden with THEUTH_<SECTION>__<KEY> in the environment.
agents/<name>.mdOne hired agent: front matter plus its charter.
schedules/<name>.mdOne routine or watcher: front matter plus its prompt.
sensors/*.pyWatcher sensors (two built-ins are written for you).
acp/agents.yamlExternal harnesses the model may spawn.
tasks.sqlite, roster.sqlite, schedule.sqlite, sessions.sqliteThe task ledger, roster mirror, run history and sensor state, session transcripts.
slack/, signal/, telegram/Thread bindings and inboxes for files received on those channels.
computers/<name>.yamlSandbox VM records.

See Configuration for the file format and the restart rule: config.yaml is read at start, and a change needs a restart unless a UI setting writes it live.

Which page do I need?

I want to…Start with
Have the model split a big job into parallel pieces, or run a coding task in opencode or ompDelegation
Give a standing role a name, a manager, a budget and a place work arrivesAgents
See what is in progress, blocked or waiting for my decisionTasks
Run something every weekday morning, tonight at 21:30, or until a check passesSchedules
Be told when a file appears or a pull request changes, without polling myselfWatchers
Let the agent improve a number overnight (speed, size, a score) without gaming the benchmarkAutoresearch
Talk to theuth from Slack or my phone, including voice notesChannels
Run work on my build server, or follow a session from the phoneMesh
Let a colleague's theuth message one of my agents, or send it filesContacts
Put a local dev server or a folder on the web for a few hoursSharing
Let the model install and run things somewhere that cannot touch my machineSandboxes
Fill a web form, act as the signed-in me, or click through a native appBrowser and desktop

On this page