@markusylisiurunen/tau 0.3.101 → 0.3.103

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 (97) hide show
  1. package/README.md +18 -23
  2. package/dist/core/config/ownership.js +3 -1
  3. package/dist/core/config/ownership.js.map +1 -1
  4. package/dist/core/config/schema.js +3 -1
  5. package/dist/core/config/schema.js.map +1 -1
  6. package/dist/core/history/migrations.js +46 -1
  7. package/dist/core/history/migrations.js.map +1 -1
  8. package/dist/core/history/setup.js +24 -7
  9. package/dist/core/history/setup.js.map +1 -1
  10. package/dist/core/mcp/cli.js +1 -1
  11. package/dist/core/mcp/cli.js.map +1 -1
  12. package/dist/core/static/tau_docs/client-tools.md +46 -385
  13. package/dist/core/static/tau_docs/code-mode.md +104 -43
  14. package/dist/core/static/tau_docs/configuration.md +77 -171
  15. package/dist/core/static/tau_docs/getting-started.md +25 -96
  16. package/dist/core/static/tau_docs/history.md +30 -228
  17. package/dist/core/static/tau_docs/how-tau-works.md +53 -0
  18. package/dist/core/static/tau_docs/image-generation.md +15 -107
  19. package/dist/core/static/tau_docs/index.md +46 -45
  20. package/dist/core/static/tau_docs/instructions-and-skills.md +81 -0
  21. package/dist/core/static/tau_docs/manifest.json +15 -20
  22. package/dist/core/static/tau_docs/mcp.md +77 -0
  23. package/dist/core/static/tau_docs/models-and-credentials.md +67 -0
  24. package/dist/core/static/tau_docs/openrouter.md +31 -129
  25. package/dist/core/static/tau_docs/pdf-unpacking.md +8 -21
  26. package/dist/core/static/tau_docs/personas.md +48 -144
  27. package/dist/core/static/tau_docs/remote-sessions.md +33 -170
  28. package/dist/core/static/tau_docs/sdk.md +150 -0
  29. package/dist/core/static/tau_docs/security.md +6 -193
  30. package/dist/core/static/tau_docs/session-protocol.md +84 -246
  31. package/dist/core/static/tau_docs/sessions.md +41 -205
  32. package/dist/core/static/tau_docs/speech-generation.md +16 -129
  33. package/dist/core/static/tau_docs/subagents.md +57 -229
  34. package/dist/core/static/tau_docs/telegram.md +152 -220
  35. package/dist/core/static/tau_docs/tools.md +44 -167
  36. package/dist/core/static/tau_docs/troubleshooting.md +23 -217
  37. package/dist/core/static/tau_docs/tui.md +42 -276
  38. package/dist/core/subagents/claude_code_runner.mjs +65 -65
  39. package/dist/core/telegram/adapter.js +178 -61
  40. package/dist/core/telegram/adapter.js.map +1 -1
  41. package/dist/core/telegram/cli.js +1 -3
  42. package/dist/core/telegram/cli.js.map +1 -1
  43. package/dist/core/telegram/config.js +3 -1
  44. package/dist/core/telegram/config.js.map +1 -1
  45. package/dist/core/telegram/runtime.js +1 -1
  46. package/dist/core/telegram/runtime.js.map +1 -1
  47. package/dist/core/utils/scribe_transcription.js +283 -0
  48. package/dist/core/utils/scribe_transcription.js.map +1 -0
  49. package/dist/core/utils/speech_cleanup.js +198 -0
  50. package/dist/core/utils/speech_cleanup.js.map +1 -0
  51. package/dist/core/utils/speech_to_text.js +3 -3
  52. package/dist/core/utils/speech_to_text_keywords.js +5 -4
  53. package/dist/core/utils/speech_to_text_keywords.js.map +1 -1
  54. package/dist/core/version.js +1 -1
  55. package/dist/diff_tool/app/dist/assets/{core-CXVpaOO1.js → core-Cnp6wBC7.js} +1 -1
  56. package/dist/diff_tool/app/dist/assets/engine-oniguruma-ConHyUk6.js +1 -0
  57. package/dist/diff_tool/app/dist/assets/{highlights-DuJNYjEh.js → highlights-DeO0fGqQ.js} +1 -1
  58. package/dist/diff_tool/app/dist/assets/index-BDuQ2wXS.js +221 -0
  59. package/dist/diff_tool/app/dist/assets/langs-DDFHLNuJ.js +1 -0
  60. package/dist/diff_tool/app/dist/assets/{loader-bi21_x0K.js → loader-DrwOwtvp.js} +1 -1
  61. package/dist/diff_tool/app/dist/assets/{preload-helper-CRzLMJPS.js → preload-helper-DclECHGd.js} +1 -1
  62. package/dist/diff_tool/app/dist/assets/{shiki-D6ZyrNQD.js → shiki-CwKGJZFi.js} +2 -2
  63. package/dist/diff_tool/app/dist/assets/{stream-tokenizer-BdsyU_yB.js → stream-tokenizer-D4-m26wx.js} +1 -1
  64. package/dist/diff_tool/app/dist/assets/{themes-9lpTYI_i.js → themes-Do3waJhf.js} +2 -2
  65. package/dist/diff_tool/app/dist/index.html +2 -2
  66. package/dist/history/worker/index.js +83 -63
  67. package/dist/history/worker/index.js.map +1 -1
  68. package/dist/history/worker/migrations/0003_digest_schedule.sql +36 -0
  69. package/dist/history/worker/migrations/0004_recent_sessions.sql +1 -0
  70. package/dist/history/worker/migrations/0005_external_content.sql +58 -0
  71. package/dist/history/worker/migrations/0006_external_content_cutover.sql +44 -0
  72. package/dist/store/session_snapshot_migrations.js +14 -1
  73. package/dist/store/session_snapshot_migrations.js.map +1 -1
  74. package/dist/tui/chat_view.js +3 -1
  75. package/dist/tui/chat_view.js.map +1 -1
  76. package/dist/tui/listen_capture.js +7 -5
  77. package/dist/tui/listen_capture.js.map +1 -1
  78. package/dist/tui/session_chat_controller.js +93 -15
  79. package/dist/tui/session_chat_controller.js.map +1 -1
  80. package/dist/tui/ui/custom_editor.js +3 -0
  81. package/dist/tui/ui/custom_editor.js.map +1 -1
  82. package/package.json +8 -7
  83. package/dist/core/static/tau_docs/config-reference.md +0 -355
  84. package/dist/core/static/tau_docs/credentials.md +0 -165
  85. package/dist/core/static/tau_docs/models.md +0 -57
  86. package/dist/core/static/tau_docs/node-sdk.md +0 -430
  87. package/dist/core/static/tau_docs/ownership-and-scope.md +0 -107
  88. package/dist/core/static/tau_docs/prompts-and-project-context.md +0 -147
  89. package/dist/core/static/tau_docs/sdk-diff-review.md +0 -92
  90. package/dist/core/static/tau_docs/session-protocol-methods.md +0 -655
  91. package/dist/core/static/tau_docs/skills.md +0 -135
  92. package/dist/core/static/tau_docs/telegram-projects.md +0 -197
  93. package/dist/core/utils/gemini_transcription.js +0 -566
  94. package/dist/core/utils/gemini_transcription.js.map +0 -1
  95. package/dist/diff_tool/app/dist/assets/engine-oniguruma-Rz_7DPcV.js +0 -1
  96. package/dist/diff_tool/app/dist/assets/index-F9is7PUw.js +0 -221
  97. package/dist/diff_tool/app/dist/assets/langs-CTftvgbb.js +0 -1
