@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.
Files changed (317) hide show
  1. package/dist/core/code_mode/agents.js +62 -14
  2. package/dist/core/code_mode/agents.js.map +1 -1
  3. package/dist/core/code_mode/history.js +7 -0
  4. package/dist/core/code_mode/history.js.map +1 -1
  5. package/dist/core/code_mode/models.js.map +1 -1
  6. package/dist/core/code_mode/web.js.map +1 -1
  7. package/dist/core/config/content_loader.js.map +1 -1
  8. package/dist/core/config/index.js +2 -1
  9. package/dist/core/config/index.js.map +1 -1
  10. package/dist/core/config/ownership.js +71 -0
  11. package/dist/core/config/ownership.js.map +1 -0
  12. package/dist/core/config/runtime.js +22 -10
  13. package/dist/core/config/runtime.js.map +1 -1
  14. package/dist/core/config/runtime_config_snapshot.js +2 -2
  15. package/dist/core/config/runtime_config_snapshot.js.map +1 -1
  16. package/dist/core/config/schema.js +3 -2
  17. package/dist/core/config/schema.js.map +1 -1
  18. package/dist/core/history/agent_history_recorder.js +64 -0
  19. package/dist/core/history/agent_history_recorder.js.map +1 -0
  20. package/dist/core/history/cli.js +2 -2
  21. package/dist/core/history/cli.js.map +1 -1
  22. package/dist/core/history/config.js.map +1 -1
  23. package/dist/core/history/history_manager.js +14 -29
  24. package/dist/core/history/history_manager.js.map +1 -1
  25. package/dist/core/history/local_history_store.js +43 -10
  26. package/dist/core/history/local_history_store.js.map +1 -1
  27. package/dist/core/history/migrations.js +1 -1
  28. package/dist/core/history/migrations.js.map +1 -1
  29. package/dist/core/history/remote_history_client.js +2 -0
  30. package/dist/core/history/remote_history_client.js.map +1 -1
  31. package/dist/core/history/setup.js +10 -8
  32. package/dist/core/history/setup.js.map +1 -1
  33. package/dist/core/index.js +1 -1
  34. package/dist/core/index.js.map +1 -1
  35. package/dist/core/runtime/agent_model.js.map +1 -1
  36. package/dist/core/runtime/chat_runtime.js +6 -5
  37. package/dist/core/runtime/chat_runtime.js.map +1 -1
  38. package/dist/core/runtime/session_prompt_composer.js +2 -6
  39. package/dist/core/runtime/session_prompt_composer.js.map +1 -1
  40. package/dist/core/static/code_mode/history/documentation.md +22 -4
  41. package/dist/core/static/index.js +22 -11
  42. package/dist/core/static/index.js.map +1 -1
  43. package/dist/core/static/prompts/subagent-prefix.md +13 -5
  44. package/dist/core/static/tau_docs/code-mode.md +2 -2
  45. package/dist/core/static/tau_docs/config-reference.md +23 -9
  46. package/dist/core/static/tau_docs/configuration.md +13 -2
  47. package/dist/core/static/tau_docs/credentials.md +1 -1
  48. package/dist/core/static/tau_docs/history.md +44 -4
  49. package/dist/core/static/tau_docs/image-generation.md +27 -20
  50. package/dist/core/static/tau_docs/models.md +1 -1
  51. package/dist/core/static/tau_docs/node-sdk.md +10 -10
  52. package/dist/core/static/tau_docs/ownership-and-scope.md +7 -5
  53. package/dist/core/static/tau_docs/personas.md +2 -2
  54. package/dist/core/static/tau_docs/prompts-and-project-context.md +2 -2
  55. package/dist/core/static/tau_docs/remote-sessions.md +3 -2
  56. package/dist/core/static/tau_docs/security.md +11 -3
  57. package/dist/core/static/tau_docs/session-protocol-methods.md +50 -2
  58. package/dist/core/static/tau_docs/session-protocol.md +41 -12
  59. package/dist/core/static/tau_docs/sessions.md +5 -3
  60. package/dist/core/static/tau_docs/subagents.md +69 -52
  61. package/dist/core/static/tau_docs/telegram-projects.md +62 -4
  62. package/dist/core/static/tau_docs/telegram.md +9 -6
  63. package/dist/core/static/tau_docs/tools.md +1 -1
  64. package/dist/core/static/tau_docs/troubleshooting.md +8 -6
  65. package/dist/core/static/tau_docs/tui.md +28 -11
  66. package/dist/core/subagents/agent_supervisor.js +196 -15
  67. package/dist/core/subagents/agent_supervisor.js.map +1 -1
  68. package/dist/core/subagents/claude_code_runner.mjs +52 -51
  69. package/dist/core/subagents/native_subagent_runtime.js +43 -14
  70. package/dist/core/subagents/native_subagent_runtime.js.map +1 -1
  71. package/dist/core/subagents/prompt.js.map +1 -1
  72. package/dist/core/subagents/registry.js +1 -0
  73. package/dist/core/subagents/registry.js.map +1 -1
  74. package/dist/core/subagents/runtime.js.map +1 -1
  75. package/dist/core/subagents/types.js +2 -1
  76. package/dist/core/subagents/types.js.map +1 -1
  77. package/dist/core/telegram/adapter.js +17 -20
  78. package/dist/core/telegram/adapter.js.map +1 -1
  79. package/dist/core/telegram/cli.js +24 -12
  80. package/dist/core/telegram/cli.js.map +1 -1
  81. package/dist/core/telegram/config.js +2 -0
  82. package/dist/core/telegram/config.js.map +1 -1
  83. package/dist/core/telegram/local_session_client.js +2 -2
  84. package/dist/core/telegram/local_session_client.js.map +1 -1
  85. package/dist/core/telegram/runtime.js +10 -1
  86. package/dist/core/telegram/runtime.js.map +1 -1
  87. package/dist/core/telegram/session_manager.js +12 -0
  88. package/dist/core/telegram/session_manager.js.map +1 -1
  89. package/dist/core/telegram/workspace.js +21 -0
  90. package/dist/core/telegram/workspace.js.map +1 -1
  91. package/dist/core/tool/cli.js +1 -1
  92. package/dist/core/tool/image_generate.js +6 -2
  93. package/dist/core/tool/image_generate.js.map +1 -1
  94. package/dist/core/tools/catalog.js +24 -14
  95. package/dist/core/tools/catalog.js.map +1 -1
  96. package/dist/core/tools/wait_for_agents.js.map +1 -1
  97. package/dist/core/utils/model_notices.js.map +1 -1
  98. package/dist/core/utils/speech_to_text_keywords.js +10 -4
  99. package/dist/core/utils/speech_to_text_keywords.js.map +1 -1
  100. package/dist/core/version.js +2 -2
  101. package/dist/core/version.js.map +1 -1
  102. package/dist/diff_tool/app/dist/assets/andromeeda-DW8vo71h.js +1 -0
  103. package/dist/diff_tool/app/dist/assets/aurora-x-rMvKqtYI.js +1 -0
  104. package/dist/diff_tool/app/dist/assets/ayu-dark-CwczpL8O.js +1 -0
  105. package/dist/diff_tool/app/dist/assets/ayu-light-DSh22xiD.js +1 -0
  106. package/dist/diff_tool/app/dist/assets/ayu-mirage-JE6hAyHG.js +1 -0
  107. package/dist/diff_tool/app/dist/assets/catppuccin-frappe-pyXErRRU.js +1 -0
  108. package/dist/diff_tool/app/dist/assets/catppuccin-latte-BILSUICr.js +1 -0
  109. package/dist/diff_tool/app/dist/assets/catppuccin-macchiato-Ck60ZZQE.js +1 -0
  110. package/dist/diff_tool/app/dist/assets/catppuccin-mocha-C_2G67cS.js +1 -0
  111. package/dist/diff_tool/app/dist/assets/{core-D8lOlLN2.js → core-CXVpaOO1.js} +1 -1
  112. package/dist/diff_tool/app/dist/assets/dark-plus-CHgc6GYj.js +1 -0
  113. package/dist/diff_tool/app/dist/assets/dracula-Cf1PG3MT.js +1 -0
  114. package/dist/diff_tool/app/dist/assets/dracula-soft-DXuNm1Kq.js +1 -0
  115. package/dist/diff_tool/app/dist/assets/engine-oniguruma-Rz_7DPcV.js +1 -0
  116. package/dist/diff_tool/app/dist/assets/everforest-dark-CjdfwUBe.js +1 -0
  117. package/dist/diff_tool/app/dist/assets/everforest-light-CfVwwCBP.js +1 -0
  118. package/dist/diff_tool/app/dist/assets/github-dark-BL6HSl_n.js +1 -0
  119. package/dist/diff_tool/app/dist/assets/github-dark-default-zacuWV-M.js +1 -0
  120. package/dist/diff_tool/app/dist/assets/github-dark-dimmed-Mc0P9idi.js +1 -0
  121. package/dist/diff_tool/app/dist/assets/github-dark-high-contrast-IMKX2AVF.js +1 -0
  122. package/dist/diff_tool/app/dist/assets/github-light-default-DVlCqP3X.js +1 -0
  123. package/dist/diff_tool/app/dist/assets/github-light-high-contrast-Dj6zTyWR.js +1 -0
  124. package/dist/diff_tool/app/dist/assets/github-light-mYhEBkPo.js +1 -0
  125. package/dist/diff_tool/app/dist/assets/gruvbox-dark-hard-QTgQQZn-.js +1 -0
  126. package/dist/diff_tool/app/dist/assets/gruvbox-dark-medium-9d5YdCTx.js +1 -0
  127. package/dist/diff_tool/app/dist/assets/gruvbox-dark-soft-XCkqeBhR.js +1 -0
  128. package/dist/diff_tool/app/dist/assets/gruvbox-light-hard--5-nXqNp.js +1 -0
  129. package/dist/diff_tool/app/dist/assets/gruvbox-light-medium-COA1PZW2.js +1 -0
  130. package/dist/diff_tool/app/dist/assets/gruvbox-light-soft-CIJpzjAO.js +1 -0
  131. package/dist/diff_tool/app/dist/assets/highlights-DuJNYjEh.js +7 -0
  132. package/dist/diff_tool/app/dist/assets/horizon-Ba2cwkSy.js +1 -0
  133. package/dist/diff_tool/app/dist/assets/horizon-bright-DaEDgBmR.js +1 -0
  134. package/dist/diff_tool/app/dist/assets/houston-B6x0XVpU.js +1 -0
  135. package/dist/diff_tool/app/dist/assets/index-F9is7PUw.js +221 -0
  136. package/dist/diff_tool/app/dist/assets/kanagawa-dragon-DhTFvBMT.js +1 -0
  137. package/dist/diff_tool/app/dist/assets/kanagawa-lotus--m8sdOxn.js +1 -0
  138. package/dist/diff_tool/app/dist/assets/kanagawa-wave-D-tTv4k2.js +1 -0
  139. package/dist/diff_tool/app/dist/assets/langs-CTftvgbb.js +1 -0
  140. package/dist/diff_tool/app/dist/assets/laserwave-HSLx0L75.js +1 -0
  141. package/dist/diff_tool/app/dist/assets/lib-BKZ5ZaMU.js +1 -0
  142. package/dist/diff_tool/app/dist/assets/light-plus-CUjWrTSi.js +1 -0
  143. package/dist/diff_tool/app/dist/assets/loader-bi21_x0K.js +1 -0
  144. package/dist/diff_tool/app/dist/assets/material-theme-CnthUGfg.js +1 -0
  145. package/dist/diff_tool/app/dist/assets/material-theme-darker-DUi03Qre.js +1 -0
  146. package/dist/diff_tool/app/dist/assets/material-theme-lighter-D2-qr5Vw.js +1 -0
  147. package/dist/diff_tool/app/dist/assets/material-theme-ocean-CWR-LogA.js +1 -0
  148. package/dist/diff_tool/app/dist/assets/material-theme-palenight-Cnv8m1ra.js +1 -0
  149. package/dist/diff_tool/app/dist/assets/min-dark-EXoM-6Xo.js +1 -0
  150. package/dist/diff_tool/app/dist/assets/min-light-DVOTDhnA.js +1 -0
  151. package/dist/diff_tool/app/dist/assets/monokai-DkggTbGy.js +1 -0
  152. package/dist/diff_tool/app/dist/assets/night-owl-Bdcs0PMi.js +1 -0
  153. package/dist/diff_tool/app/dist/assets/night-owl-light-RoU30LE0.js +1 -0
  154. package/dist/diff_tool/app/dist/assets/nord-u7hMircQ.js +1 -0
  155. package/dist/diff_tool/app/dist/assets/one-dark-pro-08PdtLzi.js +1 -0
  156. package/dist/diff_tool/app/dist/assets/one-light-DgvUEtgI.js +1 -0
  157. package/dist/diff_tool/app/dist/assets/pierre-dark-B2jZWvHG.js +1 -0
  158. package/dist/diff_tool/app/dist/assets/pierre-dark-protanopia-deuteranopia-CebgQdRf.js +1 -0
  159. package/dist/diff_tool/app/dist/assets/pierre-dark-soft-DdE7dyP3.js +1 -0
  160. package/dist/diff_tool/app/dist/assets/pierre-dark-tritanopia-CXimiT7X.js +1 -0
  161. package/dist/diff_tool/app/dist/assets/pierre-dark-vibrant-DzBsxHvQ.js +1 -0
  162. package/dist/diff_tool/app/dist/assets/pierre-light-Vf__O3ev.js +1 -0
  163. package/dist/diff_tool/app/dist/assets/pierre-light-protanopia-deuteranopia-BUtWcCQC.js +1 -0
  164. package/dist/diff_tool/app/dist/assets/pierre-light-soft-C3QCXKvN.js +1 -0
  165. package/dist/diff_tool/app/dist/assets/pierre-light-tritanopia-CKLy6XvA.js +1 -0
  166. package/dist/diff_tool/app/dist/assets/pierre-light-vibrant-DDuTEIhH.js +1 -0
  167. package/dist/diff_tool/app/dist/assets/plastic-B8mE6BxX.js +1 -0
  168. package/dist/diff_tool/app/dist/assets/poimandres-DUFjrgxT.js +1 -0
  169. package/dist/diff_tool/app/dist/assets/red-BJvdDEUx.js +1 -0
  170. package/dist/diff_tool/app/dist/assets/rose-pine-BSqRqUae.js +1 -0
  171. package/dist/diff_tool/app/dist/assets/rose-pine-dawn-U6TBE82u.js +1 -0
  172. package/dist/diff_tool/app/dist/assets/rose-pine-moon-CAU7u1h4.js +1 -0
  173. package/dist/diff_tool/app/dist/assets/shiki-D6ZyrNQD.js +2 -0
  174. package/dist/diff_tool/app/dist/assets/slack-dark-CMu0smFa.js +1 -0
  175. package/dist/diff_tool/app/dist/assets/slack-ochin-BBne7cjw.js +1 -0
  176. package/dist/diff_tool/app/dist/assets/snazzy-light-CV8HUEmk.js +1 -0
  177. package/dist/diff_tool/app/dist/assets/solarized-dark-CmYmhSgI.js +1 -0
  178. package/dist/diff_tool/app/dist/assets/solarized-light-CjLLwxRp.js +1 -0
  179. package/dist/diff_tool/app/dist/assets/{stream-tokenizer-BkuDYA48.js → stream-tokenizer-BdsyU_yB.js} +4 -4
  180. package/dist/diff_tool/app/dist/assets/synthwave-84-wQeDKbzQ.js +1 -0
  181. package/dist/diff_tool/app/dist/assets/{themes-BaMgiyFz.js → themes-9lpTYI_i.js} +2 -2
  182. package/dist/diff_tool/app/dist/assets/tokyo-night-D4ZgDiA7.js +1 -0
  183. package/dist/diff_tool/app/dist/assets/vesper-sUHevyKv.js +1 -0
  184. package/dist/diff_tool/app/dist/assets/vitesse-black-CfklMpOb.js +1 -0
  185. package/dist/diff_tool/app/dist/assets/vitesse-dark-CJkzwmKT.js +1 -0
  186. package/dist/diff_tool/app/dist/assets/vitesse-light-BxMp8E1Y.js +1 -0
  187. package/dist/diff_tool/app/dist/assets/wasm-4KdTHw0F.js +1 -0
  188. package/dist/diff_tool/app/dist/index.html +2 -2
  189. package/dist/history/worker/index.js +140 -15
  190. package/dist/history/worker/index.js.map +1 -1
  191. package/dist/history/worker/migrations/0002_parent_session.sql +3 -0
  192. package/dist/history/worker/viewer.css +10 -1
  193. package/dist/host/local_session_host.js +304 -172
  194. package/dist/host/local_session_host.js.map +1 -1
  195. package/dist/host/session_bootstrap.js +53 -0
  196. package/dist/host/session_bootstrap.js.map +1 -0
  197. package/dist/host/session_host.js +2 -0
  198. package/dist/host/session_host.js.map +1 -1
  199. package/dist/host/session_protocol_handler.js +11 -1
  200. package/dist/host/session_protocol_handler.js.map +1 -1
  201. package/dist/main.js +48 -95
  202. package/dist/main.js.map +1 -1
  203. package/dist/protocol/environment_variables.d.ts +2 -0
  204. package/dist/protocol/environment_variables.js +7 -0
  205. package/dist/protocol/environment_variables.js.map +1 -0
  206. package/dist/protocol/session_protocol.d.ts +27 -3
  207. package/dist/protocol/session_protocol.js +41 -7
  208. package/dist/protocol/session_protocol.js.map +1 -1
  209. package/dist/sdk/client.js +2 -2
  210. package/dist/sdk/client.js.map +1 -1
  211. package/dist/sdk/local_client.d.ts +2 -2
  212. package/dist/sdk/local_client.js +11 -66
  213. package/dist/sdk/local_client.js.map +1 -1
  214. package/dist/sdk/session.js +12 -0
  215. package/dist/sdk/session.js.map +1 -1
  216. package/dist/sdk/types.d.ts +10 -0
  217. package/dist/store/session_snapshot_migrations.js +40 -1
  218. package/dist/store/session_snapshot_migrations.js.map +1 -1
  219. package/dist/tui/chat_view.js +5 -0
  220. package/dist/tui/chat_view.js.map +1 -1
  221. package/dist/tui/host_diagnostic_relay.js +44 -0
  222. package/dist/tui/host_diagnostic_relay.js.map +1 -0
  223. package/dist/tui/index.js +1 -0
  224. package/dist/tui/index.js.map +1 -1
  225. package/dist/tui/listen_capture.js +7 -9
  226. package/dist/tui/listen_capture.js.map +1 -1
  227. package/dist/tui/session_chat_app.js +2 -2
  228. package/dist/tui/session_chat_app.js.map +1 -1
  229. package/dist/tui/session_chat_controller.js +89 -13
  230. package/dist/tui/session_chat_controller.js.map +1 -1
  231. package/dist/tui/terminal.js +13 -2
  232. package/dist/tui/terminal.js.map +1 -1
  233. package/dist/tui/ui/subagent_panel.js +45 -14
  234. package/dist/tui/ui/subagent_panel.js.map +1 -1
  235. package/package.json +11 -11
  236. package/dist/diff_tool/app/dist/assets/andromeeda-BJLMrMlp.js +0 -1
  237. package/dist/diff_tool/app/dist/assets/aurora-x-BCChoRpm.js +0 -1
  238. package/dist/diff_tool/app/dist/assets/ayu-dark-DzFZPuMV.js +0 -1
  239. package/dist/diff_tool/app/dist/assets/ayu-light-DSkcX_XD.js +0 -1
  240. package/dist/diff_tool/app/dist/assets/ayu-mirage-DSve0zuE.js +0 -1
  241. package/dist/diff_tool/app/dist/assets/catppuccin-frappe-DbLkF0J2.js +0 -1
  242. package/dist/diff_tool/app/dist/assets/catppuccin-latte-b6208YQK.js +0 -1
  243. package/dist/diff_tool/app/dist/assets/catppuccin-macchiato-CNNBbV1L.js +0 -1
  244. package/dist/diff_tool/app/dist/assets/catppuccin-mocha-DHkNF0Mp.js +0 -1
  245. package/dist/diff_tool/app/dist/assets/dark-plus-BVZ_4wTZ.js +0 -1
  246. package/dist/diff_tool/app/dist/assets/dracula-BoZgXveB.js +0 -1
  247. package/dist/diff_tool/app/dist/assets/dracula-soft-D-Kgh5gw.js +0 -1
  248. package/dist/diff_tool/app/dist/assets/everforest-dark-Y6tr-2zD.js +0 -1
  249. package/dist/diff_tool/app/dist/assets/everforest-light-CA0Ol4Qu.js +0 -1
  250. package/dist/diff_tool/app/dist/assets/github-dark-C895GGrm.js +0 -1
  251. package/dist/diff_tool/app/dist/assets/github-dark-default-CM8LCIj6.js +0 -1
  252. package/dist/diff_tool/app/dist/assets/github-dark-dimmed-jPx1V1fR.js +0 -1
  253. package/dist/diff_tool/app/dist/assets/github-dark-high-contrast-UN5YjL_Z.js +0 -1
  254. package/dist/diff_tool/app/dist/assets/github-light-B4HDwToD.js +0 -1
  255. package/dist/diff_tool/app/dist/assets/github-light-default-CfC59JYV.js +0 -1
  256. package/dist/diff_tool/app/dist/assets/github-light-high-contrast-C3edEHcK.js +0 -1
  257. package/dist/diff_tool/app/dist/assets/gruvbox-dark-hard-BdGOuxq8.js +0 -1
  258. package/dist/diff_tool/app/dist/assets/gruvbox-dark-medium-CmygtSMi.js +0 -1
  259. package/dist/diff_tool/app/dist/assets/gruvbox-dark-soft-BJH4XuY9.js +0 -1
  260. package/dist/diff_tool/app/dist/assets/gruvbox-light-hard-BkSILF4E.js +0 -1
  261. package/dist/diff_tool/app/dist/assets/gruvbox-light-medium-DiZUfgdz.js +0 -1
  262. package/dist/diff_tool/app/dist/assets/gruvbox-light-soft-CRCTnbIj.js +0 -1
  263. package/dist/diff_tool/app/dist/assets/highlights-B80gocb2.js +0 -3
  264. package/dist/diff_tool/app/dist/assets/horizon-DUI96lQn.js +0 -1
  265. package/dist/diff_tool/app/dist/assets/horizon-bright-COxh1lHf.js +0 -1
  266. package/dist/diff_tool/app/dist/assets/houston-DduE73P7.js +0 -1
  267. package/dist/diff_tool/app/dist/assets/index-DSKn9aHV.js +0 -205
  268. package/dist/diff_tool/app/dist/assets/kanagawa-dragon-BHDhSKDf.js +0 -1
  269. package/dist/diff_tool/app/dist/assets/kanagawa-lotus-NJjGXXql.js +0 -1
  270. package/dist/diff_tool/app/dist/assets/kanagawa-wave-DsGe2Uqk.js +0 -1
  271. package/dist/diff_tool/app/dist/assets/langs-Cb6u03GG.js +0 -1
  272. package/dist/diff_tool/app/dist/assets/laserwave-DYV0fvJ_.js +0 -1
  273. package/dist/diff_tool/app/dist/assets/lib-BFrBoEqQ.js +0 -9
  274. package/dist/diff_tool/app/dist/assets/light-plus-FTnIShls.js +0 -1
  275. package/dist/diff_tool/app/dist/assets/loader-DYYMIDWx.js +0 -1
  276. package/dist/diff_tool/app/dist/assets/material-theme-IcIb8QNx.js +0 -1
  277. package/dist/diff_tool/app/dist/assets/material-theme-darker-B_f2vxdL.js +0 -1
  278. package/dist/diff_tool/app/dist/assets/material-theme-lighter-CR2Q-4Hp.js +0 -1
  279. package/dist/diff_tool/app/dist/assets/material-theme-ocean-BX6hAJ_y.js +0 -1
  280. package/dist/diff_tool/app/dist/assets/material-theme-palenight-B6DWAotd.js +0 -1
  281. package/dist/diff_tool/app/dist/assets/min-dark-DECtZcqS.js +0 -1
  282. package/dist/diff_tool/app/dist/assets/min-light-qRIVcaqf.js +0 -1
  283. package/dist/diff_tool/app/dist/assets/monokai-CLmrJ-8t.js +0 -1
  284. package/dist/diff_tool/app/dist/assets/night-owl-eR4AsyAP.js +0 -1
  285. package/dist/diff_tool/app/dist/assets/night-owl-light-C74n5ti-.js +0 -1
  286. package/dist/diff_tool/app/dist/assets/nord-D4wy7NEP.js +0 -1
  287. package/dist/diff_tool/app/dist/assets/one-dark-pro-28TLzoS8.js +0 -1
  288. package/dist/diff_tool/app/dist/assets/one-light-C0UY_Fh7.js +0 -1
  289. package/dist/diff_tool/app/dist/assets/pierre-dark-fPlffE7i.js +0 -1
  290. package/dist/diff_tool/app/dist/assets/pierre-dark-protanopia-deuteranopia-BmjibgrW.js +0 -1
  291. package/dist/diff_tool/app/dist/assets/pierre-dark-soft-Cng2SYKc.js +0 -1
  292. package/dist/diff_tool/app/dist/assets/pierre-dark-tritanopia-DneQ5i7L.js +0 -1
  293. package/dist/diff_tool/app/dist/assets/pierre-dark-vibrant-BUK9Y-N_.js +0 -1
  294. package/dist/diff_tool/app/dist/assets/pierre-light-BvcXQJIj.js +0 -1
  295. package/dist/diff_tool/app/dist/assets/pierre-light-protanopia-deuteranopia-Cd5nk0bp.js +0 -1
  296. package/dist/diff_tool/app/dist/assets/pierre-light-soft-BvU23vks.js +0 -1
  297. package/dist/diff_tool/app/dist/assets/pierre-light-tritanopia-BSHccQzI.js +0 -1
  298. package/dist/diff_tool/app/dist/assets/pierre-light-vibrant-BgMZEwQI.js +0 -1
  299. package/dist/diff_tool/app/dist/assets/plastic-B2V_PDVk.js +0 -1
  300. package/dist/diff_tool/app/dist/assets/poimandres-DB9-pI6r.js +0 -1
  301. package/dist/diff_tool/app/dist/assets/red-CqYzoXtd.js +0 -1
  302. package/dist/diff_tool/app/dist/assets/rose-pine-C3zjVKxG.js +0 -1
  303. package/dist/diff_tool/app/dist/assets/rose-pine-dawn-C72QYfqa.js +0 -1
  304. package/dist/diff_tool/app/dist/assets/rose-pine-moon-CSM8ewhO.js +0 -1
  305. package/dist/diff_tool/app/dist/assets/shiki-DaptjTao.js +0 -2
  306. package/dist/diff_tool/app/dist/assets/slack-dark-Dtzi51su.js +0 -1
  307. package/dist/diff_tool/app/dist/assets/slack-ochin-Bb7oPExa.js +0 -1
  308. package/dist/diff_tool/app/dist/assets/snazzy-light-DXgiwzKu.js +0 -1
  309. package/dist/diff_tool/app/dist/assets/solarized-dark-BKOT3ICq.js +0 -1
  310. package/dist/diff_tool/app/dist/assets/solarized-light--Lk5pOfE.js +0 -1
  311. package/dist/diff_tool/app/dist/assets/synthwave-84-BJJFg-sc.js +0 -1
  312. package/dist/diff_tool/app/dist/assets/tokyo-night-DvpptEDd.js +0 -1
  313. package/dist/diff_tool/app/dist/assets/vesper-C1rBZbON.js +0 -1
  314. package/dist/diff_tool/app/dist/assets/vitesse-black-Sqvrs2Sw.js +0 -1
  315. package/dist/diff_tool/app/dist/assets/vitesse-dark-BWf_ZQtP.js +0 -1
  316. package/dist/diff_tool/app/dist/assets/vitesse-light-Cqenv4Qv.js +0 -1
  317. package/dist/diff_tool/app/dist/assets/wasm-BnjxR4X6.js +0 -1
