@markusylisiurunen/tau 0.3.102 → 0.3.104

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 (73) hide show
  1. package/README.md +18 -23
  2. package/dist/code_mode/runtime.d.ts +6 -0
  3. package/dist/code_mode/runtime.js +2 -0
  4. package/dist/code_mode/runtime.js.map +1 -1
  5. package/dist/core/code_mode/sdk.js +4 -0
  6. package/dist/core/code_mode/sdk.js.map +1 -1
  7. package/dist/core/code_mode/web.js +5 -5
  8. package/dist/core/code_mode/web.js.map +1 -1
  9. package/dist/core/history/migrations.js +40 -0
  10. package/dist/core/history/migrations.js.map +1 -1
  11. package/dist/core/history/setup.js +24 -7
  12. package/dist/core/history/setup.js.map +1 -1
  13. package/dist/core/mcp/cli.js +1 -1
  14. package/dist/core/mcp/cli.js.map +1 -1
  15. package/dist/core/static/code_mode/sandbox_runner.mjs +19 -2
  16. package/dist/core/static/tau_docs/client-tools.md +46 -385
  17. package/dist/core/static/tau_docs/code-mode.md +114 -41
  18. package/dist/core/static/tau_docs/configuration.md +77 -171
  19. package/dist/core/static/tau_docs/getting-started.md +25 -96
  20. package/dist/core/static/tau_docs/history.md +30 -228
  21. package/dist/core/static/tau_docs/how-tau-works.md +53 -0
  22. package/dist/core/static/tau_docs/image-generation.md +15 -107
  23. package/dist/core/static/tau_docs/index.md +46 -46
  24. package/dist/core/static/tau_docs/instructions-and-skills.md +81 -0
  25. package/dist/core/static/tau_docs/manifest.json +15 -21
  26. package/dist/core/static/tau_docs/mcp.md +77 -0
  27. package/dist/core/static/tau_docs/models-and-credentials.md +67 -0
  28. package/dist/core/static/tau_docs/openrouter.md +31 -129
  29. package/dist/core/static/tau_docs/pdf-unpacking.md +8 -21
  30. package/dist/core/static/tau_docs/personas.md +48 -144
  31. package/dist/core/static/tau_docs/remote-sessions.md +33 -170
  32. package/dist/core/static/tau_docs/sdk.md +150 -0
  33. package/dist/core/static/tau_docs/security.md +6 -193
  34. package/dist/core/static/tau_docs/session-protocol.md +84 -246
  35. package/dist/core/static/tau_docs/sessions.md +41 -205
  36. package/dist/core/static/tau_docs/speech-generation.md +16 -129
  37. package/dist/core/static/tau_docs/subagents.md +57 -229
  38. package/dist/core/static/tau_docs/telegram.md +152 -192
  39. package/dist/core/static/tau_docs/tools.md +44 -167
  40. package/dist/core/static/tau_docs/troubleshooting.md +23 -217
  41. package/dist/core/static/tau_docs/tui.md +42 -282
  42. package/dist/core/telegram/adapter.js +4 -4
  43. package/dist/core/telegram/adapter.js.map +1 -1
  44. package/dist/core/telegram/runtime.js +3 -2
  45. package/dist/core/telegram/runtime.js.map +1 -1
  46. package/dist/core/tools/code.js +13 -12
  47. package/dist/core/tools/code.js.map +1 -1
  48. package/dist/core/tools/code_jobs.js.map +1 -1
  49. package/dist/core/tools/code_mode.js +4 -0
  50. package/dist/core/tools/code_mode.js.map +1 -1
  51. package/dist/core/tools/code_preloads.js +94 -0
  52. package/dist/core/tools/code_preloads.js.map +1 -0
  53. package/dist/core/version.js +1 -1
  54. package/dist/history/worker/index.js +16 -22
  55. package/dist/history/worker/index.js.map +1 -1
  56. package/dist/history/worker/migrations/0005_external_content.sql +58 -0
  57. package/dist/history/worker/migrations/0006_external_content_cutover.sql +44 -0
  58. package/dist/tui/session_chat_controller.js +21 -31
  59. package/dist/tui/session_chat_controller.js.map +1 -1
  60. package/dist/tui/ui/app_intro.js +45 -12
  61. package/dist/tui/ui/app_intro.js.map +1 -1
  62. package/package.json +4 -3
  63. package/dist/core/static/tau_docs/config-reference.md +0 -367
  64. package/dist/core/static/tau_docs/credentials.md +0 -165
  65. package/dist/core/static/tau_docs/models.md +0 -57
  66. package/dist/core/static/tau_docs/node-sdk.md +0 -430
  67. package/dist/core/static/tau_docs/ownership-and-scope.md +0 -107
  68. package/dist/core/static/tau_docs/prompts-and-project-context.md +0 -147
  69. package/dist/core/static/tau_docs/sdk-diff-review.md +0 -92
  70. package/dist/core/static/tau_docs/session-protocol-methods.md +0 -655
  71. package/dist/core/static/tau_docs/skills.md +0 -135
  72. package/dist/core/static/tau_docs/telegram-commands.md +0 -55
  73. package/dist/core/static/tau_docs/telegram-projects.md +0 -197
