@markusylisiurunen/tau 0.3.101 → 0.3.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/core/config/ownership.js +3 -1
  2. package/dist/core/config/ownership.js.map +1 -1
  3. package/dist/core/config/schema.js +3 -1
  4. package/dist/core/config/schema.js.map +1 -1
  5. package/dist/core/history/migrations.js +6 -1
  6. package/dist/core/history/migrations.js.map +1 -1
  7. package/dist/core/static/tau_docs/config-reference.md +17 -5
  8. package/dist/core/static/tau_docs/credentials.md +4 -4
  9. package/dist/core/static/tau_docs/index.md +2 -1
  10. package/dist/core/static/tau_docs/manifest.json +1 -0
  11. package/dist/core/static/tau_docs/prompts-and-project-context.md +4 -4
  12. package/dist/core/static/tau_docs/session-protocol.md +1 -1
  13. package/dist/core/static/tau_docs/telegram-commands.md +55 -0
  14. package/dist/core/static/tau_docs/telegram.md +10 -38
  15. package/dist/core/static/tau_docs/tui.md +17 -11
  16. package/dist/core/subagents/claude_code_runner.mjs +65 -65
  17. package/dist/core/telegram/adapter.js +178 -61
  18. package/dist/core/telegram/adapter.js.map +1 -1
  19. package/dist/core/telegram/cli.js +1 -3
  20. package/dist/core/telegram/cli.js.map +1 -1
  21. package/dist/core/telegram/config.js +3 -1
  22. package/dist/core/telegram/config.js.map +1 -1
  23. package/dist/core/telegram/runtime.js +1 -1
  24. package/dist/core/telegram/runtime.js.map +1 -1
  25. package/dist/core/utils/scribe_transcription.js +283 -0
  26. package/dist/core/utils/scribe_transcription.js.map +1 -0
  27. package/dist/core/utils/speech_cleanup.js +198 -0
  28. package/dist/core/utils/speech_cleanup.js.map +1 -0
  29. package/dist/core/utils/speech_to_text.js +3 -3
  30. package/dist/core/utils/speech_to_text_keywords.js +5 -4
  31. package/dist/core/utils/speech_to_text_keywords.js.map +1 -1
  32. package/dist/core/version.js +1 -1
  33. package/dist/diff_tool/app/dist/assets/{core-CXVpaOO1.js → core-Cnp6wBC7.js} +1 -1
  34. package/dist/diff_tool/app/dist/assets/engine-oniguruma-ConHyUk6.js +1 -0
  35. package/dist/diff_tool/app/dist/assets/{highlights-DuJNYjEh.js → highlights-DeO0fGqQ.js} +1 -1
  36. package/dist/diff_tool/app/dist/assets/index-BDuQ2wXS.js +221 -0
  37. package/dist/diff_tool/app/dist/assets/langs-DDFHLNuJ.js +1 -0
  38. package/dist/diff_tool/app/dist/assets/{loader-bi21_x0K.js → loader-DrwOwtvp.js} +1 -1
  39. package/dist/diff_tool/app/dist/assets/{preload-helper-CRzLMJPS.js → preload-helper-DclECHGd.js} +1 -1
  40. package/dist/diff_tool/app/dist/assets/{shiki-D6ZyrNQD.js → shiki-CwKGJZFi.js} +2 -2
  41. package/dist/diff_tool/app/dist/assets/{stream-tokenizer-BdsyU_yB.js → stream-tokenizer-D4-m26wx.js} +1 -1
  42. package/dist/diff_tool/app/dist/assets/{themes-9lpTYI_i.js → themes-Do3waJhf.js} +2 -2
  43. package/dist/diff_tool/app/dist/index.html +2 -2
  44. package/dist/history/worker/index.js +77 -51
  45. package/dist/history/worker/index.js.map +1 -1
  46. package/dist/history/worker/migrations/0003_digest_schedule.sql +36 -0
  47. package/dist/history/worker/migrations/0004_recent_sessions.sql +1 -0
  48. package/dist/store/session_snapshot_migrations.js +14 -1
  49. package/dist/store/session_snapshot_migrations.js.map +1 -1
  50. package/dist/tui/chat_view.js +3 -1
  51. package/dist/tui/chat_view.js.map +1 -1
  52. package/dist/tui/listen_capture.js +7 -5
  53. package/dist/tui/listen_capture.js.map +1 -1
  54. package/dist/tui/session_chat_controller.js +93 -15
  55. package/dist/tui/session_chat_controller.js.map +1 -1
  56. package/dist/tui/ui/custom_editor.js +3 -0
  57. package/dist/tui/ui/custom_editor.js.map +1 -1
  58. package/package.json +8 -7
  59. package/dist/core/utils/gemini_transcription.js +0 -566
  60. package/dist/core/utils/gemini_transcription.js.map +0 -1
  61. package/dist/diff_tool/app/dist/assets/engine-oniguruma-Rz_7DPcV.js +0 -1
  62. package/dist/diff_tool/app/dist/assets/index-F9is7PUw.js +0 -221
  63. package/dist/diff_tool/app/dist/assets/langs-CTftvgbb.js +0 -1
@@ -19,6 +19,7 @@ const CONFIG_FIELD_OWNERS = {
19
19
  };