@@ -1,311 +1,77 @@
1
- # Terminal interface
1
+ # TUI
2
2
 
3
- Tau's terminal interface works both for local sessions and for sessions on a remote host. The editor, commands, and review workflow are the same in both. The session host holds the conversation and runs the model, while the TUI handles the terminal and local features such as themes, the clipboard, speech, and the diff tool.
3
+ `tau` starts the terminal interface in the current directory, and `tau attach` starts the same interface against a [remote host](remote-sessions.md). `/help` lists every command, key, loaded skill, and context file. This page covers what is hard to discover on your own.
4
4
 
5
- ## Start the TUI
5
+ ## Sending input
6
6
 
7
- Run `tau` in the project directory to start a new local session:
7
+ Enter submits, and Shift+Enter or Ctrl+J inserts a newline. While a turn is running:
8
8
 
9
- ```sh
10
- cd ~/Code/tau
11
- tau
12
- ```
13
-
14
- The agent works in that directory. You can choose a persona and reasoning level at startup:
15
-
16
- ```sh
17
- tau --persona gpt-6.1-sol-coder:high
18
- ```
19
-
20
- `-p` is the short form. `--no-agent-context-files` turns off `AGENTS.md` loading and the scan for nested `AGENTS.md` files. `--no-client-tools` stops the TUI from offering its built-in and configured [client tools](client-tools.md).
21
-
22
- Piped stdin becomes the first message of a local session:
23
-
24
- ```sh
25
- printf 'summarize the current changes' | tau
26
- ```
27
-
28
- Use `tau attach` for a session hosted elsewhere. The terminal, themes, clipboard, speech commands, built-in diff review tool, and command client tools stay on the attaching machine. Bash tools, file access, project configuration, and model calls use the session's execution environment. See [remote sessions](remote-sessions.md) for connecting and creating sessions.
29
-
30
- The startup summary lists discovered skills, project context files, configured client tools, and enabled MCP servers. MCP servers are shown as configured, not connected, because connections open on first use. The MCP list comes from the session, also in attached sessions, and a session on a remote execution environment shows MCP as unavailable. Empty sections are left out.
31
-
32
- In a local TUI, configuration problems found when the host loads a session appear in the transcript. An attached TUI shows them when you run `/reload`.
33
-
34
- ## Work in the editor
35
-
36
- Enter submits. Shift+Enter or Ctrl+J inserts a newline. Up and Down move within the editor, and recall earlier submissions when the editor is empty.
37
-
38
- Tau recognizes these mentions and completes them with Tab:
39
-
40
- - `@src/main.ts` mentions a file in the execution environment.
41
- - `@@skill:code-review` explicitly activates an available skill.
42
-
43
- Other forms, such as `@file:`, `@skill:`, or `@agent:`, are not mentions. File paths and skill names come from the session, not from the attaching machine's filesystem.
44
-
45
- Typing `/` at the start of a line opens command completion. Slash commands work only in single-line submissions. Multiline input that starts with `/`, and unknown slash commands, are sent to the agent as ordinary messages.
46
-
47
- ## Submit, queue, and steer
48
-
49
- When Tau is idle, Enter and Ctrl+Enter both start a normal turn. While a turn is running:
50
-
51
- - Ctrl+Enter queues the text as a new turn that runs when the session becomes idle.
52
- - Enter steers the running turn. Tau applies steering at the next safe point, never in the middle of a model response or tool call.
53
- - Alt+Up cancels all queued messages and steering not yet applied, and puts their text back in the editor, separated by `---`.
54
-
55
- Some messages carry hidden guidance, such as a note that text was transcribed from speech. Hidden guidance stays hidden in the pending list and the editor. When messages are restored, their guidance is kept, in order, after any guidance the draft already has. On submission, all guidance goes at the start of the combined message. Editing a non-empty draft keeps its guidance, and clearing the draft removes it.
56
-
57
- Pending input is shared by all clients attached to the session while the host keeps running. It is not saved and is lost when the host restarts. A queued turn uses the persona, reasoning, tools, and model settings current when it actually starts. Steering belongs to the running turn and uses the settings that turn started with.
58
-
59
- Escape interrupts work. If local work is in the foreground, such as diff review, voice input, or speech playback, Escape stops that first. Otherwise it asks the host to interrupt the session, which also cancels a running manual compaction. Once compaction has replaced the context, a late interruption does not undo it or turn the saved result into a failure. Escape does not stop subagents; select one with Alt+Down and press Ctrl+G. Press Escape twice to clear the editor.
60
-
61
- Press Enter twice on an empty editor to retry from the current history. Retry does not rewind or repeat the last user message.
62
-
63
- ## Choose persona, reasoning, and thought visibility
64
-
65
- The editor header shows the current persona and reasoning level.
9
+ - **Enter steers:** the running turn takes the message at its next safe point.
10
+ - **Ctrl+Enter queues:** the message starts its own turn when the session is idle.
11
+ - **Alt+Up** cancels pending messages and puts their text back in the editor.
66
12
 
