@markusylisiurunen/tau 0.3.100 → 0.3.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/code_mode/agents.js +60 -14
- package/dist/core/code_mode/agents.js.map +1 -1
- package/dist/core/history/agent_history_recorder.js.map +1 -1
- package/dist/core/runtime/chat_runtime.js +5 -5
- package/dist/core/runtime/chat_runtime.js.map +1 -1
- package/dist/core/runtime/session_prompt_composer.js +2 -6
- package/dist/core/runtime/session_prompt_composer.js.map +1 -1
- package/dist/core/static/code_mode/history/documentation.md +1 -1
- package/dist/core/static/index.js +22 -11
- package/dist/core/static/index.js.map +1 -1
- package/dist/core/static/prompts/subagent-prefix.md +13 -5
- package/dist/core/static/tau_docs/code-mode.md +1 -1
- package/dist/core/static/tau_docs/config-reference.md +2 -2
- package/dist/core/static/tau_docs/history.md +3 -3
- package/dist/core/static/tau_docs/image-generation.md +27 -20
- package/dist/core/static/tau_docs/node-sdk.md +6 -6
- package/dist/core/static/tau_docs/personas.md +1 -1
- package/dist/core/static/tau_docs/prompts-and-project-context.md +2 -2
- package/dist/core/static/tau_docs/remote-sessions.md +1 -1
- package/dist/core/static/tau_docs/session-protocol-methods.md +49 -1
- package/dist/core/static/tau_docs/session-protocol.md +21 -2
- package/dist/core/static/tau_docs/sessions.md +3 -1
- package/dist/core/static/tau_docs/subagents.md +65 -48
- package/dist/core/static/tau_docs/tools.md +1 -1
- package/dist/core/static/tau_docs/troubleshooting.md +3 -3
- package/dist/core/static/tau_docs/tui.md +5 -7
- package/dist/core/subagents/agent_supervisor.js +192 -15
- package/dist/core/subagents/agent_supervisor.js.map +1 -1
- package/dist/core/subagents/claude_code_runner.mjs +56 -55
- package/dist/core/subagents/native_subagent_runtime.js +37 -13
- package/dist/core/subagents/native_subagent_runtime.js.map +1 -1
- package/dist/core/subagents/prompt.js.map +1 -1
- package/dist/core/subagents/registry.js +1 -0
- package/dist/core/subagents/registry.js.map +1 -1
- package/dist/core/subagents/runtime.js.map +1 -1
- package/dist/core/subagents/types.js +2 -1
- package/dist/core/subagents/types.js.map +1 -1
- package/dist/core/tool/cli.js +1 -1
- package/dist/core/tool/image_generate.js +6 -2
- package/dist/core/tool/image_generate.js.map +1 -1
- package/dist/core/tools/catalog.js +24 -14
- package/dist/core/tools/catalog.js.map +1 -1
- package/dist/core/tools/wait_for_agents.js.map +1 -1
- package/dist/core/version.js +1 -1
- package/dist/diff_tool/app/dist/assets/andromeeda-DW8vo71h.js +1 -0
- package/dist/diff_tool/app/dist/assets/aurora-x-rMvKqtYI.js +1 -0
- package/dist/diff_tool/app/dist/assets/ayu-dark-CwczpL8O.js +1 -0
- package/dist/diff_tool/app/dist/assets/ayu-light-DSh22xiD.js +1 -0
- package/dist/diff_tool/app/dist/assets/ayu-mirage-JE6hAyHG.js +1 -0
- package/dist/diff_tool/app/dist/assets/catppuccin-frappe-pyXErRRU.js +1 -0
- package/dist/diff_tool/app/dist/assets/catppuccin-latte-BILSUICr.js +1 -0
- package/dist/diff_tool/app/dist/assets/catppuccin-macchiato-Ck60ZZQE.js +1 -0
- package/dist/diff_tool/app/dist/assets/catppuccin-mocha-C_2G67cS.js +1 -0
- package/dist/diff_tool/app/dist/assets/{core-3PFMkRLP.js → core-CXVpaOO1.js} +1 -1
- package/dist/diff_tool/app/dist/assets/dark-plus-CHgc6GYj.js +1 -0
- package/dist/diff_tool/app/dist/assets/dracula-Cf1PG3MT.js +1 -0
- package/dist/diff_tool/app/dist/assets/dracula-soft-DXuNm1Kq.js +1 -0
- package/dist/diff_tool/app/dist/assets/engine-oniguruma-Rz_7DPcV.js +1 -0
- package/dist/diff_tool/app/dist/assets/everforest-dark-CjdfwUBe.js +1 -0
- package/dist/diff_tool/app/dist/assets/everforest-light-CfVwwCBP.js +1 -0
- package/dist/diff_tool/app/dist/assets/github-dark-BL6HSl_n.js +1 -0
- package/dist/diff_tool/app/dist/assets/github-dark-default-zacuWV-M.js +1 -0
- package/dist/diff_tool/app/dist/assets/github-dark-dimmed-Mc0P9idi.js +1 -0
- package/dist/diff_tool/app/dist/assets/github-dark-high-contrast-IMKX2AVF.js +1 -0
- package/dist/diff_tool/app/dist/assets/github-light-default-DVlCqP3X.js +1 -0
- package/dist/diff_tool/app/dist/assets/github-light-high-contrast-Dj6zTyWR.js +1 -0
- package/dist/diff_tool/app/dist/assets/github-light-mYhEBkPo.js +1 -0
- package/dist/diff_tool/app/dist/assets/gruvbox-dark-hard-QTgQQZn-.js +1 -0
- package/dist/diff_tool/app/dist/assets/gruvbox-dark-medium-9d5YdCTx.js +1 -0
- package/dist/diff_tool/app/dist/assets/gruvbox-dark-soft-XCkqeBhR.js +1 -0
- package/dist/diff_tool/app/dist/assets/gruvbox-light-hard--5-nXqNp.js +1 -0
- package/dist/diff_tool/app/dist/assets/gruvbox-light-medium-COA1PZW2.js +1 -0
- package/dist/diff_tool/app/dist/assets/gruvbox-light-soft-CIJpzjAO.js +1 -0
- package/dist/diff_tool/app/dist/assets/highlights-DuJNYjEh.js +7 -0
- package/dist/diff_tool/app/dist/assets/horizon-Ba2cwkSy.js +1 -0
- package/dist/diff_tool/app/dist/assets/horizon-bright-DaEDgBmR.js +1 -0
- package/dist/diff_tool/app/dist/assets/houston-B6x0XVpU.js +1 -0
- package/dist/diff_tool/app/dist/assets/{index-DhaXI7F3.js → index-F9is7PUw.js} +16 -16
- package/dist/diff_tool/app/dist/assets/kanagawa-dragon-DhTFvBMT.js +1 -0
- package/dist/diff_tool/app/dist/assets/kanagawa-lotus--m8sdOxn.js +1 -0
- package/dist/diff_tool/app/dist/assets/kanagawa-wave-D-tTv4k2.js +1 -0
- package/dist/diff_tool/app/dist/assets/langs-CTftvgbb.js +1 -0
- package/dist/diff_tool/app/dist/assets/laserwave-HSLx0L75.js +1 -0
- package/dist/diff_tool/app/dist/assets/light-plus-CUjWrTSi.js +1 -0
- package/dist/diff_tool/app/dist/assets/loader-bi21_x0K.js +1 -0
- package/dist/diff_tool/app/dist/assets/material-theme-CnthUGfg.js +1 -0
- package/dist/diff_tool/app/dist/assets/material-theme-darker-DUi03Qre.js +1 -0
- package/dist/diff_tool/app/dist/assets/material-theme-lighter-D2-qr5Vw.js +1 -0
- package/dist/diff_tool/app/dist/assets/material-theme-ocean-CWR-LogA.js +1 -0
- package/dist/diff_tool/app/dist/assets/material-theme-palenight-Cnv8m1ra.js +1 -0
- package/dist/diff_tool/app/dist/assets/min-dark-EXoM-6Xo.js +1 -0
- package/dist/diff_tool/app/dist/assets/min-light-DVOTDhnA.js +1 -0
- package/dist/diff_tool/app/dist/assets/monokai-DkggTbGy.js +1 -0
- package/dist/diff_tool/app/dist/assets/night-owl-Bdcs0PMi.js +1 -0
- package/dist/diff_tool/app/dist/assets/night-owl-light-RoU30LE0.js +1 -0
- package/dist/diff_tool/app/dist/assets/nord-u7hMircQ.js +1 -0
- package/dist/diff_tool/app/dist/assets/one-dark-pro-08PdtLzi.js +1 -0
- package/dist/diff_tool/app/dist/assets/one-light-DgvUEtgI.js +1 -0
- package/dist/diff_tool/app/dist/assets/pierre-dark-B2jZWvHG.js +1 -0
- package/dist/diff_tool/app/dist/assets/pierre-dark-protanopia-deuteranopia-CebgQdRf.js +1 -0
- package/dist/diff_tool/app/dist/assets/pierre-dark-soft-DdE7dyP3.js +1 -0
- package/dist/diff_tool/app/dist/assets/pierre-dark-tritanopia-CXimiT7X.js +1 -0
- package/dist/diff_tool/app/dist/assets/pierre-dark-vibrant-DzBsxHvQ.js +1 -0
- package/dist/diff_tool/app/dist/assets/pierre-light-Vf__O3ev.js +1 -0
- package/dist/diff_tool/app/dist/assets/pierre-light-protanopia-deuteranopia-BUtWcCQC.js +1 -0
- package/dist/diff_tool/app/dist/assets/pierre-light-soft-C3QCXKvN.js +1 -0
- package/dist/diff_tool/app/dist/assets/pierre-light-tritanopia-CKLy6XvA.js +1 -0
- package/dist/diff_tool/app/dist/assets/pierre-light-vibrant-DDuTEIhH.js +1 -0
- package/dist/diff_tool/app/dist/assets/plastic-B8mE6BxX.js +1 -0
- package/dist/diff_tool/app/dist/assets/poimandres-DUFjrgxT.js +1 -0
- package/dist/diff_tool/app/dist/assets/red-BJvdDEUx.js +1 -0
- package/dist/diff_tool/app/dist/assets/rose-pine-BSqRqUae.js +1 -0
- package/dist/diff_tool/app/dist/assets/rose-pine-dawn-U6TBE82u.js +1 -0
- package/dist/diff_tool/app/dist/assets/rose-pine-moon-CAU7u1h4.js +1 -0
- package/dist/diff_tool/app/dist/assets/{shiki-BArE1NVK.js → shiki-D6ZyrNQD.js} +2 -2
- package/dist/diff_tool/app/dist/assets/slack-dark-CMu0smFa.js +1 -0
- package/dist/diff_tool/app/dist/assets/slack-ochin-BBne7cjw.js +1 -0
- package/dist/diff_tool/app/dist/assets/snazzy-light-CV8HUEmk.js +1 -0
- package/dist/diff_tool/app/dist/assets/solarized-dark-CmYmhSgI.js +1 -0
- package/dist/diff_tool/app/dist/assets/solarized-light-CjLLwxRp.js +1 -0
- package/dist/diff_tool/app/dist/assets/{stream-tokenizer-DFTZfQ1S.js → stream-tokenizer-BdsyU_yB.js} +1 -1
- package/dist/diff_tool/app/dist/assets/synthwave-84-wQeDKbzQ.js +1 -0
- package/dist/diff_tool/app/dist/assets/{themes-Dzo-2cM5.js → themes-9lpTYI_i.js} +2 -2
- package/dist/diff_tool/app/dist/assets/tokyo-night-D4ZgDiA7.js +1 -0
- package/dist/diff_tool/app/dist/assets/vesper-sUHevyKv.js +1 -0
- package/dist/diff_tool/app/dist/assets/vitesse-black-CfklMpOb.js +1 -0
- package/dist/diff_tool/app/dist/assets/vitesse-dark-CJkzwmKT.js +1 -0
- package/dist/diff_tool/app/dist/assets/vitesse-light-BxMp8E1Y.js +1 -0
- package/dist/diff_tool/app/dist/index.html +1 -1
- package/dist/host/local_session_host.js +233 -125
- package/dist/host/local_session_host.js.map +1 -1
- package/dist/host/session_host.js +2 -0
- package/dist/host/session_host.js.map +1 -1
- package/dist/host/session_protocol_handler.js +11 -1
- package/dist/host/session_protocol_handler.js.map +1 -1
- package/dist/protocol/session_protocol.d.ts +18 -1
- package/dist/protocol/session_protocol.js +27 -0
- package/dist/protocol/session_protocol.js.map +1 -1
- package/dist/sdk/session.js +12 -0
- package/dist/sdk/session.js.map +1 -1
- package/dist/sdk/types.d.ts +6 -0
- package/dist/store/session_snapshot_migrations.js +22 -1
- package/dist/store/session_snapshot_migrations.js.map +1 -1
- package/dist/tui/ui/subagent_panel.js +45 -14
- package/dist/tui/ui/subagent_panel.js.map +1 -1
- package/package.json +7 -7
- package/dist/diff_tool/app/dist/assets/andromeeda-BJLMrMlp.js +0 -1
- package/dist/diff_tool/app/dist/assets/aurora-x-BCChoRpm.js +0 -1
- package/dist/diff_tool/app/dist/assets/ayu-dark-DzFZPuMV.js +0 -1
- package/dist/diff_tool/app/dist/assets/ayu-light-DSkcX_XD.js +0 -1
- package/dist/diff_tool/app/dist/assets/ayu-mirage-DSve0zuE.js +0 -1
- package/dist/diff_tool/app/dist/assets/catppuccin-frappe-DbLkF0J2.js +0 -1
- package/dist/diff_tool/app/dist/assets/catppuccin-latte-b6208YQK.js +0 -1
- package/dist/diff_tool/app/dist/assets/catppuccin-macchiato-CNNBbV1L.js +0 -1
- package/dist/diff_tool/app/dist/assets/catppuccin-mocha-DHkNF0Mp.js +0 -1
- package/dist/diff_tool/app/dist/assets/dark-plus-BVZ_4wTZ.js +0 -1
- package/dist/diff_tool/app/dist/assets/dracula-BoZgXveB.js +0 -1
- package/dist/diff_tool/app/dist/assets/dracula-soft-D-Kgh5gw.js +0 -1
- package/dist/diff_tool/app/dist/assets/engine-oniguruma-C5P09Ghe.js +0 -1
- package/dist/diff_tool/app/dist/assets/everforest-dark-Y6tr-2zD.js +0 -1
- package/dist/diff_tool/app/dist/assets/everforest-light-CA0Ol4Qu.js +0 -1
- package/dist/diff_tool/app/dist/assets/github-dark-C895GGrm.js +0 -1
- package/dist/diff_tool/app/dist/assets/github-dark-default-CM8LCIj6.js +0 -1
- package/dist/diff_tool/app/dist/assets/github-dark-dimmed-jPx1V1fR.js +0 -1
- package/dist/diff_tool/app/dist/assets/github-dark-high-contrast-UN5YjL_Z.js +0 -1
- package/dist/diff_tool/app/dist/assets/github-light-B4HDwToD.js +0 -1
- package/dist/diff_tool/app/dist/assets/github-light-default-CfC59JYV.js +0 -1
- package/dist/diff_tool/app/dist/assets/github-light-high-contrast-C3edEHcK.js +0 -1
- package/dist/diff_tool/app/dist/assets/gruvbox-dark-hard-BdGOuxq8.js +0 -1
- package/dist/diff_tool/app/dist/assets/gruvbox-dark-medium-CmygtSMi.js +0 -1
- package/dist/diff_tool/app/dist/assets/gruvbox-dark-soft-BJH4XuY9.js +0 -1
- package/dist/diff_tool/app/dist/assets/gruvbox-light-hard-BkSILF4E.js +0 -1
- package/dist/diff_tool/app/dist/assets/gruvbox-light-medium-DiZUfgdz.js +0 -1
- package/dist/diff_tool/app/dist/assets/gruvbox-light-soft-CRCTnbIj.js +0 -1
- package/dist/diff_tool/app/dist/assets/highlights-Bi-VwGCO.js +0 -3
- package/dist/diff_tool/app/dist/assets/horizon-DUI96lQn.js +0 -1
- package/dist/diff_tool/app/dist/assets/horizon-bright-COxh1lHf.js +0 -1
- package/dist/diff_tool/app/dist/assets/houston-DduE73P7.js +0 -1
- package/dist/diff_tool/app/dist/assets/kanagawa-dragon-BHDhSKDf.js +0 -1
- package/dist/diff_tool/app/dist/assets/kanagawa-lotus-NJjGXXql.js +0 -1
- package/dist/diff_tool/app/dist/assets/kanagawa-wave-DsGe2Uqk.js +0 -1
- package/dist/diff_tool/app/dist/assets/langs-CDbZNx2R.js +0 -1
- package/dist/diff_tool/app/dist/assets/laserwave-DYV0fvJ_.js +0 -1
- package/dist/diff_tool/app/dist/assets/light-plus-FTnIShls.js +0 -1
- package/dist/diff_tool/app/dist/assets/loader-DYYMIDWx.js +0 -1
- package/dist/diff_tool/app/dist/assets/material-theme-IcIb8QNx.js +0 -1
- package/dist/diff_tool/app/dist/assets/material-theme-darker-B_f2vxdL.js +0 -1
- package/dist/diff_tool/app/dist/assets/material-theme-lighter-CR2Q-4Hp.js +0 -1
- package/dist/diff_tool/app/dist/assets/material-theme-ocean-BX6hAJ_y.js +0 -1
- package/dist/diff_tool/app/dist/assets/material-theme-palenight-B6DWAotd.js +0 -1
- package/dist/diff_tool/app/dist/assets/min-dark-DECtZcqS.js +0 -1
- package/dist/diff_tool/app/dist/assets/min-light-qRIVcaqf.js +0 -1
- package/dist/diff_tool/app/dist/assets/monokai-CLmrJ-8t.js +0 -1
- package/dist/diff_tool/app/dist/assets/night-owl-eR4AsyAP.js +0 -1
- package/dist/diff_tool/app/dist/assets/night-owl-light-C74n5ti-.js +0 -1
- package/dist/diff_tool/app/dist/assets/nord-D4wy7NEP.js +0 -1
- package/dist/diff_tool/app/dist/assets/one-dark-pro-28TLzoS8.js +0 -1
- package/dist/diff_tool/app/dist/assets/one-light-C0UY_Fh7.js +0 -1
- package/dist/diff_tool/app/dist/assets/pierre-dark-fPlffE7i.js +0 -1
- package/dist/diff_tool/app/dist/assets/pierre-dark-protanopia-deuteranopia-BmjibgrW.js +0 -1
- package/dist/diff_tool/app/dist/assets/pierre-dark-soft-Cng2SYKc.js +0 -1
- package/dist/diff_tool/app/dist/assets/pierre-dark-tritanopia-DneQ5i7L.js +0 -1
- package/dist/diff_tool/app/dist/assets/pierre-dark-vibrant-BUK9Y-N_.js +0 -1
- package/dist/diff_tool/app/dist/assets/pierre-light-BvcXQJIj.js +0 -1
- package/dist/diff_tool/app/dist/assets/pierre-light-protanopia-deuteranopia-Cd5nk0bp.js +0 -1
- package/dist/diff_tool/app/dist/assets/pierre-light-soft-BvU23vks.js +0 -1
- package/dist/diff_tool/app/dist/assets/pierre-light-tritanopia-BSHccQzI.js +0 -1
- package/dist/diff_tool/app/dist/assets/pierre-light-vibrant-BgMZEwQI.js +0 -1
- package/dist/diff_tool/app/dist/assets/plastic-B2V_PDVk.js +0 -1
- package/dist/diff_tool/app/dist/assets/poimandres-DB9-pI6r.js +0 -1
- package/dist/diff_tool/app/dist/assets/red-CqYzoXtd.js +0 -1
- package/dist/diff_tool/app/dist/assets/rose-pine-C3zjVKxG.js +0 -1
- package/dist/diff_tool/app/dist/assets/rose-pine-dawn-C72QYfqa.js +0 -1
- package/dist/diff_tool/app/dist/assets/rose-pine-moon-CSM8ewhO.js +0 -1
- package/dist/diff_tool/app/dist/assets/slack-dark-Dtzi51su.js +0 -1
- package/dist/diff_tool/app/dist/assets/slack-ochin-Bb7oPExa.js +0 -1
- package/dist/diff_tool/app/dist/assets/snazzy-light-DXgiwzKu.js +0 -1
- package/dist/diff_tool/app/dist/assets/solarized-dark-BKOT3ICq.js +0 -1
- package/dist/diff_tool/app/dist/assets/solarized-light--Lk5pOfE.js +0 -1
- package/dist/diff_tool/app/dist/assets/synthwave-84-BJJFg-sc.js +0 -1
- package/dist/diff_tool/app/dist/assets/tokyo-night-DvpptEDd.js +0 -1
- package/dist/diff_tool/app/dist/assets/vesper-C1rBZbON.js +0 -1
- package/dist/diff_tool/app/dist/assets/vitesse-black-Sqvrs2Sw.js +0 -1
- package/dist/diff_tool/app/dist/assets/vitesse-dark-BWf_ZQtP.js +0 -1
- package/dist/diff_tool/app/dist/assets/vitesse-light-Cqenv4Qv.js +0 -1
|
@@ -1,18 +1,34 @@
|
|
|
1
1
|
# Subagents
|
|
2
2
|
|
|
3
|
-
Subagents are background agents that the main agent
|
|
3
|
+
Subagents are background agents that the host supervises. The main agent can start them, and a native Tau subagent can start its own. They help when part of the work can run independently or benefits from a separate context. A subagent belongs to the session it runs in. It has no saved session of its own and no persona file.
|
|
4
4
|
|
|
5
5
|
## Background workers
|
|
6
6
|
|
|
7
7
|
Subagents are general-purpose workers. There are no named types. Several can run at once, each with its own task and conversation.
|
|
8
8
|
|
|
9
|
-
A native Tau subagent works like a main agent of the active persona in the subagent's working directory. Its system prompt is the one a main agent would get there, with the same persona prompt, skills, project instructions, and environment context. Tau adds a short section in front that explains the subagent's role: work headless on
|
|
9
|
+
A native Tau subagent works like a main agent of the active persona in the subagent's working directory. Its system prompt is the one a main agent would get there, with the same persona prompt, skills, project instructions, and environment context. Tau adds a short section in front that explains the subagent's role: work headless on its assignment, wait for work its answer depends on, delegate only when it can and is asked to, leave contact with the user to its parent, and return a self-contained result. The section also lists the session IDs from the main agent down to the subagent. This section cannot be configured. Put task-specific instructions in the launch prompt.
|
|
10
10
|
|
|
11
|
-
Whether the
|
|
11
|
+
Whether the agents in a session can start subagents depends on the main persona's tool list. The `agents` tool name enables `tau.agents` in the `code` tool and the `wait_for_agents` tool. Built-in personas, and custom personas that omit `tools`, include it. A custom persona with a `tools` list that lacks `agents` cannot start or manage subagents, and neither can anything below it. There is no other setting to turn subagents on or off. See [personas](personas.md).
|
|
12
|
+
|
|
13
|
+
## Levels and access
|
|
14
|
+
|
|
15
|
+
Each subagent records its parent and its depth below the main agent, which has depth 0. Depth 2 is the deepest level:
|
|
16
|
+
|
|
17
|
+
```text
|
|
18
|
+
main
|
|
19
|
+
├── A (depth 1)
|
|
20
|
+
│ ├── B (depth 2)
|
|
21
|
+
│ └── C (depth 2)
|
|
22
|
+
└── D (depth 1)
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
The main agent and native Tau subagents at depth 1 can start subagents of either kind. Depth 2 subagents and [Claude Code subagents](#claude-code-subagents) cannot.
|
|
26
|
+
|
|
27
|
+
An agent can reach only its descendants. In the example, the main agent manages all four subagents, A manages B and C, and D manages none. This applies to every `tau.agents` method and to `wait_for_agents`, and any other ID fails with `unknown_agent`. `spawn` always makes the caller the parent.
|
|
12
28
|
|
|
13
29
|
## Trigger sensitivity
|
|
14
30
|
|
|
15
|
-
|
|
31
|
+
An agent starts subagents only when the user or active instructions explicitly ask for delegation. For a subagent, this includes its assignment. Having `agents` does not by itself give it permission. Ask in ordinary language; no special tag is needed.
|
|
16
32
|
|
|
17
33
|
The agent follows this rule itself. Tau checks that a launch is valid, but it does not judge whether the request asked for delegation.
|
|
18
34
|
|
|
@@ -28,16 +44,17 @@ A native Tau subagent can receive these tools. [Claude Code subagents](#claude-c
|
|
|
28
44
|
- `history`
|
|
29
45
|
- `mcp`, when the session has enabled MCP servers
|
|
30
46
|
- `models`
|
|
47
|
+
- `agents`, at depth 1 only
|
|
31
48
|
|
|
32
|
-
A subagent gets each of these that
|
|
49
|
+
A subagent gets each of these that its parent also has. For example, a main persona with `bash`, `edit`, `history`, and `agents` gives depth 1 subagents all four, and gives depth 2 subagents `bash`, `edit`, and `history`. Names such as `web` and `history` enable the matching capability in the subagent's `code` tool. MCP uses the parent session's servers and connections, whatever the subagent's working directory. There is no separate tool list for subagents.
|
|
33
50
|
|
|
34
|
-
Every native Tau subagent also gets the built-in `tau_docs` tool, and a persona's `tools` list cannot remove it.
|
|
51
|
+
Every native Tau subagent also gets the built-in `tau_docs` tool, and a persona's `tools` list cannot remove it.
|
|
35
52
|
|
|
36
53
|
Subagents also never get [client tools](client-tools.md), such as the TUI's tools or a Telegram runner's file delivery tools. Only the main agent uses tools that attached clients offer. See [tools](tools.md) for how tool availability works in general.
|
|
37
54
|
|
|
38
55
|
## Models and settings
|
|
39
56
|
|
|
40
|
-
By default, a new subagent uses
|
|
57
|
+
By default, a new subagent uses its parent's model and all of its parent's settings, including reasoning and service tier. For a subagent of the main agent, these come from the active persona. A child of a subagent launched with a model override inherits that override. These are fixed when the subagent starts. Later persona or reasoning changes do not affect it.
|
|
41
58
|
|
|
42
59
|
A model override uses this exact form:
|
|
43
60
|
|
|
@@ -47,7 +64,7 @@ A model override uses this exact form:
|
|
|
47
64
|
|
|
48
65
|
The provider is lowercased. The model ID is kept exactly as written and is case-sensitive. Effort is one of `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, or `max`.
|
|
49
66
|
|
|
50
|
-
The configured list of launch models is an allowlist. It does not choose a default.
|
|
67
|
+
The configured list of launch models is an allowlist. It does not choose a default. An agent should normally omit the `model` option of `tau.agents.spawn`, and the subagent then uses its parent's model and reasoning. When `model` is given, it must exactly match an allowlist entry after normalization. For native Tau subagents, the override changes the provider, model, and reasoning, and keeps the other settings.
|
|
51
68
|
|
|
52
69
|
A model ID may be missing from the catalog if its provider is known (see [models](models.md)). An entry with an invalid provider, model, effort, or format makes the configuration field invalid. Duplicate entries are removed.
|
|
53
70
|
|
|
@@ -57,9 +74,9 @@ These rules apply to native Tau subagents. [Claude Code subagents](#claude-code-
|
|
|
57
74
|
|
|
58
75
|
When `model` is omitted, a subagent inherits the effective threshold of the parent's launching turn, including any session `/auto-compact` override. A setting change during that turn affects only later turns and their launches.
|
|
59
76
|
|
|
60
|
-
When `model` is specified, the threshold comes from the persona's `subagentAutoCompactThresholdTokens` entry for that `<provider>/<model>`, without reasoning effort. The provider matches in any case, and the model ID must match exactly. If there is no entry, it uses the selected model's context window minus 16,384 tokens. This applies even when the explicit model matches the parent
|
|
77
|
+
When `model` is specified, the threshold comes from the persona's `subagentAutoCompactThresholdTokens` entry for that `<provider>/<model>`, without reasoning effort. The provider matches in any case, and the model ID must match exactly. If there is no entry, it uses the selected model's context window minus 16,384 tokens. This applies even when the explicit model matches the parent.
|
|
61
78
|
|
|
62
|
-
All thresholds are capped at the selected model's context window minus 16,384 tokens. Each child measures its own usage and keeps its launch threshold for follow-ups.
|
|
79
|
+
All thresholds are capped at the selected model's context window minus 16,384 tokens. Each child measures its own usage and keeps its launch threshold for follow-ups. See [personas](personas.md) for a configuration example.
|
|
63
80
|
|
|
64
81
|
### Allowing model overrides
|
|
65
82
|
|
|
@@ -80,7 +97,7 @@ The nearest `launchModels` list replaces broader ones; lists are not combined. T
|
|
|
80
97
|
|
|
81
98
|
## Claude Code subagents
|
|
82
99
|
|
|
83
|
-
The `claude-code` launch provider runs Claude Code through Anthropic's Agent SDK.
|
|
100
|
+
The `claude-code` launch provider runs Claude Code through Anthropic's Agent SDK. Agents manage these workers with the same `tau.agents` methods and `wait_for_agents` tool as native Tau subagents. Claude Code models are available only as explicit subagent launch overrides.
|
|
84
101
|
|
|
85
102
|
Install Claude Code on the session's execution environment, put `claude` on its login-shell `PATH`, and sign in there with a Claude subscription. A login on the host or attached laptop does not reach a separate execution environment. Tau includes Agent SDK 0.3.312, so no separate SDK installation is needed.
|
|
86
103
|
|
|
@@ -114,63 +131,61 @@ Claude Code loads its user, project, and local settings and discovers its own in
|
|
|
114
131
|
| `edit` | Edit |
|
|
115
132
|
| `web` | WebSearch, WebFetch |
|
|
116
133
|
|
|
117
|
-
Workers receive no Tau `code` capabilities, Tau MCP connections, `tau_docs`, or client tools.
|
|
134
|
+
Workers receive no Tau `code` capabilities, Tau MCP connections, `tau_docs`, or client tools, so they cannot start Tau subagents. Claude Code's own nested agents and interactive questions are disabled. Hooks and automatic memory are disabled too. Claude Code discovers its own MCP servers from its normal configuration sources, including project and user configuration on the execution environment. These connections are independent of the parent persona's `mcp` tool selection and of Tau's `mcpServers` setting. They run on the execution environment, so workers can use them even in a session on a remote execution environment, where Tau's own MCP is unavailable. Managed Claude Code policies still apply.
|
|
118
135
|
|
|
119
136
|
Selected tools use `bypassPermissions`, with Claude Code's sandbox disabled. They run with the execution environment's operating-system authority, like Tau's tools. Review the local Claude settings, skills, and MCP configuration before enabling these workers.
|
|
120
137
|
|
|
121
|
-
Tau displays short assistant updates and tool completion summaries. It also records the worker's assistant text, tool calls, and tool results in the worker's [trace](#conversation-traces), using Claude Code's own tool names, such as `Bash` and `Read`. Tau records SDK-reported
|
|
138
|
+
Tau displays short assistant updates and tool completion summaries. It also records the worker's assistant text, tool calls, and tool results in the worker's [trace](#conversation-traces), using Claude Code's own tool names, such as `Bash` and `Read`. Tau records SDK-reported token usage as it arrives, so interruption preserves counts already received. Final SDK totals supply cost estimates, so cost from an interrupted run remains unavailable until the SDK reports it.
|
|
122
139
|
|
|
123
140
|
Before sending the task, Tau checks that the SDK reports a subscription login without API-key authentication. Claude Code keeps its own credentials. Tau removes API and cloud-provider routing overrides from the child environment and provides no API fallback. Fast mode is disabled. Account-level extra usage can still incur charges; disable it in Claude to use only the included subscription allowance. The SDK's dollar estimates do not report subscription charges.
|
|
124
141
|
|
|
125
142
|
Steering messages go to Claude Code through the Agent SDK's streaming input while the worker is busy. Claude Code decides when to read them, typically between tool rounds, and a tool that is already running may continue. A steering message that Claude Code has not read when its turn ends is handled in another turn. Queued messages wait until Claude Code reports that its turn is finished.
|
|
126
143
|
|
|
127
|
-
Claude workers share the
|
|
144
|
+
Claude workers share the [session-wide limit](#spawn) and the usual subagent lifetime. Interrupting a worker terminates its process group. A follow-up can resume its Claude session while the parent session remains alive. Host restart, session disposal, and rewind remove workers under the same rules as native Tau subagents. Claude's transcript files remain on disk, but Tau does not use them to restore workers after a restart.
|
|
128
145
|
|
|
129
146
|
## Working directory
|
|
130
147
|
|
|
131
|
-
`tau.agents.spawn` normally runs the subagent in
|
|
148
|
+
`tau.agents.spawn` normally runs the subagent in its parent's working directory. The optional `workingDirectory` may be absolute or relative to that directory. Tau resolves it to an absolute path on the execution environment, and the host and attached clients never resolve it against their own filesystems.
|
|
132
149
|
|
|
133
|
-
For native Tau subagents, when that path differs from the parent's
|
|
150
|
+
For native Tau subagents, when that path differs from the parent's working directory, Tau rebuilds the subagent's context for the new directory. It detects the platform and repository there, reads the applicable `AGENTS.md` files, and discovers that directory's skills. The persona, model catalog, runtime configuration, credentials, and tool policy still come from the parent.
|
|
134
151
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
A native Tau launch fails if Tau cannot build context for the directory, if the directory is invalid for the environment, or if the environment cannot resolve working directories. A path that resolves to the parent's `cwd`, such as `.`, reuses the parent's context. Claude Code workers load context themselves in the selected directory; an invalid directory fails when the worker starts.
|
|
152
|
+
A native Tau launch fails if Tau cannot build context for the directory. A path that resolves to the parent's working directory, such as `.`, reuses the parent's context. Claude Code workers load context themselves in the selected directory; an invalid directory fails when the worker starts.
|
|
138
153
|
|
|
139
154
|
## Managing subagents
|
|
140
155
|
|
|
141
|
-
|
|
156
|
+
An agent manages its descendants with `tau.agents` inside the [`code` tool](code-mode.md), and waits for them with the `wait_for_agents` tool. Each subagent has an ID that the host generates, and one conversation that grows with each input.
|
|
142
157
|
|
|
143
158
|
| Method | Purpose |
|
|
144
159
|
| --- | --- |
|
|
145
160
|
| `spawn({ title, prompt, model?, workingDirectory? })` | Start a subagent. |
|
|
146
|
-
| `list()` | State of every
|
|
161
|
+
| `list()` | State of every descendant as a flat list, plus the number running in the session and the limit. |
|
|
147
162
|
| `read({ id })` | State of one subagent. |
|
|
148
163
|
| `sendInput({ id, message, mode })` | Queue or steer more input. |
|
|
149
|
-
| `interrupt({ id, wait? })` | Stop the current turn and discard pending input. |
|
|
164
|
+
| `interrupt({ id, wait?, scope? })` | Stop the current turn and discard pending input, for one subagent or its whole branch. |
|
|
150
165
|
| `waitUntilIdle({ id })` | Wait inside a program until the subagent is idle. |
|
|
151
166
|
| `trace({ id, kinds?, toolName?, limit?, cursor? })` | Read a page of the subagent's conversation. |
|
|
152
167
|
| `readText({ id, seq, maxChars? })` | Read the text of one assistant message or tool result. |
|
|
153
168
|
| `readContent({ id, ref, cursor? })` | Page through large or non-text content. |
|
|
154
169
|
|
|
155
|
-
The agent reads the complete reference, with types and examples, by printing `await tau.docs("agents")` in `code`.
|
|
170
|
+
The agent reads the complete reference, with types and examples, by printing `await tau.docs("agents")` in `code`. Only what a program prints reaches the calling agent's conversation, so the agent can select the part of a long trace it needs.
|
|
156
171
|
|
|
157
172
|
### Spawn
|
|
158
173
|
|
|
159
174
|
`spawn` takes a single-line title of at most 512 characters, a prompt of at most 262,144 characters, an optional model, and an optional working directory. The prompt is the subagent's first message, and the subagent does not see the parent conversation, so the prompt should be self-contained. The call returns right away with the subagent's state, and the subagent keeps working in the background.
|
|
160
175
|
|
|
161
|
-
When
|
|
176
|
+
When a native Tau subagent has `history`, it follows the same history rules as the main agent, and an assignment that asks about past conversations counts as an explicit request. It may also read its ancestors' transcripts, including the main agent's, which holds what the user said. Without being asked, it reads them only when missing context would stop the work or force an important assumption. These reads use `tau.history.read` with `source: "local"`, which reads the host's history and skips any remote collection. Local recording is best-effort, so the newest entries can be missing.
|
|
162
177
|
|
|
163
|
-
At most
|
|
178
|
+
At most 16 subagents can be working at once in one session, across both levels. A parent counts while its own turn is active, including when it is waiting for its children. Idle subagents and the main agent do not count. A launch that would exceed the limit fails right away and is not queued.
|
|
164
179
|
|
|
165
180
|
### State and waiting
|
|
166
181
|
|
|
167
|
-
A subagent's state has its ID, title, model and reasoning, working directory, status, counts of pending queued and steering input, token usage, context size, and cost. The status is one of:
|
|
182
|
+
A subagent's state has its ID, parent's ID, depth, title, model and reasoning, working directory, status, counts of pending queued and steering input, token usage, context size, and cost. The status is one of:
|
|
168
183
|
|
|
169
184
|
- `working`: the subagent is handling input.
|
|
170
185
|
- `stopping`: an interrupt was requested and the turn has not ended yet.
|
|
171
186
|
- `idle`: no turn is running and no input is pending. `reason` tells how the latest turn ended: `completed`, `interrupted`, or `failed`, with an error code and message for a failure.
|
|
172
187
|
|
|
173
|
-
`completed` means the turn ended normally. It does not mean the task succeeded, so the
|
|
188
|
+
`completed` means the turn ended normally. It does not mean the task succeeded, so the parent reads the subagent's answer before relying on it. Background Bash and code jobs that a subagent started do not keep it working.
|
|
174
189
|
|
|
175
190
|
`wait_for_agents` takes one or more IDs. It returns as soon as at least one of them is idle, with a text block for every requested subagent:
|
|
176
191
|
|
|
@@ -190,16 +205,16 @@ No problems found in the session expiry checks.
|
|
|
190
205
|
|
|
191
206
|
A subagent that is still working or stopping gets only its ID, title, status, and pending counts. An idle subagent also gets `reason`, an `error` line with the code and message after a failed turn, and the last assistant message from its latest turn:
|
|
192
207
|
|
|
193
|
-
- `response_seq` is the message's `seq` in the trace
|
|
194
|
-
- `response_complete` is `false` when the text was shortened to fit the budget, or when some of it is
|
|
208
|
+
- `response_seq` is the message's `seq` in the trace, for reading more with `readText`.
|
|
209
|
+
- `response_complete` is `false` when the text was shortened to fit the budget, or when some of it is no longer available.
|
|
195
210
|
- `response_partial` is `true` when the turn failed or was interrupted, so the message may be an unfinished answer.
|
|
196
|
-
- `response: none` replaces these lines when the latest turn produced no assistant message.
|
|
211
|
+
- `response: none` replaces these lines when the latest turn produced no assistant message.
|
|
197
212
|
|
|
198
213
|
The response text of all requested subagents shares a budget of 8,192 estimated tokens, split evenly between them, working ones included. The optional `maxOutputTokens` sets a different budget, from 1 to 65,536.
|
|
199
214
|
|
|
200
|
-
Inside a program, `waitUntilIdle` waits for one subagent with the same meaning of idle and returns its state without the response. Neither wait returns until queued input has been handled too. Cancelling a wait, or stopping the program that waits, does not interrupt the subagent.
|
|
215
|
+
Inside a program, `waitUntilIdle` waits for one subagent with the same meaning of idle and returns its state without the response. Neither wait returns until queued input has been handled too. Both cover only the requested subagents. A parent can be idle while its children are working, and a child finishing does not start another turn for its parent. Cancelling a wait, or stopping the program that waits, does not interrupt the subagent.
|
|
201
216
|
|
|
202
|
-
The host also sends attached clients a live summary of subagent activity for display.
|
|
217
|
+
The host also sends attached clients a live summary of subagent activity for display.
|
|
203
218
|
|
|
204
219
|
### Send more input
|
|
205
220
|
|
|
@@ -208,15 +223,17 @@ The host also sends attached clients a live summary of subagent activity for dis
|
|
|
208
223
|
- `queue`: the subagent finishes its current work, then handles the message as a separate turn. Queued messages run in the order they were sent.
|
|
209
224
|
- `steer`: the subagent takes the message into account as soon as possible during its current turn. A native Tau subagent applies it at the next safe point, never in the middle of a model response or tool call, as in the [main session](sessions.md#submit-queue-and-steer). [Claude Code subagents](#claude-code-subagents) follow Claude Code's own streaming-input behavior.
|
|
210
225
|
|
|
211
|
-
Either mode starts a new turn right away on an idle subagent. The call returns once the input is accepted, before the subagent reads it. The subagent keeps its conversation, model, settings, tools, and working directory.
|
|
226
|
+
Either mode starts a new turn right away on an idle subagent. The call returns once the input is accepted, before the subagent reads it. The subagent keeps its conversation, model, settings, tools, and working directory.
|
|
212
227
|
|
|
213
|
-
Sending input fails while the subagent is stopping, when 64 inputs are already pending, or when the subagent is idle and
|
|
228
|
+
Sending input fails while the subagent is stopping, when 64 inputs are already pending, or when the subagent is idle and 16 subagents are already working.
|
|
214
229
|
|
|
215
230
|
### Interrupt
|
|
216
231
|
|
|
217
|
-
`interrupt` stops the current turn and discards all pending input, so the subagent does not continue with queued work.
|
|
232
|
+
`interrupt` stops the current turn and discards all pending input, so the subagent does not continue with queued work. With the default `scope: "agent"`, only the selected subagent stops and its descendants keep running. Interrupting an idle subagent this way only returns its state. `scope: "subtree"` stops the selected subagent and all its descendants, even when the selected one is idle. Until they have stopped, they refuse new input, and launches they have in progress fail.
|
|
233
|
+
|
|
234
|
+
By default the call waits until every targeted turn has ended. With `wait: false` it returns right away, and the status may still be `stopping`. The result is the selected subagent's state. Background jobs that the subagents started keep running, and the subagents stay available for more input.
|
|
218
235
|
|
|
219
|
-
In the TUI, `Ctrl+G` interrupts the selected running subagent. Interrupting the main session does not interrupt subagents, and interrupting a subagent does not interrupt the main session.
|
|
236
|
+
In the TUI, `Ctrl+G` interrupts only the selected running subagent. Interrupting the main session does not interrupt subagents, and interrupting a subagent does not interrupt the main session.
|
|
220
237
|
|
|
221
238
|
### Conversation traces
|
|
222
239
|
|
|
@@ -224,18 +241,18 @@ Each subagent has a trace: an ordered record of what it was told, what it said,
|
|
|
224
241
|
|
|
225
242
|
| Kind | Contents |
|
|
226
243
|
| --- | --- |
|
|
227
|
-
| `input` | Each message
|
|
244
|
+
| `input` | Each accepted message, with its mode: `initial`, `queue`, or `steer`. |
|
|
228
245
|
| `assistant` | The subagent's message text. |
|
|
229
246
|
| `tool_call` | The tool name, call ID, and arguments as JSON. |
|
|
230
|
-
| `tool_result` | The tool name, call ID, outcome, and
|
|
231
|
-
| `notice` | An event with a machine-readable code, such as `input.discarded`
|
|
247
|
+
| `tool_result` | The tool name, call ID, outcome, and result as the subagent received it. |
|
|
248
|
+
| `notice` | An event with a machine-readable code, such as `input.discarded` or the failure code of a failed turn. |
|
|
232
249
|
| `status` | The subagent started working, began stopping, or became idle. |
|
|
233
250
|
|
|
234
|
-
Traces do not contain reasoning or system prompts.
|
|
251
|
+
Traces do not contain reasoning or system prompts. Output that a tool itself shortened stays shortened.
|
|
235
252
|
|
|
236
|
-
Each entry has a sequence number `seq` and a timestamp. A `trace` call returns the newest matching entries in chronological order, 20 by default and at most 50. It can filter by entry kinds and by tool name. Its `nextCursor` leads to older entries.
|
|
253
|
+
Each entry has a sequence number `seq` and a timestamp. A `trace` call returns the newest matching entries in chronological order, 20 by default and at most 50. It can filter by entry kinds and by tool name. Its `nextCursor` leads to older entries.
|
|
237
254
|
|
|
238
|
-
Content of at most 4,096 bytes as JSON, without images, is inline in the entry. Larger content and all images are references. `readText` returns the text of one assistant message or tool result, up to 30,000 UTF-16 code units by default and at most 100,000.
|
|
255
|
+
Content of at most 4,096 bytes as JSON, without images, is inline in the entry. Larger content and all images are references. `readText` returns the text of one assistant message or tool result, up to 30,000 UTF-16 code units by default and at most 100,000. Content with JSON or images needs `readContent`, which returns one block per page, with text in chunks of at most 16,384 UTF-16 code units.
|
|
239
256
|
|
|
240
257
|
A trace keeps the newest 4,096 entries, up to 64 MiB, for each subagent. When older entries are removed, trace pages report `historyEvicted: true`, and reading a removed entry or reference fails. A single content value larger than 6 MiB is replaced by a block that marks it unavailable. Traces last as long as the subagent and do not survive a host restart.
|
|
241
258
|
|
|
@@ -243,22 +260,22 @@ A failed call throws an error with a `code` and a `message`. The codes are `inva
|
|
|
243
260
|
|
|
244
261
|
## Detach, rewind, and recovery
|
|
245
262
|
|
|
246
|
-
Subagents belong to the running session on the host, not to an attached TUI. Detaching a client
|
|
263
|
+
Subagents belong to the running session on the host, not to an attached TUI. Detaching a client or losing the connection does not stop them while the session stays alive, which [retention](sessions.md#detach-reattach-and-recover) can extend. Another client can attach and see their state.
|
|
247
264
|
|
|
248
|
-
|
|
265
|
+
Host shutdown or session disposal interrupts and removes all subagents, and none survive a host restart. Recovery removes any saved records, so a recovered session cannot send input to an old subagent ID.
|
|
249
266
|
|
|
250
|
-
Rewind also removes subagents that
|
|
267
|
+
Rewind also removes subagents that the main agent started from an assistant message the rewind removed, with all their descendants. A subagent started from a `code` program belongs to the assistant message that ran the program, including a program running as a background job. Rewind is refused while any subagent is running.
|
|
251
268
|
|
|
252
|
-
Tau records native subagents
|
|
269
|
+
Tau records native subagents in [history](history.md#native-subagent-sessions) as child sessions of their immediate parents, even without the `history` tool. These sessions stay after a rewind, but history cannot restore the subagents. Claude Code is excluded.
|
|
253
270
|
|
|
254
271
|
Important results should reach the main agent and end up in the session history or in project files before the session on the host goes away. [Sessions](sessions.md) covers saving and recovery in general.
|
|
255
272
|
|
|
256
273
|
## Reloading and validation
|
|
257
274
|
|
|
258
|
-
Changes to persona tools or to the launch allowlist apply after `/reload` in an idle session, or in a new session. Reload
|
|
275
|
+
Changes to persona tools or to the launch allowlist apply after `/reload` in an idle session, or in a new session. Reload updates the main agent, so only the subagents it launches later, and their children, use the new setup. Existing subagents keep the setup they started with, including its tools and launch allowlist, and pass it on to children they launch later. For example, an existing subagent can still launch a child with a model you removed from `subagents.launchModels`.
|
|
259
276
|
|
|
260
277
|
`subagents.launchModels` must be an array of valid `<provider>/<model>:<effort>` strings. Unknown providers, invalid efforts, and malformed entries produce configuration warnings.
|
|
261
278
|
|
|
262
|
-
A launch can fail because of invalid arguments, a model outside the allowlist, the concurrency limit,
|
|
279
|
+
A launch can fail because of invalid arguments, a model outside the allowlist, the concurrency limit, an interrupted caller, or a prompt or working-directory context that cannot be built. Calls with an ID outside the caller's descendants fail.
|
|
263
280
|
|
|
264
281
|
Before starting a local TUI, `tau --debug --persona <id>` shows which tools are available, the model and settings subagents inherit, and the subagents' tool list. In a running session, `/reload` reports file warnings and `tau.agents.list()` shows live subagent state.
|
|
@@ -155,7 +155,7 @@ Each guide covers setup, input, examples, outputs, and failures. Run `tau tool -
|
|
|
155
155
|
|
|
156
156
|
## Subagent tools
|
|
157
157
|
|
|
158
|
-
A subagent gets each of `bash`, `write`, `edit`, `view_image`, `web`, `history`, `mcp`, and `models` that
|
|
158
|
+
A subagent gets each of `bash`, `write`, `edit`, `view_image`, `web`, `history`, `mcp`, and `models` that its parent also has, plus `tau_docs`. A native Tau subagent at depth 1 also gets `agents` when its parent has it. Subagents at depth 2 and Claude Code subagents never get it, and no subagent gets client tools. Its Bash and file tools start in the subagent's working directory. [Subagents](subagents.md#tools) has the details.
|
|
159
159
|
|
|
160
160
|
## Client-owned tools
|
|
161
161
|
|
|
@@ -119,11 +119,11 @@ For a host tool, check the active persona's `tools` list. A list replaces the de
|
|
|
119
119
|
|
|
120
120
|
For subagents, check three things:
|
|
121
121
|
|
|
122
|
-
1. The main persona has `agents
|
|
122
|
+
1. The main persona has `agents`, and the calling agent is the main agent or a native Tau subagent at depth 1.
|
|
123
123
|
2. A requested model exactly matches an entry in the launch allowlist.
|
|
124
|
-
3. Fewer than
|
|
124
|
+
3. Fewer than 16 subagents are running in the session.
|
|
125
125
|
|
|
126
|
-
A running subagent keeps its model, tools, and working directory after a reload. Recovery does not restore subagents, so old IDs cannot receive follow-ups after a host restart. Use `tau.agents.list()` in `code` to see live
|
|
126
|
+
A running subagent keeps its model, tools, and working directory after a reload. Recovery does not restore subagents, so old IDs cannot receive follow-ups after a host restart. Use `tau.agents.list()` in `code` to see the caller's live descendants. The main agent sees all of them. See [subagents](subagents.md).
|
|
127
127
|
|
|
128
128
|
If `tau_docs` is missing, the problem is the host's installation or version, not a persona. Check the host package and restart it.
|
|
129
129
|
|
|
@@ -110,7 +110,9 @@ Run commands that change the context, such as persona changes, compaction, rewin
|
|
|
110
110
|
|
|
111
111
|
The footer shows context usage as a percentage of the full model window, such as `20%/272k`. When a session override is set, or the default threshold is below the model-based threshold, the effective compaction threshold appears in parentheses: `20%/272k (50k)`. This threshold cannot exceed the model's context window minus 16,384 tokens. Without an override or a lower default, the footer shows no threshold. Applying a persona removes the session override, even when reapplying the current persona.
|
|
112
112
|
|
|
113
|
-
While subagents are running, a panel above the editor shows the selected subagent's title, recent activity, and a usage line such as `openai-codex/gpt-6-astra:medium · ↑12k ↓2k (r8k w0) · 14%/200k · $0.04`. The line starts with the subagent's provider, model, and reasoning effort, including
|
|
113
|
+
While subagents are running, a panel above the editor shows the selected subagent's title, recent activity, and a usage line such as `openai-codex/gpt-6-astra:medium · ↑12k ↓2k (r8k w0) · 14%/200k · $0.04`. The line starts with the subagent's provider, model, and reasoning effort, including inherited settings. Text that does not fit the terminal width is cut off on the right.
|
|
114
|
+
|
|
115
|
+
A subagent started by another subagent shows `parent title › child title`, with a long parent title shortened first. A subagent with running children shows their number, such as `· 2 children running`, and its footer reads `ctrl+g to interrupt this subagent only`, because they keep running.
|
|
114
116
|
|
|
115
117
|
[Sessions](sessions.md) describes compaction, rewind, recovery, and retry. [Prompts and project context](prompts-and-project-context.md) covers prompt files.
|
|
116
118
|
|
|
@@ -153,8 +155,8 @@ Requests time out after 30 seconds, responses are limited to 64 KiB, and redirec
|
|
|
153
155
|
| Enter | Steer a running turn, or submit while idle. |
|
|
154
156
|
| Ctrl+Enter | Queue another turn, or submit while idle. |
|
|
155
157
|
| Alt+Up | Cancel pending input and put it back in the editor. |
|
|
156
|
-
| Alt+Down | Select the next running subagent. |
|
|
157
|
-
| Ctrl+G | Interrupt the selected subagent. |
|
|
158
|
+
| Alt+Down | Select the next running subagent, one branch at a time. |
|
|
159
|
+
| Ctrl+G | Interrupt only the selected subagent. |
|
|
158
160
|
| Enter twice | Retry, when the editor is empty and the session is idle. |
|
|
159
161
|
| Escape | Interrupt local work or the session. |
|
|
160
162
|
| Escape twice | Clear the editor. |
|
|
@@ -306,8 +308,4 @@ Restart the TUI instead after changing themes, voice, recording shortcut, person
|
|
|
306
308
|
|
|
307
309
|
- `!` and `!!` run in the execution environment, not on the attaching machine.
|
|
308
310
|
- Enter during a turn steers it. Use Ctrl+Enter to queue another turn.
|
|
309
|
-
- Ctrl+T changes only what is displayed. Use Shift+Tab to change reasoning effort.
|
|
310
|
-
- `/prompt:<id>` fills the editor but does not send it.
|
|
311
|
-
- `/diff` adds the returned review to the session but does not ask the assistant to act on it.
|
|
312
|
-
- `/reload` does not reload client themes or client tools.
|
|
313
311
|
- Exiting a WebSocket attachment does not delete the session and does not necessarily stop it. Exiting a local TUI shuts down its host, so running work is interrupted and saved where possible.
|