20
20
  const SPEECH_FIELD_OWNERS = {
21
21
  voiceId: "client",
22
+ cleanupStyle: "client",
22
23
  recordingShortcut: "client",
23
24
  vocabulary: "session",
24
25
  };
@@ -34,11 +35,12 @@ export function toHostConfig(config) {
34
35
  return pickOwnedFields(config, ["process", "host"]);
35
36
  }
36
37
  export function toClientConfig(config, personalVocabulary) {
37
- const { voiceId, recordingShortcut } = config.speech ?? {};
38
+ const { voiceId, recordingShortcut, cleanupStyle } = config.speech ?? {};
38
39
  return {
39
40
  ...pickOwnedFields(config, ["process", "client"]),
40
41
  speech: {
41
42
  ...(voiceId !== undefined ? { voiceId } : {}),
43
+ ...(cleanupStyle !== undefined ? { cleanupStyle } : {}),
42
44
  ...(recordingShortcut !== undefined ? { recordingShortcut } : {}),
43
45
  personalVocabulary,
44
46
  },
@@ -1 +1 @@
1
- {"version":3,"file":"ownership.js","sourceRoot":"","sources":["../../../src/core/config/ownership.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAIxD,kGAAkG;AAClG,0FAA0F;AAC1F,MAAM,mBAAmB,GAAG;IAC1B,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,MAAM;IAClB,YAAY,EAAE,QAAQ;IACtB,cAAc,EAAE,QAAQ;IACxB,WAAW,EAAE,QAAQ;IACrB,kBAAkB,EAAE,QAAQ;IAC5B,cAAc,EAAE,SAAS;IACzB,SAAS,EAAE,SAAS;IACpB,kBAAkB,EAAE,SAAS;IAC7B,UAAU,EAAE,SAA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M,EAAE,wBAAwB,CAAC,CAAC;AAC1D,CAAC;AAED,mGAAmG;AACnG,MAAM,UAAU,iBAAiB,CAAC,GAAW,EAAE,IAAgB;IAC7D,OAAO,eAAe,CAAC,sBAAsB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;AACnE,CAAC"}
@@ -6,6 +6,7 @@ import { formatPersonaReference, parsePersonaReference } from "../persona_refere
6
6
  import { parseSubagentLaunchModelList } from "../subagents/launch_model.js";
7
7
  import { REASONING_LEVELS } from "../types.js";
8
8
  import { normalizeModelNoticeKey } from "../utils/model_notices.js";
9
+ import { speechCleanupStyleSchema } from "../utils/speech_cleanup.js";
9
10
  import { normalizeSpeechToTextKeywords, SPEECH_TO_TEXT_MAX_VOCABULARY_CHARACTERS, speechToTextKeywordSchema, } from "../utils/speech_to_text_keywords.js";
10
11
  import { parseCommandClientToolsConfig, parseEnabledClientToolsConfig, resolveCommandClientToolsConfig, selectCommandClientTools, } from "./client_tools.js";
11
12
  import { markdownExportConfigSchema } from "./markdown_export.js";
@@ -175,6 +176,7 @@ function validateConfigData(raw, sourceLabel, options) {
175
176
  z
176
177
  .object({
177
178
  voiceId: NonEmptyStringSchema.optional(),
179
+ cleanupStyle: speechCleanupStyleSchema.optional(),
178
180
  vocabulary: z.array(speechToTextKeywordSchema).optional(),
179
181
  recordingShortcut: z
180
182
  .object({
@@ -187,7 +189,7 @@ function validateConfigData(raw, sourceLabel, options) {
187
189
  .optional(),
188
190
  })
189
191
  .strip(),
190
- "'speech' must contain a non-empty voiceId, a vocabulary array of non-empty terms of at most 100 characters without angle brackets or line breaks, or a recordingShortcut with a printable key, ctrl+y, or f1–f12 and a press or double-tap gesture.",
192
+ "'speech' must contain cleanupStyle off or default, a non-empty voiceId, a vocabulary array of non-empty terms of at most 50 characters and 5 words, without line breaks or the characters < > { } [ ] \\, or a recordingShortcut with a printable key, ctrl+y, or f1–f12 and a press or double-tap gesture.",
191
193
  ],
192
194
  ]);
193
195
  Object.assign(config, scalarResult.values);
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/core/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iCAAiC,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAEL,aAAa,EACb,iBAAiB,GAElB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACxF,OAAO,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAwB,MAAM,aAAa,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EACL,6BAA6B,EAC7B,wCAAwC,EACxC,yBAAyB,GAC1B,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B,EAC/B,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAA6B,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAC7F,OAAO,EAAyB,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAEjG,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC9C,MAAM,EAAE;KACR,GAAG,EAAE;KACL,GAAG,CAAC,iCAAiC,CAAC,CAAC;AAgG1C,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACtD,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,EA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EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;IACrD,OAAO,SAAS,IAAI,SAAS,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,gBAAgB,CAC9B,MAAqB,EACrB,GAAuB;IAEvB,MAAM,MAAM,GAAG,kBAAkB,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC;IAC1D,IAAI,MAAM,EAAE,CAAC;QACX,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAClD,OAAO,SAAS,IAAI,SAAS,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,gBAAgB,CAC9B,MAAqB,EACrB,GAAuB;IAEvB,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,qBAAqB,EAAE,GAAG,CAAC,CAAC;IACzE,IAAI,iBAAiB;QAAE,OAAO,iBAAiB,CAAC;IAChD,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC;IACzC,IAAI,OAAO,EAAE,CAAC;QACZ,MAAM,SAAS,GAAG,kBAAkB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QACnD,IAAI,SAAS;YAAE,OAAO,SAAS,CAAC;IAClC,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,SAAS,CAAC;AAC5C,CAAC"}
@@ -1,2 +1,7 @@
1
- export const HISTORY_MIGRATION_NAMES = ["0001_initial.sql", "0002_parent_session.sql"];
1
+ export const HISTORY_MIGRATION_NAMES = [
2
+ "0001_initial.sql",
3
+ "0002_parent_session.sql",
4
+ "0003_digest_schedule.sql",
5
+ "0004_recent_sessions.sql",
6
+ ];
2
7
  //# sourceMappingURL=migrations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"migrations.js","sourceRoot":"","sources":["../../../src/core/history/migrations.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,kBAAkB,EAAE,yBAAyB,CAAU,CAAC"}
1
+ {"version":3,"file":"migrations.js","sourceRoot":"","sources":["../../../src/core/history/migrations.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,kBAAkB;IAClB,yBAAyB;IACzB,0BAA0B;IAC1B,0BAA0B;CAClB,CAAC"}
@@ -22,7 +22,7 @@ Project and global content can change which persona ids exist. A configured defa
22
22
  | --- | --- | --- | --- | --- |
23
23
  | `apiKeys` | Object of string values | Global only | Provider-keyed map | Owning host or feature process; restart after changes |
24
24
  | `defaultPersona` | Non-empty string | Global, project | Most-specific wins | Session host; new session |
25
- | `speech` | Object with optional `voiceId`, `recordingShortcut`, and `vocabulary` | Global, project | Merge by field; vocabulary is additive | `voiceId` and `recordingShortcut`: TUI client or Telegram runner; process restart. `vocabulary`: session host; `/reload` or new session. Global `vocabulary` terms are also read by the client; process restart |
25
+ | `speech` | Object with optional `voiceId`, `recordingShortcut`, `cleanupStyle`, and `vocabulary` | Global, project | Merge by field; vocabulary is additive | `voiceId`, `recordingShortcut`, and `cleanupStyle`: client; process restart. `vocabulary`: session host; `/reload` or new session. Global `vocabulary` terms are also read by the client; process restart |
26
26
  | `defaultTheme` | Non-empty string | Global, project | Most-specific wins | TUI client; client restart |
27
27
  | `markdownExport` | Object with `url` and optional `token`, `tokenEnv` | Global only | One global object | TUI client; client restart |
28
28
  | `clientTools` | Array of objects | Global only | One global definition list | Owning client; TUI restart or new Telegram session client |
@@ -155,6 +155,18 @@ For terminal recording, `recordingShortcut` replaces Ctrl+Y. Its required `key`
155
155
 
156
156
  A double tap must arrive within 300 ms. For printable double-tap bindings, an unmatched first tap inserts the character after that delay; another key inserts it immediately before processing the new input. A single-press binding reserves its character, so it can no longer be typed. Bracketed paste never triggers recording. Keyboard auto-repeat can count as repeated taps. Recording shortcuts apply only to the TUI, not Telegram.
157
157
 
158
+ For terminal dictation, `cleanupStyle` sets the initial [cleanup style](tui.md#cleanup-styles) for each recording. It accepts `"off"` (the default) or `"default"`. Tab changes the style for the current recording only. Enabling cleanup prepares the OpenAI connection and instructions during recording.
159
+
160
+ ```json
161
+ {
162
+ "speech": {
163
+ "cleanupStyle": "default"
164
+ }
165
+ }
166
+ ```
167
+
168
+ Telegram uses its separate per-bot `speechCleanupStyle` setting.
169
+
158
170
  For dictation, `vocabulary` supplies spelling hints for recurring names, identifiers, and short phrases:
159
171
 
160
172
  ```json
@@ -165,11 +177,11 @@ For dictation, `vocabulary` supplies spelling hints for recurring names, identif
165
177
  }
166
178
  ```
167
179
 
168
- Define personal terms in `~/.config/tau/config.json` and project terms in `.tau/config.json`. Tau combines the nearest project's entries first, then parent projects, then global entries, preserving each list's order. An omitted list or `[]` adds nothing and does not clear inherited terms. Entries are trimmed and deduplicated case-insensitively, preserving the first spelling. Invalid entries produce a configuration warning: each entry must be a non-empty string of at most 100 Unicode characters, without angle brackets or internal line breaks.
180
+ Define personal terms in `~/.config/tau/config.json` and project terms in `.tau/config.json`. Tau combines the nearest project's entries first, then parent projects, then global entries, preserving each list's order. An omitted list or `[]` adds nothing and does not clear inherited terms. Entries are trimmed and deduplicated case-insensitively, preserving the first spelling. Invalid entries produce a configuration warning. Each entry must be a non-empty string of at most 50 Unicode characters and 5 words, without line breaks or any of the characters `<`, `>`, `{`, `}`, `[`, `]`, and `\`.
169
181
 
170
- Tau appends keywords extracted from the recent conversation after configured terms. The combined list is limited to 100 terms and 10,000 Unicode characters, so explicit project terms take priority. These are Tau's limits. [Gemini's custom vocabulary](https://ai.google.dev/gemini-api/docs/transcribe) supports up to 1,000 terms and recommends up to 100 for best results; it cannot be combined with speaker diarization or word-level timestamps, which Tau does not request.
182
+ Tau appends keywords extracted from the recent conversation after configured terms. The combined list is limited to 1,000 terms and 50,000 Unicode characters, so explicit project terms take priority. Live dictation sends only the first 50 terms that have at most 20 characters, because ElevenLabs limits realtime hints more strictly. Recording retries and Telegram audio send the full list. For file transcription, [ElevenLabs charges](https://elevenlabs.io/docs/api-reference/speech-to-text/convert) 20% more when keyterms are present, and bills a request with more than 100 terms for at least 20 seconds of audio.
171
183
 
172
- Vocabulary goes directly to Gemini as transcription hints for live dictation, recording retries, and Telegram audio. It does not instruct the model to insert words or replace text afterward. Configured terms still work without conversation context, without OpenAI credentials, or when keyword extraction fails. With no vocabulary configured, Tau uses only context-derived hints.
184
+ Vocabulary goes directly to ElevenLabs Scribe as keyterms for live dictation, recording retries, and Telegram audio. It does not instruct the model to insert words or replace text afterward. When speech cleanup is on in the [TUI](tui.md#cleanup-styles) or [Telegram](telegram.md#bots-and-access-control), the cleanup model also receives the terms, only to correct spelling. It gets recent conversation too: the session's last two user messages and the agent's final replies after them, without tool calls or results. This context is limited to about 8,192 tokens, keeping the newest text. The model is instructed to use this context only to fix words that were likely misheard. It is told not to add facts, answer the dictated request, or turn a vague reference into a guessed name, and to keep the transcript's word when unsure. Configured terms still work without conversation context, without OpenAI credentials, or when keyword extraction fails. With no vocabulary configured, Tau uses only context-derived hints.
173
185
 
174
186
  Without an override, Tau looks up Maisie (`QtY3JBOUKEB5xzrRfOKc`) before synthesis and tries Caleb (`AaOhDHYJ1XLZk74lXhdE`) only if ElevenLabs reports that Maisie was not found. If neither is available, speech fails. A configured voice is the only voice Tau tries. If it is unavailable, speech fails without falling back to a default.
175
187
 
@@ -177,7 +189,7 @@ Authentication, permission, rate-limit, and network errors during voice lookup d
177
189
 
178
190
  Speech uses Eleven v4 Turbo, the delivery note `[Brisk but relaxed, speaking naturally to a colleague]`, and a 1.15× tempo adjustment. GPT-6 Luna rewrites the text with reasoning disabled before ElevenLabs synthesis, so both OpenAI and ElevenLabs credentials are required. Voice Library API access may require a paid ElevenLabs plan, and shared voices can become unavailable.
179
191
 
180
- `voiceId` and `recordingShortcut` come from the client's own configuration. The TUI reads them from its startup directory's configuration, also when attached to a remote host, and Telegram reads `voiceId` from the runner's startup configuration. Restart the respective process after changes. `voiceId` does not affect the explicit voices supplied to `tau tool speech-generate`.
192
+ `voiceId`, `recordingShortcut`, and `cleanupStyle` come from the client's own configuration. The TUI reads them from its startup directory's configuration, also when attached to a remote host, and Telegram reads `voiceId` from the runner's startup configuration. Restart the respective process after changes. `voiceId` does not affect the explicit voices supplied to `tau tool speech-generate`.
181
193
 
182
194
  Vocabulary follows the session. The host resolves it from the global and project levels of the session's working directory, on the execution environment. The client that transcribes the audio then adds the terms from its own global configuration, after the session's terms. Project configuration in the client's startup directory is not used. For example:
183
195
 
@@ -51,13 +51,13 @@ Features check the environment variable first, then global configuration:
51
51
  | Feature | Resolution order |
52
52
  | --- | --- |
53
53
  | Exa web search and fetch | `EXA_API_KEY`, then `apiKeys.exa` |
54
- | Google image generation, speech-to-text, and Telegram transcription | `GEMINI_API_KEY`, then `apiKeys.google` |
54
+ | Google image generation | `GEMINI_API_KEY`, then `apiKeys.google` |
55
55
  | Mistral PDF OCR | `MISTRAL_API_KEY`, then `apiKeys.mistral` |
56
56
  | OpenRouter decisions and chat | `OPENROUTER_API_KEY`, then `apiKeys.openrouter` |
57
- | OpenAI image generation, speech rewriting, and transcription spelling hints | `OPENAI_API_KEY`, then `apiKeys.openai` |
58
- | ElevenLabs speech generation, `/speak` synthesis, Telegram voice synthesis, and voice listing | `ELEVENLABS_API_KEY`, then `apiKeys.elevenlabs` |
57
+ | OpenAI image generation, speech rewriting, transcription spelling hints, and transcript cleanup | `OPENAI_API_KEY`, then `apiKeys.openai` |
58
+ | ElevenLabs speech generation, `/speak` synthesis, Telegram voice synthesis, voice listing, speech-to-text, and Telegram transcription | `ELEVENLABS_API_KEY`, then `apiKeys.elevenlabs` |
59
59
 
60
- `web.discover` does not require Exa. `web.search` and `web.fetch` do. `/speak` and Telegram `/tts_on` voice responses require OpenAI for text rewriting and ElevenLabs for synthesis. `/listen` and incoming Telegram voice notes use Google, with optional OpenAI spelling hints. PDF OCR through `tau tool pdf-unpack` uses Mistral.
60
+ `web.discover` does not require Exa. `web.search` and `web.fetch` do. `/speak` and Telegram `/tts_on` voice responses require OpenAI for text rewriting and ElevenLabs for synthesis. `/listen` and incoming Telegram voice notes use ElevenLabs, with optional OpenAI spelling hints and transcript cleanup. PDF OCR through `tau tool pdf-unpack` uses Mistral.
61
61
 
62
62
  Set these on the process that runs the feature. For example, `/speak` in an attached TUI reads `OPENAI_API_KEY` and `ELEVENLABS_API_KEY` on the client machine, while a session that uses a Google model reads its key on the host.
63
63
 
@@ -36,7 +36,8 @@ These pages describe how to install, configure, operate, and integrate the versi
36
36
  - [Sessions](sessions.md): creating sessions, turns, queueing, compaction, rewind, recovery, and storage.
37
37
  - [Remote sessions](remote-sessions.md): `serve`, `attach`, remote paths, and authentication.
38
38
  - [History](history.md): searchable local history, optional remote replication, and the history tool.
39
- - [Telegram](telegram.md): running the Telegram runner, bot access, chat commands, attachments, and recovery.
39
+ - [Telegram](telegram.md): running the Telegram runner, bot access, attachments, and recovery.
40
+ - [Telegram chat commands](telegram-commands.md): commands for projects, sessions, personas, effort, prompts, and compaction, and how to use them in groups.
40
41
  - [Telegram projects and workspaces](telegram-projects.md): repository, persistent-directory, and composite projects, workspace lifecycle, and provision hooks.
41
42
 
42
43
  ## Run command-line tools
@@ -27,6 +27,7 @@
27
27
  "sdk-diff-review.md",
28
28
  "history.md",
29
29
  "telegram.md",
30
+ "telegram-commands.md",
30
31
  "telegram-projects.md",
31
32
  "security.md",
32
33
  "troubleshooting.md"
@@ -52,13 +52,13 @@ The session stores only each prompt's ID and label. Tau reads the body from the
52
52
 
53
53
  If the file is missing or invalid when Tau reads it, the command fails. Tau never falls back to an older copy of the body. An attached client always gets the prompt from the session's execution environment, never from a file with the same name on the client machine.
54
54
 
55
- ### Telegram prompt picker
55
+ ### Telegram prompts
56
56
 
57
- In [Telegram](telegram.md), `/prompt` lists the active session's saved prompts, split into pages when there are many. Selecting one reads its current body and adds it to the session as a user message, without starting a turn. You can select a prompt only while the session is idle. Otherwise, wait for Tau to finish or use `/interrupt` first.
57
+ In [Telegram](telegram.md), `/prompt` opens a picker with the active session's saved prompts, split into pages when there are many. `/prompt <id>` chooses a prompt [directly](telegram-commands.md#choose-a-persona-effort-or-prompt). Either way, Tau reads the prompt's current body and adds it to the session as a user message, without starting a turn. You can add a prompt only while the session is idle. Otherwise, wait for Tau to finish or use `/interrupt` first.
58
58
 
59
- After a prompt is added, the picker's buttons stop working and it shows the prompt text, split across more messages if needed. Send a normal message, such as details or “go”, to start the next turn with the prompt in context. In groups, that message must mention the bot as usual. Selecting another prompt adds another message; it does not replace the first. Added prompts survive session recovery.
59
+ After a prompt is added, any open picker's buttons stop working and the bot shows the prompt text, split across more messages if needed. Send a normal message, such as details or “go”, to start the next turn with the prompt in context. In groups, that message must mention the bot as usual. Adding another prompt adds another message and does not replace the first. Added prompts survive session recovery.
60
60
 
61
- Only the newest picker in a chat works. A picker belongs to the session that opened it and expires after a selection, when the session is replaced, or when the runner restarts. Tapping twice does not add the prompt twice. Selecting a prompt does not use up pending attachments or group context.
61
+ Only the newest picker in a chat works. A picker belongs to the session that opened it and expires after a prompt is added, when the session is replaced, or when the runner restarts. Tapping twice does not add the prompt twice. Adding a prompt does not use up pending attachments or group context.
62
62
 
63
63
  ## `AGENTS.md` provides standing context
64
64
 
@@ -144,7 +144,7 @@ catalog.mcp:
144
144
 
145
145
  A listed server may not be connected yet, because servers connect on first use. Connection settings and credentials are never included. The host sets this field when it loads the session, and it stays the same until the host loads the session again.
146
146
 
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.
147
+ `catalog.speechVocabulary` holds the session's merged [`speech.vocabulary`](config-reference.md#speech) terms. The list has at most 1,000 terms and at most 50,000 Unicode characters in total. Each term is trimmed and non-empty, has at most 50 Unicode characters and 5 words, and contains no line breaks or any of the characters `<`, `>`, `{`, `}`, `[`, `]`, and `\`. Clients that transcribe speech use these terms for this session. The host resolves them again on load, reload, and persona changes.
148
148
 
149
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.
150
150
 
@@ -0,0 +1,55 @@
1
+ # Telegram chat commands
2
+
3
+ Send these commands to a [Telegram](telegram.md) bot from a DM or an allowed group.
4
+
5
+ ## Commands
6
+
7
+ | Command | Behavior |
8
+ | --- | --- |
9
+ | `/use_<projectId>` | Selects the project for future `/new` sessions. |
10
+ | `/new` | Replaces the active session using the preferred project. |
11
+ | `/status` | Reports session state, project, model, reasoning, context usage, and cost. |
12
+ | `/persona [value]` | [Applies a persona or preset](#choose-a-persona-effort-or-prompt) while idle, without losing history or starting a turn. |
13
+ | `/effort [value]` | [Selects a reasoning level](#choose-a-persona-effort-or-prompt) for future turns. |
14
+ | `/prompt [value]` | [Records a saved prompt](prompts-and-project-context.md#telegram-prompts) while idle, without starting a turn. |
15
+ | `/auto_compact [tokens\|default]` | Shows the automatic-compaction threshold. Pass `50k` or `50000` to set it (minimum 50,000 tokens), or `default` to remove the session override and use the default. |
16
+ | `/compact` | Runs summary-only compaction while idle. |
17
+ | `/interrupt` | Interrupts the active Tau turn. |
18
+ | `/tts_on` | Sends a voice note after each final assistant response. |
19
+ | `/tts_off` | Disables voice responses. |
20
+
21
+ Changes to the auto-compaction threshold apply from the next turn and survive session recovery. `/status` shows context usage as a percentage of the full model window. When a session override is set, or the default threshold is below the model-based threshold, it also shows the effective threshold in parentheses. See [compaction thresholds](telegram.md#compaction-thresholds) for bot defaults and [automatic compaction](sessions.md#automatic-compaction) for limits and costs.
22
+
23
+ A [persona](personas.md) or preset choice applies to the current session only. `/new` starts from the bot's [`startup`](telegram.md#startup-and-presets).
24
+
25
+ Preferences are saved per bot and chat, and survive restarts and new sessions. A project change applies at the next `/new`, not to the current session.
26
+
27
+ In groups, commands must explicitly mention the bot. Accepted forms include:
28
+
29
+ ```text
30
+ /status@tau_engineering_bot
31
+ /status @tau_engineering_bot
32
+ @tau_engineering_bot /status
33
+ ```
34
+
35
+ Commands addressed to other bots are ignored.
36
+
37
+ ## Choose a persona, effort, or prompt
38
+
39
+ `/persona`, `/effort`, and `/prompt` work the same way. Send the command alone to choose from buttons, or add a value to apply a choice directly:
40
+
41
+ | Example | Value |
42
+ | --- | --- |
43
+ | `/persona deep review` | The preset's key when the bot has `presets`, and otherwise the persona ID. |
44
+ | `/effort low` | `low`, `medium`, `high`, or `xhigh`. |
45
+ | `/prompt release-summary` | The saved prompt's ID. |
46
+
47
+ A typed value and a button follow the same rules. `/persona` and `/prompt` need an idle session. `/effort` also works during a turn: the running turn keeps its effort, and the next turn uses the new one.
48
+
49
+ `/effort` accepts only the levels in the persona's `allowedReasoningLevels` when that list is non-empty, and it has no choices for a model without reasoning.
50
+
51
+ Typed values are case-sensitive. Buttons for personas and presets show labels, and a typed value does not match a label, so use the key or ID from your configuration. A value that matches nothing changes no settings, and the bot points you to the command's buttons.
52
+
53
+ Any run of whitespace counts as one space when a value is compared, both in what you type and in the key or ID. For example, `/persona deep review` selects the preset `deep review`. If two keys or IDs become identical this way, such as `deep review` and `deep review`, typing that value is rejected, and the buttons still offer both.
54
+
55
+ Only the newest set of buttons for a command works. Buttons expire after a choice is applied, when the session is replaced, or when the runner restarts.
@@ -79,6 +79,7 @@ Each `bots.<id>` object supports:
79
79
  | `allowedChatIds` | No | Integer chat IDs allowed to interact with the bot; also opts groups in. |
80
80
  | `defaultProjectId` | No | Initial project preference, and must be allowed for this bot. |
81
81
  | `systemMessage` | No | Additional instruction for turns from this bot. |
82
+ | `speechCleanupStyle` | No | `off` or `default`. Cleans up voice note transcripts for this bot with the [`default` style](tui.md#cleanup-styles). Defaults to `off`. |
82
83
 
83
84
  The runner retries failed polling after 1,000 ms and uses a 30-second Telegram long-poll timeout.
84
85
 
@@ -88,7 +89,7 @@ Use both lists for a private bot. `allowedUserIds` decides who can start work, b
88
89
 
89
90
  A bot sees only its `allowedProjectIds`, or every project if the field is missing. If only one project is allowed, it is selected automatically and the command palette omits `/use_<project>` commands. The command still works when typed directly. Otherwise the palette includes project-switch commands, and a chat needs `defaultProjectId` or a `/use_<project>` choice before `/new`. Each startup replaces the palette, removing switch commands if the bot now has only one available project.
90
91
 
91
- Telegram allows 100 commands per bot: thirteen built-ins and up to 87 `/use_<projectId>` commands. With `presets: {}`, `/persona` is hidden, which leaves room for one more project command.
92
+ Telegram allows 100 commands per bot: ten built-ins and up to 90 `/use_<projectId>` commands. With `presets: {}`, `/persona` is hidden, which leaves room for one more project command.
92
93
 
93
94
  ## Projects
94
95
 
@@ -124,38 +125,7 @@ The runner loads its speech credentials and `speech.voiceId` at startup, from it
124
125
 
125
126
  ## Chat commands
126
127
 
127
- | Command | Behavior |
128
- | --- | --- |
129
- | `/use_<projectId>` | Selects the project for future `/new` sessions. |
130
- | `/new` | Replaces the active session using the preferred project. |
131
- | `/status` | Reports session state, project, model, reasoning, context usage, and cost. |
132
- | `/persona` | Applies a persona or preset from a menu while idle, without losing history or starting a turn. |
133
- | `/effort_low` | Selects low reasoning for future turns. |
134
- | `/effort_medium` | Selects medium reasoning for future turns. |
135
- | `/effort_high` | Selects high reasoning for future turns. |
136
- | `/effort_xhigh` | Selects xhigh reasoning for future turns. |
137
- | `/prompt` | [Records a saved prompt](prompts-and-project-context.md#telegram-prompt-picker) while idle, without starting a turn. |
138
- | `/auto_compact [tokens\|default]` | Shows the automatic-compaction threshold. Pass `50k` or `50000` to set it (minimum 50,000 tokens), or `default` to remove the session override and use the default. |
139
- | `/compact` | Runs summary-only compaction while idle. |
140
- | `/interrupt` | Interrupts the active Tau turn. |
141
- | `/tts_on` | Sends a voice note after each final assistant response. |
142
- | `/tts_off` | Disables voice responses. |
143
-
144
- Changes to the auto-compaction threshold apply from the next turn and survive session recovery. `/status` shows context usage as a percentage of the full model window. When a session override is set, or the default threshold is below the model-based threshold, it also shows the effective threshold in parentheses. See [compaction thresholds](#compaction-thresholds) for bot defaults and [automatic compaction](sessions.md#automatic-compaction) for limits and costs.
145
-
146
- A [persona](personas.md) or preset choice applies to the current session only. `/new` starts from the bot's `startup`.
147
-
148
- Preferences are saved per bot and chat, and survive restarts and new sessions. A project change applies at the next `/new`, not to the current session.
149
-
150
- In groups, commands must explicitly mention the bot. Accepted forms include:
151
-
152
- ```text
153
- /status@tau_engineering_bot
154
- /status @tau_engineering_bot
155
- @tau_engineering_bot /status
156
- ```
157
-
158
- Commands addressed to other bots are ignored.
128
+ Commands select projects and sessions and change a session's persona, effort, and other settings. [Telegram chat commands](telegram-commands.md) lists them and how they work in groups.
159
129
 
160
130
  ## Startup and presets
161
131
 
@@ -182,9 +152,9 @@ Commands addressed to other bots are ignored.
182
152
  - A `workspace` preset resolves the workspace's `defaultPersona` each time it is applied.
183
153
  - A `persona` preset names a persona ID without an effort suffix. Its optional `reasoning` is one of `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, or `max`, and defaults to the persona's own setting. Its optional `autoCompactThresholdTokens` is [described below](#compaction-thresholds).
184
154
 
185
- Every preset needs a non-empty `label`. Keys must be non-empty, without surrounding whitespace.
155
+ Every preset needs a non-empty `label`. Keys must be non-empty, without surrounding whitespace. [`/persona <key>`](telegram-commands.md#choose-a-persona-effort-or-prompt) applies a preset by its key.
186
156
 
187
- The `/persona` menu depends on `presets`:
157
+ The choices that `/persona` offers depend on `presets`:
188
158
 
189
159
  - Omitted: all personas available in the session's workspace, with their own labels and default settings.
190
160
  - `{}`: nothing, and `/persona` is hidden from the command palette. Typing it replies that no presets are configured.
@@ -192,7 +162,7 @@ The `/persona` menu depends on `presets`:
192
162
 
193
163
  Buttons show only labels, because a session does not record which preset was applied. `/status` reports the session's actual settings.
194
164
 
195
- Applying a preset changes the prompt, model, tools, reasoning, and other persona settings together, and keeps the conversation. It applies them once, so effort commands then change only reasoning, and applying the preset again restores its settings.
165
+ Applying a preset changes the prompt, model, tools, reasoning, and other persona settings together, and keeps the conversation. It applies them once, so `/effort` then changes only reasoning, and applying the preset again restores its settings.
196
166
 
197
167
  An unavailable persona stays in the menu. Applying it, or a `reasoning` value the persona does not support, reports an error and changes no settings. The value must be in the persona's `allowedReasoningLevels` when that list is non-empty, and a model without reasoning accepts only `none`. A failing preset at `startup` fails the new session.
198
168
 
@@ -232,7 +202,9 @@ Sending a file only queues it, and its caption is kept as metadata. The next tex
232
202
 
233
203
  Files are stored in the execution environment's temporary directory, so system cleanup can remove them. Queued files and group context are cleared on shutdown. Treat file contents and metadata as untrusted.
234
204
 
235
- Voice transcription uses Gemini with `GEMINI_API_KEY`, or else `apiKeys.google`. Optional spelling hints use GPT-6 Luna (reasoning disabled) with OpenAI credentials. The session's [`speech.vocabulary`](config-reference.md#speech) terms, then the runner's global terms, precede extracted hints and work without OpenAI credentials or conversation context. Without a selected session, Tau does not download or transcribe audio. Transcription fails if the session is not ready. Gemini transcribes verbatim with `gemini-3.5-transcribe`, using English (`en-US`) and Finnish (`fi-FI`) hints, and Tau tries to delete the uploaded file afterward. Receiving files needs no Google key. See [credentials](credentials.md).
205
+ Voice transcription uses ElevenLabs Scribe v2 with `ELEVENLABS_API_KEY`, or else `apiKeys.elevenlabs`. Scribe detects the spoken language and transcribes in verbatim mode, retaining filler words and false starts. Optional spelling hints use GPT-6 Luna (reasoning disabled) with OpenAI credentials. The session's [`speech.vocabulary`](config-reference.md#speech) terms, then the runner's global terms, precede extracted hints and work without OpenAI credentials or conversation context. Without a selected session, Tau does not download or transcribe audio. Transcription fails if the session is not ready. Receiving files needs no ElevenLabs key. See [credentials](credentials.md).
206
+
207
+ When the bot's `speechCleanupStyle` is `default`, GPT-6.1 Terra (reasoning disabled) cleans up each transcript before it is echoed and submitted. It uses the vocabulary and [recent conversation](config-reference.md#speech) only to fix misheard words. Cleanup needs OpenAI credentials. If cleanup fails, the bot uses the transcript without cleanup. It also sends a warning, except for group audio being collected silently as context.
236
208
 
237
209
  `/tts_on` rewrites text with `gpt-6-luna` (reasoning disabled) and generates speech with Eleven v4 Turbo. It requires both OpenAI and ElevenLabs credentials and runner `ffmpeg` with Opus. Voice notes use brisk delivery and 1.15× speed. See [`speech` configuration](config-reference.md#speech) for default and custom voice selection. Source and rewritten text are limited to 10,000 Unicode characters each, and audio to 32 MiB. Rewriting times out after one minute and the whole job after five. Jobs are not saved. On failure, the bot sends `voice response failed. please try again.`; the text reply is unaffected and details go to the logs.
238
210
 
@@ -279,7 +251,7 @@ Do not verify bot tokens, provider keys, Access secrets, transcript contents, or
279
251
 
280
252
  **A message sent during work changes direction.** While a turn is running, a new message steers it instead of waiting in a queue. Wait for the turn to finish before sending an unrelated task, or use `/interrupt` first.
281
253
 
282
- **Audio or an attachment fails.** The reply or runner log names the step that failed: download, saving, format, or transcription. Check that Telegram can deliver the file to the bot, the type is supported, the runner can write to its temporary directory, and Gemini accepts the media type. Transcription needs `GEMINI_API_KEY` or `apiKeys.google` for the runner process; restart the runner after setting it. Changing a workspace's environment does not affect the runner. Do not log media or transcripts to debug this.
254
+ **Audio or an attachment fails.** The reply or runner log names the step that failed: download, saving, format, or transcription. Check that Telegram can deliver the file to the bot, the type is supported, the runner can write to its temporary directory, and ElevenLabs accepts the media type. Transcription needs `ELEVENLABS_API_KEY` or `apiKeys.elevenlabs` for the runner process; restart the runner after setting it. Changing a workspace's environment does not affect the runner. Do not log media or transcripts to debug this.
283
255
 
284
256
  **Voice replies fail.** `/tts_on` needs OpenAI and ElevenLabs credentials and `ffmpeg` with Opus on the runner. Check [`speech.voiceId`](config-reference.md#speech) if a configured voice is unavailable.
285
257
 
@@ -222,31 +222,29 @@ The agent can use `diff_review` with `workingDirectory` to review another direct
222
222
 
223
223
  ### Dictation
224
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.
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
226
 
227
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
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.
229
230
 
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.
231
232
 
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
+ 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.
233
234
 
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.
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.
238
236
 
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.
237
+ The final transcript replaces the preview in normal text, without duplication. An empty transcript inserts nothing.
240
238
 
241
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.
242
240
 
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.
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.
244
242
 
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.
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.
246
244
 
247
245
  If transcription fails, Tau keeps the local WAV file and reports its path:
248
246
 
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.
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.
250
248
  - `/listen discard` deletes the file.
251
249
 
252
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.
@@ -257,7 +255,15 @@ Install `ffmpeg`:
257
255
  brew install ffmpeg
258
256
  ```
259
257
 
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.
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.
261
267
 
262
268
  ### Reading responses aloud
263
269