67
- - `/persona:<id>` selects a persona by ID.
68
- - Ctrl+P cycles through available personas.
69
- - Shift+Tab cycles through the persona's allowed reasoning levels.
70
- - Ctrl+T shows or hides the assistant's thinking in this TUI.
13
+ Escape interrupts the session, and Ctrl+C does not. Pressing Enter twice on an empty editor retries from the current history. Pressing Escape twice clears the editor.
71
14
 
72
- Persona changes require an idle session, because they can change the model, instructions, skills, and tools. Reasoning can change while a turn is running, but that turn and its steering keep their settings. The new level applies from the next turn.
15
+ `@src/main.ts` mentions a file and `@@skill:code-review` activates a skill. Tab completes both. Piped input becomes the first message: `printf 'summarize the changes' | tau`.
73
16
 
74
- Ctrl+T affects only what this TUI displays. It does not turn on reasoning, change its effort, or change the session history.
75
-
76
- For example:
17
+ ## Running commands yourself
77
18
 
78
19
  ```text
79
- /persona:opus-5.5-coder
20
+ !git status --short
21
+ !!git diff --stat
80
22
  ```
81
23
 
82
- Then use Shift+Tab to choose a reasoning level. A newly added persona appears only after `/reload`.
83
-
84
- ## Slash commands
24
+ `!` runs a command in the execution environment and adds the output to the model's context. `!!` does the same without adding anything to the context. Both need an idle session.
85
25
 