@@ -1 +1 @@
1
- {"version":3,"file":"app_intro.js","sourceRoot":"","sources":["../../../src/tui/ui/app_intro.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AASzD,SAAS,UAAU,CAAC,KAAa,EAAE,KAAY;IAC7C,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAC1B,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC/B,MAAM,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC;IAClC,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACxC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;IACD,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;AACxE,CAAC;AAED,SAAS,aAAa,CAAC,IAAY,EAAE,KAAY;IAC/C,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAC1B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IACvC,OAAO,KAAK;SACT,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;SACjC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACZ,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC/C,OAAO,OAA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AAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC9E,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markusylisiurunen/tau",
3
- "version": "0.3.102",
3
+ "version": "0.3.104",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "tau": "dist/main.js"
@@ -27,7 +27,8 @@
27
27
  "start": "node dist/main.js",
28
28
  "history:dev": "wrangler d1 migrations apply tau-history-dev --local --config src/history/worker/wrangler.dev.json && wrangler d1 execute tau-history-dev --local --config src/history/worker/wrangler.dev.json --file src/history/worker/dev-seed.sql && wrangler dev --config src/history/worker/wrangler.dev.json",
29
29
  "test": "npm run --silent build && npm run --silent test:only --",
30
- "test:only": "vitest run --reporter=minimal --silent=passed-only"
30
+ "test:only": "vitest run --reporter=minimal --silent=passed-only",
31
+ "test:list": "vitest list --filesOnly"
31
32
  },
32
33
  "publishConfig": {
33
34
  "access": "public"
@@ -51,7 +52,7 @@
51
52
  "devDependencies": {
52
53
  "@anthropic-ai/claude-agent-sdk": "0.3.319",
53
54
  "@biomejs/biome": "2.6.6",
54
- "@cloudflare/workers-types": "^5.20261107.1",
55
+ "@cloudflare/workers-types": "^5.20261108.1",
55
56
  "@types/node": "^24.19.2",
56
57
  "@types/ws": "^8.18.2",
57
58
  "esbuild": "0.28.2",
@@ -1,367 +0,0 @@
1
- # Configuration reference
2
-
3
- `config.json` sets Tau defaults and integrations. Global and project levels use the same schema, but a few fields are allowed at only one level, and different parts of Tau read different fields.
4
-
5
- Read [configuration](configuration.md) first for discovery and precedence. In the tables below, **global** means `~/.config/tau/config.json` when that level applies, and **project** means a `.tau/config.json` found from the relevant `cwd` upward.
6
-
7
- ## Shipped defaults
8
-
9
- These are the defaults for fields you leave unset in this Tau version:
10
-
11
- | Field | Default |
12
- | ---------------------------------- | ------------------ |
13
- | `defaultPersona` | `sonnet-5.5-coder` |
14
- | `defaultTheme` | `gold` |
15
- | `clientTools[].executionTimeoutMs` | `60000` ms |
16
-
17
- Project and global content can change which persona ids exist. A configured default must match an available persona or built-in theme. Otherwise Tau reports a warning.
18
-
19
- ## Field summary
20
-
21
- | Field | Type | Scope | Combination | Read by; when changes apply |
22
- | --- | --- | --- | --- | --- |
23
- | `apiKeys` | Object of string values | Global only | Provider-keyed map | Owning host or feature process; restart after changes |
24
- | `defaultPersona` | Non-empty string | Global, project | Most-specific wins | Session host; new session |
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
- | `defaultTheme` | Non-empty string | Global, project | Most-specific wins | TUI client; client restart |
27
- | `markdownExport` | Object with `url` and optional `token`, `tokenEnv` | Global only | One global object | TUI client; client restart |
28
- | `clientTools` | Array of objects | Global only | One global definition list | Owning client; TUI restart or new Telegram session client |
29
- | `enabledClientTools` | String array | Project only | Most-specific project list | Owning client; TUI restart or new Telegram session client |
30
- | `subagents` | Object | Global, project | Most-specific `launchModels` list | Session runtime; `/reload` or new session |
31
- | `modelSystemNotices` | String map | Global, project | Merge by model target | Session runtime; `/reload`, affects later inputs |
32
- | `flySprites` | Object | Global, project | Merge connection fields | Host startup; host restart |
33
- | `history` | Object | Global only | One global object | Host startup; host restart |
34
- | `mcpServers` | Object keyed by server name | Global and project | Merge names; nearer entry replaces | Session host, local sessions only; next time the host loads the session |
35
-
36
- Unknown fields are removed without a warning. Wrong types and invalid values produce warnings, and Tau continues with the valid fields. A field at a level where it is not allowed is rejected.
37
-
38
- ## Persona, model behavior, and context
39
-
40
- ### `defaultPersona`
41
-
42
- A persona id, optionally followed by `:` and a reasoning level:
43
-
44
- ```json
45
- {
46
- "defaultPersona": "gpt-6.1-sol-coder:high"
47
- }
48
- ```
49
-
50
- Allowed reasoning suffixes are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. The persona id must match exactly, including case, a persona that exists after built-in, global, and project personas are loaded.
51
-
52
- `defaultPersona` sets the persona of a new session unless a CLI flag or creation request chooses another. Reloading an existing session keeps its current persona when it still exists. See [personas](personas.md).
53
-
54
- ### `subagents`
55
-
56
- `subagents` accepts one optional field:
57
-
58
- | Nested field | Type | Contract |
59
- | --- | --- | --- |
60
- | `launchModels` | String array | Models an agent may choose when it starts a subagent |
61
-
62
- Each entry must use `<provider>/<model>:<effort>` and resolve against the merged model catalog:
63
-
64
- ```json
65
- {
66
- "subagents": {
67
- "launchModels": [
68
- "openai-codex/gpt-6.1-sol:high",
69
- "anthropic/claude-haiku-4-5:low"
70
- ]
71
- }
72
- }
73
- ```
74
-
75
- A more specific list replaces the broader one. Subagents inherit instructions and tools from their parent agent. Custom subagent definitions are not supported. See [subagents](subagents.md).
76
-
77
- ### `modelSystemNotices`
78
-
79
- A map from exact `<provider>/<model>` targets to non-empty notice text:
80
-
81
- ```json
82
- {
83
- "modelSystemNotices": {
84
- "openai/gpt-6.1-sol": "Use the repository's checked-in formatter for source changes."
85
- }
86
- }
87
- ```
88
-
89
- Provider ids must be known, and model ids must exist in the model catalog. Entries merge by normalized target, and the more specific value wins. Tau adds the matching notice to the start of later user input in the main session and in subagents. Ephemeral agents and maintenance model calls do not receive a newly resolved notice.
90
-
91
- Use notices for guidance that applies to one model. Behavior that belongs to a persona goes in the persona file. See [models](models.md) and [personas](personas.md).
92
-
93
- ## Credentials and service selection
94
-
95
- ### `markdownExport`
96
-
97
- `/export-response` sends the latest completed assistant response to one Markdown service. Configure the full endpoint in the terminal client's `~/.config/tau/config.json`:
98
-
99
- ```json
100
- {
101
- "markdownExport": {
102
- "url": "https://example.com/api/documents",
103
- "tokenEnv": "MARKDOWN_EXPORT_TOKEN"
104
- }
105
- }
106
- ```
107
-
108
- `url` is required. It must use HTTPS, except that HTTP is allowed for `localhost`, `127.0.0.1`, and `[::1]`. Embedded credentials and fragments are rejected. Project configuration cannot set or override this object.
109
-
110
- `token` supplies an inline bearer token and takes precedence over `tokenEnv`. Otherwise, `tokenEnv` names a variable in the terminal process's environment. A missing or empty variable fails before any request. With neither field, requests have no authorization header. Tokens must be non-empty printable ASCII without spaces. Credentials are not included in diagnostics.
111
-
112
- The request runs on the terminal's machine, including with `tau attach`. Restart the TUI after changing this configuration. See [the export contract](tui.md#exporting-a-response) for the HTTP request and response.
113
-
114
- ### `apiKeys`
115
-
116
- A map from provider or feature id to a string credential:
117
-
118
- ```json
119
- {
120
- "apiKeys": {
121
- "anthropic": "sk-ant-...",
122
- "openai": "sk-...",
123
- "google": "...",
124
- "exa": "...",
125
- "mistral": "..."
126
- }
127
- }
128
- ```
129
-
130
- The map accepts any non-empty provider name with a string value. Values are trimmed when used, and an empty string does not count as a credential.
131
-
132
- For model requests and features, a provider's environment variable wins over the same provider's entry in `apiKeys`. Other authentication a provider supports without a key still works. `apiKeys` in a project file is rejected. Codex OAuth does not use this map; it uses the active stored account. See [credentials](credentials.md).
133
-
134
- ### `speech`
135
-
136
- Controls `/speak` and Telegram `/tts_on` voice selection. Set `voiceId` to a non-empty ElevenLabs voice ID:
137
-
138
- ```json
139
- {
140
- "speech": {
141
- "voiceId": "QtY3JBOUKEB5xzrRfOKc"
142
- }
143
- }
144
- ```
145
-
146
- For terminal recording, `recordingShortcut` replaces Ctrl+Y. Its required `key` is a single printable, non-whitespace character, `ctrl+y`, or `f1` through `f12`. Its required `gesture` is `press` or `double-tap`:
147
-
148
- ```json
149
- {
150
- "speech": {
151
- "recordingShortcut": { "key": "§", "gesture": "double-tap" }
152
- }
153
- }
154
- ```
155
-
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
-
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
-
170
- For dictation, `vocabulary` supplies spelling hints for recurring names, identifiers, and short phrases:
171
-
172
- ```json
173
- {
174
- "speech": {
175
- "vocabulary": ["Tau", "PostgreSQL", "ChatRuntime"]
176
- }
177
- }
178
- ```
179
-
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 `\`.
181
-
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.
183
-
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.
185
-
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.
187
-
188
- Authentication, permission, rate-limit, and network errors during voice lookup do not trigger the fallback. Once lookup succeeds, that voice is used for the whole reply, although synthesis can still be refused. Synthesis failures never switch voices, and Tau never retries synthesis automatically because each request may be billed.
189
-
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.
191
-
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`.
193
-
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:
195
-
196
- | Location | `vocabulary` |
197
- | --- | --- |
198
- | Global config on the session's machine | `["Team"]` |
199
- | `.tau/config.json` in the session's project | `["Ledger"]` |
200
- | Global config on the machine running `tau attach` | `["Personal"]` |
201
- | `.tau/config.json` where `tau attach` started | `["Notes"]` |
202
- | **Terms used for this session** | `["Ledger", "Team", "Personal"]` |
203
-
204
- A client adds its global terms only when it started inside its user's home, because that is when it reads the global level. See [configuration](configuration.md). Run `/reload` after changing the session's terms, and restart the client after changing its global terms.
205
-
206
- ### `history`
207
-
208
- A global-only remote history target:
209
-
210
- | Nested field | Type | Required | Contract |
211
- | --- | --- | --- | --- |
212
- | `endpoint` | Non-empty string | Yes | HTTP(S) URL with no credentials, query, or fragment |
213
- | `apiKey` | Non-empty string | No | Inline service API key |
214
- | `apiKeyEnv` | Non-empty string | No | Host environment variable containing the key |
215
-
216
- ```json
217
- {
218
- "history": {
219
- "endpoint": "https://history.example.com",
220
- "apiKeyEnv": "TEAM_TAU_HISTORY_KEY"
221
- }
222
- }
223
- ```
224
-
225
- Tau uses the first key it finds: `TAU_HISTORY_API_KEY`, then the variable named by `apiKeyEnv`, then `apiKey`. If `history` is configured but no key is available, the host fails to start. Without `history`, history is stored and searched only on the host machine. See [history](history.md).
226
-
227
- ### `mcpServers`
228
-
229
- Each session on a local execution environment uses the servers from the global config and project levels of its own working directory. The directory where the host was launched does not choose them, so `tau`, `tau serve`, the SDK, and Telegram behave the same way.
230
-
231
- - Server names add up across levels. A nearer definition replaces the whole entry with the same name, including credentials.
232
- - Set `enabled: false` to turn off an inherited server.
233
- - The global level applies only when the session's working directory is inside the home directory. See [configuration](configuration.md).
234
- - Each session has its own servers and connections. Subagents use their parent's, even in another working directory.
235
- - A session on a remote execution environment, such as a Fly Sprite, has no MCP servers. Tau does not use definitions from that environment or from the host. Servers would run on the host, and Tau cannot tell which of them expose the host's files. [Security](security.md#trust-mcp-servers) explains the trade-off.
236
- - The host reads definitions when it creates or recovers a session, and they stay fixed while the session is loaded. `/reload` does not change them, but it warns if the definitions on disk differ. To apply a change, start a new session, or reopen the session after the host has unloaded it. The host unloads a session when no client is attached, its work has finished, and no [retention](session-protocol.md#keep-a-session-loaded-without-clients) period is active, and when the host shuts down.
237
- - Restart the host after changing the environment variables that servers use. OAuth credentials updated through `tau mcp login` take effect without restarting.
238
-
239
- ```json
240
- {
241
- "mcpServers": {
242
- "issues": {
243
- "type": "stdio",
244
- "command": "uvx",
245
- "description": "Search and update engineering issues and milestones.",
246
- "args": ["example-mcp-server"],
247
- "env": { "API_TOKEN": "${ISSUES_TOKEN}" }
248
- },
249
- "remote": {
250
- "type": "http",
251
- "url": "https://example.com/mcp",
252
- "headers": { "Authorization": "Bearer ${REMOTE_MCP_TOKEN}" }
253
- }
254
- }
255
- }
256
- ```
257
-
258
- Server names use letters, digits, `_`, and `-`. Every entry requires an explicit `type`:
259
-
260
- - `stdio`: requires a non-empty `command`; accepts optional literal `args`, `cwd`, and string-valued `env`.
261
- - `http`: requires an HTTP(S) `url` without embedded username/password; accepts optional string-valued `headers`. This is streamable HTTP, not the legacy SSE transport.
262
- - Both accept `enabled` (default `true`), `timeoutMs` for tool calls and resource reads (integer from 1 to 900,000, default 300,000), and `discoveryTimeoutMs` for connection startup and discovery requests (integer from 1 to 60,000, default 30,000). MCP calls run inside a `code` program, so a foreground program's deadline also limits them: 5 minutes by default, at most 60 minutes. All calls remain interruptible.
263
-
264
- When a stdio server's transport reports an error, Tau closes the connection and fails its pending requests. Tau does not replay those requests, and a later call starts a new connection. For an HTTP server, a failure of its optional notification stream does not close the connection or fail calls that are in progress.
265
-
266
- Both types accept an optional `description`: a nonblank capability summary of at most 512 UTF-16 code units after trimming surrounding whitespace. Enabled server names and configured descriptions appear in the model's initial `code` tool description when its persona allows `mcp`. Servers without descriptions appear by name; disabled servers are omitted. This catalog contains no connection settings and requires no server connections. Descriptions are capability summaries, not instructions or permission grants. Do not put secrets in them. Full server instructions and tool schemas remain available through discovery.
267
-
268
- Stdio executables run directly, without a shell. Bare commands resolve through the host's `PATH`. Commands that contain `/`, and relative `cwd` values, resolve from the directory of the config level that defines the server. `~/` resolves from the host user's home. Without `cwd`, the server starts in the defining level's directory. Arguments are passed literally, with no interpolation or shell expansion.
269
-
270
- Values in `env` and `headers` can reference host environment variables as `${NAME}`. A missing variable makes the connection fail. Command substitution is not supported. Stdio servers inherit the host environment, and `env` overrides matching names. Keep secrets in the host environment instead of committing them to JSON.
271
-
272
- An invalid entry is skipped with a [configuration warning](configuration.md#see-configuration-warnings), and the other servers stay configured. HTTP OAuth sign-in is available through `tau mcp login`; see [credentials](credentials.md#mcp-oauth). MCP prompts, subscriptions, elicitation, sampling, execution-environment servers, and user approval dialogs are not supported. See [code mode](code-mode.md#capabilities) for discovery, calls, and result handling.
273
-
274
- ## TUI presentation and diff review
275
-
276
- ### `defaultTheme`
277
-
278
- The exact, case-sensitive id of a built-in theme. The shipped default is `gold`:
279
-
280
- ```json
281
- {
282
- "defaultTheme": "azure"
283
- }
284
- ```
285
-
286
- An attached TUI uses its own client configuration. `/theme:<id>` changes only the current client and is not saved in the session. See [TUI](tui.md).
287
-
288
- ## Command client tools
289
-
290
- ### `clientTools`
291
-
292
- A global-only array of commands exposed as client-provided tools:
293
-
294
- | Nested field | Type | Required | Contract |
295
- | --- | --- | --- | --- |
296
- | `name` | Non-empty string | Yes | Unique within the array |
297
- | `defaultEnabled` | Boolean | Yes | Advertise when no project selection exists |
298
- | `description` | Non-empty string | Yes | Model-facing tool description |
299
- | `parameters` | JSON Schema object | Yes | Root `type` must be `"object"` |
300
- | `command` | Non-empty string | Yes | Executable name or path |
301
- | `args` | String array | No | Command arguments |
302
- | `executionTimeoutMs` | Positive integer | No | Invocation timeout, default `60000` |
303
-
304
- ```json
305
- {
306
- "clientTools": [
307
- {
308
- "name": "open-ticket",
309
- "defaultEnabled": false,
310
- "description": "Open a ticket in the client team's tracker.",
311
- "parameters": {
312
- "type": "object",
313
- "properties": {
314
- "title": { "type": "string" }
315
- },
316
- "required": ["title"],
317
- "additionalProperties": false
318
- },
319
- "command": "./bin/open-ticket"
320
- }
321
- ]
322
- }
323
- ```
324
-
325
- Unknown properties inside `parameters` are kept as part of the schema. Unknown fields elsewhere in a tool object are removed. Because definitions are global, a command that contains `/` resolves from home. The command runs directly on the client, without a shell.
326
-
327
- The TUI flag `--no-client-tools` disables both configured command tools and the TUI's built-in client tools. See [client tools](client-tools.md).
328
-
329
- ### `enabledClientTools`
330
-
331
- A project-only exact allowlist of names from global `clientTools`:
332
-
333
- ```json
334
- {
335
- "enabledClientTools": ["open-ticket"]
336
- }
337
- ```
338
-
339
- Names are trimmed and duplicates removed. Unknown names are ignored without a warning. An empty list selects no tools. If no project level sets the field, Tau selects the tools with `defaultEnabled: true`.
340
-
341
- The most specific project list replaces broader ones. Project configuration cannot define client tool commands.
342
-
343
- ## Hosted execution environments
344
-
345
- These fields tell a host how to reach hosted execution environments. They do not create Sprites. A client that creates a session names an existing environment and a `cwd` on it, and the host connects using these settings. See [remote sessions](remote-sessions.md).
346
-
347
- ### `flySprites`
348
-
349
- One configured connection:
350
-
351
- ```json
352
- {
353
- "flySprites": {
354
- "tokenEnv": "FLY_SPRITES_TOKEN",
355
- "home": "/home/sprite"
356
- }
357
- }
358
- ```
359
-
360
- | Field | Type | Required | Default or behavior |
361
- | --- | --- | --- | --- |
362
- | `baseURL` | Non-empty string | No | Defaults to `https://api.sprites.dev` |
363
- | `token` | Non-empty string | No | Inline token; takes precedence when present |
364
- | `tokenEnv` | Non-empty string | No | Host environment variable used when `token` is absent |
365
- | `home` | Non-empty string | No | Sprite home, default `/home/sprite` |
366
-
367
- The host needs a usable token when it connects to a Sprite. Sessions select an existing Sprite by name. More specific connection fields replace broader ones.
@@ -1,165 +0,0 @@
1
- # Credentials
2
-
3
- Tau reads secrets from configuration, environment variables, and its own OAuth storage. Put each secret on the process that makes the authenticated request. In a remote session, that is usually not the attached terminal.
4
-
5
- This page covers where secrets come from. [Models](models.md) covers providers and model metadata.
6
-
7
- ## Credential ownership
8
-
9
- The host makes model calls and runs services such as web search and remote history, so most credentials belong in the host's environment or the host user's global configuration. Common cases:
10
-
11
- | Operation | Where the credential belongs |
12
- | --- | --- |
13
- | Main-agent, native Tau subagent, sampling, and maintenance model calls | Session host |
14
- | Claude Code subagent subscription login | Claude Code on the execution environment |
15
- | OpenAI Codex OAuth accounts | Session host home |
16
- | Exa-backed `web.search` and `web.fetch` | Session host |
17
- | Remote history replication and queries | Session host |
18
- | Fly Sprite API | Session host startup |
19
- | `/listen` and `/speak` | TUI client |
20
- | Telegram transcription and voice responses | Telegram runner |
21
- | Standalone `tau tool` commands | The process running that command |
22
-
23
- With local `tau`, all of these are usually one machine. With `tau attach`, a key set only in the attached client's shell does not reach the remote host. Run `tau auth` on the host machine, and set host environment variables where `tau serve` or the SDK host runs. See [ownership and scope](ownership-and-scope.md) for the full boundary.
24
-
25
- Claude Code subagents use a Claude subscription login on the execution environment. Sign in with Claude Code there; `tau auth` does not manage this account. Tau checks the account before sending a task and does not fall back to API billing. See [Claude Code subagents](subagents.md#claude-code-subagents) for setup and extra-usage charges.
26
-
27
- ## Provider API keys
28
-
29
- Tau accepts provider API keys in global configuration:
30
-
31
- ```json
32
- {
33
- "apiKeys": {
34
- "anthropic": "<anthropic-api-key>",
35
- "openai": "<openai-api-key>",
36
- "google": "<gemini-api-key>"
37
- }
38
- }
39
- ```
40
-
41
- The keys of the map are provider IDs, such as `openai`, not model IDs. `apiKeys` is allowed only in the global `~/.config/tau/config.json` of the process that uses it. Project values are rejected. Values are literal strings and do not expand environment variables.
42
-
43
- For model requests, a provider's environment variable wins over its entry in `apiKeys`. Cloud and workload identity authentication that the provider supports still works. OpenAI uses `OPENAI_API_KEY`. Anthropic also accepts `ANTHROPIC_AUTH_TOKEN` and `ANTHROPIC_OAUTH_TOKEN`. Codex OAuth is separate and always uses the active stored account.
44
-
45
- Set model credentials where the host runs. Restart that process after changing its environment variables or its `apiKeys`.
46
-
47
- ## Feature-specific keys
48
-
49
- Features check the environment variable first, then global configuration:
50
-
51
- | Feature | Resolution order |
52
- | --- | --- |
53
- | Exa web search and fetch | `EXA_API_KEY`, then `apiKeys.exa` |
54
- | Google image generation | `GEMINI_API_KEY`, then `apiKeys.google` |
55
- | Mistral PDF OCR | `MISTRAL_API_KEY`, then `apiKeys.mistral` |
56
- | OpenRouter decisions and chat | `OPENROUTER_API_KEY`, then `apiKeys.openrouter` |
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
-
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
-
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
-
64
- For `tau tool` commands, credentials and configuration belong to the machine that runs the command. The agent's Bash tool removes inherited API-key environment variables, so a command the agent runs may need its key in global configuration on that machine. See [configuration](configuration.md) for configuration file locations and [security](security.md) for command environment handling.
65
-
66
- ## MCP OAuth
67
-
68
- HTTP MCP servers can use browser-based OAuth without an API token. Configure the server with `type: "http"` and its `url`, without an `Authorization` header, then run:
69
-
70
- ```sh
71
- tau mcp login cloudflare-api
72
- tau mcp login cloudflare-api --scope dns.write
73
- tau mcp login cloudflare-api --all
74
- tau mcp logout cloudflare-api
75
- ```
76
-
77
- Run these commands on the host, from the session's working directory, so the CLI resolves the same global and project MCP configuration as the session. The sign-in belongs to the server's URL, so every session on that host that uses the URL shares it. `login` without flags requests the authentication challenge's scopes (or the resource metadata's default scopes when the challenge has none) together with existing granted scopes. Repeat `--scope` to add specific permissions to the existing grant. `--all` requests every scope advertised by the authorization server and fails if it advertises none. When additional scopes exceed the client registration, login registers a new client and keeps the previous grant until authorization succeeds. The service decides which permissions it grants; requesting all does not guarantee unrestricted access. `--all` and `--scope` cannot be combined.
78
-
79
- OAuth requests and discovery redirects require HTTPS, except for HTTP on loopback. Registration and token requests do not follow redirects.
80
-
81
- Login prints an authorization URL. Open it in your browser and approve access at the service. The callback listener binds to loopback and waits up to five minutes. For a remote host, forward the printed callback port through SSH before opening the authorization URL in your local browser, for example `ssh -N -L <port>:127.0.0.1:<port> <host>`. A later login reuses the registered callback port, which must be free.
82
-
83
- OAuth credentials are stored privately in the host's `~/.config/tau/auth.json`, keyed by server URL. Servers with the same URL share the grant. Access-token refresh is automatic and coordinated across host processes. Existing sessions read updated credentials without restarting and reconnect to refresh available tools after login or logout. An explicit `Authorization` header takes precedence; remove it before OAuth login.
84
-
85
- When a call needs additional permissions, it fails with the required scopes and a login command. Tau does not open a browser, persist pending scope requests, or automatically repeat that operation after login. The user authorizes explicitly, then tells the agent to continue. Logout removes the local credentials but does not revoke the grant at the service; use the service's account settings to revoke it.
86
-
87
- ## OpenAI Codex OAuth
88
-
89
- The `openai-codex` provider uses ChatGPT Plus or Pro OAuth accounts managed by Tau. Authenticate on the host:
90
-
91
- ```sh
92
- tau auth login codex
93
- ```
94
-
95
- The flow opens or prints a browser URL. It may instead ask for a device code or a pasted redirect URL. Tau stores the result in the host user's `~/.config/tau/auth.json` with private file permissions. Do not edit this file directly. The auth commands handle concurrent access and token refresh.
96
-
97
- Tau can store several Codex accounts, and at most one is active. `tau auth list` shows each identity, marks the active one, and shows usage windows for information, without revealing tokens.
98
-
99
- ```sh
100
- tau auth login codex
101
- tau auth list
102
- tau auth use codex --account developer@example.com
103
- tau auth logout codex --account developer@example.com
104
- ```
105
-
106
- - A login activates the account only when no other accounts are stored. Later logins add or refresh an account without changing which one is active.
107
- - `auth use` makes an account active and deactivates the previous one.
108
- - Logout removes the account. Logging out the active account leaves no account active, even if others remain. Choose one with `tau auth use`.
109
- - With no active account, requests fail with instructions to log in or select an account.
110
- - Tau never switches accounts automatically, whether an account fails or runs out of usage. Usage never affects selection.
111
- - Account IDs and emails match case-insensitively.
112
-
113
- Every new request reads the current auth storage, in every session. Switching accounts takes effect without a host restart and does not affect a request already in progress.
114
-
115
- ## History indirection
116
-
117
- History can name environment variables instead of embedding secrets in configuration.
118
-
119
- Remote history is global-only configuration:
120
-
121
- ```json
122
- {
123
- "history": {
124
- "endpoint": "https://history.example.net",
125
- "apiKeyEnv": "TEAM_HISTORY_KEY"
126
- }
127
- }
128
- ```
129
-
130
- History resolves its API key in this order:
131
-
132
- 1. `TAU_HISTORY_API_KEY`
133
- 2. The host environment variable named by `history.apiKeyEnv`
134
- 3. Inline `history.apiKey`
135
-
136
- If `history` is configured but no key is found, the host fails to start. Without `history`, history stays on the host machine. See [history](history.md) for service behavior.
137
-
138
- ## Hosted execution credentials
139
-
140
- The Fly Sprite connection is host configuration. It must be in place when the host starts, before a client asks for a Sprite session. The connection needs a token:
141
-
142
- ```json
143
- {
144
- "flySprites": {
145
- "baseURL": "https://api.sprites.dev",
146
- "tokenEnv": "FLY_SPRITES_TOKEN"
147
- }
148
- }
149
- ```
150
-
151
- An inline `token` wins when present. Otherwise Tau reads the variable named by `tokenEnv`. Session creation fails if neither gives a token.
152
-
153
- The host reads these settings from its own startup configuration, never from an attached client. `/reload` does not reload them. Restart the host after changing the Sprite connection or its environment variables.
154
-
155
- ## Safe verification
156
-
157
- Check a credential by using it, without printing its value:
158
-
159
- - Run `tau auth list` to check Codex identities, the active account, refresh status, and usage windows.
160
- - Restart the process that uses `apiKeys` after changing them.
161
- - Make a small request with the intended persona to verify model authentication and endpoint access.
162
- - After setting Exa, speech, history, or Fly credentials, use that feature. If a credential is missing, the error names where Tau looks for it.
163
- - For remote sessions, first confirm which machine is the host and which process runs the feature.
164
-
165
- Do not check by printing the environment, `config.json`, or `auth.json` into a transcript. If a secret ends up in shell history, logs, a session, or version control, rotate it at the provider and replace it. Broader handling guidance is in [security](security.md) and failure checks are in [troubleshooting](troubleshooting.md).
@@ -1,57 +0,0 @@
1
- # Models
2
-
3
- A model definition tells Tau how to call a provider's model and what the model can do, including its limits and cost. A persona picks one provider and model, and credentials authorize the request. Because these are separate, model metadata can be updated without changing personas.
4
-
5
- Tau ships a model catalog and refreshes compatible metadata from `pi.dev`. The catalog a session sees therefore depends on the installed Tau version and on the host's cached copy of the remote catalog.
6
-
7
- ## Providers, models, and personas
8
-
9
- A **provider** has its own authentication and one or more request APIs. A **model** is named by a provider ID and an exact model ID, such as `openai/gpt-6.1-sol`. A [persona](personas.md) combines a model with a system prompt, settings, tools, and subagents.
10
-
11
- The bundled catalog comes from Tau's model library, `pi-ai`. It lists known provider IDs and model IDs, with request API names, endpoints, capabilities, token limits, and pricing. A model in the catalog is not necessarily usable: the provider may lack credentials, the account may not have access to the model, or the endpoint may reject it. See [credentials](credentials.md).
12
-
13
- ## Remote catalog
14
-
15
- A Tau host that runs models loads cached catalogs from `~/.config/tau/models-store.json` at startup. If the cache is older than four hours, it checks `pi.dev` in the background. This check happens only at startup; there is no recurring refresh. Set `TAU_OFFLINE` to skip it, or `refreshModelCatalog: false` to skip it for one [Node SDK](node-sdk.md) client. Skipping the check does not remove an existing cache or block an explicit `tau models refresh`.
16
-
17
- Tau requests the catalog separately for each provider that its `pi-ai` version supports. Each request has a 15-second timeout. A successful provider is cached even when another fails. A failed provider keeps its previous cached data, or the bundled data if there is none. Run `tau models refresh` on the host to refresh immediately, regardless of cache age. It keeps every successful update and exits nonzero if any provider failed.
18
-
19
- Remote data replaces matching model records completely and can add new model IDs. Tau sends its `pi-ai` version to `pi.dev` so the service returns compatible records. Cached data older than the bundled catalog is ignored.
20
-
21
- A session keeps the catalog that was available when it was created. A background refresh does not change it. Run `/reload` to use the host's latest cache. Switching personas keeps the session's current catalog.
22
-
23
- ## Unbundled model IDs
24
-
25
- Custom personas and subagent launch allowlists may name a model ID that is not in the catalog, as long as the provider is known. Tau then builds the model from that provider's default template. This lets you use newly released models, but Tau does not know their real capabilities or prices. Prefer IDs from the catalog when accurate metadata matters.
26
-
27
- ## Model system notices
28
-
29
- `modelSystemNotices` is set in `config.json`, and its keys are checked against the model catalog:
30
-
31
- ```json
32
- {
33
- "modelSystemNotices": {
34
- "openai/gpt-5.7-preview": "Use the preview endpoint only for non-production analysis."
35
- }
36
- }
37
- ```
38
-
39
- Keys use the exact form `<provider>/<model>`. Provider IDs must be known. Model IDs are case-sensitive and must be in the catalog. Values must be non-empty strings. The map merges by key across configuration levels, and the nearest notice wins.
40
-
41
- When a main agent or subagent using that model receives user input, Tau adds the notice to the start of the input as a system block that the model sees and the transcript hides. The block is saved with the user message, and later compaction treats it as part of the history. Maintenance prompts and compaction messages do not get a new notice. Ephemeral agents never receive model system notices.
42
-
43
- Use notices for guidance specific to one model. Never put credentials or other secrets in them, because the notice is saved in the session.
44
-
45
- ## Applying and verifying changes
46
-
47
- Run `/reload` in an idle TUI session after refreshing the model catalog or changing `modelSystemNotices`. Reload loads the session's configuration and content again, reapplies the active persona if its ID still exists, and reports model or configuration warnings. The TUI refuses to reload while a turn is running.
48
-
49
- To check, without starting the TUI, that a persona resolves to the expected provider and model for a new local session:
50
-
51
- ```sh
52
- tau --debug --persona release-coder
53
- ```
54
-
55
- Debug output shows persona IDs and the selected model IDs, but not every metadata field. It also prints the full system prompt and project context, so be careful where you share it. A small real request is the final check for the endpoint, API compatibility, model access, and credentials.
56
-
57
- Unknown providers, persona models that cannot be resolved, and notices for IDs missing from the catalog produce configuration warnings. In a remote session, the warnings name files on the session's execution environment. See [troubleshooting](troubleshooting.md).