@markusylisiurunen/tau 0.3.100 → 0.3.102

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.
Files changed (267) hide show
  1. package/dist/core/code_mode/agents.js +60 -14
  2. package/dist/core/code_mode/agents.js.map +1 -1
  3. package/dist/core/config/ownership.js +3 -1
  4. package/dist/core/config/ownership.js.map +1 -1
  5. package/dist/core/config/schema.js +3 -1
  6. package/dist/core/config/schema.js.map +1 -1
  7. package/dist/core/history/agent_history_recorder.js.map +1 -1
  8. package/dist/core/history/migrations.js +6 -1
  9. package/dist/core/history/migrations.js.map +1 -1
  10. package/dist/core/runtime/chat_runtime.js +5 -5
  11. package/dist/core/runtime/chat_runtime.js.map +1 -1
  12. package/dist/core/runtime/session_prompt_composer.js +2 -6
  13. package/dist/core/runtime/session_prompt_composer.js.map +1 -1
  14. package/dist/core/static/code_mode/history/documentation.md +1 -1
  15. package/dist/core/static/index.js +22 -11
  16. package/dist/core/static/index.js.map +1 -1
  17. package/dist/core/static/prompts/subagent-prefix.md +13 -5
  18. package/dist/core/static/tau_docs/code-mode.md +1 -1
  19. package/dist/core/static/tau_docs/config-reference.md +19 -7
  20. package/dist/core/static/tau_docs/credentials.md +4 -4
  21. package/dist/core/static/tau_docs/history.md +3 -3
  22. package/dist/core/static/tau_docs/image-generation.md +27 -20
  23. package/dist/core/static/tau_docs/index.md +2 -1
  24. package/dist/core/static/tau_docs/manifest.json +1 -0
  25. package/dist/core/static/tau_docs/node-sdk.md +6 -6
  26. package/dist/core/static/tau_docs/personas.md +1 -1
  27. package/dist/core/static/tau_docs/prompts-and-project-context.md +6 -6
  28. package/dist/core/static/tau_docs/remote-sessions.md +1 -1
  29. package/dist/core/static/tau_docs/session-protocol-methods.md +49 -1
  30. package/dist/core/static/tau_docs/session-protocol.md +22 -3
  31. package/dist/core/static/tau_docs/sessions.md +3 -1
  32. package/dist/core/static/tau_docs/subagents.md +65 -48
  33. package/dist/core/static/tau_docs/telegram-commands.md +55 -0
  34. package/dist/core/static/tau_docs/telegram.md +10 -38
  35. package/dist/core/static/tau_docs/tools.md +1 -1
  36. package/dist/core/static/tau_docs/troubleshooting.md +3 -3
  37. package/dist/core/static/tau_docs/tui.md +22 -18
  38. package/dist/core/subagents/agent_supervisor.js +192 -15
  39. package/dist/core/subagents/agent_supervisor.js.map +1 -1
  40. package/dist/core/subagents/claude_code_runner.mjs +61 -60
  41. package/dist/core/subagents/native_subagent_runtime.js +37 -13
  42. package/dist/core/subagents/native_subagent_runtime.js.map +1 -1
  43. package/dist/core/subagents/prompt.js.map +1 -1
  44. package/dist/core/subagents/registry.js +1 -0
  45. package/dist/core/subagents/registry.js.map +1 -1
  46. package/dist/core/subagents/runtime.js.map +1 -1
  47. package/dist/core/subagents/types.js +2 -1
  48. package/dist/core/subagents/types.js.map +1 -1
  49. package/dist/core/telegram/adapter.js +178 -61
  50. package/dist/core/telegram/adapter.js.map +1 -1
  51. package/dist/core/telegram/cli.js +1 -3
  52. package/dist/core/telegram/cli.js.map +1 -1
  53. package/dist/core/telegram/config.js +3 -1
  54. package/dist/core/telegram/config.js.map +1 -1
  55. package/dist/core/telegram/runtime.js +1 -1
  56. package/dist/core/telegram/runtime.js.map +1 -1
  57. package/dist/core/tool/cli.js +1 -1
  58. package/dist/core/tool/image_generate.js +6 -2
  59. package/dist/core/tool/image_generate.js.map +1 -1
  60. package/dist/core/tools/catalog.js +24 -14
  61. package/dist/core/tools/catalog.js.map +1 -1
  62. package/dist/core/tools/wait_for_agents.js.map +1 -1
  63. package/dist/core/utils/scribe_transcription.js +283 -0
  64. package/dist/core/utils/scribe_transcription.js.map +1 -0
  65. package/dist/core/utils/speech_cleanup.js +198 -0
  66. package/dist/core/utils/speech_cleanup.js.map +1 -0
  67. package/dist/core/utils/speech_to_text.js +3 -3
  68. package/dist/core/utils/speech_to_text_keywords.js +5 -4
  69. package/dist/core/utils/speech_to_text_keywords.js.map +1 -1
  70. package/dist/core/version.js +1 -1
  71. package/dist/diff_tool/app/dist/assets/andromeeda-DW8vo71h.js +1 -0
  72. package/dist/diff_tool/app/dist/assets/aurora-x-rMvKqtYI.js +1 -0
  73. package/dist/diff_tool/app/dist/assets/ayu-dark-CwczpL8O.js +1 -0
  74. package/dist/diff_tool/app/dist/assets/ayu-light-DSh22xiD.js +1 -0
  75. package/dist/diff_tool/app/dist/assets/ayu-mirage-JE6hAyHG.js +1 -0
  76. package/dist/diff_tool/app/dist/assets/catppuccin-frappe-pyXErRRU.js +1 -0
  77. package/dist/diff_tool/app/dist/assets/catppuccin-latte-BILSUICr.js +1 -0
  78. package/dist/diff_tool/app/dist/assets/catppuccin-macchiato-Ck60ZZQE.js +1 -0
  79. package/dist/diff_tool/app/dist/assets/catppuccin-mocha-C_2G67cS.js +1 -0
  80. package/dist/diff_tool/app/dist/assets/{core-3PFMkRLP.js → core-Cnp6wBC7.js} +1 -1
  81. package/dist/diff_tool/app/dist/assets/dark-plus-CHgc6GYj.js +1 -0
  82. package/dist/diff_tool/app/dist/assets/dracula-Cf1PG3MT.js +1 -0
  83. package/dist/diff_tool/app/dist/assets/dracula-soft-DXuNm1Kq.js +1 -0
  84. package/dist/diff_tool/app/dist/assets/engine-oniguruma-ConHyUk6.js +1 -0
  85. package/dist/diff_tool/app/dist/assets/everforest-dark-CjdfwUBe.js +1 -0
  86. package/dist/diff_tool/app/dist/assets/everforest-light-CfVwwCBP.js +1 -0
  87. package/dist/diff_tool/app/dist/assets/github-dark-BL6HSl_n.js +1 -0
  88. package/dist/diff_tool/app/dist/assets/github-dark-default-zacuWV-M.js +1 -0
  89. package/dist/diff_tool/app/dist/assets/github-dark-dimmed-Mc0P9idi.js +1 -0
  90. package/dist/diff_tool/app/dist/assets/github-dark-high-contrast-IMKX2AVF.js +1 -0
  91. package/dist/diff_tool/app/dist/assets/github-light-default-DVlCqP3X.js +1 -0
  92. package/dist/diff_tool/app/dist/assets/github-light-high-contrast-Dj6zTyWR.js +1 -0
  93. package/dist/diff_tool/app/dist/assets/github-light-mYhEBkPo.js +1 -0
  94. package/dist/diff_tool/app/dist/assets/gruvbox-dark-hard-QTgQQZn-.js +1 -0
  95. package/dist/diff_tool/app/dist/assets/gruvbox-dark-medium-9d5YdCTx.js +1 -0
  96. package/dist/diff_tool/app/dist/assets/gruvbox-dark-soft-XCkqeBhR.js +1 -0
  97. package/dist/diff_tool/app/dist/assets/gruvbox-light-hard--5-nXqNp.js +1 -0
  98. package/dist/diff_tool/app/dist/assets/gruvbox-light-medium-COA1PZW2.js +1 -0
  99. package/dist/diff_tool/app/dist/assets/gruvbox-light-soft-CIJpzjAO.js +1 -0
  100. package/dist/diff_tool/app/dist/assets/highlights-DeO0fGqQ.js +7 -0
  101. package/dist/diff_tool/app/dist/assets/horizon-Ba2cwkSy.js +1 -0
  102. package/dist/diff_tool/app/dist/assets/horizon-bright-DaEDgBmR.js +1 -0
  103. package/dist/diff_tool/app/dist/assets/houston-B6x0XVpU.js +1 -0
  104. package/dist/diff_tool/app/dist/assets/index-BDuQ2wXS.js +221 -0
  105. package/dist/diff_tool/app/dist/assets/kanagawa-dragon-DhTFvBMT.js +1 -0
  106. package/dist/diff_tool/app/dist/assets/kanagawa-lotus--m8sdOxn.js +1 -0
  107. package/dist/diff_tool/app/dist/assets/kanagawa-wave-D-tTv4k2.js +1 -0
  108. package/dist/diff_tool/app/dist/assets/langs-DDFHLNuJ.js +1 -0
  109. package/dist/diff_tool/app/dist/assets/laserwave-HSLx0L75.js +1 -0
  110. package/dist/diff_tool/app/dist/assets/light-plus-CUjWrTSi.js +1 -0
  111. package/dist/diff_tool/app/dist/assets/loader-DrwOwtvp.js +1 -0
  112. package/dist/diff_tool/app/dist/assets/material-theme-CnthUGfg.js +1 -0
  113. package/dist/diff_tool/app/dist/assets/material-theme-darker-DUi03Qre.js +1 -0
  114. package/dist/diff_tool/app/dist/assets/material-theme-lighter-D2-qr5Vw.js +1 -0
  115. package/dist/diff_tool/app/dist/assets/material-theme-ocean-CWR-LogA.js +1 -0
  116. package/dist/diff_tool/app/dist/assets/material-theme-palenight-Cnv8m1ra.js +1 -0
  117. package/dist/diff_tool/app/dist/assets/min-dark-EXoM-6Xo.js +1 -0
  118. package/dist/diff_tool/app/dist/assets/min-light-DVOTDhnA.js +1 -0
  119. package/dist/diff_tool/app/dist/assets/monokai-DkggTbGy.js +1 -0
  120. package/dist/diff_tool/app/dist/assets/night-owl-Bdcs0PMi.js +1 -0
  121. package/dist/diff_tool/app/dist/assets/night-owl-light-RoU30LE0.js +1 -0
  122. package/dist/diff_tool/app/dist/assets/nord-u7hMircQ.js +1 -0
  123. package/dist/diff_tool/app/dist/assets/one-dark-pro-08PdtLzi.js +1 -0
  124. package/dist/diff_tool/app/dist/assets/one-light-DgvUEtgI.js +1 -0
  125. package/dist/diff_tool/app/dist/assets/pierre-dark-B2jZWvHG.js +1 -0
  126. package/dist/diff_tool/app/dist/assets/pierre-dark-protanopia-deuteranopia-CebgQdRf.js +1 -0
  127. package/dist/diff_tool/app/dist/assets/pierre-dark-soft-DdE7dyP3.js +1 -0
  128. package/dist/diff_tool/app/dist/assets/pierre-dark-tritanopia-CXimiT7X.js +1 -0
  129. package/dist/diff_tool/app/dist/assets/pierre-dark-vibrant-DzBsxHvQ.js +1 -0
  130. package/dist/diff_tool/app/dist/assets/pierre-light-Vf__O3ev.js +1 -0
  131. package/dist/diff_tool/app/dist/assets/pierre-light-protanopia-deuteranopia-BUtWcCQC.js +1 -0
  132. package/dist/diff_tool/app/dist/assets/pierre-light-soft-C3QCXKvN.js +1 -0
  133. package/dist/diff_tool/app/dist/assets/pierre-light-tritanopia-CKLy6XvA.js +1 -0
  134. package/dist/diff_tool/app/dist/assets/pierre-light-vibrant-DDuTEIhH.js +1 -0
  135. package/dist/diff_tool/app/dist/assets/plastic-B8mE6BxX.js +1 -0
  136. package/dist/diff_tool/app/dist/assets/poimandres-DUFjrgxT.js +1 -0
  137. package/dist/diff_tool/app/dist/assets/{preload-helper-CRzLMJPS.js → preload-helper-DclECHGd.js} +1 -1
  138. package/dist/diff_tool/app/dist/assets/red-BJvdDEUx.js +1 -0
  139. package/dist/diff_tool/app/dist/assets/rose-pine-BSqRqUae.js +1 -0
  140. package/dist/diff_tool/app/dist/assets/rose-pine-dawn-U6TBE82u.js +1 -0
  141. package/dist/diff_tool/app/dist/assets/rose-pine-moon-CAU7u1h4.js +1 -0
  142. package/dist/diff_tool/app/dist/assets/{shiki-BArE1NVK.js → shiki-CwKGJZFi.js} +2 -2
  143. package/dist/diff_tool/app/dist/assets/slack-dark-CMu0smFa.js +1 -0
  144. package/dist/diff_tool/app/dist/assets/slack-ochin-BBne7cjw.js +1 -0
  145. package/dist/diff_tool/app/dist/assets/snazzy-light-CV8HUEmk.js +1 -0
  146. package/dist/diff_tool/app/dist/assets/solarized-dark-CmYmhSgI.js +1 -0
  147. package/dist/diff_tool/app/dist/assets/solarized-light-CjLLwxRp.js +1 -0
  148. package/dist/diff_tool/app/dist/assets/{stream-tokenizer-DFTZfQ1S.js → stream-tokenizer-D4-m26wx.js} +1 -1
  149. package/dist/diff_tool/app/dist/assets/synthwave-84-wQeDKbzQ.js +1 -0
  150. package/dist/diff_tool/app/dist/assets/{themes-Dzo-2cM5.js → themes-Do3waJhf.js} +2 -2
  151. package/dist/diff_tool/app/dist/assets/tokyo-night-D4ZgDiA7.js +1 -0
  152. package/dist/diff_tool/app/dist/assets/vesper-sUHevyKv.js +1 -0
  153. package/dist/diff_tool/app/dist/assets/vitesse-black-CfklMpOb.js +1 -0
  154. package/dist/diff_tool/app/dist/assets/vitesse-dark-CJkzwmKT.js +1 -0
  155. package/dist/diff_tool/app/dist/assets/vitesse-light-BxMp8E1Y.js +1 -0
  156. package/dist/diff_tool/app/dist/index.html +2 -2
  157. package/dist/history/worker/index.js +77 -51
  158. package/dist/history/worker/index.js.map +1 -1
  159. package/dist/history/worker/migrations/0003_digest_schedule.sql +36 -0
  160. package/dist/history/worker/migrations/0004_recent_sessions.sql +1 -0
  161. package/dist/host/local_session_host.js +233 -125
  162. package/dist/host/local_session_host.js.map +1 -1
  163. package/dist/host/session_host.js +2 -0
  164. package/dist/host/session_host.js.map +1 -1
  165. package/dist/host/session_protocol_handler.js +11 -1
  166. package/dist/host/session_protocol_handler.js.map +1 -1
  167. package/dist/protocol/session_protocol.d.ts +18 -1
  168. package/dist/protocol/session_protocol.js +27 -0
  169. package/dist/protocol/session_protocol.js.map +1 -1
  170. package/dist/sdk/session.js +12 -0
  171. package/dist/sdk/session.js.map +1 -1
  172. package/dist/sdk/types.d.ts +6 -0
  173. package/dist/store/session_snapshot_migrations.js +35 -1
  174. package/dist/store/session_snapshot_migrations.js.map +1 -1
  175. package/dist/tui/chat_view.js +3 -1
  176. package/dist/tui/chat_view.js.map +1 -1
  177. package/dist/tui/listen_capture.js +7 -5
  178. package/dist/tui/listen_capture.js.map +1 -1
  179. package/dist/tui/session_chat_controller.js +93 -15
  180. package/dist/tui/session_chat_controller.js.map +1 -1
  181. package/dist/tui/ui/custom_editor.js +3 -0
  182. package/dist/tui/ui/custom_editor.js.map +1 -1
  183. package/dist/tui/ui/subagent_panel.js +45 -14
  184. package/dist/tui/ui/subagent_panel.js.map +1 -1
  185. package/package.json +8 -7
  186. package/dist/core/utils/gemini_transcription.js +0 -566
  187. package/dist/core/utils/gemini_transcription.js.map +0 -1
  188. package/dist/diff_tool/app/dist/assets/andromeeda-BJLMrMlp.js +0 -1
  189. package/dist/diff_tool/app/dist/assets/aurora-x-BCChoRpm.js +0 -1
  190. package/dist/diff_tool/app/dist/assets/ayu-dark-DzFZPuMV.js +0 -1
  191. package/dist/diff_tool/app/dist/assets/ayu-light-DSkcX_XD.js +0 -1
  192. package/dist/diff_tool/app/dist/assets/ayu-mirage-DSve0zuE.js +0 -1
  193. package/dist/diff_tool/app/dist/assets/catppuccin-frappe-DbLkF0J2.js +0 -1
  194. package/dist/diff_tool/app/dist/assets/catppuccin-latte-b6208YQK.js +0 -1
  195. package/dist/diff_tool/app/dist/assets/catppuccin-macchiato-CNNBbV1L.js +0 -1
  196. package/dist/diff_tool/app/dist/assets/catppuccin-mocha-DHkNF0Mp.js +0 -1
  197. package/dist/diff_tool/app/dist/assets/dark-plus-BVZ_4wTZ.js +0 -1
  198. package/dist/diff_tool/app/dist/assets/dracula-BoZgXveB.js +0 -1
  199. package/dist/diff_tool/app/dist/assets/dracula-soft-D-Kgh5gw.js +0 -1
  200. package/dist/diff_tool/app/dist/assets/engine-oniguruma-C5P09Ghe.js +0 -1
  201. package/dist/diff_tool/app/dist/assets/everforest-dark-Y6tr-2zD.js +0 -1
  202. package/dist/diff_tool/app/dist/assets/everforest-light-CA0Ol4Qu.js +0 -1
  203. package/dist/diff_tool/app/dist/assets/github-dark-C895GGrm.js +0 -1
  204. package/dist/diff_tool/app/dist/assets/github-dark-default-CM8LCIj6.js +0 -1
  205. package/dist/diff_tool/app/dist/assets/github-dark-dimmed-jPx1V1fR.js +0 -1
  206. package/dist/diff_tool/app/dist/assets/github-dark-high-contrast-UN5YjL_Z.js +0 -1
  207. package/dist/diff_tool/app/dist/assets/github-light-B4HDwToD.js +0 -1
  208. package/dist/diff_tool/app/dist/assets/github-light-default-CfC59JYV.js +0 -1
  209. package/dist/diff_tool/app/dist/assets/github-light-high-contrast-C3edEHcK.js +0 -1
  210. package/dist/diff_tool/app/dist/assets/gruvbox-dark-hard-BdGOuxq8.js +0 -1
  211. package/dist/diff_tool/app/dist/assets/gruvbox-dark-medium-CmygtSMi.js +0 -1
  212. package/dist/diff_tool/app/dist/assets/gruvbox-dark-soft-BJH4XuY9.js +0 -1
  213. package/dist/diff_tool/app/dist/assets/gruvbox-light-hard-BkSILF4E.js +0 -1
  214. package/dist/diff_tool/app/dist/assets/gruvbox-light-medium-DiZUfgdz.js +0 -1
  215. package/dist/diff_tool/app/dist/assets/gruvbox-light-soft-CRCTnbIj.js +0 -1
  216. package/dist/diff_tool/app/dist/assets/highlights-Bi-VwGCO.js +0 -3
  217. package/dist/diff_tool/app/dist/assets/horizon-DUI96lQn.js +0 -1
  218. package/dist/diff_tool/app/dist/assets/horizon-bright-COxh1lHf.js +0 -1
  219. package/dist/diff_tool/app/dist/assets/houston-DduE73P7.js +0 -1
  220. package/dist/diff_tool/app/dist/assets/index-DhaXI7F3.js +0 -221
  221. package/dist/diff_tool/app/dist/assets/kanagawa-dragon-BHDhSKDf.js +0 -1
  222. package/dist/diff_tool/app/dist/assets/kanagawa-lotus-NJjGXXql.js +0 -1
  223. package/dist/diff_tool/app/dist/assets/kanagawa-wave-DsGe2Uqk.js +0 -1
  224. package/dist/diff_tool/app/dist/assets/langs-CDbZNx2R.js +0 -1
  225. package/dist/diff_tool/app/dist/assets/laserwave-DYV0fvJ_.js +0 -1
  226. package/dist/diff_tool/app/dist/assets/light-plus-FTnIShls.js +0 -1
  227. package/dist/diff_tool/app/dist/assets/loader-DYYMIDWx.js +0 -1
  228. package/dist/diff_tool/app/dist/assets/material-theme-IcIb8QNx.js +0 -1
  229. package/dist/diff_tool/app/dist/assets/material-theme-darker-B_f2vxdL.js +0 -1
  230. package/dist/diff_tool/app/dist/assets/material-theme-lighter-CR2Q-4Hp.js +0 -1
  231. package/dist/diff_tool/app/dist/assets/material-theme-ocean-BX6hAJ_y.js +0 -1
  232. package/dist/diff_tool/app/dist/assets/material-theme-palenight-B6DWAotd.js +0 -1
  233. package/dist/diff_tool/app/dist/assets/min-dark-DECtZcqS.js +0 -1
  234. package/dist/diff_tool/app/dist/assets/min-light-qRIVcaqf.js +0 -1
  235. package/dist/diff_tool/app/dist/assets/monokai-CLmrJ-8t.js +0 -1
  236. package/dist/diff_tool/app/dist/assets/night-owl-eR4AsyAP.js +0 -1
  237. package/dist/diff_tool/app/dist/assets/night-owl-light-C74n5ti-.js +0 -1
  238. package/dist/diff_tool/app/dist/assets/nord-D4wy7NEP.js +0 -1
  239. package/dist/diff_tool/app/dist/assets/one-dark-pro-28TLzoS8.js +0 -1
  240. package/dist/diff_tool/app/dist/assets/one-light-C0UY_Fh7.js +0 -1
  241. package/dist/diff_tool/app/dist/assets/pierre-dark-fPlffE7i.js +0 -1
  242. package/dist/diff_tool/app/dist/assets/pierre-dark-protanopia-deuteranopia-BmjibgrW.js +0 -1
  243. package/dist/diff_tool/app/dist/assets/pierre-dark-soft-Cng2SYKc.js +0 -1
  244. package/dist/diff_tool/app/dist/assets/pierre-dark-tritanopia-DneQ5i7L.js +0 -1
  245. package/dist/diff_tool/app/dist/assets/pierre-dark-vibrant-BUK9Y-N_.js +0 -1
  246. package/dist/diff_tool/app/dist/assets/pierre-light-BvcXQJIj.js +0 -1
  247. package/dist/diff_tool/app/dist/assets/pierre-light-protanopia-deuteranopia-Cd5nk0bp.js +0 -1
  248. package/dist/diff_tool/app/dist/assets/pierre-light-soft-BvU23vks.js +0 -1
  249. package/dist/diff_tool/app/dist/assets/pierre-light-tritanopia-BSHccQzI.js +0 -1
  250. package/dist/diff_tool/app/dist/assets/pierre-light-vibrant-BgMZEwQI.js +0 -1
  251. package/dist/diff_tool/app/dist/assets/plastic-B2V_PDVk.js +0 -1
  252. package/dist/diff_tool/app/dist/assets/poimandres-DB9-pI6r.js +0 -1
  253. package/dist/diff_tool/app/dist/assets/red-CqYzoXtd.js +0 -1
  254. package/dist/diff_tool/app/dist/assets/rose-pine-C3zjVKxG.js +0 -1
  255. package/dist/diff_tool/app/dist/assets/rose-pine-dawn-C72QYfqa.js +0 -1
  256. package/dist/diff_tool/app/dist/assets/rose-pine-moon-CSM8ewhO.js +0 -1
  257. package/dist/diff_tool/app/dist/assets/slack-dark-Dtzi51su.js +0 -1
  258. package/dist/diff_tool/app/dist/assets/slack-ochin-Bb7oPExa.js +0 -1
  259. package/dist/diff_tool/app/dist/assets/snazzy-light-DXgiwzKu.js +0 -1
  260. package/dist/diff_tool/app/dist/assets/solarized-dark-BKOT3ICq.js +0 -1
  261. package/dist/diff_tool/app/dist/assets/solarized-light--Lk5pOfE.js +0 -1
  262. package/dist/diff_tool/app/dist/assets/synthwave-84-BJJFg-sc.js +0 -1
  263. package/dist/diff_tool/app/dist/assets/tokyo-night-DvpptEDd.js +0 -1
  264. package/dist/diff_tool/app/dist/assets/vesper-C1rBZbON.js +0 -1
  265. package/dist/diff_tool/app/dist/assets/vitesse-black-Sqvrs2Sw.js +0 -1
  266. package/dist/diff_tool/app/dist/assets/vitesse-dark-BWf_ZQtP.js +0 -1
  267. 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 starts and the host supervises. They help when part of the work can run independently or benefits from a separate context. A subagent belongs to its parent session. It has no saved session of its own and no persona file.
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 the part of the main agent's task given in the assignment, treat later messages as coming from the main agent, wait for background work its answer depends on, never start other agents, leave contact with the user to the main agent, and return a self-contained result. The section also gives the parent session's ID. This section cannot be configured. Put task-specific instructions in the launch prompt.
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 agent 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. There is no other setting to turn subagents on or off. See [personas](personas.md).
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
- The main agent starts subagents only when the user or active instructions explicitly ask for delegation. Ask in ordinary language; no special tag is needed. The request itself does not create a subagent: the main agent still has to call `tau.agents.spawn`.
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 the main persona also has. For example, a main persona with `bash`, `edit`, `history`, and `agents` gives its 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.
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. Subagents never get `agents`: their `code` tool has no `tau.agents`, and they have no `wait_for_agents`.
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 the active persona's model and all of its settings, including reasoning and service tier. These are fixed when the subagent starts. Later persona or reasoning changes do not affect it.
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. The main agent should normally omit the `model` option of `tau.agents.spawn`, and the subagent then uses the active persona'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.
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 or only changes reasoning effort. The parent's threshold is not inherited in this case.
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. These optional settings do not change the launch allowlist. See [personas](personas.md) for a configuration example.
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. The main agent manages 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.
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. 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, and Tau does not map or forward its own MCP connections. 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.
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 assistant token usage as it arrives, so interruption preserves counts already received. Repeated message blocks and resumed messages are counted once. Final SDK totals reconcile these counts and supply cost estimates, including earlier usage when a session resumes. Cost from an interrupted run remains unavailable until the SDK reports it. The latest assistant usage supplies a context-token estimate; after a successful run, the SDK's context summary supplies the window size and a fuller measurement.
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 eight-worker limit 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.
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 the main session's `cwd`. The optional `workingDirectory` may be absolute or relative to that `cwd`. Tau resolves it to an absolute path on the execution environment.
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 `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. 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.
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
- `workingDirectory` is always a path on the execution environment, which matters in monorepos and hosted environments. The host and attached clients never resolve it against their own filesystems.
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
- The main agent manages subagents 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.
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 subagent, plus the number running and the limit. |
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`. A program reads conversation data into JavaScript variables. Only what the program prints reaches the main agent's conversation, so the agent can select the part of a long trace it needs.
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 the main persona has `history`, a native Tau subagent follows the same history rules as the main agent, and an assignment that asks about past conversations counts as an explicit request. The subagent also has one extra permission: as a last resort, it may read the parent session's transcript when missing context would stop the work or force an important assumption. Every read of the parent session uses `tau.history.read` with `source: "local"`, so it reads the host's local history even when a remote collection is configured. Other reads use the configured collection unless the subagent is told to read locally. Local recording is best-effort, so the newest parent entries can occasionally be missing.
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 eight subagents can be working at once in one main session. Idle subagents do not count toward this limit.
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 main agent reads the subagent's answer before relying on it. Background Bash and code jobs that a subagent started do not keep it working. A subagent that needs a job's result must wait for the job before it answers.
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. `readText({ id, seq, maxChars })` in `code` reads more retained text. For messages beyond its limit, use `trace` to get the content reference and page through it with `readContent`.
194
- - `response_complete` is `false` when the text was shortened to fit the budget, or when some of it is unavailable or was removed from the trace. Shortened text keeps its beginning and end, with a marker in the middle.
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. A message from an earlier turn is never returned.
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. The subagent's messages and tool results are in its trace.
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. Earlier messages stay readable in its trace.
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 eight subagents are already working. Follow-up input does not pick up a changed persona definition or a reloaded allowlist.
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. By default the call waits until the turn has ended. With `wait: false` it returns right away, and the status may still be `stopping`. Interrupting an idle subagent only returns its state. Background jobs that the subagent started keep running, and the subagent stays available for more input.
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 the subagent was sent, with its mode: `initial`, `queue`, or `steer`. Recorded when the message is accepted. |
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 the result exactly as the subagent received it. |
231
- | `notice` | An event with a machine-readable code, such as `input.discarded` after an interrupt or `compaction.compacted`. A failed turn adds a notice with the failure code. |
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. A tool result that the tool itself shortened stays shortened, and the trace cannot recover the missing output.
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. A cursor keeps its starting point, so new activity does not shift the pages.
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. Its `complete` field is `false` when the text was cut or some content is unavailable. It does not detect output that the tool itself shortened. Content with JSON or images needs `readContent`, which returns one block per page. Text arrives in chunks of at most 16,384 UTF-16 code units that join to the exact text.
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, or losing the connection, does not stop them while the session stays alive. Another client can attach and see their current state.
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
- Subagents do not survive the end of a session on the host or a host restart. Their status may be saved while the session is live, but recovery removes those records, because their runtimes no longer exist. A recovered session cannot send input to an old subagent ID.
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 were started by an assistant message the rewind removed. A subagent started from a `code` program belongs to the assistant message that ran the program, including a program running as a background job. Host shutdown or session disposal interrupts and removes all subagents.
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 as child sessions in [history](history.md#native-subagent-sessions), even without the `history` tool. These sessions stay after a rewind, but history cannot restore the subagents. Claude Code is excluded.
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 affects only new launches. Running subagents, and follow-ups to them, keep their existing setup.
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, a prompt that cannot be built, or a working directory whose context cannot be built. Calls with an unknown subagent ID fail.
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.
@@ -0,0 +1,55 @@
1
+ # Telegram chat commands
2
+
3
+ Send these commands to a [Telegram](telegram.md) bot from a DM or an allowed group.
4
+
5
+ ## Commands
6
+
7
+ | Command | Behavior |
8
+ | --- | --- |
9
+ | `/use_<projectId>` | Selects the project for future `/new` sessions. |
10
+ | `/new` | Replaces the active session using the preferred project. |
11
+ | `/status` | Reports session state, project, model, reasoning, context usage, and cost. |
12
+ | `/persona [value]` | [Applies a persona or preset](#choose-a-persona-effort-or-prompt) while idle, without losing history or starting a turn. |
13
+ | `/effort [value]` | [Selects a reasoning level](#choose-a-persona-effort-or-prompt) for future turns. |
14
+ | `/prompt [value]` | [Records a saved prompt](prompts-and-project-context.md#telegram-prompts) while idle, without starting a turn. |
15
+ | `/auto_compact [tokens\|default]` | Shows the automatic-compaction threshold. Pass `50k` or `50000` to set it (minimum 50,000 tokens), or `default` to remove the session override and use the default. |
16
+ | `/compact` | Runs summary-only compaction while idle. |
17
+ | `/interrupt` | Interrupts the active Tau turn. |
18
+ | `/tts_on` | Sends a voice note after each final assistant response. |
19
+ | `/tts_off` | Disables voice responses. |
20
+
21
+ Changes to the auto-compaction threshold apply from the next turn and survive session recovery. `/status` shows context usage as a percentage of the full model window. When a session override is set, or the default threshold is below the model-based threshold, it also shows the effective threshold in parentheses. See [compaction thresholds](telegram.md#compaction-thresholds) for bot defaults and [automatic compaction](sessions.md#automatic-compaction) for limits and costs.
22
+
23
+ A [persona](personas.md) or preset choice applies to the current session only. `/new` starts from the bot's [`startup`](telegram.md#startup-and-presets).
24
+
25
+ Preferences are saved per bot and chat, and survive restarts and new sessions. A project change applies at the next `/new`, not to the current session.
26
+
27
+ In groups, commands must explicitly mention the bot. Accepted forms include:
28
+
29
+ ```text
30
+ /status@tau_engineering_bot
31
+ /status @tau_engineering_bot
32
+ @tau_engineering_bot /status
33
+ ```
34
+
35
+ Commands addressed to other bots are ignored.
36
+
37
+ ## Choose a persona, effort, or prompt
38
+
39
+ `/persona`, `/effort`, and `/prompt` work the same way. Send the command alone to choose from buttons, or add a value to apply a choice directly:
40
+
41
+ | Example | Value |
42
+ | --- | --- |
43
+ | `/persona deep review` | The preset's key when the bot has `presets`, and otherwise the persona ID. |
44
+ | `/effort low` | `low`, `medium`, `high`, or `xhigh`. |
45
+ | `/prompt release-summary` | The saved prompt's ID. |
46
+
47
+ A typed value and a button follow the same rules. `/persona` and `/prompt` need an idle session. `/effort` also works during a turn: the running turn keeps its effort, and the next turn uses the new one.
48
+
49
+ `/effort` accepts only the levels in the persona's `allowedReasoningLevels` when that list is non-empty, and it has no choices for a model without reasoning.
50
+
51
+ Typed values are case-sensitive. Buttons for personas and presets show labels, and a typed value does not match a label, so use the key or ID from your configuration. A value that matches nothing changes no settings, and the bot points you to the command's buttons.
52
+
53
+ Any run of whitespace counts as one space when a value is compared, both in what you type and in the key or ID. For example, `/persona deep review` selects the preset `deep review`. If two keys or IDs become identical this way, such as `deep review` and `deep review`, typing that value is rejected, and the buttons still offer both.
54
+
55
+ Only the newest set of buttons for a command works. Buttons expire after a choice is applied, when the session is replaced, or when the runner restarts.
@@ -79,6 +79,7 @@ Each `bots.<id>` object supports:
79
79
  | `allowedChatIds` | No | Integer chat IDs allowed to interact with the bot; also opts groups in. |
80
80
  | `defaultProjectId` | No | Initial project preference, and must be allowed for this bot. |
81
81
  | `systemMessage` | No | Additional instruction for turns from this bot. |
82
+ | `speechCleanupStyle` | No | `off` or `default`. Cleans up voice note transcripts for this bot with the [`default` style](tui.md#cleanup-styles). Defaults to `off`. |
82
83
 
83
84
  The runner retries failed polling after 1,000 ms and uses a 30-second Telegram long-poll timeout.
84
85
 
@@ -88,7 +89,7 @@ Use both lists for a private bot. `allowedUserIds` decides who can start work, b
88
89
 
89
90
  A bot sees only its `allowedProjectIds`, or every project if the field is missing. If only one project is allowed, it is selected automatically and the command palette omits `/use_<project>` commands. The command still works when typed directly. Otherwise the palette includes project-switch commands, and a chat needs `defaultProjectId` or a `/use_<project>` choice before `/new`. Each startup replaces the palette, removing switch commands if the bot now has only one available project.
90
91
 
91
- Telegram allows 100 commands per bot: thirteen built-ins and up to 87 `/use_<projectId>` commands. With `presets: {}`, `/persona` is hidden, which leaves room for one more project command.
92
+ Telegram allows 100 commands per bot: ten built-ins and up to 90 `/use_<projectId>` commands. With `presets: {}`, `/persona` is hidden, which leaves room for one more project command.
92
93
 
93
94
  ## Projects
94
95
 
@@ -124,38 +125,7 @@ The runner loads its speech credentials and `speech.voiceId` at startup, from it
124
125
 
125
126
  ## Chat commands
126
127
 
127
- | Command | Behavior |
128
- | --- | --- |
129
- | `/use_<projectId>` | Selects the project for future `/new` sessions. |
130
- | `/new` | Replaces the active session using the preferred project. |
131
- | `/status` | Reports session state, project, model, reasoning, context usage, and cost. |
132
- | `/persona` | Applies a persona or preset from a menu while idle, without losing history or starting a turn. |
133
- | `/effort_low` | Selects low reasoning for future turns. |
134
- | `/effort_medium` | Selects medium reasoning for future turns. |
135
- | `/effort_high` | Selects high reasoning for future turns. |
136
- | `/effort_xhigh` | Selects xhigh reasoning for future turns. |
137
- | `/prompt` | [Records a saved prompt](prompts-and-project-context.md#telegram-prompt-picker) while idle, without starting a turn. |
138
- | `/auto_compact [tokens\|default]` | Shows the automatic-compaction threshold. Pass `50k` or `50000` to set it (minimum 50,000 tokens), or `default` to remove the session override and use the default. |
139
- | `/compact` | Runs summary-only compaction while idle. |
140
- | `/interrupt` | Interrupts the active Tau turn. |
141
- | `/tts_on` | Sends a voice note after each final assistant response. |
142
- | `/tts_off` | Disables voice responses. |
143
-
144
- Changes to the auto-compaction threshold apply from the next turn and survive session recovery. `/status` shows context usage as a percentage of the full model window. When a session override is set, or the default threshold is below the model-based threshold, it also shows the effective threshold in parentheses. See [compaction thresholds](#compaction-thresholds) for bot defaults and [automatic compaction](sessions.md#automatic-compaction) for limits and costs.
145
-
146
- A [persona](personas.md) or preset choice applies to the current session only. `/new` starts from the bot's `startup`.
147
-
148
- Preferences are saved per bot and chat, and survive restarts and new sessions. A project change applies at the next `/new`, not to the current session.
149
-
150
- In groups, commands must explicitly mention the bot. Accepted forms include:
151
-
152
- ```text
153
- /status@tau_engineering_bot
154
- /status @tau_engineering_bot
155
- @tau_engineering_bot /status
156
- ```
157
-
158
- Commands addressed to other bots are ignored.
128
+ Commands select projects and sessions and change a session's persona, effort, and other settings. [Telegram chat commands](telegram-commands.md) lists them and how they work in groups.
159
129
 
160
130
  ## Startup and presets
161
131
 
@@ -182,9 +152,9 @@ Commands addressed to other bots are ignored.
182
152
  - A `workspace` preset resolves the workspace's `defaultPersona` each time it is applied.
183
153
  - A `persona` preset names a persona ID without an effort suffix. Its optional `reasoning` is one of `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, or `max`, and defaults to the persona's own setting. Its optional `autoCompactThresholdTokens` is [described below](#compaction-thresholds).
184
154
 
185
- Every preset needs a non-empty `label`. Keys must be non-empty, without surrounding whitespace.
155
+ Every preset needs a non-empty `label`. Keys must be non-empty, without surrounding whitespace. [`/persona <key>`](telegram-commands.md#choose-a-persona-effort-or-prompt) applies a preset by its key.
186
156
 
187
- The `/persona` menu depends on `presets`:
157
+ The choices that `/persona` offers depend on `presets`:
188
158
 
189
159
  - Omitted: all personas available in the session's workspace, with their own labels and default settings.
190
160
  - `{}`: nothing, and `/persona` is hidden from the command palette. Typing it replies that no presets are configured.
@@ -192,7 +162,7 @@ The `/persona` menu depends on `presets`:
192
162
 
193
163
  Buttons show only labels, because a session does not record which preset was applied. `/status` reports the session's actual settings.
194
164
 
195
- Applying a preset changes the prompt, model, tools, reasoning, and other persona settings together, and keeps the conversation. It applies them once, so effort commands then change only reasoning, and applying the preset again restores its settings.
165
+ Applying a preset changes the prompt, model, tools, reasoning, and other persona settings together, and keeps the conversation. It applies them once, so `/effort` then changes only reasoning, and applying the preset again restores its settings.
196
166
 
197
167
  An unavailable persona stays in the menu. Applying it, or a `reasoning` value the persona does not support, reports an error and changes no settings. The value must be in the persona's `allowedReasoningLevels` when that list is non-empty, and a model without reasoning accepts only `none`. A failing preset at `startup` fails the new session.
198
168
 
@@ -232,7 +202,9 @@ Sending a file only queues it, and its caption is kept as metadata. The next tex
232
202
 
233
203
  Files are stored in the execution environment's temporary directory, so system cleanup can remove them. Queued files and group context are cleared on shutdown. Treat file contents and metadata as untrusted.
234
204
 
235
- Voice transcription uses Gemini with `GEMINI_API_KEY`, or else `apiKeys.google`. Optional spelling hints use GPT-6 Luna (reasoning disabled) with OpenAI credentials. The session's [`speech.vocabulary`](config-reference.md#speech) terms, then the runner's global terms, precede extracted hints and work without OpenAI credentials or conversation context. Without a selected session, Tau does not download or transcribe audio. Transcription fails if the session is not ready. Gemini transcribes verbatim with `gemini-3.5-transcribe`, using English (`en-US`) and Finnish (`fi-FI`) hints, and Tau tries to delete the uploaded file afterward. Receiving files needs no Google key. See [credentials](credentials.md).
205
+ Voice transcription uses ElevenLabs Scribe v2 with `ELEVENLABS_API_KEY`, or else `apiKeys.elevenlabs`. Scribe detects the spoken language and transcribes in verbatim mode, retaining filler words and false starts. Optional spelling hints use GPT-6 Luna (reasoning disabled) with OpenAI credentials. The session's [`speech.vocabulary`](config-reference.md#speech) terms, then the runner's global terms, precede extracted hints and work without OpenAI credentials or conversation context. Without a selected session, Tau does not download or transcribe audio. Transcription fails if the session is not ready. Receiving files needs no ElevenLabs key. See [credentials](credentials.md).
206
+
207
+ When the bot's `speechCleanupStyle` is `default`, GPT-6.1 Terra (reasoning disabled) cleans up each transcript before it is echoed and submitted. It uses the vocabulary and [recent conversation](config-reference.md#speech) only to fix misheard words. Cleanup needs OpenAI credentials. If cleanup fails, the bot uses the transcript without cleanup. It also sends a warning, except for group audio being collected silently as context.
236
208
 
237
209
  `/tts_on` rewrites text with `gpt-6-luna` (reasoning disabled) and generates speech with Eleven v4 Turbo. It requires both OpenAI and ElevenLabs credentials and runner `ffmpeg` with Opus. Voice notes use brisk delivery and 1.15× speed. See [`speech` configuration](config-reference.md#speech) for default and custom voice selection. Source and rewritten text are limited to 10,000 Unicode characters each, and audio to 32 MiB. Rewriting times out after one minute and the whole job after five. Jobs are not saved. On failure, the bot sends `voice response failed. please try again.`; the text reply is unaffected and details go to the logs.
238
210
 
@@ -279,7 +251,7 @@ Do not verify bot tokens, provider keys, Access secrets, transcript contents, or
279
251
 
280
252
  **A message sent during work changes direction.** While a turn is running, a new message steers it instead of waiting in a queue. Wait for the turn to finish before sending an unrelated task, or use `/interrupt` first.
281
253
 
282
- **Audio or an attachment fails.** The reply or runner log names the step that failed: download, saving, format, or transcription. Check that Telegram can deliver the file to the bot, the type is supported, the runner can write to its temporary directory, and Gemini accepts the media type. Transcription needs `GEMINI_API_KEY` or `apiKeys.google` for the runner process; restart the runner after setting it. Changing a workspace's environment does not affect the runner. Do not log media or transcripts to debug this.
254
+ **Audio or an attachment fails.** The reply or runner log names the step that failed: download, saving, format, or transcription. Check that Telegram can deliver the file to the bot, the type is supported, the runner can write to its temporary directory, and ElevenLabs accepts the media type. Transcription needs `ELEVENLABS_API_KEY` or `apiKeys.elevenlabs` for the runner process; restart the runner after setting it. Changing a workspace's environment does not affect the runner. Do not log media or transcripts to debug this.
283
255
 
284
256
  **Voice replies fail.** `/tts_on` needs OpenAI and ElevenLabs credentials and `ffmpeg` with Opus on the runner. Check [`speech.voiceId`](config-reference.md#speech) if a configured voice is unavailable.
285
257
 
@@ -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 the main persona also has, plus `tau_docs`. It never gets `agents` or client tools. Its Bash and file tools start in the subagent's working directory. [Subagents](subagents.md#tools) has the details.
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 eight subagents are running.
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 subagents. See [subagents](subagents.md).
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 settings inherited from the persona. Text that does not fit the terminal width is cut off on the right.
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. |
@@ -220,31 +222,29 @@ The agent can use `diff_review` with `workingDirectory` to review another direct
220
222
 
221
223
  ### Dictation
222
224
 
223
- `/listen` and Ctrl+Y work only on macOS. Recording uses the local `ffmpeg` with AVFoundation audio input. It stops when you press Ctrl+Y again or after 9 minutes, which leaves time to finish within Gemini's 10-minute live session. Startup fails if the microphone gives no audio within 15 seconds.
225
+ `/listen` and Ctrl+Y work only on macOS. Recording uses the local `ffmpeg` with AVFoundation audio input. It stops when you press Ctrl+Y again or after 9 minutes. Startup fails if the microphone gives no audio within 15 seconds.
224
226
 
225
227
  - Enter or Ctrl+Enter while recording stops capture, finishes transcription, and submits the editor text. While a turn is running, Enter steers and Ctrl+Enter queues, as usual.
226
228
  - Ctrl+Y, or reaching the time limit, finishes transcription and inserts the transcript at the cursor without submitting it.
229
+ - Tab cycles the [cleanup style](#cleanup-styles) for this recording.
227
230
 
228
231
  The shortcut can be changed with [`speech.recordingShortcut`](config-reference.md#speech), including single-press or double-tap printable keys such as `§`. The editor hint shows the configured gesture. Starting a recording stops speech playback.
229
232
 
230
- While you speak, Gemini shows a live preview in muted italics at the cursor. During pauses, Gemini finalizes segments of speech while recording continues. Tau keeps finalized segments and replaces only the current preview. After recording stops:
233
+ While you speak, ElevenLabs Scribe shows a live preview in muted italics at the cursor. Pauses finalize segments while recording continues. Tau keeps finalized segments and replaces only the current preview.
231
234
 
232
- - Tau tells Gemini the audio has ended. It finishes right away if a finalized segment ends exactly at the end of the audio and generation is complete.
233
- - Otherwise it keeps receiving results until two seconds pass with no updates. If new speech is detected after stopping, Tau signals the end of audio again to flush it.
234
- - The final transcript comes from the live stream. Normal recordings are not uploaded again for a second transcription.
235
- - Unfinished speech must be finalized before Tau accepts the result. Finalization has a 30-second deadline, and Escape cancels the wait.
235
+ After sending the remaining audio, Tau asks Scribe to finalize without adding silence. Tau finishes on the first finalized segment after that request, or after two seconds using the latest text, even if unfinished. Later segments can be lost. The result comes from the live stream.
236
236
 
237
- The final transcript replaces the preview in normal text, without duplication. An empty transcript inserts nothing. Tau does not detect silence locally, and the end of one speech segment does not count as the end of the recording.
237
+ The final transcript replaces the preview in normal text, without duplication. An empty transcript inserts nothing.
238
238
 
239
239
  A submitted draft that contains dictation carries hidden guidance saying that some or all of the message may have been transcribed from speech and may contain errors. The guidance survives edits and is removed when the draft is emptied.
240
240
 
241
- The editor is locked from the start of recording until finalization. Escape cancels voice input at any stage: startup, recording, microphone shutdown, transcription, or retry. Cancelling removes the preview at once, restores the original draft, and unlocks the editor without inserting or submitting anything. The cancelled recording is deleted once pending file work finishes. A failure also restores the original draft. A recording or retry cannot start while another editor update is pending.
241
+ The editor is locked from the start of recording until transcription and cleanup finish. Escape cancels voice input at any stage: startup, recording, microphone shutdown, transcription, cleanup, or retry. Cancelling removes the preview at once, restores the original draft, and unlocks the editor without inserting or submitting anything. The cancelled recording is deleted once pending file work finishes. A transcription failure also restores the original draft. A recording or retry cannot start while another editor update is pending.
242
242
 
243
- For live transcription, GPT-6 Luna, with reasoning disabled, extracts spelling hints from the recent conversation while recording starts. Tau buffers audio until the transcription session is ready, then streams it. Gemini uses `gemini-3.5-transcribe-live` in verbatim mode with English (`en-US`) and Finnish (`fi-FI`) language hints. Missing OpenAI credentials or a failed hint extraction do not stop transcription. The session's [`speech.vocabulary`](config-reference.md#speech) terms, followed by the terms in the TUI's own global configuration, take priority over extracted hints and remain available when extraction fails.
243
+ At recording startup, GPT-6 Luna (reasoning disabled) extracts spelling hints from the recent conversation. Tau buffers audio until Scribe v2 Realtime is ready, then sends it at up to twice real time to catch up. Scribe detects the language and retains fillers and false starts. Transcription works without OpenAI credentials or hint extraction. Configured [`speech.vocabulary`](config-reference.md#speech) terms take priority: session terms first, then the TUI's global terms, then extracted hints. Live transcription uses only short hints.
244
244
 
245
245
  If transcription fails, Tau keeps the local WAV file and reports its path:
246
246
 
247
- - `/listen retry` transcribes the same audio again with Gemini and the current conversation context. Gemini uploads the file for `gemini-3.5-transcribe` verbatim transcription with the same language hints, and Tau tries to delete the uploaded file afterward. Recordings longer than 20 minutes are rejected instead of being sent.
247
+ - `/listen retry` transcribes the same audio again with Scribe v2, the current conversation, all hints, and the recording's cleanup style. Recordings over 20 minutes are rejected.
248
248
  - `/listen discard` deletes the file.
249
249
 
250
250
  Tau keeps at most one failed recording. A new recording deletes it only once the new capture is producing audio. Exiting leaves the file at the reported path so you can recover it.
@@ -255,7 +255,15 @@ Install `ffmpeg`:
255
255
  brew install ffmpeg
256
256
  ```
257
257
 
258
- Transcription uses Gemini and needs `GEMINI_API_KEY` or `apiKeys.google`. The TUI process reads these credentials, also when attached to a remote host.
258
+ Transcription needs `ELEVENLABS_API_KEY` or `apiKeys.elevenlabs`, and cleanup needs `OPENAI_API_KEY` or `apiKeys.openai`. The TUI reads them, also when attached to a remote host.
259
+
260
+ ### Cleanup styles
261
+
262
+ `speech.cleanupStyle` sets each recording's initial style (`off` by default). Tab switches it for that recording. With `off`, Tau keeps the raw transcript.
263
+
264
+ With `default`, Tau connects to OpenAI while you speak. Then GPT-6.1 Terra (reasoning disabled) removes fillers and false starts, fixes punctuation and grammar, applies explicit spoken corrections, writes numbers as numerals, and formats spoken lists. It is instructed to keep your wording, languages, names, facts, identifiers, and paths without summarizing or translating, and to use [recent conversation](config-reference.md#speech) only to fix misheard words.
265
+
266
+ If cleanup fails, Tau reports it and inserts the uncleaned transcript. After Enter or Ctrl+Enter, the text stays in the editor for review instead of being submitted.
259
267
 
260
268
  ### Reading responses aloud
261
269
 
@@ -306,8 +314,4 @@ Restart the TUI instead after changing themes, voice, recording shortcut, person
306
314
 
307
315
  - `!` and `!!` run in the execution environment, not on the attaching machine.
308
316
  - 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
317
  - 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.