@markusylisiurunen/tau 0.3.100 → 0.3.101

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) 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/history/agent_history_recorder.js.map +1 -1
  4. package/dist/core/runtime/chat_runtime.js +5 -5
  5. package/dist/core/runtime/chat_runtime.js.map +1 -1
  6. package/dist/core/runtime/session_prompt_composer.js +2 -6
  7. package/dist/core/runtime/session_prompt_composer.js.map +1 -1
  8. package/dist/core/static/code_mode/history/documentation.md +1 -1
  9. package/dist/core/static/index.js +22 -11
  10. package/dist/core/static/index.js.map +1 -1
  11. package/dist/core/static/prompts/subagent-prefix.md +13 -5
  12. package/dist/core/static/tau_docs/code-mode.md +1 -1
  13. package/dist/core/static/tau_docs/config-reference.md +2 -2
  14. package/dist/core/static/tau_docs/history.md +3 -3
  15. package/dist/core/static/tau_docs/image-generation.md +27 -20
  16. package/dist/core/static/tau_docs/node-sdk.md +6 -6
  17. package/dist/core/static/tau_docs/personas.md +1 -1
  18. package/dist/core/static/tau_docs/prompts-and-project-context.md +2 -2
  19. package/dist/core/static/tau_docs/remote-sessions.md +1 -1
  20. package/dist/core/static/tau_docs/session-protocol-methods.md +49 -1
  21. package/dist/core/static/tau_docs/session-protocol.md +21 -2
  22. package/dist/core/static/tau_docs/sessions.md +3 -1
  23. package/dist/core/static/tau_docs/subagents.md +65 -48
  24. package/dist/core/static/tau_docs/tools.md +1 -1
  25. package/dist/core/static/tau_docs/troubleshooting.md +3 -3
  26. package/dist/core/static/tau_docs/tui.md +5 -7
  27. package/dist/core/subagents/agent_supervisor.js +192 -15
  28. package/dist/core/subagents/agent_supervisor.js.map +1 -1
  29. package/dist/core/subagents/claude_code_runner.mjs +56 -55
  30. package/dist/core/subagents/native_subagent_runtime.js +37 -13
  31. package/dist/core/subagents/native_subagent_runtime.js.map +1 -1
  32. package/dist/core/subagents/prompt.js.map +1 -1
  33. package/dist/core/subagents/registry.js +1 -0
  34. package/dist/core/subagents/registry.js.map +1 -1
  35. package/dist/core/subagents/runtime.js.map +1 -1
  36. package/dist/core/subagents/types.js +2 -1
  37. package/dist/core/subagents/types.js.map +1 -1
  38. package/dist/core/tool/cli.js +1 -1
  39. package/dist/core/tool/image_generate.js +6 -2
  40. package/dist/core/tool/image_generate.js.map +1 -1
  41. package/dist/core/tools/catalog.js +24 -14
  42. package/dist/core/tools/catalog.js.map +1 -1
  43. package/dist/core/tools/wait_for_agents.js.map +1 -1
  44. package/dist/core/version.js +1 -1
  45. package/dist/diff_tool/app/dist/assets/andromeeda-DW8vo71h.js +1 -0
  46. package/dist/diff_tool/app/dist/assets/aurora-x-rMvKqtYI.js +1 -0
  47. package/dist/diff_tool/app/dist/assets/ayu-dark-CwczpL8O.js +1 -0
  48. package/dist/diff_tool/app/dist/assets/ayu-light-DSh22xiD.js +1 -0
  49. package/dist/diff_tool/app/dist/assets/ayu-mirage-JE6hAyHG.js +1 -0
  50. package/dist/diff_tool/app/dist/assets/catppuccin-frappe-pyXErRRU.js +1 -0
  51. package/dist/diff_tool/app/dist/assets/catppuccin-latte-BILSUICr.js +1 -0
  52. package/dist/diff_tool/app/dist/assets/catppuccin-macchiato-Ck60ZZQE.js +1 -0
  53. package/dist/diff_tool/app/dist/assets/catppuccin-mocha-C_2G67cS.js +1 -0
  54. package/dist/diff_tool/app/dist/assets/{core-3PFMkRLP.js → core-CXVpaOO1.js} +1 -1
  55. package/dist/diff_tool/app/dist/assets/dark-plus-CHgc6GYj.js +1 -0
  56. package/dist/diff_tool/app/dist/assets/dracula-Cf1PG3MT.js +1 -0
  57. package/dist/diff_tool/app/dist/assets/dracula-soft-DXuNm1Kq.js +1 -0
  58. package/dist/diff_tool/app/dist/assets/engine-oniguruma-Rz_7DPcV.js +1 -0
  59. package/dist/diff_tool/app/dist/assets/everforest-dark-CjdfwUBe.js +1 -0
  60. package/dist/diff_tool/app/dist/assets/everforest-light-CfVwwCBP.js +1 -0
  61. package/dist/diff_tool/app/dist/assets/github-dark-BL6HSl_n.js +1 -0
  62. package/dist/diff_tool/app/dist/assets/github-dark-default-zacuWV-M.js +1 -0
  63. package/dist/diff_tool/app/dist/assets/github-dark-dimmed-Mc0P9idi.js +1 -0
  64. package/dist/diff_tool/app/dist/assets/github-dark-high-contrast-IMKX2AVF.js +1 -0
  65. package/dist/diff_tool/app/dist/assets/github-light-default-DVlCqP3X.js +1 -0
  66. package/dist/diff_tool/app/dist/assets/github-light-high-contrast-Dj6zTyWR.js +1 -0
  67. package/dist/diff_tool/app/dist/assets/github-light-mYhEBkPo.js +1 -0
  68. package/dist/diff_tool/app/dist/assets/gruvbox-dark-hard-QTgQQZn-.js +1 -0
  69. package/dist/diff_tool/app/dist/assets/gruvbox-dark-medium-9d5YdCTx.js +1 -0
  70. package/dist/diff_tool/app/dist/assets/gruvbox-dark-soft-XCkqeBhR.js +1 -0
  71. package/dist/diff_tool/app/dist/assets/gruvbox-light-hard--5-nXqNp.js +1 -0
  72. package/dist/diff_tool/app/dist/assets/gruvbox-light-medium-COA1PZW2.js +1 -0
  73. package/dist/diff_tool/app/dist/assets/gruvbox-light-soft-CIJpzjAO.js +1 -0
  74. package/dist/diff_tool/app/dist/assets/highlights-DuJNYjEh.js +7 -0
  75. package/dist/diff_tool/app/dist/assets/horizon-Ba2cwkSy.js +1 -0
  76. package/dist/diff_tool/app/dist/assets/horizon-bright-DaEDgBmR.js +1 -0
  77. package/dist/diff_tool/app/dist/assets/houston-B6x0XVpU.js +1 -0
  78. package/dist/diff_tool/app/dist/assets/{index-DhaXI7F3.js → index-F9is7PUw.js} +16 -16
  79. package/dist/diff_tool/app/dist/assets/kanagawa-dragon-DhTFvBMT.js +1 -0
  80. package/dist/diff_tool/app/dist/assets/kanagawa-lotus--m8sdOxn.js +1 -0
  81. package/dist/diff_tool/app/dist/assets/kanagawa-wave-D-tTv4k2.js +1 -0
  82. package/dist/diff_tool/app/dist/assets/langs-CTftvgbb.js +1 -0
  83. package/dist/diff_tool/app/dist/assets/laserwave-HSLx0L75.js +1 -0
  84. package/dist/diff_tool/app/dist/assets/light-plus-CUjWrTSi.js +1 -0
  85. package/dist/diff_tool/app/dist/assets/loader-bi21_x0K.js +1 -0
  86. package/dist/diff_tool/app/dist/assets/material-theme-CnthUGfg.js +1 -0
  87. package/dist/diff_tool/app/dist/assets/material-theme-darker-DUi03Qre.js +1 -0
  88. package/dist/diff_tool/app/dist/assets/material-theme-lighter-D2-qr5Vw.js +1 -0
  89. package/dist/diff_tool/app/dist/assets/material-theme-ocean-CWR-LogA.js +1 -0
  90. package/dist/diff_tool/app/dist/assets/material-theme-palenight-Cnv8m1ra.js +1 -0
  91. package/dist/diff_tool/app/dist/assets/min-dark-EXoM-6Xo.js +1 -0
  92. package/dist/diff_tool/app/dist/assets/min-light-DVOTDhnA.js +1 -0
  93. package/dist/diff_tool/app/dist/assets/monokai-DkggTbGy.js +1 -0
  94. package/dist/diff_tool/app/dist/assets/night-owl-Bdcs0PMi.js +1 -0
  95. package/dist/diff_tool/app/dist/assets/night-owl-light-RoU30LE0.js +1 -0
  96. package/dist/diff_tool/app/dist/assets/nord-u7hMircQ.js +1 -0
  97. package/dist/diff_tool/app/dist/assets/one-dark-pro-08PdtLzi.js +1 -0
  98. package/dist/diff_tool/app/dist/assets/one-light-DgvUEtgI.js +1 -0
  99. package/dist/diff_tool/app/dist/assets/pierre-dark-B2jZWvHG.js +1 -0
  100. package/dist/diff_tool/app/dist/assets/pierre-dark-protanopia-deuteranopia-CebgQdRf.js +1 -0
  101. package/dist/diff_tool/app/dist/assets/pierre-dark-soft-DdE7dyP3.js +1 -0
  102. package/dist/diff_tool/app/dist/assets/pierre-dark-tritanopia-CXimiT7X.js +1 -0
  103. package/dist/diff_tool/app/dist/assets/pierre-dark-vibrant-DzBsxHvQ.js +1 -0
  104. package/dist/diff_tool/app/dist/assets/pierre-light-Vf__O3ev.js +1 -0
  105. package/dist/diff_tool/app/dist/assets/pierre-light-protanopia-deuteranopia-BUtWcCQC.js +1 -0
  106. package/dist/diff_tool/app/dist/assets/pierre-light-soft-C3QCXKvN.js +1 -0
  107. package/dist/diff_tool/app/dist/assets/pierre-light-tritanopia-CKLy6XvA.js +1 -0
  108. package/dist/diff_tool/app/dist/assets/pierre-light-vibrant-DDuTEIhH.js +1 -0
  109. package/dist/diff_tool/app/dist/assets/plastic-B8mE6BxX.js +1 -0
  110. package/dist/diff_tool/app/dist/assets/poimandres-DUFjrgxT.js +1 -0
  111. package/dist/diff_tool/app/dist/assets/red-BJvdDEUx.js +1 -0
  112. package/dist/diff_tool/app/dist/assets/rose-pine-BSqRqUae.js +1 -0
  113. package/dist/diff_tool/app/dist/assets/rose-pine-dawn-U6TBE82u.js +1 -0
  114. package/dist/diff_tool/app/dist/assets/rose-pine-moon-CAU7u1h4.js +1 -0
  115. package/dist/diff_tool/app/dist/assets/{shiki-BArE1NVK.js → shiki-D6ZyrNQD.js} +2 -2
  116. package/dist/diff_tool/app/dist/assets/slack-dark-CMu0smFa.js +1 -0
  117. package/dist/diff_tool/app/dist/assets/slack-ochin-BBne7cjw.js +1 -0
  118. package/dist/diff_tool/app/dist/assets/snazzy-light-CV8HUEmk.js +1 -0
  119. package/dist/diff_tool/app/dist/assets/solarized-dark-CmYmhSgI.js +1 -0
  120. package/dist/diff_tool/app/dist/assets/solarized-light-CjLLwxRp.js +1 -0
  121. package/dist/diff_tool/app/dist/assets/{stream-tokenizer-DFTZfQ1S.js → stream-tokenizer-BdsyU_yB.js} +1 -1
  122. package/dist/diff_tool/app/dist/assets/synthwave-84-wQeDKbzQ.js +1 -0
  123. package/dist/diff_tool/app/dist/assets/{themes-Dzo-2cM5.js → themes-9lpTYI_i.js} +2 -2
  124. package/dist/diff_tool/app/dist/assets/tokyo-night-D4ZgDiA7.js +1 -0
  125. package/dist/diff_tool/app/dist/assets/vesper-sUHevyKv.js +1 -0
  126. package/dist/diff_tool/app/dist/assets/vitesse-black-CfklMpOb.js +1 -0
  127. package/dist/diff_tool/app/dist/assets/vitesse-dark-CJkzwmKT.js +1 -0
  128. package/dist/diff_tool/app/dist/assets/vitesse-light-BxMp8E1Y.js +1 -0
  129. package/dist/diff_tool/app/dist/index.html +1 -1
  130. package/dist/host/local_session_host.js +233 -125
  131. package/dist/host/local_session_host.js.map +1 -1
  132. package/dist/host/session_host.js +2 -0
  133. package/dist/host/session_host.js.map +1 -1
  134. package/dist/host/session_protocol_handler.js +11 -1
  135. package/dist/host/session_protocol_handler.js.map +1 -1
  136. package/dist/protocol/session_protocol.d.ts +18 -1
  137. package/dist/protocol/session_protocol.js +27 -0
  138. package/dist/protocol/session_protocol.js.map +1 -1
  139. package/dist/sdk/session.js +12 -0
  140. package/dist/sdk/session.js.map +1 -1
  141. package/dist/sdk/types.d.ts +6 -0
  142. package/dist/store/session_snapshot_migrations.js +22 -1
  143. package/dist/store/session_snapshot_migrations.js.map +1 -1
  144. package/dist/tui/ui/subagent_panel.js +45 -14
  145. package/dist/tui/ui/subagent_panel.js.map +1 -1
  146. package/package.json +7 -7
  147. package/dist/diff_tool/app/dist/assets/andromeeda-BJLMrMlp.js +0 -1
  148. package/dist/diff_tool/app/dist/assets/aurora-x-BCChoRpm.js +0 -1
  149. package/dist/diff_tool/app/dist/assets/ayu-dark-DzFZPuMV.js +0 -1
  150. package/dist/diff_tool/app/dist/assets/ayu-light-DSkcX_XD.js +0 -1
  151. package/dist/diff_tool/app/dist/assets/ayu-mirage-DSve0zuE.js +0 -1
  152. package/dist/diff_tool/app/dist/assets/catppuccin-frappe-DbLkF0J2.js +0 -1
  153. package/dist/diff_tool/app/dist/assets/catppuccin-latte-b6208YQK.js +0 -1
  154. package/dist/diff_tool/app/dist/assets/catppuccin-macchiato-CNNBbV1L.js +0 -1
  155. package/dist/diff_tool/app/dist/assets/catppuccin-mocha-DHkNF0Mp.js +0 -1
  156. package/dist/diff_tool/app/dist/assets/dark-plus-BVZ_4wTZ.js +0 -1
  157. package/dist/diff_tool/app/dist/assets/dracula-BoZgXveB.js +0 -1
  158. package/dist/diff_tool/app/dist/assets/dracula-soft-D-Kgh5gw.js +0 -1
  159. package/dist/diff_tool/app/dist/assets/engine-oniguruma-C5P09Ghe.js +0 -1
  160. package/dist/diff_tool/app/dist/assets/everforest-dark-Y6tr-2zD.js +0 -1
  161. package/dist/diff_tool/app/dist/assets/everforest-light-CA0Ol4Qu.js +0 -1
  162. package/dist/diff_tool/app/dist/assets/github-dark-C895GGrm.js +0 -1
  163. package/dist/diff_tool/app/dist/assets/github-dark-default-CM8LCIj6.js +0 -1
  164. package/dist/diff_tool/app/dist/assets/github-dark-dimmed-jPx1V1fR.js +0 -1
  165. package/dist/diff_tool/app/dist/assets/github-dark-high-contrast-UN5YjL_Z.js +0 -1
  166. package/dist/diff_tool/app/dist/assets/github-light-B4HDwToD.js +0 -1
  167. package/dist/diff_tool/app/dist/assets/github-light-default-CfC59JYV.js +0 -1
  168. package/dist/diff_tool/app/dist/assets/github-light-high-contrast-C3edEHcK.js +0 -1
  169. package/dist/diff_tool/app/dist/assets/gruvbox-dark-hard-BdGOuxq8.js +0 -1
  170. package/dist/diff_tool/app/dist/assets/gruvbox-dark-medium-CmygtSMi.js +0 -1
  171. package/dist/diff_tool/app/dist/assets/gruvbox-dark-soft-BJH4XuY9.js +0 -1
  172. package/dist/diff_tool/app/dist/assets/gruvbox-light-hard-BkSILF4E.js +0 -1
  173. package/dist/diff_tool/app/dist/assets/gruvbox-light-medium-DiZUfgdz.js +0 -1
  174. package/dist/diff_tool/app/dist/assets/gruvbox-light-soft-CRCTnbIj.js +0 -1
  175. package/dist/diff_tool/app/dist/assets/highlights-Bi-VwGCO.js +0 -3
  176. package/dist/diff_tool/app/dist/assets/horizon-DUI96lQn.js +0 -1
  177. package/dist/diff_tool/app/dist/assets/horizon-bright-COxh1lHf.js +0 -1
  178. package/dist/diff_tool/app/dist/assets/houston-DduE73P7.js +0 -1
  179. package/dist/diff_tool/app/dist/assets/kanagawa-dragon-BHDhSKDf.js +0 -1
  180. package/dist/diff_tool/app/dist/assets/kanagawa-lotus-NJjGXXql.js +0 -1
  181. package/dist/diff_tool/app/dist/assets/kanagawa-wave-DsGe2Uqk.js +0 -1
  182. package/dist/diff_tool/app/dist/assets/langs-CDbZNx2R.js +0 -1
  183. package/dist/diff_tool/app/dist/assets/laserwave-DYV0fvJ_.js +0 -1
  184. package/dist/diff_tool/app/dist/assets/light-plus-FTnIShls.js +0 -1
  185. package/dist/diff_tool/app/dist/assets/loader-DYYMIDWx.js +0 -1
  186. package/dist/diff_tool/app/dist/assets/material-theme-IcIb8QNx.js +0 -1
  187. package/dist/diff_tool/app/dist/assets/material-theme-darker-B_f2vxdL.js +0 -1
  188. package/dist/diff_tool/app/dist/assets/material-theme-lighter-CR2Q-4Hp.js +0 -1
  189. package/dist/diff_tool/app/dist/assets/material-theme-ocean-BX6hAJ_y.js +0 -1
  190. package/dist/diff_tool/app/dist/assets/material-theme-palenight-B6DWAotd.js +0 -1
  191. package/dist/diff_tool/app/dist/assets/min-dark-DECtZcqS.js +0 -1
  192. package/dist/diff_tool/app/dist/assets/min-light-qRIVcaqf.js +0 -1
  193. package/dist/diff_tool/app/dist/assets/monokai-CLmrJ-8t.js +0 -1
  194. package/dist/diff_tool/app/dist/assets/night-owl-eR4AsyAP.js +0 -1
  195. package/dist/diff_tool/app/dist/assets/night-owl-light-C74n5ti-.js +0 -1
  196. package/dist/diff_tool/app/dist/assets/nord-D4wy7NEP.js +0 -1
  197. package/dist/diff_tool/app/dist/assets/one-dark-pro-28TLzoS8.js +0 -1
  198. package/dist/diff_tool/app/dist/assets/one-light-C0UY_Fh7.js +0 -1
  199. package/dist/diff_tool/app/dist/assets/pierre-dark-fPlffE7i.js +0 -1
  200. package/dist/diff_tool/app/dist/assets/pierre-dark-protanopia-deuteranopia-BmjibgrW.js +0 -1
  201. package/dist/diff_tool/app/dist/assets/pierre-dark-soft-Cng2SYKc.js +0 -1
  202. package/dist/diff_tool/app/dist/assets/pierre-dark-tritanopia-DneQ5i7L.js +0 -1
  203. package/dist/diff_tool/app/dist/assets/pierre-dark-vibrant-BUK9Y-N_.js +0 -1
  204. package/dist/diff_tool/app/dist/assets/pierre-light-BvcXQJIj.js +0 -1
  205. package/dist/diff_tool/app/dist/assets/pierre-light-protanopia-deuteranopia-Cd5nk0bp.js +0 -1
  206. package/dist/diff_tool/app/dist/assets/pierre-light-soft-BvU23vks.js +0 -1
  207. package/dist/diff_tool/app/dist/assets/pierre-light-tritanopia-BSHccQzI.js +0 -1
  208. package/dist/diff_tool/app/dist/assets/pierre-light-vibrant-BgMZEwQI.js +0 -1
  209. package/dist/diff_tool/app/dist/assets/plastic-B2V_PDVk.js +0 -1
  210. package/dist/diff_tool/app/dist/assets/poimandres-DB9-pI6r.js +0 -1
  211. package/dist/diff_tool/app/dist/assets/red-CqYzoXtd.js +0 -1
  212. package/dist/diff_tool/app/dist/assets/rose-pine-C3zjVKxG.js +0 -1
  213. package/dist/diff_tool/app/dist/assets/rose-pine-dawn-C72QYfqa.js +0 -1
  214. package/dist/diff_tool/app/dist/assets/rose-pine-moon-CSM8ewhO.js +0 -1
  215. package/dist/diff_tool/app/dist/assets/slack-dark-Dtzi51su.js +0 -1
  216. package/dist/diff_tool/app/dist/assets/slack-ochin-Bb7oPExa.js +0 -1
  217. package/dist/diff_tool/app/dist/assets/snazzy-light-DXgiwzKu.js +0 -1
  218. package/dist/diff_tool/app/dist/assets/solarized-dark-BKOT3ICq.js +0 -1
  219. package/dist/diff_tool/app/dist/assets/solarized-light--Lk5pOfE.js +0 -1
  220. package/dist/diff_tool/app/dist/assets/synthwave-84-BJJFg-sc.js +0 -1
  221. package/dist/diff_tool/app/dist/assets/tokyo-night-DvpptEDd.js +0 -1
  222. package/dist/diff_tool/app/dist/assets/vesper-C1rBZbON.js +0 -1
  223. package/dist/diff_tool/app/dist/assets/vitesse-black-Sqvrs2Sw.js +0 -1
  224. package/dist/diff_tool/app/dist/assets/vitesse-dark-BWf_ZQtP.js +0 -1
  225. package/dist/diff_tool/app/dist/assets/vitesse-light-Cqenv4Qv.js +0 -1
