@markusylisiurunen/tau 0.3.102 → 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 (50) hide show
  1. package/README.md +18 -23
  2. package/dist/core/history/migrations.js +40 -0
  3. package/dist/core/history/migrations.js.map +1 -1
  4. package/dist/core/history/setup.js +24 -7
  5. package/dist/core/history/setup.js.map +1 -1
  6. package/dist/core/mcp/cli.js +1 -1
  7. package/dist/core/mcp/cli.js.map +1 -1
  8. package/dist/core/static/tau_docs/client-tools.md +46 -385
  9. package/dist/core/static/tau_docs/code-mode.md +104 -43
  10. package/dist/core/static/tau_docs/configuration.md +77 -171
  11. package/dist/core/static/tau_docs/getting-started.md +25 -96
  12. package/dist/core/static/tau_docs/history.md +30 -228
  13. package/dist/core/static/tau_docs/how-tau-works.md +53 -0
  14. package/dist/core/static/tau_docs/image-generation.md +15 -107
  15. package/dist/core/static/tau_docs/index.md +46 -46
  16. package/dist/core/static/tau_docs/instructions-and-skills.md +81 -0
  17. package/dist/core/static/tau_docs/manifest.json +15 -21
  18. package/dist/core/static/tau_docs/mcp.md +77 -0
  19. package/dist/core/static/tau_docs/models-and-credentials.md +67 -0
  20. package/dist/core/static/tau_docs/openrouter.md +31 -129
  21. package/dist/core/static/tau_docs/pdf-unpacking.md +8 -21
  22. package/dist/core/static/tau_docs/personas.md +48 -144
  23. package/dist/core/static/tau_docs/remote-sessions.md +33 -170
  24. package/dist/core/static/tau_docs/sdk.md +150 -0
  25. package/dist/core/static/tau_docs/security.md +6 -193
  26. package/dist/core/static/tau_docs/session-protocol.md +84 -246
  27. package/dist/core/static/tau_docs/sessions.md +41 -205
  28. package/dist/core/static/tau_docs/speech-generation.md +16 -129
  29. package/dist/core/static/tau_docs/subagents.md +57 -229
  30. package/dist/core/static/tau_docs/telegram.md +152 -192
  31. package/dist/core/static/tau_docs/tools.md +44 -167
  32. package/dist/core/static/tau_docs/troubleshooting.md +23 -217
  33. package/dist/core/static/tau_docs/tui.md +42 -282
  34. package/dist/core/version.js +1 -1
  35. package/dist/history/worker/index.js +16 -22
  36. package/dist/history/worker/index.js.map +1 -1
  37. package/dist/history/worker/migrations/0005_external_content.sql +58 -0
  38. package/dist/history/worker/migrations/0006_external_content_cutover.sql +44 -0
  39. package/package.json +2 -2
  40. package/dist/core/static/tau_docs/config-reference.md +0 -367
  41. package/dist/core/static/tau_docs/credentials.md +0 -165
  42. package/dist/core/static/tau_docs/models.md +0 -57
  43. package/dist/core/static/tau_docs/node-sdk.md +0 -430
  44. package/dist/core/static/tau_docs/ownership-and-scope.md +0 -107
  45. package/dist/core/static/tau_docs/prompts-and-project-context.md +0 -147
  46. package/dist/core/static/tau_docs/sdk-diff-review.md +0 -92
  47. package/dist/core/static/tau_docs/session-protocol-methods.md +0 -655
  48. package/dist/core/static/tau_docs/skills.md +0 -135
  49. package/dist/core/static/tau_docs/telegram-commands.md +0 -55
  50. package/dist/core/static/tau_docs/telegram-projects.md +0 -197
@@ -1,317 +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.
66
-
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.
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.
71
12
 
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.
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.
73
14
 
74
- Ctrl+T affects only what this TUI displays. It does not turn on reasoning, change its effort, or change the session history.
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`.
75
16
 
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`.
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.
83
25
 
