@markusylisiurunen/tau 0.3.99 → 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 +62 -14
- package/dist/core/code_mode/agents.js.map +1 -1
- package/dist/core/code_mode/history.js +7 -0
- package/dist/core/code_mode/history.js.map +1 -1
- package/dist/core/code_mode/models.js.map +1 -1
- package/dist/core/code_mode/web.js.map +1 -1
- package/dist/core/config/content_loader.js.map +1 -1
- package/dist/core/config/index.js +2 -1
- package/dist/core/config/index.js.map +1 -1
- package/dist/core/config/ownership.js +71 -0
- package/dist/core/config/ownership.js.map +1 -0
- package/dist/core/config/runtime.js +22 -10
- package/dist/core/config/runtime.js.map +1 -1
- package/dist/core/config/runtime_config_snapshot.js +2 -2
- package/dist/core/config/runtime_config_snapshot.js.map +1 -1
- package/dist/core/config/schema.js +3 -2
- package/dist/core/config/schema.js.map +1 -1
- package/dist/core/history/agent_history_recorder.js +64 -0
- package/dist/core/history/agent_history_recorder.js.map +1 -0
- package/dist/core/history/cli.js +2 -2
- package/dist/core/history/cli.js.map +1 -1
- package/dist/core/history/config.js.map +1 -1
- package/dist/core/history/history_manager.js +14 -29
- package/dist/core/history/history_manager.js.map +1 -1
- package/dist/core/history/local_history_store.js +43 -10
- package/dist/core/history/local_history_store.js.map +1 -1
- package/dist/core/history/migrations.js +1 -1
- package/dist/core/history/migrations.js.map +1 -1
- package/dist/core/history/remote_history_client.js +2 -0
- package/dist/core/history/remote_history_client.js.map +1 -1
- package/dist/core/history/setup.js +10 -8
- package/dist/core/history/setup.js.map +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/runtime/agent_model.js.map +1 -1
- package/dist/core/runtime/chat_runtime.js +6 -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 +22 -4
- 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 +2 -2
- package/dist/core/static/tau_docs/config-reference.md +23 -9
- package/dist/core/static/tau_docs/configuration.md +13 -2
- package/dist/core/static/tau_docs/credentials.md +1 -1
- package/dist/core/static/tau_docs/history.md +44 -4
- package/dist/core/static/tau_docs/image-generation.md +27 -20
- package/dist/core/static/tau_docs/models.md +1 -1
- package/dist/core/static/tau_docs/node-sdk.md +10 -10
- package/dist/core/static/tau_docs/ownership-and-scope.md +7 -5
- package/dist/core/static/tau_docs/personas.md +2 -2
- package/dist/core/static/tau_docs/prompts-and-project-context.md +2 -2
- package/dist/core/static/tau_docs/remote-sessions.md +3 -2
- package/dist/core/static/tau_docs/security.md +11 -3
- package/dist/core/static/tau_docs/session-protocol-methods.md +50 -2
- package/dist/core/static/tau_docs/session-protocol.md +41 -12
- package/dist/core/static/tau_docs/sessions.md +5 -3
- package/dist/core/static/tau_docs/subagents.md +69 -52
- package/dist/core/static/tau_docs/telegram-projects.md +62 -4
- package/dist/core/static/tau_docs/telegram.md +9 -6
- package/dist/core/static/tau_docs/tools.md +1 -1
- package/dist/core/static/tau_docs/troubleshooting.md +8 -6
- package/dist/core/static/tau_docs/tui.md +28 -11
- package/dist/core/subagents/agent_supervisor.js +196 -15
- package/dist/core/subagents/agent_supervisor.js.map +1 -1
- package/dist/core/subagents/claude_code_runner.mjs +52 -51
- package/dist/core/subagents/native_subagent_runtime.js +43 -14
- 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/telegram/adapter.js +17 -20
- package/dist/core/telegram/adapter.js.map +1 -1
- package/dist/core/telegram/cli.js +24 -12
- package/dist/core/telegram/cli.js.map +1 -1
- package/dist/core/telegram/config.js +2 -0
- package/dist/core/telegram/config.js.map +1 -1
- package/dist/core/telegram/local_session_client.js +2 -2
- package/dist/core/telegram/local_session_client.js.map +1 -1
- package/dist/core/telegram/runtime.js +10 -1
- package/dist/core/telegram/runtime.js.map +1 -1
- package/dist/core/telegram/session_manager.js +12 -0
- package/dist/core/telegram/session_manager.js.map +1 -1
- package/dist/core/telegram/workspace.js +21 -0
- package/dist/core/telegram/workspace.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/utils/model_notices.js.map +1 -1
- package/dist/core/utils/speech_to_text_keywords.js +10 -4
- package/dist/core/utils/speech_to_text_keywords.js.map +1 -1
- package/dist/core/version.js +2 -2
- package/dist/core/version.js.map +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-D8lOlLN2.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-F9is7PUw.js +221 -0
- 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/lib-BKZ5ZaMU.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-D6ZyrNQD.js +2 -0
- 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-BkuDYA48.js → stream-tokenizer-BdsyU_yB.js} +4 -4
- package/dist/diff_tool/app/dist/assets/synthwave-84-wQeDKbzQ.js +1 -0
- package/dist/diff_tool/app/dist/assets/{themes-BaMgiyFz.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/assets/wasm-4KdTHw0F.js +1 -0
- package/dist/diff_tool/app/dist/index.html +2 -2
- package/dist/history/worker/index.js +140 -15
- package/dist/history/worker/index.js.map +1 -1
- package/dist/history/worker/migrations/0002_parent_session.sql +3 -0
- package/dist/history/worker/viewer.css +10 -1
- package/dist/host/local_session_host.js +304 -172
- package/dist/host/local_session_host.js.map +1 -1
- package/dist/host/session_bootstrap.js +53 -0
- package/dist/host/session_bootstrap.js.map +1 -0
- 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/main.js +48 -95
- package/dist/main.js.map +1 -1
- package/dist/protocol/environment_variables.d.ts +2 -0
- package/dist/protocol/environment_variables.js +7 -0
- package/dist/protocol/environment_variables.js.map +1 -0
- package/dist/protocol/session_protocol.d.ts +27 -3
- package/dist/protocol/session_protocol.js +41 -7
- package/dist/protocol/session_protocol.js.map +1 -1
- package/dist/sdk/client.js +2 -2
- package/dist/sdk/client.js.map +1 -1
- package/dist/sdk/local_client.d.ts +2 -2
- package/dist/sdk/local_client.js +11 -66
- package/dist/sdk/local_client.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 +10 -0
- package/dist/store/session_snapshot_migrations.js +40 -1
- package/dist/store/session_snapshot_migrations.js.map +1 -1
- package/dist/tui/chat_view.js +5 -0
- package/dist/tui/chat_view.js.map +1 -1
- package/dist/tui/host_diagnostic_relay.js +44 -0
- package/dist/tui/host_diagnostic_relay.js.map +1 -0
- package/dist/tui/index.js +1 -0
- package/dist/tui/index.js.map +1 -1
- package/dist/tui/listen_capture.js +7 -9
- package/dist/tui/listen_capture.js.map +1 -1
- package/dist/tui/session_chat_app.js +2 -2
- package/dist/tui/session_chat_app.js.map +1 -1
- package/dist/tui/session_chat_controller.js +89 -13
- package/dist/tui/session_chat_controller.js.map +1 -1
- package/dist/tui/terminal.js +13 -2
- package/dist/tui/terminal.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 +11 -11
- 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/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-B80gocb2.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/index-DSKn9aHV.js +0 -205
- 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-Cb6u03GG.js +0 -1
- package/dist/diff_tool/app/dist/assets/laserwave-DYV0fvJ_.js +0 -1
- package/dist/diff_tool/app/dist/assets/lib-BFrBoEqQ.js +0 -9
- 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/shiki-DaptjTao.js +0 -2
- 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
- package/dist/diff_tool/app/dist/assets/wasm-BnjxR4X6.js +0 -1
|
@@ -131,6 +131,54 @@ result: {
|
|
|
131
131
|
|
|
132
132
|
The session must currently be observed by this connection.
|
|
133
133
|
|
|
134
|
+
## Keep sessions loaded and unload them
|
|
135
|
+
|
|
136
|
+
[Keep a session loaded without clients](session-protocol.md#keep-a-session-loaded-without-clients) explains how these methods fit together. The connection does not need to observe the session to call them.
|
|
137
|
+
|
|
138
|
+
### `session.setRetention`
|
|
139
|
+
|
|
140
|
+
Sets, renews, or clears the session's retention period.
|
|
141
|
+
|
|
142
|
+
```ts
|
|
143
|
+
params: {
|
|
144
|
+
sessionId: string;
|
|
145
|
+
durationMs: number | null;
|
|
146
|
+
}
|
|
147
|
+
result: {
|
|
148
|
+
retainedUntil: number | null;
|
|
149
|
+
}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
`durationMs` is required. A number must be an integer from 1 to 2,147,483,647 (about 24.8 days). The period starts when the host handles the request, and `retainedUntil` is its end in milliseconds since the Unix epoch, according to the host's clock. Each call replaces the previous period, so a call can shorten it as well as extend it.
|
|
153
|
+
|
|
154
|
+
`null` clears retention and returns `retainedUntil: null`. Clearing does not detach clients or interrupt work.
|
|
155
|
+
|
|
156
|
+
Setting a period requires a loaded session and fails with `not_found` otherwise, even when the session is saved. To retain an unloaded session, call `session.observe` first. Clearing always succeeds for a session that is not loaded, including an unknown ID.
|
|
157
|
+
|
|
158
|
+
### `session.collect`
|
|
159
|
+
|
|
160
|
+
Unloads a session if nothing keeps it loaded, and reports whether it is unloaded. This method never loads a session and never deletes the saved one.
|
|
161
|
+
|
|
162
|
+
```ts
|
|
163
|
+
params: {
|
|
164
|
+
sessionId: string;
|
|
165
|
+
}
|
|
166
|
+
result: {
|
|
167
|
+
disposed: boolean;
|
|
168
|
+
}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
The result is `disposed: false`, without waiting, while any of these is true:
|
|
172
|
+
|
|
173
|
+
- A client observes the session, including this connection.
|
|
174
|
+
- A retention period is active.
|
|
175
|
+
- Work is running.
|
|
176
|
+
- The host is loading the session from storage.
|
|
177
|
+
|
|
178
|
+
Otherwise the host unloads the session, and the response waits until any unloading in progress has finished, including the release of the execution environment. The result is then `disposed: true`, which is also the result for a session that is not loaded and for an unknown ID. If unloading fails, the request fails with `internal_error`.
|
|
179
|
+
|
|
180
|
+
If saving the session before disposal fails, retry `session.collect`. A failed disposal, including cleanup of a recovery attempt, means the host can no longer establish that the session's files are safe to remove. No later `session.collect` for that ID returns `disposed: true` until the host restarts, even when the session is no longer loaded. Each later call returns `disposed: false` or fails. The host keeps this record only in memory, so after a restart the session counts as not loaded, and `disposed: true` no longer tells you whether the earlier release finished.
|
|
181
|
+
|
|
134
182
|
## Add user input and run turns
|
|
135
183
|
|
|
136
184
|
### `session.record`
|
|
@@ -423,7 +471,7 @@ result: {
|
|
|
423
471
|
}
|
|
424
472
|
```
|
|
425
473
|
|
|
426
|
-
Reload changes the context and waits its turn behind other changes. It interrupts a running turn and rejects pending input. It does not reload client themes or tools, process environment variables, or host services. See [configuration](configuration.md) for when changes apply.
|
|
474
|
+
Reload changes the context and waits its turn behind other changes. It interrupts a running turn and rejects pending input. It does not reload client themes or tools, process environment variables, or host services. MCP server definitions also stay as they were when the host loaded the session. If the definitions on disk differ, `warnings` says so. See [configuration](configuration.md) for when changes apply.
|
|
427
475
|
|
|
428
476
|
### `session.compact`
|
|
429
477
|
|
|
@@ -464,7 +512,7 @@ Rewind requires an idle session with no pending input, and returns `busy` instea
|
|
|
464
512
|
|
|
465
513
|
### `session.interruptSubagent`
|
|
466
514
|
|
|
467
|
-
Interrupts one subagent's current run.
|
|
515
|
+
Interrupts one subagent's current run, at any depth. Its descendants keep running, and the subagent stays available for follow-ups.
|
|
468
516
|
|
|
469
517
|
```ts
|
|
470
518
|
params: {
|
|
@@ -18,7 +18,7 @@ The server sends `ready` as its first message:
|
|
|
18
18
|
|
|
19
19
|
```json
|
|
20
20
|
{
|
|
21
|
-
"version":
|
|
21
|
+
"version": 19,
|
|
22
22
|
"type": "ready",
|
|
23
23
|
"methods": ["initialize", "session.create", "session.list"]
|
|
24
24
|
}
|
|
@@ -30,7 +30,7 @@ After `ready`, send `initialize` with non-empty client metadata:
|
|
|
30
30
|
|
|
31
31
|
```json
|
|
32
32
|
{
|
|
33
|
-
"version":
|
|
33
|
+
"version": 19,
|
|
34
34
|
"type": "request",
|
|
35
35
|
"id": "init-1",
|
|
36
36
|
"method": "initialize",
|
|
@@ -50,7 +50,7 @@ Every request has the same envelope:
|
|
|
50
50
|
|
|
51
51
|
```json
|
|
52
52
|
{
|
|
53
|
-
"version":
|
|
53
|
+
"version": 19,
|
|
54
54
|
"type": "request",
|
|
55
55
|
"id": "req-42",
|
|
56
56
|
"method": "session.snapshot",
|
|
@@ -64,7 +64,7 @@ Successful responses echo the request id:
|
|
|
64
64
|
|
|
65
65
|
```json
|
|
66
66
|
{
|
|
67
|
-
"version":
|
|
67
|
+
"version": 19,
|
|
68
68
|
"type": "response",
|
|
69
69
|
"id": "req-42",
|
|
70
70
|
"ok": true,
|
|
@@ -90,6 +90,25 @@ Install all three before processing later messages for that session. The host ho
|
|
|
90
90
|
|
|
91
91
|
Observing controls which updates you receive; it does not make you the owner. `session.unobserve` stops this connection's updates without deleting the session or interrupting work. Several connections can observe one session, and each can change it. Client tool names must be unique among observing clients.
|
|
92
92
|
|
|
93
|
+
## Keep a session loaded without clients
|
|
94
|
+
|
|
95
|
+
After the last client stops observing, the host normally unloads an idle session from memory and keeps it saved. Unloading removes the session's subagents. To keep an unattached session and its idle subagents available, set a retention period with `session.setRetention`. A client that observes the session during that period gets the same live session.
|
|
96
|
+
|
|
97
|
+
A session stays loaded while a client observes it, while its retention period lasts, or while work is running. Running work includes turns, maintenance such as compaction, reloads, persona changes, prompt resolution, path autocomplete, `session.exec` commands, `session.sample` calls, ephemeral context creation and submissions, background jobs, and running subagents. Idle subagents do not count as running work. When retention expires or is cleared, only that reason goes away: clients stay attached and work keeps running. The host unloads the session once no reason remains.
|
|
98
|
+
|
|
99
|
+
Retention exists only in host memory. It ends when the host shuts down, and a session recovered after a restart has no retention and no subagents.
|
|
100
|
+
|
|
101
|
+
Before you delete files that a session uses, make sure the host has unloaded the session:
|
|
102
|
+
|
|
103
|
+
1. Clear retention with `session.setRetention` and `durationMs: null`.
|
|
104
|
+
2. Stop observing with `session.unobserve`, or close the connection.
|
|
105
|
+
3. Call `session.collect`.
|
|
106
|
+
4. If it returns `disposed: true`, the session is unloaded and its execution environment has been released. If it returns `disposed: false`, keep the files and retry later. If the request fails, keep the files and retry later. A failed save can succeed on retry, but after a failed disposal no retry reports `disposed: true` until the host restarts.
|
|
107
|
+
|
|
108
|
+
`session.collect` never loads a session, so you can repeat these steps safely. It reports only the state at that moment. Any client can still observe the saved session and load it again, so agree between your clients on when a session is finished.
|
|
109
|
+
|
|
110
|
+
See the [method reference](session-protocol-methods.md#keep-sessions-loaded-and-unload-them) for exact parameters and results.
|
|
111
|
+
|
|
93
112
|
## Treat the snapshot as the source of truth
|
|
94
113
|
|
|
95
114
|
`SessionProtocolSnapshot` is the saved, recoverable state of one session. Its main fields are:
|
|
@@ -101,7 +120,7 @@ Observing controls which updates you receive; it does not make you the owner. `s
|
|
|
101
120
|
| `lifecycle` | `idle` or `running`. |
|
|
102
121
|
| `agentState` | Independent agent revision, model context key, and optional usage checkpoint. |
|
|
103
122
|
| `settings`, `costTotal` | Persona, reasoning, and auto-compaction settings, and accumulated session cost. |
|
|
104
|
-
| `bootstrap`, `catalog` | Selected model and prompt metadata plus available personas, prompt metadata, skills,
|
|
123
|
+
| `bootstrap`, `catalog` | Selected model and prompt metadata plus available personas, prompt metadata, skills, MCP availability, and speech vocabulary. |
|
|
105
124
|
| `executionEnvironment` | The environment kind, identity, `cwd`, and home used for agent-visible work. |
|
|
106
125
|
| `messages`, `turns` | Messages sent to the model, and a saved record for each accepted turn. |
|
|
107
126
|
| `timeline` | Ordered active transcript placement. |
|
|
@@ -115,9 +134,19 @@ Both auto-compaction fields in `settings` are required:
|
|
|
115
134
|
|
|
116
135
|
`bootstrap.model.contextWindow` is the full model window, regardless of the compaction threshold.
|
|
117
136
|
|
|
118
|
-
`catalog.
|
|
137
|
+
`catalog.mcp` says whether the session can use MCP. A session on a local execution environment lists its enabled servers by name, and a session on a remote execution environment has none:
|
|
138
|
+
|
|
139
|
+
```ts
|
|
140
|
+
catalog.mcp:
|
|
141
|
+
| { status: "available"; servers: string[] }
|
|
142
|
+
| { status: "unavailable"; reason: "remote-execution" };
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
A listed server may not be connected yet, because servers connect on first use. Connection settings and credentials are never included. The host sets this field when it loads the session, and it stays the same until the host loads the session again.
|
|
146
|
+
|
|
147
|
+
`catalog.speechVocabulary` holds the session's merged [`speech.vocabulary`](config-reference.md#speech) terms. The list has at most 100 terms and at most 10,000 Unicode characters in total. Each term is trimmed and non-empty, has at most 100 Unicode characters, and contains no angle brackets or line breaks. Clients that transcribe speech use these terms for this session. The host resolves them again on load, reload, and persona changes.
|
|
119
148
|
|
|
120
|
-
`bootstrap.prompt.subagentSystemPrompt` is present when subagents can be started. Each catalog persona has a `subagentLaunchModels` allowlist. Subagent records have task titles and IDs; there are no worker types.
|
|
149
|
+
`bootstrap.prompt.subagentSystemPrompt` is present when subagents can be started. It holds the base prompt, and Tau adds each native subagent's role section when it starts that subagent. Each catalog persona has a `subagentLaunchModels` allowlist. Subagent records have task titles and IDs; there are no worker types. Each record in `agents` also has `parentId`, the ID of the agent that started it, and `depth`, which is 1 or 2. A subagent of the main agent has depth 1, and its `parentId` is the session ID.
|
|
121
150
|
|
|
122
151
|
Render active transcript order from `timeline.items`, not by sorting or filtering `messages`. A timeline item either contains a notice or references a message, tool, or operation in the corresponding snapshot collection. Some model-visible messages intentionally have no timeline item.
|
|
123
152
|
|
|
@@ -141,7 +170,7 @@ Observed snapshot changes arrive as `session.delta`:
|
|
|
141
170
|
|
|
142
171
|
```json
|
|
143
172
|
{
|
|
144
|
-
"version":
|
|
173
|
+
"version": 19,
|
|
145
174
|
"type": "session.delta",
|
|
146
175
|
"sessionId": "0195d6e4-4cf9-7f44-a2d8-f8f7f49ee9d3",
|
|
147
176
|
"fromRevision": 8,
|
|
@@ -179,7 +208,7 @@ Some live state is not part of the snapshot. Each of these channels has its own
|
|
|
179
208
|
|
|
180
209
|
```json
|
|
181
210
|
{
|
|
182
|
-
"version":
|
|
211
|
+
"version": 19,
|
|
183
212
|
"type": "session.pendingUserMessages",
|
|
184
213
|
"sessionId": "...",
|
|
185
214
|
"state": {
|
|
@@ -216,7 +245,7 @@ An initialized client that advertised a tool can receive:
|
|
|
216
245
|
|
|
217
246
|
```json
|
|
218
247
|
{
|
|
219
|
-
"version":
|
|
248
|
+
"version": 19,
|
|
220
249
|
"type": "session.clientTool.call",
|
|
221
250
|
"sessionId": "...",
|
|
222
251
|
"agentId": "main",
|
|
@@ -242,7 +271,7 @@ Error responses use `ok: false`:
|
|
|
242
271
|
|
|
243
272
|
```json
|
|
244
273
|
{
|
|
245
|
-
"version":
|
|
274
|
+
"version": 19,
|
|
246
275
|
"type": "response",
|
|
247
276
|
"id": "req-42",
|
|
248
277
|
"ok": false,
|
|
@@ -261,7 +290,7 @@ The supported codes are:
|
|
|
261
290
|
| `invalid_request` | The envelope, version, type, id, or requested operation is invalid. |
|
|
262
291
|
| `method_not_found` | The method is unsupported. |
|
|
263
292
|
| `invalid_params` | Method parameters failed validation. |
|
|
264
|
-
| `not_found` | The addressed session does not exist on this host. |
|
|
293
|
+
| `not_found` | The addressed session does not exist on this host, or `session.setRetention` set a period on a session that is not loaded. |
|
|
265
294
|
| `busy` | Conflicting session work or a same-thread ephemeral submission is active. |
|
|
266
295
|
| `cancelled` | Pending input, execution, or sampling was cancelled. |
|
|
267
296
|
| `internal_error` | The host could not complete the operation. |
|
|
@@ -48,7 +48,7 @@ Queued and steering messages survive a client detaching only while the session s
|
|
|
48
48
|
|
|
49
49
|
## Interrupt and retry
|
|
50
50
|
|
|
51
|
-
Interruption asks work to stop. It cancels the main session's running turn, direct commands, standalone model calls, and maintenance work. An interrupted turn records an interrupted assistant result where there is one. Interruption does not stop subagents: select one with Alt+Down and press Ctrl+G, or call `session.interruptSubagent` from a protocol client. Host shutdown or session disposal stops subagents. In the TUI, Escape first stops local work such as diff review, recording, or speech playback, and only then asks the host to interrupt the session.
|
|
51
|
+
Interruption asks work to stop. It cancels the main session's running turn, direct commands, standalone model calls, and maintenance work. An interrupted turn records an interrupted assistant result where there is one. Interruption does not stop subagents: select one with Alt+Down and press Ctrl+G to stop it without its children, or call `session.interruptSubagent` from a protocol client. Host shutdown or session disposal stops subagents. In the TUI, Escape first stops local work such as diff review, recording, or speech playback, and only then asks the host to interrupt the session.
|
|
52
52
|
|
|
53
53
|
Retry runs another assistant turn from the current history. It does not remove the interrupted or failed result, rewind context, or send the previous user text again. Tau can therefore continue from completed tool results without running those tools again. In the TUI, press Enter twice on an empty editor while idle.
|
|
54
54
|
|
|
@@ -70,6 +70,8 @@ After a host restart, recovery loads the current configuration so providers and
|
|
|
70
70
|
|
|
71
71
|
A session is saved throughout its life, not only when the TUI exits. Reattaching to a running host returns the current state and continues with live updates. Reattaching after a host restart loads the saved session and reconnects its execution environment, using the host's configuration for that environment type.
|
|
72
72
|
|
|
73
|
+
After the last client detaches, the host unloads the session from memory once its work has finished. The session stays saved, but its subagents are gone. Protocol and SDK clients can keep an unattached session and its idle subagents loaded for a limited time with [retention](session-protocol.md#keep-a-session-loaded-without-clients).
|
|
74
|
+
|
|
73
75
|
Recovery keeps:
|
|
74
76
|
|
|
75
77
|
- the conversation messages and finished tool results
|
|
@@ -169,7 +171,7 @@ Compaction keeps searchable history, while rewind cuts it back to the rewind poi
|
|
|
169
171
|
|
|
170
172
|
Run `/reload` in the TUI while the session is idle. The host reads configuration, personas, prompts, skills, and `AGENTS.md` context again from the session's working directory. It keeps the current persona if its ID still exists, and otherwise selects the first available persona. Warnings appear in the transcript.
|
|
171
173
|
|
|
172
|
-
Reload affects later turns. It never changes the saved conversation or the execution environment. It does not reload anything owned by the client, such as themes,
|
|
174
|
+
Reload affects later turns. It never changes the saved conversation or the execution environment. It does not change the session's MCP servers, which stay as loaded; see [`mcpServers`](config-reference.md#mcpservers). It does not reload anything owned by the client, such as themes, voice, or client tools; restart the TUI for those. Codex auth storage is read again on every new request. Restart the host after changing its environment variables, `apiKeys`, listener settings, hosted environment settings, or the Tau version. [Credentials](credentials.md) and [remote sessions](remote-sessions.md) describe where each setting belongs.
|
|
173
175
|
|
|
174
176
|
Protocol clients can request changes directly, but should still wait for an idle session. Some changes interrupt running work and reject pending messages, so the session ends up with one consistent configuration.
|
|
175
177
|
|
|
@@ -180,7 +182,7 @@ Tau keeps two separate records for different purposes:
|
|
|
180
182
|
- The saved session is what Tau uses to continue one conversation. It contains the model's current context and the session state you see.
|
|
181
183
|
- Searchable history is a flat list of user messages, intermediate system instructions, assistant text, and finished tool calls, used to search and read across sessions. It is stored in the host's history database and can also be copied to a configured history service.
|
|
182
184
|
|
|
183
|
-
Compaction changes the saved session's model context but leaves searchable history as it was. Rewind cuts both back to the rewind point. History cannot rebuild a session and is never used to recover one. See [history](history.md) for storage, replication, and the history tool.
|
|
185
|
+
Compaction changes the saved session's model context but leaves searchable history as it was. Rewind cuts both back to the rewind point, but subagent sessions in history stay. History cannot rebuild a session and is never used to recover one. See [history](history.md) for storage, replication, and the history tool.
|
|
184
186
|
|
|
185
187
|
## Inspect model usage
|
|
186
188
|
|
|
@@ -1,20 +1,36 @@
|
|
|
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
|
-
The agent follows this rule itself. Tau checks that a launch is valid, but it does not judge whether the request
|
|
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
|
|
|
19
35
|
## Tools
|
|
20
36
|
|
|
@@ -26,18 +42,19 @@ A native Tau subagent can receive these tools. [Claude Code subagents](#claude-c
|
|
|
26
42
|
- `view_image`
|
|
27
43
|
- `web`
|
|
28
44
|
- `history`
|
|
29
|
-
- `mcp`, when the
|
|
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,65 +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,
|
|
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
|
|
132
|
-
|
|
133
|
-
For native Tau subagents, when that path differs from the parent's `cwd`, 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.
|
|
134
|
-
|
|
135
|
-
For native Tau subagents, the new directory does not change the persona, model catalog, runtime configuration, credentials, or tool policy. Those come from the parent session. Configuration in the new directory is read only where context needs it, such as for skill discovery.
|
|
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.
|
|
136
149
|
|
|
137
|
-
|
|
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.
|
|
138
151
|
|
|
139
|
-
A native Tau launch fails if Tau cannot build context for the directory
|
|
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.
|
|
140
153
|
|
|
141
154
|
## Managing subagents
|
|
142
155
|
|
|
143
|
-
|
|
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.
|
|
144
157
|
|
|
145
158
|
| Method | Purpose |
|
|
146
159
|
| --- | --- |
|
|
147
160
|
| `spawn({ title, prompt, model?, workingDirectory? })` | Start a subagent. |
|
|
148
|
-
| `list()` | State of every
|
|
161
|
+
| `list()` | State of every descendant as a flat list, plus the number running in the session and the limit. |
|
|
149
162
|
| `read({ id })` | State of one subagent. |
|
|
150
163
|
| `sendInput({ id, message, mode })` | Queue or steer more input. |
|
|
151
|
-
| `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. |
|
|
152
165
|
| `waitUntilIdle({ id })` | Wait inside a program until the subagent is idle. |
|
|
153
166
|
| `trace({ id, kinds?, toolName?, limit?, cursor? })` | Read a page of the subagent's conversation. |
|
|
154
167
|
| `readText({ id, seq, maxChars? })` | Read the text of one assistant message or tool result. |
|
|
155
168
|
| `readContent({ id, ref, cursor? })` | Page through large or non-text content. |
|
|
156
169
|
|
|
157
|
-
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.
|
|
158
171
|
|
|
159
172
|
### Spawn
|
|
160
173
|
|
|
161
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.
|
|
162
175
|
|
|
163
|
-
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.
|
|
164
177
|
|
|
165
|
-
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.
|
|
166
179
|
|
|
167
180
|
### State and waiting
|
|
168
181
|
|
|
169
|
-
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:
|
|
170
183
|
|
|
171
184
|
- `working`: the subagent is handling input.
|
|
172
185
|
- `stopping`: an interrupt was requested and the turn has not ended yet.
|
|
173
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.
|
|
174
187
|
|
|
175
|
-
`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.
|
|
176
189
|
|
|
177
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:
|
|
178
191
|
|
|
@@ -192,16 +205,16 @@ No problems found in the session expiry checks.
|
|
|
192
205
|
|
|
193
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:
|
|
194
207
|
|
|
195
|
-
- `response_seq` is the message's `seq` in the trace
|
|
196
|
-
- `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.
|
|
197
210
|
- `response_partial` is `true` when the turn failed or was interrupted, so the message may be an unfinished answer.
|
|
198
|
-
- `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.
|
|
199
212
|
|
|
200
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.
|
|
201
214
|
|
|
202
|
-
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.
|
|
203
216
|
|
|
204
|
-
The host also sends
|
|
217
|
+
The host also sends attached clients a live summary of subagent activity for display.
|
|
205
218
|
|
|
206
219
|
### Send more input
|
|
207
220
|
|
|
@@ -210,15 +223,17 @@ The host also sends live subagent activity to attached clients for display. It i
|
|
|
210
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.
|
|
211
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.
|
|
212
225
|
|
|
213
|
-
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.
|
|
214
227
|
|
|
215
|
-
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.
|
|
216
229
|
|
|
217
230
|
### Interrupt
|
|
218
231
|
|
|
219
|
-
`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.
|
|
220
233
|
|
|
221
|
-
|
|
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.
|
|
235
|
+
|
|
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.
|
|
222
237
|
|
|
223
238
|
### Conversation traces
|
|
224
239
|
|
|
@@ -226,18 +241,18 @@ Each subagent has a trace: an ordered record of what it was told, what it said,
|
|
|
226
241
|
|
|
227
242
|
| Kind | Contents |
|
|
228
243
|
| --- | --- |
|
|
229
|
-
| `input` | Each message
|
|
244
|
+
| `input` | Each accepted message, with its mode: `initial`, `queue`, or `steer`. |
|
|
230
245
|
| `assistant` | The subagent's message text. |
|
|
231
246
|
| `tool_call` | The tool name, call ID, and arguments as JSON. |
|
|
232
|
-
| `tool_result` | The tool name, call ID, outcome, and
|
|
233
|
-
| `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. |
|
|
234
249
|
| `status` | The subagent started working, began stopping, or became idle. |
|
|
235
250
|
|
|
236
|
-
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.
|
|
237
252
|
|
|
238
|
-
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.
|
|
239
254
|
|
|
240
|
-
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.
|
|
241
256
|
|
|
242
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.
|
|
243
258
|
|
|
@@ -245,20 +260,22 @@ A failed call throws an error with a `code` and a `message`. The codes are `inva
|
|
|
245
260
|
|
|
246
261
|
## Detach, rewind, and recovery
|
|
247
262
|
|
|
248
|
-
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.
|
|
264
|
+
|
|
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
|
-
|
|
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
|
-
|
|
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.
|