86
- `/help` prints the commands, keybindings, loaded skills, and context file paths for the current session.
26
+ ## Commands
87
27
 
88
28
  | Command | Behavior |
89
29
  | --- | --- |
90
- | `/help` | Show commands, keys, skills, and context paths. |
91
- | `/new` | Create a new session in the same execution environment, keeping the current persona, reasoning, and `repository` attribute. |
92
- | `/exit` | Close this TUI. On a long-running remote host, this detaches; the session is not deleted. |
93
- | `/rewind` | Pick an earlier user message, remove it and everything after it, and put its text back in the editor. |
94
- | `/diff [git diff args...]` | Open the local diff review tool on a snapshot taken from the execution environment. |
95
- | `/auto-compact [tokens\|default]` | Show the automatic-compaction threshold. Pass `50k` or `50000` to set it (minimum 50,000 tokens), or `default` to remove the session override and use the default. |
96
- | `/compact-all [guidance]` | Replace the model's context with a generated summary. |
97
- | `/compact-keep-last [guidance]` | Same, and include the last assistant response in the summary when there is one. |
98
- | `/reload` | Reload session configuration and content from the execution environment. |
99
- | `/listen [retry/discard]` | Record speech, or retry or discard a failed recording. macOS only. |
100
- | `/speak` | Read the last assistant response aloud. macOS only. |
101
- | `/auto-speak [on | off]` | Toggle automatic reading of final responses, or turn it on or off. |
102
- | `/export-response` | Send the latest completed response to the configured Markdown service. |
103
- | `/copy-text` | Copy the last assistant response as plain text. |
104
- | `/copy-code` | Copy the code blocks from the last assistant response. |
105
- | `/persona:<id>` | Switch persona while idle. |
106
- | `/prompt:<id>` | Load a prompt from the execution environment into the editor without sending it. |
107
- | `/theme:<id>` | Switch this TUI's theme until it exits. |
30
+ | `/new` | Start another session in the same environment. |
31
+ | `/rewind` | Remove an earlier message and everything after it. |
32
+ | `/diff [git diff args]` | Review changes in the browser. |
33
+ | `/compact-all [guidance]` | Replace the model's context with a summary. |
34
+ | `/compact-keep-last [guidance]` | Same, keeping the last response word for word. |
35
+ | `/auto-compact [tokens\|default]` | Show or set the automatic-compaction threshold. |
36
+ | `/reload` | Reload configuration and content from the execution environment. |
37
+ | `/persona:<id>`, `/prompt:<id>`, `/theme:<id>` | Switch persona, fill the editor from a prompt, or switch theme for this run. |
38
+ | `/copy-text`, `/copy-code` | Copy from the last response. |
39
+ | `/export-response` | Send the last response to your Markdown service. |
40
+ | `/listen`, `/speak`, `/auto-speak` | Speech (macOS). |
108
41
 
109
- Run commands that change the context, such as persona changes, compaction, rewind, and reload, while idle. `/auto-compact` can inspect or change the next-turn threshold during a running turn. `/auto-speak`, `/listen`, `/prompt:<id>`, and `/exit` do little during a running turn. Other commands wait until Tau is idle.
42
+ Useful keys beyond those above: Ctrl+P cycles personas, Shift+Tab cycles reasoning, Ctrl+T shows thinking, Ctrl+S copies the draft and clears the editor. While subagents run, Alt+Down selects one and Ctrl+G interrupts it. Escape does not stop subagents.
110
43
 
111
- The footer shows context usage as a percentage of the full model window, such as `20%/272k`. When a session override is set, or the default threshold is below the model-based threshold, the effective compaction threshold appears in parentheses: `20%/272k (50k)`. This threshold cannot exceed the model's context window minus 16,384 tokens. Without an override or a lower default, the footer shows no threshold. Applying a persona removes the session override, even when reapplying the current persona.
44
+ ## Diff review
112
45
 