84
- ## Slash commands
85
-
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. 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
- - Tab cycles the [cleanup style](#cleanup-styles) for this recording.
230
-
231
- The shortcut can be changed with [`speech.recordingShortcut`](config-reference.md#speech), including single-press or double-tap printable keys such as `§`. The editor hint shows the configured gesture. Starting a recording stops speech playback.
232
-
233
- While you speak, ElevenLabs Scribe shows a live preview in muted italics at the cursor. Pauses finalize segments while recording continues. Tau keeps finalized segments and replaces only the current preview.
234
-
235
- After sending the remaining audio, Tau asks Scribe to finalize without adding silence. Tau finishes on the first finalized segment after that request, or after two seconds using the latest text, even if unfinished. Later segments can be lost. The result comes from the live stream.
236
-
237
- The final transcript replaces the preview in normal text, without duplication. An empty transcript inserts nothing.
238
-
239
- A submitted draft that contains dictation carries hidden guidance saying that some or all of the message may have been transcribed from speech and may contain errors. The guidance survives edits and is removed when the draft is emptied.
240
-
241
- The editor is locked from the start of recording until transcription and cleanup finish. Escape cancels voice input at any stage: startup, recording, microphone shutdown, transcription, cleanup, or retry. Cancelling removes the preview at once, restores the original draft, and unlocks the editor without inserting or submitting anything. The cancelled recording is deleted once pending file work finishes. A transcription failure also restores the original draft. A recording or retry cannot start while another editor update is pending.
242
-
243
- At recording startup, GPT-6 Luna (reasoning disabled) extracts spelling hints from the recent conversation. Tau buffers audio until Scribe v2 Realtime is ready, then sends it at up to twice real time to catch up. Scribe detects the language and retains fillers and false starts. Transcription works without OpenAI credentials or hint extraction. Configured [`speech.vocabulary`](config-reference.md#speech) terms take priority: session terms first, then the TUI's global terms, then extracted hints. Live transcription uses only short hints.
244
-
245
- If transcription fails, Tau keeps the local WAV file and reports its path:
246
-
247
- - `/listen retry` transcribes the same audio again with Scribe v2, the current conversation, all hints, and the recording's cleanup style. Recordings over 20 minutes are rejected.
248
- - `/listen discard` deletes the file.
249
-
250
- Tau keeps at most one failed recording. A new recording deletes it only once the new capture is producing audio. Exiting leaves the file at the reported path so you can recover it.
251
-
252
- Install `ffmpeg`:
253
-
254
- ```sh
255
- brew install ffmpeg
256
- ```
257
-
258
- Transcription needs `ELEVENLABS_API_KEY` or `apiKeys.elevenlabs`, and cleanup needs `OPENAI_API_KEY` or `apiKeys.openai`. The TUI reads them, also when attached to a remote host.
259
-
260
- ### Cleanup styles
261
-
262
- `speech.cleanupStyle` sets each recording's initial style (`off` by default). Tab switches it for that recording. With `off`, Tau keeps the raw transcript.
263
-
264
- With `default`, Tau connects to OpenAI while you speak. Then GPT-6.1 Terra (reasoning disabled) removes fillers and false starts, fixes punctuation and grammar, applies explicit spoken corrections, writes numbers as numerals, and formats spoken lists. It is instructed to keep your wording, languages, names, facts, identifiers, and paths without summarizing or translating, and to use [recent conversation](config-reference.md#speech) only to fix misheard words.
265
-
266
- If cleanup fails, Tau reports it and inserts the uncleaned transcript. After Enter or Ctrl+Enter, the text stays in the editor for review instead of being submitted.
267
-
268
- ### Reading responses aloud
269
-
270
- `/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`.
271
-
272
- - It needs `OPENAI_API_KEY` or `apiKeys.openai` for rewriting, and `ELEVENLABS_API_KEY` or `apiKeys.elevenlabs` for synthesis.
273
- - It runs only while the session is idle. Escape stops it.
274
- - Longer responses are split into balanced parts, each aiming for at most two minutes of speech.
275
- - The source and rewritten text are limited to 10,000 Unicode characters, and generation stops after 32 MiB of raw audio.
276
- - Voice lookups and synthesis requests have a two-minute deadline.
277
- - 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.
278
-
279
- See [`speech` configuration](config-reference.md#speech) for the default Maisie and Caleb voices and for choosing your own.
280
-
281
- `/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.
282
-
283
- - It starts off and applies only to the current session in this TUI, also when attached remotely. `/new` turns it off.
284
- - It does not affect other clients or read earlier answers.
285
- - Commentary, tool activity, and failed or interrupted answers are not read.
286
- - Answers that arrive while recording or playing speech are not saved for later playback.
287
- - Escape stops playback without turning the mode off.
288
- - It uses the same voice, credentials, and rewriting as `/speak`. It never opens the microphone or submits dictation.
289
-
290
- ## See session status in your terminal
291
-
292
- 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.
293
-
294
- | Status | Meaning |
295
- | --------- | ----------------------------------------------------------- |
296
- | `working` | A turn is running, including any tools it uses. |
297
- | `done` | The last turn finished successfully. |
298
- | `error` | The last turn failed or was blocked. |
299
- | `idle` | The session is waiting for input, or you canceled the turn. |
300
-
301
- `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.
302
-
303
- 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.
304
-
305
- 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.
306
-
307
- ## 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.
308
70
 
309
- 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
310
72
 
311
- 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.
312
74
 
313
- ## Common mistakes
75
+ ## Startup flags
314
76
 
315
- - `!` and `!!` run in the execution environment, not on the attaching machine.
316
- - Enter during a turn steers it. Use Ctrl+Enter to queue another turn.
317
- - Exiting a WebSocket attachment does not delete the session and does not necessarily stop it. Exiting a local TUI shuts down its host, so running work is interrupted and saved where possible.
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.
@@ -1,3 +1,3 @@
1
- export const APP_VERSION = "0.3.102";
1
+ export const APP_VERSION = "0.3.103";
2
2
  export const PI_AI_VERSION = "1.5.0";
3
3
  //# sourceMappingURL=version.js.map
@@ -419,9 +419,7 @@ export async function applyOperation(database, operation) {
419
419
  const searchText = entrySearchText(entry);
420
420
  statements.push(database
421
421
  .prepare("INSERT INTO entries (session_id, position, entry_id, timestamp, payload_json, search_text) VALUES (?, ?, ?, ?, ?, ?)")
422
- .bind(operation.sessionId, position, entry.id, entry.timestamp, JSON.stringify(entry), searchText), database
423
- .prepare("INSERT INTO entries_fts (session_id, entry_id, position, text) VALUES (?, ?, ?, ?)")
424
- .bind(operation.sessionId, entry.id, position, searchText));
422
+ .bind(operation.sessionId, position, entry.id, entry.timestamp, JSON.stringify(entry), searchText));
425
423
  }
426
424
  if (statements.length > 0) {
427
425
  statements.push(database
@@ -432,9 +430,7 @@ export async function applyOperation(database, operation) {
432
430
  else {
433
431
  await requireSession(database, operation.sessionId);
434
432
  if (operation.afterEntryId === null) {
435
- statements.push(database
436
- .prepare("DELETE FROM entries_fts WHERE session_id = ?")
437
- .bind(operation.sessionId), database.prepare("DELETE FROM entries WHERE session_id = ?").bind(operation.sessionId));
433
+ statements.push(database.prepare("DELETE FROM entries WHERE session_id = ?").bind(operation.sessionId));
438
434
  }
439
435
  else {
440
436
  const retained = await database
@@ -445,8 +441,6 @@ export async function applyOperation(database, operation) {
445
441
  throw new HistoryApiError("not_found", `truncate entry '${operation.afterEntryId}' was not found`, 404);
446
442
  }
447
443
  statements.push(database
448
- .prepare("DELETE FROM entries_fts WHERE session_id = ? AND CAST(position AS INTEGER) > ?")
449
- .bind(operation.sessionId, retained.position), database
450
444
  .prepare("DELETE FROM entries WHERE session_id = ? AND position > ?")
451
445
  .bind(operation.sessionId, retained.position));
452
446
  }
@@ -523,8 +517,8 @@ async function search(database, raw, origin) {
523
517
  WHERE sessions_fts MATCH ?
524
518
  UNION ALL
525
519
  SELECT session_id, 1 AS source_rank
526
- FROM entries_fts
527
- WHERE entries_fts MATCH ?
520
+ FROM entries_search_fts
521
+ WHERE entries_search_fts MATCH ?
528
522
  ), ranked_sessions AS (
529
523
  SELECT session_id, MIN(source_rank) AS source_rank
530
524
  FROM matching_sessions
@@ -550,28 +544,28 @@ async function search(database, raw, origin) {
550
544
  PARTITION BY session_id
551
545
  ORDER BY CAST(position AS INTEGER), entry_id
552
546
  ) AS snippet_rank
553
- FROM entries_fts
554
- WHERE entries_fts MATCH ?
547
+ FROM entries_search_fts
548
+ WHERE entries_search_fts MATCH ?
555
549
  AND session_id IN (${sessionIds.map(() => "?").join(", ")})
556
550
  ), snippet_excerpts AS MATERIALIZED (
557
551
  SELECT ranked.entry_rowid, ranked.session_id, ranked.snippet_rank,
558
- substr(snippet(entries_fts, 3, '', '', '…', 32), 1, 361) AS excerpt
552
+ substr(snippet(entries_search_fts, 3, '', '', '…', 32), 1, 361) AS excerpt
559
553
  FROM ranked_snippets ranked
560
554
  -- Keep ranked rows outermost so snippet extraction uses rowid lookups.
561
- CROSS JOIN entries_fts ON entries_fts.rowid = ranked.entry_rowid
562
- WHERE ranked.snippet_rank <= 3 AND entries_fts MATCH ?
555
+ CROSS JOIN entries_search_fts ON entries_search_fts.rowid = ranked.entry_rowid
556
+ WHERE ranked.snippet_rank <= 3 AND entries_search_fts MATCH ?
563
557
  )
564
558
  SELECT session_id,
565
559
  CASE WHEN length(excerpt) <= 360 THEN excerpt ELSE (
566
560
  SELECT CASE
567
- WHEN length(snippet(entries_fts, 3, '', '', '…', 16)) <= 360
568
- THEN snippet(entries_fts, 3, '', '', '…', 16)
569
- WHEN length(snippet(entries_fts, 3, '', '', '…', 8)) <= 360
570
- THEN snippet(entries_fts, 3, '', '', '…', 8)
571
- ELSE substr(snippet(entries_fts, 3, '', '', '…', 1), 1, 360)
561
+ WHEN length(snippet(entries_search_fts, 3, '', '', '…', 16)) <= 360
562
+ THEN snippet(entries_search_fts, 3, '', '', '…', 16)
563
+ WHEN length(snippet(entries_search_fts, 3, '', '', '…', 8)) <= 360
564
+ THEN snippet(entries_search_fts, 3, '', '', '…', 8)
565
+ ELSE substr(snippet(entries_search_fts, 3, '', '', '…', 1), 1, 360)
572
566
  END
573
- FROM entries_fts
574
- WHERE rowid = snippet_excerpts.entry_rowid AND entries_fts MATCH ?
567
+ FROM entries_search_fts
568
+ WHERE rowid = snippet_excerpts.entry_rowid AND entries_search_fts MATCH ?
575
569
  ) END AS match_text
576
570
  FROM snippet_excerpts
577
571
  ORDER BY session_id, snippet_rank`)