@@ -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.
@@ -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
 
@@ -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
 
@@ -170,7 +170,7 @@ Each kind of change belongs to a different process:
170
170
 
171
171
  ## Reconnect and observe safely
172
172
 
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. 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.
174
174
 
175
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.
176
176
 
@@ -131,6 +131,54 @@ result: {
131
131
 
132
132
  The session must currently be observed by this connection.
133
133
 
134
+ ## Keep sessions loaded and unload them
135
+
136
+ [Keep a session loaded without clients](session-protocol.md#keep-a-session-loaded-without-clients) explains how these methods fit together. The connection does not need to observe the session to call them.
137
+
138
+ ### `session.setRetention`
139
+
140
+ Sets, renews, or clears the session's retention period.
141
+
142
+ ```ts
143
+ params: {
144
+ sessionId: string;
145
+ durationMs: number | null;
146
+ }
147
+ result: {
148
+ retainedUntil: number | null;
149
+ }
150
+ ```
151
+
152
+ `durationMs` is required. A number must be an integer from 1 to 2,147,483,647 (about 24.8 days). The period starts when the host handles the request, and `retainedUntil` is its end in milliseconds since the Unix epoch, according to the host's clock. Each call replaces the previous period, so a call can shorten it as well as extend it.
153
+
154
+ `null` clears retention and returns `retainedUntil: null`. Clearing does not detach clients or interrupt work.
155
+
156
+ Setting a period requires a loaded session and fails with `not_found` otherwise, even when the session is saved. To retain an unloaded session, call `session.observe` first. Clearing always succeeds for a session that is not loaded, including an unknown ID.
157
+
158
+ ### `session.collect`
159
+
160
+ Unloads a session if nothing keeps it loaded, and reports whether it is unloaded. This method never loads a session and never deletes the saved one.
161
+
162
+ ```ts
163
+ params: {
164
+ sessionId: string;
165
+ }
166
+ result: {
167
+ disposed: boolean;
168
+ }
169
+ ```
170
+
171
+ The result is `disposed: false`, without waiting, while any of these is true:
172
+
173
+ - A client observes the session, including this connection.
174
+ - A retention period is active.
175
+ - Work is running.
176
+ - The host is loading the session from storage.
177
+
178
+ Otherwise the host unloads the session, and the response waits until any unloading in progress has finished, including the release of the execution environment. The result is then `disposed: true`, which is also the result for a session that is not loaded and for an unknown ID. If unloading fails, the request fails with `internal_error`.
179
+
180
+ If saving the session before disposal fails, retry `session.collect`. A failed disposal, including cleanup of a recovery attempt, means the host can no longer establish that the session's files are safe to remove. No later `session.collect` for that ID returns `disposed: true` until the host restarts, even when the session is no longer loaded. Each later call returns `disposed: false` or fails. The host keeps this record only in memory, so after a restart the session counts as not loaded, and `disposed: true` no longer tells you whether the earlier release finished.
181
+
134
182
  ## Add user input and run turns
135
183
 
136
184
  ### `session.record`
@@ -464,7 +512,7 @@ Rewind requires an idle session with no pending input, and returns `busy` instea
464
512
 
465
513
  ### `session.interruptSubagent`
466
514
 
467
- Interrupts one subagent's current run. The subagent stays available for follow-ups.
515
+ Interrupts one subagent's current run, at any depth. Its descendants keep running, and the subagent stays available for follow-ups.
468
516
 
469
517
  ```ts
470
518
  params: {
@@ -90,6 +90,25 @@ Install all three before processing later messages for that session. The host ho
90
90
 
91
91
  Observing controls which updates you receive; it does not make you the owner. `session.unobserve` stops this connection's updates without deleting the session or interrupting work. Several connections can observe one session, and each can change it. Client tool names must be unique among observing clients.
92
92
 
93
+ ## Keep a session loaded without clients
94
+
95
+ After the last client stops observing, the host normally unloads an idle session from memory and keeps it saved. Unloading removes the session's subagents. To keep an unattached session and its idle subagents available, set a retention period with `session.setRetention`. A client that observes the session during that period gets the same live session.
96
+
97
+ A session stays loaded while a client observes it, while its retention period lasts, or while work is running. Running work includes turns, maintenance such as compaction, reloads, persona changes, prompt resolution, path autocomplete, `session.exec` commands, `session.sample` calls, ephemeral context creation and submissions, background jobs, and running subagents. Idle subagents do not count as running work. When retention expires or is cleared, only that reason goes away: clients stay attached and work keeps running. The host unloads the session once no reason remains.
98
+
99
+ Retention exists only in host memory. It ends when the host shuts down, and a session recovered after a restart has no retention and no subagents.
100
+
101
+ Before you delete files that a session uses, make sure the host has unloaded the session:
102
+
103
+ 1. Clear retention with `session.setRetention` and `durationMs: null`.
104
+ 2. Stop observing with `session.unobserve`, or close the connection.
105
+ 3. Call `session.collect`.
106
+ 4. If it returns `disposed: true`, the session is unloaded and its execution environment has been released. If it returns `disposed: false`, keep the files and retry later. If the request fails, keep the files and retry later. A failed save can succeed on retry, but after a failed disposal no retry reports `disposed: true` until the host restarts.
107
+
108
+ `session.collect` never loads a session, so you can repeat these steps safely. It reports only the state at that moment. Any client can still observe the saved session and load it again, so agree between your clients on when a session is finished.
109
+
110
+ See the [method reference](session-protocol-methods.md#keep-sessions-loaded-and-unload-them) for exact parameters and results.
111
+
93
112
  ## Treat the snapshot as the source of truth
94
113
 
95
114
  `SessionProtocolSnapshot` is the saved, recoverable state of one session. Its main fields are:
@@ -127,7 +146,7 @@ A listed server may not be connected yet, because servers connect on first use.
127
146
 
128
147
  `catalog.speechVocabulary` holds the session's merged [`speech.vocabulary`](config-reference.md#speech) terms. The list has at most 100 terms and at most 10,000 Unicode characters in total. Each term is trimmed and non-empty, has at most 100 Unicode characters, and contains no angle brackets or line breaks. Clients that transcribe speech use these terms for this session. The host resolves them again on load, reload, and persona changes.
129
148
 
130
- `bootstrap.prompt.subagentSystemPrompt` is present when subagents can be started. Each catalog persona has a `subagentLaunchModels` allowlist. Subagent records have task titles and IDs; there are no worker types.
149
+ `bootstrap.prompt.subagentSystemPrompt` is present when subagents can be started. It holds the base prompt, and Tau adds each native subagent's role section when it starts that subagent. Each catalog persona has a `subagentLaunchModels` allowlist. Subagent records have task titles and IDs; there are no worker types. Each record in `agents` also has `parentId`, the ID of the agent that started it, and `depth`, which is 1 or 2. A subagent of the main agent has depth 1, and its `parentId` is the session ID.
131
150
 
132
151
  Render active transcript order from `timeline.items`, not by sorting or filtering `messages`. A timeline item either contains a notice or references a message, tool, or operation in the corresponding snapshot collection. Some model-visible messages intentionally have no timeline item.
133
152
 
@@ -271,7 +290,7 @@ The supported codes are:
271
290
  | `invalid_request` | The envelope, version, type, id, or requested operation is invalid. |
272
291
  | `method_not_found` | The method is unsupported. |
273
292
  | `invalid_params` | Method parameters failed validation. |
274
- | `not_found` | The addressed session does not exist on this host. |
293
+ | `not_found` | The addressed session does not exist on this host, or `session.setRetention` set a period on a session that is not loaded. |
275
294
  | `busy` | Conflicting session work or a same-thread ephemeral submission is active. |
276
295
  | `cancelled` | Pending input, execution, or sampling was cancelled. |
277
296
  | `internal_error` | The host could not complete the operation. |
@@ -48,7 +48,7 @@ Queued and steering messages survive a client detaching only while the session s
48
48
 
49
49
  ## Interrupt and retry
50
50
 
51
- Interruption asks work to stop. It cancels the main session's running turn, direct commands, standalone model calls, and maintenance work. An interrupted turn records an interrupted assistant result where there is one. Interruption does not stop subagents: select one with Alt+Down and press Ctrl+G, or call `session.interruptSubagent` from a protocol client. Host shutdown or session disposal stops subagents. In the TUI, Escape first stops local work such as diff review, recording, or speech playback, and only then asks the host to interrupt the session.
51
+ Interruption asks work to stop. It cancels the main session's running turn, direct commands, standalone model calls, and maintenance work. An interrupted turn records an interrupted assistant result where there is one. Interruption does not stop subagents: select one with Alt+Down and press Ctrl+G to stop it without its children, or call `session.interruptSubagent` from a protocol client. Host shutdown or session disposal stops subagents. In the TUI, Escape first stops local work such as diff review, recording, or speech playback, and only then asks the host to interrupt the session.
52
52
 
53
53
  Retry runs another assistant turn from the current history. It does not remove the interrupted or failed result, rewind context, or send the previous user text again. Tau can therefore continue from completed tool results without running those tools again. In the TUI, press Enter twice on an empty editor while idle.
54
54
 
@@ -70,6 +70,8 @@ After a host restart, recovery loads the current configuration so providers and
70
70
 
71
71
  A session is saved throughout its life, not only when the TUI exits. Reattaching to a running host returns the current state and continues with live updates. Reattaching after a host restart loads the saved session and reconnects its execution environment, using the host's configuration for that environment type.
72
72
 
73
+ After the last client detaches, the host unloads the session from memory once its work has finished. The session stays saved, but its subagents are gone. Protocol and SDK clients can keep an unattached session and its idle subagents loaded for a limited time with [retention](session-protocol.md#keep-a-session-loaded-without-clients).
74
+
73
75
  Recovery keeps:
74
76
 
75
77
  - the conversation messages and finished tool results