@@ -22,7 +22,7 @@ Project and global content can change which persona ids exist. A configured defa
22
22
  | --- | --- | --- | --- | --- |
23
23
  | `apiKeys` | Object of string values | Global only | Provider-keyed map | Owning host or feature process; restart after changes |
24
24
  | `defaultPersona` | Non-empty string | Global, project | Most-specific wins | Session host; new session |
25
- | `speech` | Object with optional `voiceId`, `recordingShortcut`, and `vocabulary` | Global, project | Merge by field; vocabulary is additive | TUI client or Telegram runner; process restart |
25
+ | `speech` | Object with optional `voiceId`, `recordingShortcut`, and `vocabulary` | Global, project | Merge by field; vocabulary is additive | `voiceId` and `recordingShortcut`: TUI client or Telegram runner; process restart. `vocabulary`: session host; `/reload` or new session. Global `vocabulary` terms are also read by the client; process restart |
26
26
  | `defaultTheme` | Non-empty string | Global, project | Most-specific wins | TUI client; client restart |
27
27
  | `markdownExport` | Object with `url` and optional `token`, `tokenEnv` | Global only | One global object | TUI client; client restart |
28
28
  | `clientTools` | Array of objects | Global only | One global definition list | Owning client; TUI restart or new Telegram session client |