113
- While subagents are running, a panel above the editor shows the selected subagent's title, recent activity, and a usage line such as `openai-codex/gpt-6-astra:medium · ↑12k ↓2k (r8k w0) · 14%/200k · $0.04`. The line starts with the subagent's provider, model, and reasoning effort, including inherited settings. Text that does not fit the terminal width is cut off on the right.
46
+ `/diff` takes a Git snapshot from the execution environment and opens a browser tool on the client machine. It prepares a guide to the changes and supports comments on files and lines. Submitting adds the review to the session as a user message without starting a turn, so send a follow-up when you want the agent to act on it. The agent can open the same tool itself through `diff_review`.
114
47
 
115
- A subagent started by another subagent shows `parent title › child title`, with a long parent title shortened first. A subagent with running children shows their number, such as `· 2 children running`, and its footer reads `ctrl+g to interrupt this subagent only`, because they keep running.
48
+ ## Speech
116
49
 
117
- [Sessions](sessions.md) describes compaction, rewind, recovery, and retry. [Prompts and project context](prompts-and-project-context.md) covers prompt files.
50
+ Speech works on macOS and needs `ffmpeg` (`brew install ffmpeg`). The TUI process reads the credentials, including when attached to a remote host.
118
51
 
119
- ## Exporting a response
52
+ - `/listen` or Ctrl+Y dictates into the editor with live transcription. Enter submits while recording, and Ctrl+Y stops without submitting. It needs `ELEVENLABS_API_KEY`. If transcription fails, the recording stays on disk, and `/listen retry` or `/listen discard` handles it.
53
+ - Tab while recording switches cleanup on or off for that recording, starting from `speech.cleanupStyle`. Cleanup needs `OPENAI_API_KEY`. It removes fillers and false starts and fixes punctuation, keeping your wording, and it sees your vocabulary and the recent conversation to fix misheard words. If cleanup fails, the raw transcript stays in the editor without being submitted.
54
+ - `/speak` reads the last response aloud, and `/auto-speak` reads each final answer. Both need `OPENAI_API_KEY` for rewriting and `ELEVENLABS_API_KEY` for audio.
120
55
 
121
- `/export-response` uploads the latest committed assistant response that finished normally or reached its output limit. It preserves Markdown, including code fences and surrounding whitespace, and sends only text blocks from that message. Reasoning, tool calls, tool results, and other messages are excluded. Failed, interrupted, and tool-call messages are skipped. An empty response is not sent.
56
+ Configure the voice, shortcut, cleanup style, and vocabulary in `speech`. A configured voice has no fallback, and without one Tau uses its default voices. See [configuration](configuration.md).
122
57
 