@@ -31,7 +31,7 @@ Project and global content can change which persona ids exist. A configured defa
31
31
  | `modelSystemNotices` | String map | Global, project | Merge by model target | Session runtime; `/reload`, affects later inputs |
32
32
  | `flySprites` | Object | Global, project | Merge connection fields | Host startup; host restart |
33
33
  | `history` | Object | Global only | One global object | Host startup; host restart |
34
- | `mcpServers` | Object keyed by server name | Global and project | Merge names; nearer entry replaces | Host startup; host restart |
34
+ | `mcpServers` | Object keyed by server name | Global and project | Merge names; nearer entry replaces | Session host, local sessions only; next time the host loads the session |
35
35
 
36
36
  Unknown fields are removed without a warning. Wrong types and invalid values produce warnings, and Tau continues with the valid fields. A field at a level where it is not allowed is rejected.
37
37
 
@@ -72,7 +72,7 @@ Each entry must use `<provider>/<model>:<effort>` and resolve against the merged
72
72
  }
73
73
  ```
74
74
 
75
- A more specific list replaces the broader one. Subagents inherit instructions and tools from the main persona. Custom subagent definitions are not supported. See [subagents](subagents.md).
75
+ A more specific list replaces the broader one. Subagents inherit instructions and tools from their parent agent. Custom subagent definitions are not supported. See [subagents](subagents.md).
76
76
 
77
77
  ### `modelSystemNotices`
78
78
 
@@ -177,7 +177,19 @@ Authentication, permission, rate-limit, and network errors during voice lookup d
177
177
 
178
178
  Speech uses Eleven v4 Turbo, the delivery note `[Brisk but relaxed, speaking naturally to a colleague]`, and a 1.15× tempo adjustment. GPT-6 Luna rewrites the text with reasoning disabled before ElevenLabs synthesis, so both OpenAI and ElevenLabs credentials are required. Voice Library API access may require a paid ElevenLabs plan, and shared voices can become unavailable.
179
179
 
180
- The TUI reads these speech settings from its own client configuration, including project configuration discovered from its startup directory, also when attached to a remote host. It does not load vocabulary from the remote session's repository. Telegram reads it from the runner's startup configuration, not from session workspaces. Restart the respective process after changes. This setting does not affect the explicit voices supplied to `tau tool speech-generate`.
180
+ `voiceId` and `recordingShortcut` come from the client's own configuration. The TUI reads them from its startup directory's configuration, also when attached to a remote host, and Telegram reads `voiceId` from the runner's startup configuration. Restart the respective process after changes. `voiceId` does not affect the explicit voices supplied to `tau tool speech-generate`.
181
+
182
+ Vocabulary follows the session. The host resolves it from the global and project levels of the session's working directory, on the execution environment. The client that transcribes the audio then adds the terms from its own global configuration, after the session's terms. Project configuration in the client's startup directory is not used. For example:
183
+
184
+ | Location | `vocabulary` |
185
+ | --- | --- |
186
+ | Global config on the session's machine | `["Team"]` |
187
+ | `.tau/config.json` in the session's project | `["Ledger"]` |
188
+ | Global config on the machine running `tau attach` | `["Personal"]` |
189
+ | `.tau/config.json` where `tau attach` started | `["Notes"]` |
190
+ | **Terms used for this session** | `["Ledger", "Team", "Personal"]` |
191
+
192
+ A client adds its global terms only when it started inside its user's home, because that is when it reads the global level. See [configuration](configuration.md). Run `/reload` after changing the session's terms, and restart the client after changing its global terms.
181
193
 
182
194
  ### `history`
183
195
 
@@ -202,13 +214,15 @@ Tau uses the first key it finds: `TAU_HISTORY_API_KEY`, then the variable named
202
214
 
203
215
  ### `mcpServers`
204
216
 
205
- The host reads MCP servers once at startup, from the global config and the project levels of the directory where the host was launched.
217
+ Each session on a local execution environment uses the servers from the global config and project levels of its own working directory. The directory where the host was launched does not choose them, so `tau`, `tau serve`, the SDK, and Telegram behave the same way.
206
218
 
207
219
  - Server names add up across levels. A nearer definition replaces the whole entry with the same name, including credentials.
208
220
  - Set `enabled: false` to turn off an inherited server.
209
- - All sessions on the host share the same servers. Subagents have their parent's access, even in another working directory.
210
- - Configuration in a session's execution environment never adds servers.
211
- - Restart the host after changing definitions or static credentials. `/reload` does not reload servers. OAuth credentials updated through `tau mcp login` take effect without restarting.
221
+ - The global level applies only when the session's working directory is inside the home directory. See [configuration](configuration.md).
222
+ - Each session has its own servers and connections. Subagents use their parent's, even in another working directory.
223
+ - A session on a remote execution environment, such as a Fly Sprite, has no MCP servers. Tau does not use definitions from that environment or from the host. Servers would run on the host, and Tau cannot tell which of them expose the host's files. [Security](security.md#trust-mcp-servers) explains the trade-off.
224
+ - The host reads definitions when it creates or recovers a session, and they stay fixed while the session is loaded. `/reload` does not change them, but it warns if the definitions on disk differ. To apply a change, start a new session, or reopen the session after the host has unloaded it. The host unloads a session when no client is attached, its work has finished, and no [retention](session-protocol.md#keep-a-session-loaded-without-clients) period is active, and when the host shuts down.
225
+ - Restart the host after changing the environment variables that servers use. OAuth credentials updated through `tau mcp login` take effect without restarting.
212
226
 
213
227
  ```json