123
- Configure [`markdownExport`](config-reference.md#markdownexport) in the terminal client's global configuration. Export is an explicit user action and runs locally even when attached to a remote host. The command waits until the session is idle.
58
+ ## Exporting a response
124
59
 
125
- Tau makes one request to the configured endpoint:
60
+ `/export-response` sends the last completed response to the service set in `markdownExport`:
126
61
 
127
62
  ```http
128
- POST <configured endpoint>
129
- Content-Type: application/json
130
- Accept: application/json
63
+ POST <url>
131
64
  Authorization: Bearer <token, if configured>
132
65
 
133
66
  {"version":1,"markdown":"# Proposal\n..."}
134
67
  ```
135
68
 
136
- The service must return HTTP `201 Created` and a JSON object:
137
-
138
- ```json
139
- { "version": 1, "url": "https://example.com/document/123" }
140
- ```
141
-
142
- The returned URL must be HTTP(S), without embedded credentials, whitespace, or control characters. Tau displays it without opening a browser. The service owns storage, permissions, editing, and comments. Paste feedback back into Tau manually; there is no callback or polling.
143
-
144
- Requests time out after 30 seconds, responses are limited to 64 KiB, and redirects are rejected. Tau cancels an active request when the TUI detaches. It prevents overlapping exports and never retries automatically. A failed or cancelled request may already have created a document. Export results and errors are local TUI notices and do not change the conversation.
145
-
146
- ## Keyboard shortcuts
147
-
148
- | Key | Behavior |
149
- | --- | --- |
150
- | Shift+Tab | Cycle reasoning effort. |
151
- | Ctrl+P | Cycle persona while idle. |
152
- | Ctrl+T | Show or hide thinking in this TUI. |
153
- | Ctrl+S | Copy the expanded editor contents to the clipboard, then clear the editor. |
154
- | Ctrl+Y | Start or stop voice recording without submitting. |
155
- | Enter | Steer a running turn, or submit while idle. |
156
- | Ctrl+Enter | Queue another turn, or submit while idle. |
157
- | Alt+Up | Cancel pending input and put it back in the editor. |
158
- | Alt+Down | Select the next running subagent, one branch at a time. |
159
- | Ctrl+G | Interrupt only the selected subagent. |
160
- | Enter twice | Retry, when the editor is empty and the session is idle. |
161
- | Escape | Interrupt local work or the session. |
162
- | Escape twice | Clear the editor. |
163
- | Ctrl+C twice | Exit the TUI. |
164
-
165
- A single Ctrl+C asks for confirmation; it does not interrupt the assistant. Use Escape to interrupt.
166
-
167
- ## Run Bash commands directly
168
-
169
- A leading `!` runs a command in a fresh non-interactive login Bash in the execution environment, without going through the model:
170
-
171
- ```text
172
- !git status --short
173
- ```
174
-
175
- The command and its output are added to the session, so the agent can use them later. A double `!!` runs the command without adding it to the model's context:
176
-
177
- ```text
178
- !!git diff --stat
179
- ```
180
-
181
- Use `!!` for checks that should not use up context. Its card still appears in the current TUI, but the command and output are not saved in the conversation.
182
-
183
- Direct commands require an idle session. In an attached TUI, `!pwd` shows the execution environment's directory, not the attaching machine's. Command [client tools](client-tools.md) are different: they run on the client machine and can ask the session to run commands in the execution environment.
184
-
185
- ## Use themes
186
-
187
- Themes belong to the TUI and are never saved in the session. Tau's built-in themes adapt to the terminal's light or dark appearance.
188
-
189
- Set the startup theme with `defaultTheme` in the client's [configuration](configuration.md), or switch for the current run:
190
-
191
- ```text
192
- /theme:gold
193
- ```
194
-
195
- Theme IDs are exact and case-sensitive. `/theme` does not save the choice. Restart the TUI to apply a new `defaultTheme`. A remote host's theme setting does not affect attached clients.
196
-
197
- ## Review a diff
198
-
199
- `/diff` takes a Git snapshot in the execution environment, then opens the built-in browser review tool on the TUI machine. Arguments are passed to `git diff`, for example:
200
-
201
- ```text
202
- /diff --staged
203
- ```
204
-
205
- `tau diff-tool` is the tool's own command, and `tau diff-tool --help` shows its help, but normal reviews start from `/diff`, which sets up its environment.
206
-
207
- A snapshot's patch can be at most 16 MiB. Narrow the Git arguments if a larger diff is rejected. A plain working-tree snapshot includes non-binary untracked files of up to 4 MiB each, within that total.
208
-
209
- The tool opens in **Guide** mode and starts preparing an orientation, focused topics, and likely reviewer questions as soon as the review context is ready. You can comment on the guide, ask for another topic or question, or switch to **Diff** mode for review threads on files and lines.
210
-
211
- Guide comments and unresolved diff threads go into the returned Markdown, which stands on its own: it names the reviewed scope, gives change-level comments their context, and explains who took part in each discussion and in what role. **Submit** first opens a preview of the exact text to be returned, where you can exclude feedback and copy the full review before submitting. **Approve** returns right away when no feedback remains. If feedback appears while approval is being checked, the preview opens instead.
212
-
213
- The session host provides temporary review agents, and the local tool runs the browser interface. The returned review is added to the session as a user message, but Tau does not start an assistant turn when the tool closes. Send a follow-up message when the review should lead to more work.
214
-
215
- The TUI also offers diff review to the agent as a client tool, unless `--no-client-tools` is set. `/diff` works either way. See [client tools](client-tools.md) for what this means with several clients.
216
-
217
- Agent-launched diff reviews have no execution deadline. They remain open until submitted or closed, or until the turn is interrupted or the owning client disconnects. Acknowledgement and review initialization still have startup timeouts.
218
-
219
- The agent can use `diff_review` with `workingDirectory` to review another directory without changing the session directory. Paths refer to the session's execution environment; relative paths resolve from the session directory. The selected directory must be inside a Git repository and is used by review assistants and for relative patch-file paths. Omitting it uses the session directory.
220
-
221
- ## Use speech
222
-
223
- ### Dictation
224
-
225
- `/listen` and Ctrl+Y work only on macOS. Recording uses the local `ffmpeg` with AVFoundation audio input. It stops when you press Ctrl+Y again or after 9 minutes, which leaves time to finish within Gemini's 10-minute live session. Startup fails if the microphone gives no audio within 15 seconds.
226
-
227
- - Enter or Ctrl+Enter while recording stops capture, finishes transcription, and submits the editor text. While a turn is running, Enter steers and Ctrl+Enter queues, as usual.
228
- - Ctrl+Y, or reaching the time limit, finishes transcription and inserts the transcript at the cursor without submitting it.
229
-
230
- The shortcut can be changed with [`speech.recordingShortcut`](config-reference.md#speech), including single-press or double-tap printable keys such as `§`. The editor hint shows the configured gesture. Starting a recording stops speech playback.
231
-
232
- While you speak, Gemini shows a live preview in muted italics at the cursor. During pauses, Gemini finalizes segments of speech while recording continues. Tau keeps finalized segments and replaces only the current preview. After recording stops:
233
-
234
- - Tau tells Gemini the audio has ended. It finishes right away if a finalized segment ends exactly at the end of the audio and generation is complete.
235
- - Otherwise it keeps receiving results until two seconds pass with no updates. If new speech is detected after stopping, Tau signals the end of audio again to flush it.
236
- - The final transcript comes from the live stream. Normal recordings are not uploaded again for a second transcription.
237
- - Unfinished speech must be finalized before Tau accepts the result. Finalization has a 30-second deadline, and Escape cancels the wait.
238
-
239
- The final transcript replaces the preview in normal text, without duplication. An empty transcript inserts nothing. Tau does not detect silence locally, and the end of one speech segment does not count as the end of the recording.
240
-
241
- A submitted draft that contains dictation carries hidden guidance saying that some or all of the message may have been transcribed from speech and may contain errors. The guidance survives edits and is removed when the draft is emptied.
242
-
243
- The editor is locked from the start of recording until finalization. Escape cancels voice input at any stage: startup, recording, microphone shutdown, transcription, or retry. Cancelling removes the preview at once, restores the original draft, and unlocks the editor without inserting or submitting anything. The cancelled recording is deleted once pending file work finishes. A failure also restores the original draft. A recording or retry cannot start while another editor update is pending.
244
-
245
- For live transcription, GPT-6 Luna, with reasoning disabled, extracts spelling hints from the recent conversation while recording starts. Tau buffers audio until the transcription session is ready, then streams it. Gemini uses `gemini-3.5-transcribe-live` in verbatim mode with English (`en-US`) and Finnish (`fi-FI`) language hints. Missing OpenAI credentials or a failed hint extraction do not stop transcription. The session's [`speech.vocabulary`](config-reference.md#speech) terms, followed by the terms in the TUI's own global configuration, take priority over extracted hints and remain available when extraction fails.
246
-
247
- If transcription fails, Tau keeps the local WAV file and reports its path:
248
-
249
- - `/listen retry` transcribes the same audio again with Gemini and the current conversation context. Gemini uploads the file for `gemini-3.5-transcribe` verbatim transcription with the same language hints, and Tau tries to delete the uploaded file afterward. Recordings longer than 20 minutes are rejected instead of being sent.
250
- - `/listen discard` deletes the file.
251
-
252
- Tau keeps at most one failed recording. A new recording deletes it only once the new capture is producing audio. Exiting leaves the file at the reported path so you can recover it.
253
-
254
- Install `ffmpeg`:
255
-
256
- ```sh
257
- brew install ffmpeg
258
- ```
259
-
260
- Transcription uses Gemini and needs `GEMINI_API_KEY` or `apiKeys.google`. The TUI process reads these credentials, also when attached to a remote host.
261
-
262
- ### Reading responses aloud
263
-
264
- `/speak` also works only on macOS. It rewrites the last assistant response with GPT-6 Luna (reasoning disabled), streams Eleven v4 Turbo audio, and plays it at 1.15× speed through `ffplay`, which comes with `ffmpeg`.
265
-
266
- - It needs `OPENAI_API_KEY` or `apiKeys.openai` for rewriting, and `ELEVENLABS_API_KEY` or `apiKeys.elevenlabs` for synthesis.
267
- - It runs only while the session is idle. Escape stops it.
268
- - Longer responses are split into balanced parts, each aiming for at most two minutes of speech.
269
- - The source and rewritten text are limited to 10,000 Unicode characters, and generation stops after 32 MiB of raw audio.
270
- - Voice lookups and synthesis requests have a two-minute deadline.
271
- - The rewrite turns paths, commands, and formatting into spoken prose. It reads a link's label instead of its address, and refers to a bare address as a link. When the address points to an issue or pull request, the rewrite names it by number, such as "issue 620". The rewrite is model-generated, so an address may occasionally still be read aloud.
272
-
273
- See [`speech` configuration](config-reference.md#speech) for the default Maisie and Caleb voices and for choosing your own.
274
-
275
- `/auto-speak` toggles automatic reading of successful final answers, and briefly confirms the new mode. `/auto-speak on` and `/auto-speak off` set it explicitly, and turning it off also stops current playback.
276
-
277
- - It starts off and applies only to the current session in this TUI, also when attached remotely. `/new` turns it off.
278
- - It does not affect other clients or read earlier answers.
279
- - Commentary, tool activity, and failed or interrupted answers are not read.
280
- - Answers that arrive while recording or playing speech are not saved for later playback.
281
- - Escape stops playback without turning the mode off.
282
- - It uses the same voice, credentials, and rewriting as `/speak`. It never opens the microphone or submits dictation.
283
-
284
- ## See session status in your terminal
285
-
286
- The TUI reports the session's status to the terminal through the [Program Status Protocol (OSC 7501)](https://www.superlogical.com/rex/docs/build/program-status). A terminal such as Rex can use these reports to show which of your sessions need attention. Local and attached sessions report in the same way, and the report always comes from the TUI on your machine.
287
-
288
- | Status | Meaning |
289
- | --------- | ----------------------------------------------------------- |
290
- | `working` | A turn is running, including any tools it uses. |
291
- | `done` | The last turn finished successfully. |
292
- | `error` | The last turn failed or was blocked. |
293
- | `idle` | The session is waiting for input, or you canceled the turn. |
294
-
295
- `done` and `error` stay until the next turn starts. When you start the TUI, attach, or switch sessions, Tau reports only `working` or `idle`, so a turn that finished earlier appears as `idle`. Tau clears the status when you leave a session or exit.
296
-
297
- Each report contains only the status and `app=tau`. It never includes messages or other session content, and nothing is sent when the TUI's output is not a terminal. Tau reports only the main session, and it does not use the protocol's `blocked` state, even while a diff review waits for you.
298
-
299
- Terminals without support show nothing. Set `PI_PROGRAM_STATUS=0` on the TUI machine to turn reports off, or `PI_PROGRAM_STATUS=1` to send them without waiting for the terminal to confirm support.
300
-
301
- ## Reload the right component
69
+ The service must answer `201` with `{"version":1,"url":"https://example.com/document/123"}`. Tau shows the URL and never retries.
302
70
 
303
- Run `/reload` while idle after changing configuration, personas, prompts, skills, or `AGENTS.md` content in the execution environment. The host reads them again from the session's working directory, keeps the current persona if it still exists, and otherwise selects the first available persona. Warnings appear in the transcript. This also refreshes the session's speech vocabulary. MCP server definitions do not change on reload; a warning tells you when they differ, and [the configuration reference](config-reference.md#mcpservers) explains how to apply them.
71
+ ## Terminal status
304
72
 
305
- Restart the TUI instead after changing themes, voice, recording shortcut, personal speech vocabulary, or configured client tools. Codex auth storage is read again on every new request. Restart the host after changing its Tau version, environment variables, `apiKeys`, WebSocket listener, or hosted execution environment settings. [Credentials](credentials.md) and [remote sessions](remote-sessions.md) explain which process owns what.
73
+ The TUI reports `working`, `done`, `error`, or `idle` through the [Program Status Protocol](https://www.superlogical.com/rex/docs/build/program-status), so a supporting terminal can show which sessions need attention. Set `PI_PROGRAM_STATUS=0` to turn this off.
306
74
 
307
- ## Common mistakes
75
+ ## Startup flags
308
76
 
309
- - `!` and `!!` run in the execution environment, not on the attaching machine.
310
- - Enter during a turn steers it. Use Ctrl+Enter to queue another turn.
311
- - Exiting a WebSocket attachment does not delete the session and does not necessarily stop it. Exiting a local TUI shuts down its host, so running work is interrupted and saved where possible.
77
+ `--no-client-tools` stops the TUI from offering client tools, which you need when a second client attaches to the same session. `--no-agent-context-files` turns off `AGENTS.md` loading.