214
228
  {
@@ -243,7 +257,7 @@ Stdio executables run directly, without a shell. Bare commands resolve through t
243
257
 
244
258
  Values in `env` and `headers` can reference host environment variables as `${NAME}`. A missing variable makes the connection fail. Command substitution is not supported. Stdio servers inherit the host environment, and `env` overrides matching names. Keep secrets in the host environment instead of committing them to JSON.
245
259
 
246
- An invalid entry is skipped with a diagnostic, and the other servers stay configured. HTTP OAuth sign-in is available through `tau mcp login`; see [credentials](credentials.md#mcp-oauth). MCP prompts, subscriptions, elicitation, sampling, execution-environment servers, and user approval dialogs are not supported. See [code mode](code-mode.md#capabilities) for discovery, calls, and result handling.
260
+ An invalid entry is skipped with a [configuration warning](configuration.md#see-configuration-warnings), and the other servers stay configured. HTTP OAuth sign-in is available through `tau mcp login`; see [credentials](credentials.md#mcp-oauth). MCP prompts, subscriptions, elicitation, sampling, execution-environment servers, and user approval dialogs are not supported. See [code mode](code-mode.md#capabilities) for discovery, calls, and result handling.
247
261
 
248
262
  ## TUI presentation and diff review
249
263
 
@@ -105,6 +105,15 @@ Unknown fields are removed without a warning, both at the top level and inside n
105
105
 
106
106
  This is valid JSON but sets nothing, because `defaultPersnoa` is not a known field. Check edited keys against the [configuration reference](config-reference.md), especially when no warning appears.
107
107
 
108
+ ### See configuration warnings
109
+
110
+ Where warnings appear depends on how the session was loaded:
111
+
112
+ - `tau` prints warnings for its startup directory before opening the TUI. It shows warnings for other sessions it loads in the transcript.
113
+ - `tau serve` and `tau telegram` write warnings for each session they create or recover to standard error, as JSON.
114
+ - An in-process [Node SDK](node-sdk.md) client receives them through `onDiagnostic`.
115
+ - `/reload` and `session.reload` return warnings for the current session, also in an attached client.
116
+
108
117
  ## Make a safe edit
109
118
 
110
119
  First find out what reads the setting, and on which machine, `cwd`, and home. Then choose the narrowest level that works:
@@ -140,13 +149,15 @@ Tau loads client configuration before opening the TUI. Restart the local TUI or
140
149
 
141
150
  - `defaultTheme`
142
151
  - `clientTools` and `enabledClientTools`
152
+ - `speech.voiceId` and `speech.recordingShortcut`
153
+ - the client's global `speech.vocabulary` terms
143
154
  - client environment variables
144
155
 
145
156
  `/theme:<id>` changes only the current client's appearance. Themes are not saved in the session.
146
157
 
147
158
  ### Current session runtime
148
159
 
149
- When no turn is running, `/reload` reads configuration and content again from the execution environment. It updates the session's runtime configuration, model catalog, personas, prompts, skills, the selected persona's definition, and project context. It also reports warnings and refreshes the session catalog.
160
+ When no turn is running, `/reload` reads configuration and content again from the execution environment. It updates the session's runtime configuration, model catalog, personas, prompts, skills, the selected persona's definition, and project context. It also reports warnings and refreshes the session catalog, including its speech vocabulary. MCP server definitions stay as they were when the host loaded the session, and reload warns if the definitions on disk differ. See [`mcpServers`](config-reference.md#mcpservers).
150
161
 
151
162
  The session keeps its current persona if that persona still exists. Otherwise Tau picks the first available persona. Changing `defaultPersona` does not switch an existing session on reload. It applies to new sessions, unless a CLI flag or creation request chooses another persona.
152
163
 
@@ -166,7 +177,7 @@ For `tau serve`, make the changes on the host machine and restart the server. Re
166
177
 
167
178
  Some settings apply only when something new is created. `defaultPersona` and startup persona flags choose the persona of a new session. The execution environment's kind, identity, `cwd`, and home are fixed when the session is created or recovered.
168
179
 
169
- The Telegram runner loads its speech provider and its runner config at startup. Restart it after changing speech, bot startup settings, presets, projects, routing, or workspace preparation.
180
+ The Telegram runner loads its speech provider and its runner config at startup. Restart it after changing its voice, its global speech vocabulary, bot startup settings, presets, projects, routing, or workspace preparation.
170
181
 
171
182
  - Workspace-preparation changes apply when a managed workspace is created or reconstructed. Restarting does not change a preserved workspace.
172
183
  - Command client tools are chosen when the runner creates the client for a session. Changes apply to new sessions, and also to existing sessions when a runner restart recovers them.
@@ -74,7 +74,7 @@ tau mcp login cloudflare-api --all
74
74
  tau mcp logout cloudflare-api
75
75
  ```
76
76
 
77
- Run these commands on the host, from the directory where it was launched, so the CLI resolves the same global and project MCP configuration. `login` without flags requests the authentication challenge's scopes (or the resource metadata's default scopes when the challenge has none) together with existing granted scopes. Repeat `--scope` to add specific permissions to the existing grant. `--all` requests every scope advertised by the authorization server and fails if it advertises none. When additional scopes exceed the client registration, login registers a new client and keeps the previous grant until authorization succeeds. The service decides which permissions it grants; requesting all does not guarantee unrestricted access. `--all` and `--scope` cannot be combined.
77
+ Run these commands on the host, from the session's working directory, so the CLI resolves the same global and project MCP configuration as the session. The sign-in belongs to the server's URL, so every session on that host that uses the URL shares it. `login` without flags requests the authentication challenge's scopes (or the resource metadata's default scopes when the challenge has none) together with existing granted scopes. Repeat `--scope` to add specific permissions to the existing grant. `--all` requests every scope advertised by the authorization server and fails if it advertises none. When additional scopes exceed the client registration, login registers a new client and keeps the previous grant until authorization succeeds. The service decides which permissions it grants; requesting all does not guarantee unrestricted access. `--all` and `--scope` cannot be combined.
78
78
 
79
79
  OAuth requests and discovery redirects require HTTPS, except for HTTP on loopback. Registration and token requests do not follow redirects.
80
80
 
@@ -35,7 +35,7 @@ Hosts emit `history_recording` diagnostics with a `delayed`, `dropped`, or `reco
35
35
 
36
36
  History follows the transcript, not the model's current context.
37
37
 
38
- **Rewind removes later entries.** When a session rewinds to a message, Tau deletes history from that message onward. The same deletion is queued for a configured remote collection.
38
+ **Rewind removes later entries.** When a session rewinds to a message, Tau deletes history from that message onward. The same deletion is queued for a configured remote collection. [Subagent sessions](#native-subagent-sessions) stay.
39
39
 
40
40
  **Compaction keeps entries.** Compaction replaces the session's model context with a summary, but the original entries stay in history. Work from before a compaction can still be found, even though the session no longer contains it word for word.
41
41
 
@@ -43,6 +43,30 @@ History follows the transcript, not the model's current context.
43
43
 
44
44
  These rules differ from how the session itself behaves. Use [sessions](sessions.md) to understand what a recovered session shows or sends to the model.
45
45
 
46
+ ## Native subagent sessions
47
+
48
+ Each native Tau [subagent](subagents.md) has its own history session for its whole lifetime, including its assignment, later input, and all its work. The session ID is the subagent's ID from `tau.agents`. Recording happens even when no agent has the `history` tool. Claude Code subagents are not recorded.
49
+
50
+ A subagent's session is a child of the session of the agent that started it, so a subagent started by another subagent is a child of that subagent's session:
51
+
52
+ - `parentSessionId` names the parent. Tau sets it when it creates the child, and it never changes. Sessions without a parent do not have this field.
53
+ - `childCount` is the number of direct children, and every session has it.
54
+ - Attributes are copied from the parent, except `cwd`, which is the subagent's working directory.
55
+
56
+ Search leaves out child sessions by default, so it finds main sessions only. The `parent` option of `tau.history.search` changes this:
57
+
58
+ | `parent` | Sessions searched |
59
+ | ------------------- | -------------------------------- |
60
+ | omitted or `"none"` | Only sessions without a parent |
61
+ | `"any"` | All sessions, including children |
62
+ | `{ sessionId }` | Direct children of that session |
63
+
64
+ `tau.history.read` accepts any session ID, including a child's.
65
+
66
+ A child session stays in history after its subagent ends, even when the parent rewinds past the message that started the subagent. History cannot restore the subagent.
67
+
68
+ Child sessions replicate independently of their parents, so a shared collection can hold a child before its parent, and `childCount` can lag behind the subagents started.
69
+
46
70
  ## Filter by attributes
47
71
 
48
72
  Session creation attributes are string pairs recorded when a session is created, and they never change. Tau sets `machine` and `cwd`, and the client that created the session sets the others. History stores them and can filter on exact values or on case-sensitive substrings. They describe where a session came from; they are not instructions.
@@ -63,7 +87,7 @@ Because composite values are comma-separated, a substring filter on `repository`
63
87
 
64
88
  ## Agent access is explicit and read-only
65
89
 
66
- A persona can enable the read-only `tau.history` capability in the `code` tool. It searches and reads the configured history collection, across all repositories and execution environments. Because it can see so much, the agent uses it only when the request or active instructions directly ask for past transcripts, not to look for possibly related earlier work on its own initiative. Native Tau subagents follow the same rule, and an assignment that asks for past transcripts counts as a direct request. They also have one standing permission: as a last resort, a subagent may read its parent session when its assignment leaves out context it needs. See [subagents](subagents.md#spawn).
90
+ A persona can enable the read-only `tau.history` capability in the `code` tool. It searches and reads the configured history collection, across all repositories and execution environments. Because it can see so much, the agent uses it only when the request or active instructions directly ask for past transcripts, not to look for possibly related earlier work on its own initiative. Native Tau subagents follow the same rule, and an assignment that asks for past transcripts counts as a direct request. They also have one standing permission: a subagent may read the sessions of its ancestors, including the main session, when its assignment leaves out context it needs. See [subagents](subagents.md#spawn).
67
91
 
68
92
  Automatic compaction archives are different. They hold the current session's context from before a compaction, in the execution environment. `history` searches a separate collection on the host, which may be out of date, truncated, unavailable, or copied to a remote service. After a compaction, the agent is therefore pointed to the archive files to recover details, and history entry IDs have nothing to do with archive lookups.
69
93
 
@@ -73,7 +97,7 @@ Attributes, snippets, digests, entries, tool arguments, and tool results from hi
73
97
 
74
98
  Without remote history, the capability searches and reads the host's local database. With a remote target, it uses only the remote service and never mixes in local results. A remote search can therefore fail even while local recording keeps working.
75
99
 
76
- A read can instead ask for the host's local database explicitly with `source: "local"` in `tau.history.read`. It then reads only local history, even when a remote target is configured, and never contacts the service. This avoids waiting for replication when reading a session that this host recorded, such as the current session or its parent. Local reads see the same best-effort recording as the rest of local history. Search has no such option.
100
+ A read can instead ask for the host's local database explicitly with `source: "local"` in `tau.history.read`. It then reads only local history, even when a remote target is configured, and never contacts the service. This avoids waiting for replication when reading a session that this host recorded, such as the current session or an ancestor's. Local reads see the same best-effort recording as the rest of local history. Search has no such option.
77
101
 
78
102
  ## Add a shared remote collection
79
103
 
@@ -109,7 +133,7 @@ Open the service's address, for example `https://history.example.net/`, to brows
109
133
  - The password never appears in a URL, and pages are not cached by the browser.
110
134
  - The password gives read access to transcripts, attributes, tool arguments, and tool results from every host that uses the service. Keep it private.
111
135
 
112
- The index lists recently updated sessions with titles, summaries, times, and attributes, plus a search form.
136
+ The index lists recently updated sessions without a parent, with titles, summaries, times, and attributes, plus a search form. Its search also covers only those sessions, so open a [subagent's session](#native-subagent-sessions) through the links on its parent's page or through its `webUrl`.
113
137
 
114
138
  - Repository and source filters match case-sensitive substrings. They combine with text search and stay active across pages.
115
139
  - **Older sessions** loads the next page; pages never load by themselves.
@@ -117,6 +141,8 @@ The index lists recently updated sessions with titles, summaries, times, and att
117
141
 
118
142
  A session page starts empty, then loads the transcript in batches and adds them in order, with no scrolling or page controls. Tool entries start collapsed. Text and metadata are shown as plain text, never as HTML or Markdown. Valid PNG, JPEG, GIF, and WebP blocks are shown as images, and other structured content as plain text.
119
143
 
144
+ Above the transcript, a session page links to related sessions when it has any. **Parent session** links to the parent, or shows its ID marked as not available when the service does not have that session. **Child sessions** is a nested list of the sessions below this one. It shows up to 200 sessions and 8 levels, and a note appears when the list is incomplete. When the tree is incomplete, the note links to a paginated list of all direct children. Open a child session to explore its descendants. Each link opens that session's normal page, and transcripts are never combined.
145
+
120
146
  **Copy conversation** at the top works once the whole transcript has loaded. If loading fails, a retry button appears and copying stays off. The selector next to it chooses what to copy:
121
147
 
122
148
  - **Messages only** (the default) leaves out tool entries.
@@ -150,6 +176,18 @@ If `history` is set but no key is found, the host fails to start, instead of qui
150
176
 
151
177
  Restart the host after changing this block or its environment variables. `/reload` does not reload it.
152
178
 
179
+ ## Keep the service and hosts on one version
180
+
181
+ The service and every host that uses it must run the same Tau release, because they do not negotiate versions. A mismatch has these effects:
182
+
183
+ - A service older than the host ignores fields it does not know, including parent links. It stores those child sessions without a parent, so they appear as ordinary sessions, and upgrading the service later does not restore the links. The host also rejects the older service's search and read responses.
184
+ - A host older than the service rejects the service's search and read responses, so its remote searches and reads fail. Replication and local recording keep working.
185
+
186
+ To upgrade without losing parent links:
187
+
188
+ 1. Upgrade Tau on the machine you use for setup, then run `tau history setup` with the existing API key and viewer password. Setup deploys the Worker from the installed Tau release and applies new D1 migrations.
189
+ 2. Upgrade and restart each host. Until a host restarts on the new release, its remote searches and reads fail.
190
+
153
191
  ## Replication and outages
154
192
 
155
193
  Replication starts locally:
@@ -219,6 +257,8 @@ Cloudflare problems show up in the normal Worker logs, Cron Events, and D1 diagn
219
257
 
220
258
  **A session does not appear in remote search.** Confirm the host was restarted with the remote config, the session was used while the config was active, and enough history activity has happened to send the outbox. Check host logs for `history_replication_failed`. A permanent rejection affects only the named session, while other failures are retried. Summaries are not immediate.
221
259
 
260
+ **Remote search or read fails with an invalid response after an upgrade.** The host and the service are on different Tau releases. [Put them on the same release](#keep-the-service-and-hosts-on-one-version).
261
+
222
262
  **Local history is delayed or dropping changes.** Brief SQLite contention is retried automatically. For sustained failures, check the host's `history_recording` diagnostics, file access, free space, ownership of `~/.config/tau`, and whether another process holds a long database transaction. Fixing the underlying problem lets later writes proceed without restarting the host; dropped changes remain gaps. `tau history status` reports remote replication quarantines, not the live recording buffer. Do not edit, replace, or delete the SQLite files as a first repair, and do not inspect outbox rows or keys.
223
263
 
224
264
  **Search finds material removed from the model's context.** This is expected after compaction. After a rewind, the removed entries should disappear; if the remote copy still has them, wait for the deletion to replicate.
@@ -5,7 +5,7 @@
5
5
  ```bash
6
6
  tau tool image-generate --help
7
7
  tau tool image-generate \
8
- --model gpt-image-2.5-flare \
8
+ --model gpt-image-2.6-flare \
9
9
  --prompt 'A quiet lakeside sauna at dusk, editorial photograph, no text' \
10
10
  --size 1536x1024 --quality medium --output ./sauna.png
11
11
  ```
@@ -16,17 +16,17 @@ Requires an OpenAI or Google API key for the selected model. See [feature-specif
16
16
 
17
17
  ## Models and capabilities
18
18
 
19
- `--model` is required; there is no default. Start with `gpt-image-2.5-flare` at `--quality medium` for everyday generation and editing, balancing quality and cost.
19
+ `--model` is required; there is no default. Start with `gpt-image-2.6-flare` at `--quality medium` for everyday generation and editing, balancing quality and cost.
20
20
 
21
- For demanding generation and editing where image quality is the priority, choose `gemini-nano-banana-2.1` or `gpt-image-2.5-sunburst`. Nano Banana supports very wide aspect ratios and resolution tiers up to `4K`. Sunburst supports exact dimensions, transparent backgrounds, and PNG/JPEG/WebP output. See [approximate cost](#approximate-cost) before choosing settings.
21
+ For demanding generation and editing where image quality is the priority, choose `gemini-nano-banana-2.1` or `gpt-image-2.6-sunburst`. Nano Banana supports very wide aspect ratios and resolution tiers up to `4K`. Sunburst supports exact dimensions, transparent backgrounds, and PNG/JPEG/WebP output. See [approximate cost](#approximate-cost) before choosing settings.
22
22
 
23
23
  Choose size, resolution, and aspect ratio for the intended use; no single size fits everything. The sizes in the examples are for those particular cases. Options you leave out use the provider's defaults, except `--format`, which defaults to `png`. Unsupported options fail before anything is generated.
24
24
 
25
25
  | Model | Resolution | Aspect ratios | Thinking | Other controls |
26
26
  | --- | --- | --- | --- | --- |
27
27
  | `gemini-nano-banana-2.1` | `1K`, `2K`, `4K` | Standard and wide | `minimal`, `medium`, `high` | PNG |
28
- | `gpt-image-2.5-flare` | Exact `--size` | Through dimensions | Not exposed | Quality, background, encoding, compression |
29
- | `gpt-image-2.5-sunburst` | Exact `--size` | Through dimensions | Not exposed | Quality, background, encoding, compression |
28
+ | `gpt-image-2.6-flare` | Exact `--size` | Through dimensions | Not exposed | Quality, complexity, background, encoding, compression |
29
+ | `gpt-image-2.6-sunburst` | Exact `--size` | Through dimensions | Not exposed | Quality, complexity, background, encoding, compression |
30
30
 
31
31
  Google's defaults are `1K` resolution and `medium` thinking. Use `--thinking minimal` for faster generation and lower thinking-token usage.
32
32
 
@@ -35,7 +35,8 @@ Standard `--aspect-ratio` values are `1:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `
35
35
  OpenAI controls:
36
36
 
37
37
  - `--size auto` or `WIDTHxHEIGHT`: both dimensions must be multiples of 16, neither above 3840, aspect ratio between 1:3 and 3:1, and total pixels between 655,360 and 8,294,400. Above 2560×1440 total pixels is experimental at the provider.
38
- - `--quality auto|low|medium|high|xhigh|max`: generation effort. Flare favors speed; Sunburst favors demanding editing and quality.
38
+ - `--quality auto|low|medium|high|xhigh|max`: rendering quality. Flare favors speed; Sunburst favors demanding editing and quality.
39
+ - `--complexity low|medium|high`: planning effort, separate from rendering quality. Omit it to use the provider default, `high`. Start with `low` for focused edits; use `medium` or `high` for dense text, complex layouts, or many constraints. Higher complexity can increase latency and introduce unwanted changes.
39
40
  - `--background auto|opaque|transparent`: `transparent` requires PNG or WebP.
40
41
  - `--format png|jpeg|webp`: the output extension must match (`.jpg` or `.jpeg` for JPEG).
41
42
  - `--compression 0..100`: an integer, only with JPEG or WebP.
@@ -52,7 +53,7 @@ Create an asset:
52
53
 
53
54
  ```bash
54
55
  tau tool image-generate \
55
- --model gpt-image-2.5-flare \
56
+ --model gpt-image-2.6-flare \
56
57
  --prompt 'A friendly otter mascot, isolated, no lettering' \
57
58
  --size 1024x1024 --quality medium --background transparent \
58
59
  --output ./otter.png
@@ -62,9 +63,9 @@ Edit an existing image:
62
63
 
63
64
  ```bash
64
65
  tau tool image-generate \
65
- --model gpt-image-2.5-flare --reference ./otter.png \
66
+ --model gpt-image-2.6-flare --reference ./otter.png \
66
67
  --prompt 'Give the otter a blue scarf. Preserve its face, pose, proportions, and transparent background.' \
67
- --quality high --background transparent --output ./otter-scarf.png
68
+ --quality high --complexity low --background transparent --output ./otter-scarf.png
68
69
  ```
69
70
 
70
71
  Generate at a higher resolution using a reference:
@@ -80,7 +81,7 @@ Generate inexpensive draft variants:
80
81
 
81
82
  ```bash
82
83
  for i in 1 2 3 4; do
83
- tau tool image-generate --model gpt-image-2.5-flare \
84
+ tau tool image-generate --model gpt-image-2.6-flare \
84
85
  --size 1024x1024 --quality low \
85
86
  --prompt-file ./prompt.txt --output "./variant-$i.png" || break
86
87
  done
@@ -106,18 +107,24 @@ For OpenAI models, start at `--quality medium`, use `low` for inexpensive explor
106
107
 
107
108
  ### OpenAI: cost per image
108
109
 
109
- Both `gpt-image-2.5-flare` and `gpt-image-2.5-sunburst` charge $30 per million image-output tokens. The [OpenAI output-cost calculator](https://developers.openai.com/api/docs/guides/image-generation#gpt-image-25-and-gpt-image-2-output-tokens) groups both models under GPT Image 2.5 and gives these approximate USD image-output costs:
110
+ Both `gpt-image-2.6-flare` and `gpt-image-2.6-sunburst` charge $30 per million image-output tokens. Text input costs $5 per million tokens and reference images cost $8 per million image-input tokens.
110
111
 
111
- | Size | `low` | `medium` | `high` | `xhigh` | `max` |
112
- | ----------- | -------- | -------- | -------- | -------- | -------- |
113
- | `1024x1024` | $0.00588 | $0.01317 | $0.05268 | $0.09366 | $0.21072 |
114
- | `1536x1024` | $0.00474 | $0.01029 | $0.04116 | $0.07377 | $0.16464 |
115
- | `2048x2048` | $0.01191 | $0.02676 | $0.10704 | $0.19029 | $0.42816 |
116
- | `3840x2160` | $0.01113 | $0.02595 | $0.10008 | $0.17790 | $0.40026 |
112
+ OpenAI gives one estimate for both models. These are its approximate USD image-output costs per image, excluding input:
117
113
 
118
- These are calculator estimates, not fixed prices or a guarantee that Flare and Sunburst cost the same per request. OpenAI notes that actual token consumption can differ by model and quality. The calculator accounts for aspect ratio as well as pixel count, so estimates need not increase with pixel count alone. Sizes above 2560×1440 total pixels are experimental.
114
+ | Size | `low` | `medium` | `high` | `xhigh` | `max` |
115
+ | ----------- | ------ | -------- | ------ | ------- | ------ |
116
+ | `1024x1024` | $0.025 | $0.043 | $0.053 | $0.094 | $0.211 |
117
+ | `1536x1024` | $0.020 | $0.034 | $0.041 | $0.074 | $0.165 |
118
+ | `2048x2048` | $0.050 | $0.088 | $0.107 | $0.190 | $0.428 |
119
+ | `3840x2160` | $0.047 | $0.086 | $0.100 | $0.178 | $0.400 |
119
120
 
120
- For example, 100 square 1024-pixel drafts at `low` have an estimated output cost of $0.59, compared with $1.32 at `medium`, $5.27 at `high`, or $21.07 at `max`. Text input adds $5 per million tokens and reference images add $8 per million image-input tokens. A request with 1,000 text-input tokens and 2,000 image-input tokens adds $0.021 to the output cost. Direct Images API requests do not receive cached-input pricing. The manifest records provider `usage` for checking actual consumption.
121
+ Quality has the largest effect. At `1024x1024`, `high` costs about twice as much as `low`, and `max` costs about 8.5 times as much. For example, 100 images cost about $2.47 at `low`, $4.35 at `medium`, $5.27 at `high`, or $21.07 at `max`.
122
+
123
+ Cost does not follow pixel count alone. `1536x1024` costs less than `1024x1024` because the estimate also depends on aspect ratio, and `2048x2048` has four times the pixels of `1024x1024` but costs about twice as much.
124
+
125
+ Input adds to these costs. For example, 1,000 text-input tokens and 2,000 image-input tokens add $0.021.
126
+
127
+ Actual cost can differ from these estimates because OpenAI notes that the two models can use different token counts at the same quality. The estimates do not vary with `--complexity`. The manifest records provider `usage` for checking actual consumption. For other sizes, OpenAI's guide includes an [interactive calculator](https://developers.openai.com/api/docs/guides/image-generation#calculating-costs).
121
128
 
122
129
  ### Google: cost per image
123
130
 
@@ -129,6 +136,6 @@ Approximate USD image-output costs from [Google pricing](https://ai.google.dev/g
129
136
 
130
137
  Input costs $1.50 per million tokens. Text and thinking output cost $7.50 per million tokens, in addition to image output. The manifest records provider-reported usage.
131
138
 
132
- Use OpenAI when transparent backgrounds or JPEG/WebP output are required. Compare the quality needed for the task, not just matching tier names across providers. Check [OpenAI pricing](https://developers.openai.com/api/docs/guides/image-generation#gpt-image-25-costs) and Google pricing for current rates before large batches.
139
+ Use OpenAI when transparent backgrounds or JPEG/WebP output are required. Compare the quality needed for the task, not just matching tier names across providers. Check [OpenAI pricing](https://developers.openai.com/api/docs/guides/image-generation#gpt-image-26-costs) and Google pricing for current rates before large batches.
133
140
 
134
141
  See [command-line tools](tools.md) for the other tools and where commands run.
@@ -12,7 +12,7 @@ The bundled catalog comes from Tau's model library, `pi-ai`. It lists known prov
12
12
 
13
13
  ## Remote catalog
14
14
 
15
- A Tau host that runs models loads cached catalogs from `~/.config/tau/models-store.json` at startup. If the cache is older than four hours, it checks `pi.dev` in the background. This check happens only at startup; there is no recurring refresh. Set `TAU_OFFLINE` to skip it.
15
+ A Tau host that runs models loads cached catalogs from `~/.config/tau/models-store.json` at startup. If the cache is older than four hours, it checks `pi.dev` in the background. This check happens only at startup; there is no recurring refresh. Set `TAU_OFFLINE` to skip it, or `refreshModelCatalog: false` to skip it for one [Node SDK](node-sdk.md) client. Skipping the check does not remove an existing cache or block an explicit `tau models refresh`.
16
16
 
17
17
  Tau requests the catalog separately for each provider that its `pi-ai` version supports. Each request has a 15-second timeout. A successful provider is cached even when another fails. A failed provider keeps its previous cached data, or the bundled data if there is none. Run `tau models refresh` on the host to refresh immediately, regardless of cache age. It keeps every successful update and exits nonzero if any provider failed.
18
18
 
@@ -50,13 +50,13 @@ type TauSdkClientOptions = {
50
50
  };
51
51
  ```
52
52
 
53
- `persona`, `reasoning`, and `noAgentContextFiles` apply to sessions created by this host. `connectTimeoutMs` defaults to 5,000 ms. Default initialization metadata is `{ client: { name: "tau-sdk", version: "1" } }`.
53
+ `persona`, `reasoning`, and `noAgentContextFiles` apply to sessions created by this host. `persona` (an ID, optionally with `:<reasoning>`) must exist in the new session's directory, or creation fails. Recovered sessions keep their saved settings. `connectTimeoutMs` defaults to 5,000 ms. Default initialization metadata is `{ client: { name: "tau-sdk", version: "1" } }`.
54
54
 
55
- The in-process host never writes background diagnostics to stdout or stderr. Set `onDiagnostic` to receive them as structured objects and route them to your application's logging. `history_recording` reports delayed, dropped, or recovered local recording, with a session ID and pending operation and byte counts. `history_replication_failed` reports remote delivery failures. Neither stops agent work; see [history](history.md) for retry behavior and durability limits.
55
+ The in-process host never writes background diagnostics to stdout or stderr. `onDiagnostic` receives them as structured objects. `history_recording` reports delayed, dropped, or recovered local recording, with a session ID and pending operation and byte counts. `history_replication_failed` reports remote delivery failures. Neither stops agent work; see [history](history.md) for retries and durability limits. `session_config_warnings` reports `cwd` and `warnings` when the host loads a session with invalid configuration or content. The session still starts, and an error thrown by `onDiagnostic` does not block it.
56
56
 
57
- By default, creating an in-process client starts one background check of the model catalog against `pi.dev`. The host loads `~/.config/tau/models-store.json` first, never refreshes on a timer, and keeps each session on the catalog it started with until `session.reload()`. Set `refreshModelCatalog: false` to skip this client's check, or set `TAU_OFFLINE` to skip automatic checks for the whole process. Neither removes an existing cache or blocks an explicit `tau models refresh`. See [models](models.md) for details and [security](security.md) for why the catalog is trusted.
57
+ By default, an in-process client starts one background model catalog check against `pi.dev`. Each session keeps the catalog it started with until `session.reload()`. Set `refreshModelCatalog: false` to skip this client's check, or `TAU_OFFLINE` to skip automatic checks for the whole process. See [models](models.md) and [security](security.md).
58
58
 
59
- Closing this client saves live sessions and shuts down its host. It also cancels its catalog refresh and waits for it. A refresh shared with another in-process client continues until the last of them closes.
59
+ Closing this client saves live sessions, shuts down its host, and cancels and waits for its catalog refresh. A refresh shared with another in-process client continues until the last of them closes.
60
60
 
61
61
  ### Connect to `tau serve`
62
62
 
@@ -147,8 +147,6 @@ try {
147
147
  }
148
148
  ```
149
149
 
150
- `client.sessions.create(input)` sends `session.create`. `client.sessions.list()` returns `{ sessionId, lifecycle }` for each session.
151
-
152
150
  Creating a session requires the full execution environment and the creation attributes, which never change afterward. Tau sets the `machine` and `cwd` attributes itself and replaces any values you send for them. The `cwd` of the execution environment must be absolute and is a path in the chosen environment, which may not be where the SDK runs. A Fly Sprite session refers to an existing Sprite that the host is configured to reach. See [sessions](sessions.md) for creation attributes and [ownership and scope](ownership-and-scope.md) for which machine owns which paths.
153
151
 
154
152
  To set the main conversation's automatic-compaction threshold at creation, pass `autoCompactThresholdTokens` as a safe integer of at least 50,000. Omit it or pass `null` to use the persona default, falling back to the model's context window minus 16,384 tokens. Applying a persona resets the threshold to `null`, even when reapplying the same persona, unless the call supplies a new threshold. The effective threshold cannot exceed this model-based limit.
@@ -163,7 +161,9 @@ The connected `TauSdkClient` exposes:
163
161
  | --- | --- |
164
162
  | `ready` | The validated server `ready` message and advertised methods. |
165
163
  | `sessions.create(input)` | Create and observe a session, and return its object. |
166
- | `sessions.list()` | List hosted session summaries. |
164
+ | `sessions.list()` | List each session's `{ sessionId, lifecycle }`. |
165
+ | `sessions.setRetention(id, durationMs)` | [Keep a session loaded without clients](session-protocol.md#keep-a-session-loaded-without-clients), or clear with `null`. |
166
+ | `sessions.collect(id)` | Unload a session if nothing holds it, and return `{ disposed }`. |
167
167
  | `sessions.observe(sessionId)` | Observe an existing session and return its object. |
168
168
  | `subscribe(listener)` | Receive deltas for every observed session on this connection. |
169
169
  | `subscribePendingUserMessages(listener)` | Receive pending-state replacements across observed sessions. |
@@ -201,7 +201,7 @@ Each subscription returns an unsubscribe function.
201
201
  | `createEphemeralContext(options)` | Create an agent context on the host that is not saved. |
202
202
  | `submitEphemeralThread(options)` | Run or continue one ephemeral thread. |
203
203
  | `closeEphemeralContext(contextId)` | Close an ephemeral context and its threads. |
204
- | `unobserve()` | Stop observing; this object can no longer be used. |
204
+ | `unobserve()` | Stop observing. |
205
205
 
206
206
  `submit`, `queue`, and `record` accept `{ historyEntryId?: string }`; without it, Tau generates the ID. Use `getTauSdkSessionTurnRecord(snapshot, id)` to tell whether an accepted turn is unknown, running, or finished, or `getTauSdkSessionTurnOutcome(snapshot, id)` when you only need the final outcome.
207
207
 
@@ -393,9 +393,9 @@ The SDK also exports `executeTauCodeMode` for standalone runs. The separate `@ma
393
393
 
394
394
  Most turn and session-changing methods do not accept an `AbortSignal`. Call `session.interrupt()` to stop running work on the host. `session.exec()` is the exception: its optional signal cancels only that command.
395
395
 
396
- `client.close()` ends the connection: it rejects open requests, aborts client tool handlers, waits for them to finish, and closes the transport. For the default in-process client, it also saves sessions and shuts down the host. Over WebSocket, the remote host and its sessions keep running.
396
+ `client.close()` ends the connection: it rejects open requests, aborts client tool handlers, waits for them to finish, and closes the transport. For the default in-process client, it also saves sessions and shuts down the host.
397
397
 
398
- Always close clients in `finally`. Never use a session object after `unobserve()`, or a client after `close()`.
398
+ Always close clients in `finally`. Never use a client after `close()`.
399
399
 
400
400
  ## Handle errors
401
401
 
@@ -16,7 +16,7 @@ The **host** creates, observes, persists, and recovers sessions. It owns model c
16
16
 
17
17
  Session snapshots, authentication storage, usage logs, and the local history database live in the host user's home. Manage them with Tau commands and session operations. Do not edit their files directly.
18
18
 
19
- MCP connections belong to the host. Configure servers on the host. Stdio servers run there, with the host's credentials and access to the host's resources. They do not run in the session's execution environment.
19
+ MCP connections belong to the hosted session and end when the host unloads it. Stdio servers run on the host, with the host's credentials and access to the host's resources. They do not run in the session's execution environment. A session on a local execution environment reads its server definitions from the global and project configuration of its working directory. A session on a remote execution environment has no MCP servers.
20
20
 
21
21
  The built-in `tau_docs` tool also belongs to the host. It reads the documentation installed with the host's Tau version.
22
22
 
@@ -54,6 +54,7 @@ A Fly Sprite puts the execution environment on another machine while the host st
54
54
  | Agent `cwd`, home, repository, files, and commands | Execution environment | Use target paths in prompts, `session.create`, and agent tool calls. |
55
55
  | `.tau/config.json`, personas, prompts, skills, and `AGENTS.md` used by a session | Execution environment | Edit them on the target and relative to the session `cwd`. |
56
56
  | Global runtime content for a session | Execution-environment home | `~/.config/tau` is the target user's home when runtime content is collected. |
57
+ | MCP servers | Host, for local sessions | Define them in the session's project or global configuration. They run on the host with host credentials. Sessions on a remote execution environment have none. See [security](security.md#trust-mcp-servers). |
57
58
  | Model and host-tool credentials | Host | Set environment secrets where the host process runs. API keys come from the host environment or private global host configuration. |
58
59
  | Codex OAuth accounts | Host home | Run `tau auth …` on the host machine. Do not edit auth storage. |
59
60
  | Session snapshots | Host home | Local defaults live under the host's Tau config directory. Do not edit session files. |
@@ -62,17 +63,18 @@ A Fly Sprite puts the execution environment on another machine while the host st
62
63
  | `/diff` process | TUI client | Tau’s built-in browser tool runs on the client machine. Repository capture still runs through the session execution environment. |
63
64
  | Configured command client tools | Owning client | Commands and their environment are on the client. File access they make on behalf of the session goes to the execution environment. |
64
65
  | `/listen` and `/speak` capture or playback | TUI client | Required programs, devices, and media credentials belong on the client machine. |
66
+ | Speech vocabulary | Session, plus client global terms | Project terms come from the session's working directory. The transcribing client adds terms from its own global configuration. |
65
67
  | Host execution-environment targets | Host startup | Fly Sprite connection settings must be in the host's configuration before it accepts sessions that use them. |
66
- | Telegram bot token, routing, workspaces, and generated runner state | Telegram runner | Manage these through the Telegram config and runner commands, not project `config.json`. |
68
+ | Telegram bot token, bot environment, routing, workspaces, and generated runner state | Telegram runner | Manage these through the Telegram config and runner commands, not project `config.json`. |
67
69
 
68
70
  ## Decide where to edit configuration
69
71
 
70
72
  Start from the behavior that consumes the setting:
71
73
 
72
- 1. If it changes what the agent sees or can do in the project, edit configuration or content in the execution environment's discovery path.
73
- 2. If it changes the TUI's theme, speech, or command client tools, edit the TUI client's configuration and restart that client.
74
+ 1. If it changes what the agent sees or can do in the project, or the project's speech vocabulary, edit configuration or content in the execution environment's discovery path.
75
+ 2. If it changes the TUI's theme, voice, recording shortcut, personal speech vocabulary, or command client tools, edit the TUI client's configuration and restart that client.
74
76
  3. If it changes credentials, session storage, remote history, or hosted execution environment connections, set it for the host process and restart the host when required.
75
- 4. If it changes Telegram routing, bot startup settings, presets, or workspace preparation, edit the runner's `--config-file` on the runner machine.
77
+ 4. If it changes Telegram routing, bot startup settings, bot environments, presets, or workspace preparation, edit the runner's `--config-file` on the runner machine.
76
78
 
77
79
  For a local `tau` session these locations are often the same home and repository. Following the ownership rule anyway means the configuration still works when the session becomes remote.
78
80
 
@@ -115,7 +115,7 @@ The selectable tool names are:
115
115
 
116
116
  Names such as `web`, `history`, `mcp`, and `models` enable capabilities inside the `code` tool, and `bash` also enables `tau.bash`. `agents` enables `tau.agents` inside `code` and the `wait_for_agents` tool. Tau builds the `code` tool from whichever of these capabilities are selected and usable.
117
117
 
118
- A `tools` list replaces the defaults. Names are lowercased and duplicates removed. An unknown name makes the persona invalid. `tools: []` gives the persona none of these tools. The built-in `tau_docs` tool is always available, independent of this list. `mcp` works only when the host has enabled MCP servers. [Tools](tools.md) explains eligibility and ownership.
118
+ A `tools` list replaces the defaults. Names are lowercased and duplicates removed. An unknown name makes the persona invalid. `tools: []` gives the persona none of these tools. The built-in `tau_docs` tool is always available, independent of this list. `mcp` works only when the session has enabled MCP servers, which a session on a remote execution environment never has. [Tools](tools.md) explains eligibility and ownership.
119
119
 
120
120
  ## Selecting a persona
121
121
 
@@ -161,7 +161,7 @@ After editing personas, skills, or project context, run `/reload` while the sess
161
161
 
162
162
  If the current persona ID still exists, Tau applies its newly loaded definition and keeps the session's current settings, including reasoning and service tier. Selecting the persona again applies its declared defaults. If the ID is gone, Tau selects the first available persona. Existing messages stay as they are; a persona change never rewrites earlier history.
163
163
 
164
- The TUI refuses to reload while a turn is running. Subagents that are already running keep the setup they started with. Subagents started after the reload use the reloaded persona. See [subagents](subagents.md).
164
+ The TUI refuses to reload while a turn is running. Existing subagents keep the setup they started with, and children they launch later inherit that setup. Subagents that the main agent starts after the reload use the reloaded persona. See [subagents](subagents.md).
165
165
 
166
166
  ## Validation and common mistakes
167
167
 
@@ -111,13 +111,13 @@ The option works for local TUI sessions and for hosts started with `tau serve`.
111
111
 
112
112
  ## Alternate subagent working directories
113
113
 
114
- A subagent normally uses the parent session's working directory and context. When `tau.agents.spawn` sets a different `workingDirectory`, Tau rebuilds the parts of the context that depend on the directory:
114
+ A subagent normally uses its parent's working directory and context. When `tau.agents.spawn` sets a different `workingDirectory`, Tau rebuilds the parts of the context that depend on the directory:
115
115
 
116
116
  - environment and repository details
117
117
  - the applicable `AGENTS.md` files
118
118
  - the skills found from that directory
119
119
 
120
- The persona, model catalog, model settings, and tool policy still come from the parent session. A persona file in the other directory is not used. See [subagents](subagents.md) for details.
120
+ The persona, model catalog, model settings, and tool policy still come from the parent. A persona file in the other directory is not used. See [subagents](subagents.md) for details.
121
121
 
122
122
  ## Leading hidden system blocks
123
123
 
@@ -158,9 +158,10 @@ Each kind of change belongs to a different process:
158
158
  | Change | Action |
159
159
  | --- | --- |
160
160
  | Project config, personas, prompts, skills, or AGENTS.md in the execution environment | Wait for idle, then run `/reload`. |
161
+ | MCP server definitions | Start a new session, or reopen the session after the host has unloaded it. See [`mcpServers`](config-reference.md#mcpservers). |
161
162
  | Global model `apiKeys` on the host | Restart the host. |
162
163
  | Codex auth changed with `tau auth` | No restart needed; every new request reads auth storage again. |
163
- | Attaching themes, speech config, or configured client tools | Restart `tau attach`. |
164
+ | Attaching themes, voice, recording shortcut, personal speech vocabulary, or configured client tools | Restart `tau attach`. |
164
165
  | Host environment variables, history target, WebSocket listener, Fly Sprite connection, or host startup flags | Restart `tau serve`. |
165
166
  | Host Tau package, built-in tools, protocol, session recovery code, or built-in documentation | Upgrade and restart the host. |
166
167
  | TUI package, keybindings, rendering, local speech, or client-tool implementation | Upgrade and restart the attaching client. |
@@ -169,7 +170,7 @@ Each kind of change belongs to a different process:
169
170
 
170
171
  ## Reconnect and observe safely
171
172
 
172
- A WebSocket connection observes a hosted session. It does not own the saved session and cannot delete it. After the last client disconnects, the host unloads an idle session from memory and keeps it saved. If a client disconnects while work is running, the host keeps working and unloads the session only after the work finishes. Reattach with the same session ID to get the current state and continue receiving updates.
173
+ A WebSocket connection observes a hosted session. It does not own the saved session and cannot delete it. After the last client disconnects, the host unloads an idle session from memory and keeps it saved. If a client disconnects while work is running, the host keeps working and unloads the session only after the work finishes. Protocol and SDK clients can also keep an unattached session and its idle subagents loaded for a limited time with [retention](session-protocol.md#keep-a-session-loaded-without-clients). Reattach with the same session ID to get the current state and continue receiving updates.
173
174
 
174
175
  A clean `tau serve` shutdown interrupts running work, saves live sessions, and closes clients. After a restart, the host lists the sessions whose execution environments it can reconnect. Recovered sessions come back idle, without queued or steering messages, and without subagents.
175
176
 
@@ -34,7 +34,7 @@ Trusting a repository therefore means trusting this content. Before using a repo
34
34
  - `enabledClientTools`, which can turn on commands from your global configuration; and
35
35
  - provision scripts or other repository automation used by integrations such as Telegram.
36
36
 
37
- Project configuration cannot define client tool commands. It can only select commands defined in global configuration. A repository therefore cannot add a new process to your machine, but a selected command can still do anything it was written to do.
37
+ Project configuration cannot define client tool commands. It can only select commands defined in global configuration. A repository therefore cannot add a new client tool command to your machine, but a selected command can still do anything it was written to do. MCP servers follow different rules: [project configuration can define them](#trust-mcp-servers).
38
38
 
39
39
  `--no-agent-context-files` turns off `AGENTS.md` loading and the list of nested `AGENTS.md` files. Project configuration, personas, skills, and tools still load. `--no-client-tools` turns off TUI client tools, not host tools. Neither flag is a general safe mode.
40
40
 
@@ -114,7 +114,11 @@ The `history` API is read-only, but it can see transcripts from every repository
114
114
 
115
115
  ## Trust MCP servers
116
116
 
117
- MCP servers come from the global and project configuration of the directory where the host was launched. Launching a host inside a repository lets that repository's configuration start commands on the host and use host credentials, with no approval step. MCP is available to every session on that host whose persona allows `mcp`, and to their subagents. It is not separated per repository or client. Configuration in a session's execution environment cannot add servers.
117
+ A session on a local execution environment uses the MCP servers from the global and project configuration of its working directory, if its persona allows `mcp`. Its subagents use the same servers. Opening a session in a repository therefore lets that repository's `.tau/config.json` start commands on the host and use host credentials, with no approval step. This also applies to repositories that Telegram prepares and to directories that a WebSocket client chooses. Review a project's configuration before you open a session in it.
118
+
119
+ Anyone who can write a project's configuration can use this authority, including the agent. If the agent adds a server to `.tau/config.json`, that server becomes available the next time a session loads that configuration, for example after recovery. Tau removes secret-like variables from [Bash commands](#understand-environment-sanitization), but a stdio server inherits the full host environment. Definitions can also put any host environment variable into `env` or `headers` with `${NAME}`, and send it to the configured command or URL.
120
+
121
+ A session on a remote execution environment has no MCP servers, including servers configured on the host. Servers run on the host, so they could expose the host's files to a session that should see only its own machine, and neither the transport type nor a server's description shows whether they do. Configuration on the remote machine therefore cannot start commands on the host. The cost is that remote sessions also lose servers that only call an external service. This rule does not cover everything outside the remote machine: [Claude Code subagents](subagents.md#claude-code-subagents) use their own MCP configuration on that machine, and an attached client can still offer [command tools](client-tools.md) that run on the client's machine.
118
122
 
119
123
  A stdio MCP server is trusted code on the host. It runs outside the code-mode sandbox with the host account's file and process permissions and its full environment, including credentials. Review the executable and arguments before configuring a server. HTTP servers receive the configured headers and the arguments sent to their tools. Use HTTPS for remote servers and give them only the access they need.
120
124
 
@@ -122,7 +126,7 @@ MCP has no confirmation step. Tools can change external systems or host resource
122
126
 
123
127
  How a stdio server shuts down depends on the MCP transport. Child processes that ignore `SIGTERM` can outlive the server, so do not rely on shutdown to stop untrusted server processes.
124
128
 
125
- The execution environment does not contain an MCP server that runs on the host. A server that exposes host files or commands gives the agent access to the host, even when Bash runs in a remote sandbox. If that access is not acceptable, remove `mcp` from the persona or disable the server. Connections and credentials stay outside the model's JavaScript, but the server decides what its tools return.
129
+ A server that exposes host files or commands gives the agent that access. If that access is not acceptable, remove `mcp` from the persona or disable the server. Connections and credentials stay outside the model's JavaScript, but the server decides what its tools return.
126
130
 
127
131
  ## Protect remote session transports
128
132
 
@@ -148,12 +152,16 @@ Each bot's `allowedProjectIds` should list only the intended projects. Telegram
148
152
 
149
153
  Repository and composite projects use managed workspaces and persistent bare repository caches. New or reconstructed repositories may run an executable `.tau/scripts/provision` in the background. Review that script like any other trusted project automation. Persistent-directory projects are never provisioned and never deleted by Tau.
150
154
 
155
+ A bot's `env` can select its own GitHub account and commit identity, but it does not isolate bots from each other. All bots run as the same operating-system user and share repository caches, so a command in one bot's session can read any credential store that user can read. Run separate runners under separate OS accounts when bots must be isolated. Tau saves `env` in each session, so it should hold paths to credential stores and no secrets. See [bot environments](telegram-projects.md#bot-environments).
156
+
151
157
  Protect the runner configuration, session state, project-preference state, managed workspace root, and temporary attachment storage with a suitable OS account and file permissions. Never run two Telegram runners on the same state. Operational details are in [Telegram](telegram.md) and [Telegram projects and workspaces](telegram-projects.md).
152
158
 
153
159
  ## Know what history retains
154
160
 
155
161
  Tau keeps a flat transcript history in the host user's home, separate from saved sessions. It contains user messages, intermediate system instructions, assistant text, and completed tool calls. The initial persona prompt is not included. Compaction does not remove entries. Rewind removes entries after the rewind point. Apart from that, entries stay; history is not a temporary cache.
156
162
 
163
+ History also records each native Tau subagent as its own session, whether or not any agent has the `history` tool. Rewinding the parent session does not remove these sessions, so a rewind can leave subagent transcripts in history that came from the removed work.
164
+
157
165
  Without remote history, it stays in a SQLite database on the host. The `tau.history` capability can search all of it, within the persona's tools and the agent's usage rules. Protect the host account and database as you would the transcripts themselves.
158
166
 
159
167
  With global `history` configuration, entries are still written to local SQLite first, and a persistent outbox copies them to the configured service in the background. Remote entries are limited in size, with large content truncated in the middle, but they can still contain source code, tool output, instructions, and personal data. The service also summarizes transcript content with its configured Cloudflare AI service.