@markusylisiurunen/tau 0.3.102 → 0.3.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -23
- package/dist/core/history/migrations.js +40 -0
- package/dist/core/history/migrations.js.map +1 -1
- package/dist/core/history/setup.js +24 -7
- package/dist/core/history/setup.js.map +1 -1
- package/dist/core/mcp/cli.js +1 -1
- package/dist/core/mcp/cli.js.map +1 -1
- package/dist/core/static/tau_docs/client-tools.md +46 -385
- package/dist/core/static/tau_docs/code-mode.md +104 -43
- package/dist/core/static/tau_docs/configuration.md +77 -171
- package/dist/core/static/tau_docs/getting-started.md +25 -96
- package/dist/core/static/tau_docs/history.md +30 -228
- package/dist/core/static/tau_docs/how-tau-works.md +53 -0
- package/dist/core/static/tau_docs/image-generation.md +15 -107
- package/dist/core/static/tau_docs/index.md +46 -46
- package/dist/core/static/tau_docs/instructions-and-skills.md +81 -0
- package/dist/core/static/tau_docs/manifest.json +15 -21
- package/dist/core/static/tau_docs/mcp.md +77 -0
- package/dist/core/static/tau_docs/models-and-credentials.md +67 -0
- package/dist/core/static/tau_docs/openrouter.md +31 -129
- package/dist/core/static/tau_docs/pdf-unpacking.md +8 -21
- package/dist/core/static/tau_docs/personas.md +48 -144
- package/dist/core/static/tau_docs/remote-sessions.md +33 -170
- package/dist/core/static/tau_docs/sdk.md +150 -0
- package/dist/core/static/tau_docs/security.md +6 -193
- package/dist/core/static/tau_docs/session-protocol.md +84 -246
- package/dist/core/static/tau_docs/sessions.md +41 -205
- package/dist/core/static/tau_docs/speech-generation.md +16 -129
- package/dist/core/static/tau_docs/subagents.md +57 -229
- package/dist/core/static/tau_docs/telegram.md +152 -192
- package/dist/core/static/tau_docs/tools.md +44 -167
- package/dist/core/static/tau_docs/troubleshooting.md +23 -217
- package/dist/core/static/tau_docs/tui.md +42 -282
- package/dist/core/version.js +1 -1
- package/dist/history/worker/index.js +16 -22
- package/dist/history/worker/index.js.map +1 -1
- package/dist/history/worker/migrations/0005_external_content.sql +58 -0
- package/dist/history/worker/migrations/0006_external_content_cutover.sql +44 -0
- package/package.json +2 -2
- package/dist/core/static/tau_docs/config-reference.md +0 -367
- package/dist/core/static/tau_docs/credentials.md +0 -165
- package/dist/core/static/tau_docs/models.md +0 -57
- package/dist/core/static/tau_docs/node-sdk.md +0 -430
- package/dist/core/static/tau_docs/ownership-and-scope.md +0 -107
- package/dist/core/static/tau_docs/prompts-and-project-context.md +0 -147
- package/dist/core/static/tau_docs/sdk-diff-review.md +0 -92
- package/dist/core/static/tau_docs/session-protocol-methods.md +0 -655
- package/dist/core/static/tau_docs/skills.md +0 -135
- package/dist/core/static/tau_docs/telegram-commands.md +0 -55
- package/dist/core/static/tau_docs/telegram-projects.md +0 -197
|
@@ -1,196 +1,73 @@
|
|
|
1
1
|
# Tools
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The agent's tools come from three places:
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
- **Persona-selected tools** act on the execution environment or host services. The persona's `tools` list selects them.
|
|
6
|
+
- **`tau_docs`** is always present and reads this manual.
|
|
7
|
+
- **[Client tools](client-tools.md)** come from attached clients, such as the TUI's `diff_review` and `prefill_input`.
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
A tool runs with the permissions of the machine behind it, and nothing limits it to the repository. See [security](security.md).
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
## Tool names
|
|
10
12
|
|
|
11
|
-
|
|
|
13
|
+
| Name in `tools` | Gives the agent |
|
|
12
14
|
| --- | --- |
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
15
|
+
| `bash` | `bash`, its job tools, and `tau.bash` |
|
|
16
|
+
| `write`, `edit` | File tools |
|
|
17
|
+
| `view_image` | Shows an image to the model |
|
|
18
|
+
| `web` | `tau.web`: search, fetch, and discovery (search and fetch need an Exa key) |
|
|
19
|
+
| `history` | `tau.history`: read-only [transcript search](history.md) |
|
|
20
|
+
| `mcp` | `tau.mcp`: [MCP servers](mcp.md) |
|
|
21
|
+
| `models` | `tau.models`: standalone OpenRouter calls |
|
|
22
|
+
| `agents` | `tau.agents` and `wait_for_agents`: [subagents](subagents.md) |
|
|
16
23
|
|
|
17
|
-
|
|
24
|
+
Names starting with `tau.` are APIs inside the [`code` tool](code-mode.md), which Tau adds when at least one of them is available.
|
|
18
25
|
|
|
19
|
-
##
|
|
26
|
+
## Bash
|
|
20
27
|
|
|
21
|
-
|
|
28
|
+
Each call runs a fresh non-interactive login Bash, so `cd`, variables, and aliases do not carry over, but file changes do. Commands have no terminal and no stdin, so anything that prompts fails or hangs until the timeout. Git is set up to never prompt, and output color and pagers are off.
|
|
22
29
|
|
|
23
|
-
|
|
24
|
-
tools:
|
|
25
|
-
- bash
|
|
26
|
-
- write
|
|
27
|
-
- edit
|
|
28
|
-
- view_image
|
|
29
|
-
- web
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
The selectable names are:
|
|
33
|
-
|
|
34
|
-
```text
|
|
35
|
-
bash
|
|
36
|
-
write
|
|
37
|
-
edit
|
|
38
|
-
view_image
|
|
39
|
-
web
|
|
40
|
-
history
|
|
41
|
-
mcp
|
|
42
|
-
models
|
|
43
|
-
agents
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
A custom persona that omits `tools` gets all of these names. Built-in personas get the same set.
|
|
47
|
-
|
|
48
|
-
`web`, `history`, `mcp`, and `models` are not separate tools. Each enables a namespace inside the single `code` tool. `bash` enables both the Bash tools and `tau.bash` inside `code`. `agents` enables `tau.agents` inside `code` and the `wait_for_agents` tool, which together start and manage [subagents](subagents.md). Tau adds `code` and its [job tools](code-mode.md#background-code-jobs) whenever at least one usable capability is selected; `code` itself cannot be listed. A namespace the persona does not select is missing from the `code` API and its documentation.
|
|
49
|
-
|
|
50
|
-
An empty list turns off every selectable tool:
|
|
51
|
-
|
|
52
|
-
```yaml
|
|
53
|
-
tools: []
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
`tau_docs` stays available. The list also has no effect on client tools, which attached clients offer on their own.
|
|
57
|
-
|
|
58
|
-
Missing credentials can make calls fail, but do not remove the tool. Persona configuration is covered in [personas](personas.md).
|
|
59
|
-
|
|
60
|
-
## Tau documentation
|
|
61
|
-
|
|
62
|
-
`tau_docs` reads the documentation shipped with the running Tau version. A persona cannot disable it, and every subagent has it too.
|
|
63
|
-
|
|
64
|
-
The tool takes one exact Markdown path, such as `tools.md`. It cannot search or list pages. Start with:
|
|
65
|
-
|
|
66
|
-
```text
|
|
67
|
-
index.md
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
Then follow the links on that page. The tool's description also lists the built-in command-line tools, each with a short summary and its page, so agents can open a tool's page directly without reading the index first. Whether those tools work depends on what is installed in the execution environment. Unknown paths are rejected. The documentation describes supported behavior, not a particular session's effective configuration. When the answer depends on local state, inspect the configuration or use debug output.
|
|
71
|
-
|
|
72
|
-
## Execution-environment tools
|
|
73
|
-
|
|
74
|
-
### Bash
|
|
75
|
-
|
|
76
|
-
`bash` runs a command in a fresh non-interactive login Bash in the execution environment. Each call starts a new shell, so shell variables, aliases, functions, `cd`, and other shell state do not carry over to the next call. Changes to files and other side effects do persist.
|
|
77
|
-
|
|
78
|
-
Tau starts Bash with `-lc` and the execution environment's `HOME`. A login shell can read `/etc/profile` and then the first available `~/.bash_profile`, `~/.bash_login`, or `~/.profile`. It reads `BASH_ENV` when set. `.bashrc` is otherwise loaded only when a login file sources it. Tau does not suppress anything startup files do, so they must not print output, read stdin, require a terminal, or exit the shell.
|
|
79
|
-
|
|
80
|
-
There is no TTY, and `bash` calls from the agent have no stdin. Commands that prompt, open an editor, or need a terminal hang until the timeout or fail. Use non-interactive flags, and pass `workingDirectory` instead of relying on an earlier `cd`.
|
|
81
|
-
|
|
82
|
-
Tau sets `NO_COLOR=1`, `FORCE_COLOR=0`, `TERM=dumb`, and `PAGER=cat` so output is predictable. It also makes Git non-interactive: no terminal or askpass prompts, no editors, no pagers, and SSH in batch mode. These values override inherited ones and anything set by login startup files. A command can still set its own environment variables explicitly. Authentication must therefore work without prompts.
|
|
83
|
-
|
|
84
|
-
Agents are told to choose the mode that avoids needless waiting. Background mode fits when the agent can do other useful work meanwhile, such as reading code while tests run. If the agent would only wait for the result, a foreground call with a suitable `timeout` is better than starting a background job and waiting for it right away. How long a command takes does not decide the mode by itself.
|
|
85
|
-
|
|
86
|
-
Background mode also fits a service that must keep running, or work that must survive turns and interruptions. Starting several independent jobs and then waiting for them is a valid way to run work in parallel. This is guidance for the agent; Tau does not enforce it.
|
|
87
|
-
|
|
88
|
-
The default foreground timeout is 60 seconds. Tau captures at most 24 MiB of combined stdout and stderr, and keeps the end when there is more. By default the result the model sees is limited to about 8,192 estimated tokens. Longer output is replaced by a preview of about 2,048 tokens that keeps the beginning and end, with a notice. The command has still run in full, with all its side effects.
|
|
89
|
-
|
|
90
|
-
A narrower command is better than a higher limit. When more output is really needed, the agent can set `maxOutputTokens` between 8,192 and 16,384 on its own. Values above 16,384, up to 65,536, require an explicit user request. When output is truncated, Tau may save it to a temporary file in the execution environment and report the path.
|
|
91
|
-
|
|
92
|
-
In a local execution environment, Tau removes inherited environment variables whose names end in `_KEY`, `_SECRET`, `_TOKEN`, or `_PASSWORD`, and `API_KEY`, before running commands. Hosted environments start from their own environment. Variables set explicitly for the environment still apply. Do not print credentials or whole environments.
|
|
30
|
+
Foreground calls time out after 60 seconds unless the call sets `timeout`. Long output reaches the model as a preview of its beginning and end, and the full text may be saved to a temporary file. The agent can raise the limit with `maxOutputTokens`, up to 16,384 on its own and up to 65,536 when you ask.
|
|
93
31
|
|
|
94
|
-
|
|
32
|
+
In a local execution environment, commands do not inherit variables whose names end in `_KEY`, `_SECRET`, `_TOKEN`, or `_PASSWORD`, or the name `API_KEY`. This filter works on names only, so do not rely on it to protect secrets.
|
|
95
33
|
|
|
96
|
-
|
|
34
|
+
## Background jobs
|
|
97
35
|
|
|
98
|
-
|
|
36
|
+
With `background: true`, a command returns a job ID right away and keeps running:
|
|
99
37
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
id
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
cwd: "/work/app"
|
|
107
|
-
output: truncated; showing beginning and end
|
|
108
|
-
|
|
109
|
-
--- output ---
|
|
110
|
-
<beginning and end of output>
|
|
38
|
+
```js
|
|
39
|
+
bash({ command: "npm run dev", background: true });
|
|
40
|
+
list_bash_jobs();
|
|
41
|
+
read_bash_job({ id });
|
|
42
|
+
wait_for_bash_jobs({ ids: [id], timeout: 60000 });
|
|
43
|
+
stop_bash_job({ id });
|
|
111
44
|
```
|
|
112
45
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
Each job keeps the last 24 MiB of combined output. Read, stop, and wait return that output within a budget of 8,192 estimated tokens for the whole response by default, divided evenly among the requested jobs. `maxOutputTokens` sets this budget, from 1 to 65,536. When a job's output exceeds its share, the result shows the beginning and the end. The `output: truncated` line means only that this response shows part of the output. A separate `capture: truncated` line means the job produced more than 24 MiB, so its earliest output is lost.
|
|
116
|
-
|
|
117
|
-
When a job with output finishes, Tau writes all of its retained text to a temporary file in the execution environment. Later results that include output give the file's path as `text_log`, so the agent can read or search it instead of raising the budget or running the command again. A running job has no text log. If the file cannot be written, the result shows `text_log: unavailable`.
|
|
118
|
-
|
|
119
|
-
`read_bash_job`, `stop_bash_job`, and `wait_for_bash_jobs` accept `includeOutput`, which defaults to `true`. With `false`, the result has only the labeled job lines. It leaves out output, truncation lines, the text log, and execution error messages.
|
|
120
|
-
|
|
121
|
-
`wait_for_bash_jobs({ids, timeout?, includeOutput?, maxOutputTokens?})` returns when any of the jobs exits or the wait times out. Jobs that already finished return immediately. The timeout is a positive integer in milliseconds, defaults to 60,000, and can be at most 300,000. A timeout counts as a successful result. It starts with a note that the jobs are still running, followed by their current blocks, and does not stop the jobs. Interrupting the wait leaves them running too. A job finishing never starts an agent turn by itself.
|
|
122
|
-
|
|
123
|
-
Jobs survive client disconnects while the host is running, and keep an idle session from being unloaded until they finish. Closing the session normally or shutting down the host stops the jobs of every agent in the session. Job records are not saved or recovered, and an old ID fails with a clear error. An unknown ID does not mean the command never ran, that its side effects were undone, or that it has stopped. Agents are told to check running processes and output before starting such a command again. Cleanup does not cover processes that daemonize themselves, tmux sessions, or processes left behind by a host crash or forced kill.
|
|
46
|
+
Jobs suit services and work the agent does not need to wait for. They have no time limit and survive turns, interruption, and clients detaching. A finished job never starts a turn by itself. Each job belongs to the agent that started it.
|
|
124
47
|
|
|
125
|
-
|
|
48
|
+
Jobs stop when the session closes or the host shuts down, and they are not recovered after a restart. A process that daemonizes itself or runs in tmux is not stopped. An unknown job ID does not prove that the command stopped.
|
|
126
49
|
|
|
127
|
-
|
|
50
|
+
Each agent can have 64 job records, and each job keeps the last 24 MiB of output.
|
|
128
51
|
|
|
129
|
-
|
|
52
|
+
## File and image tools
|
|
130
53
|
|
|
131
|
-
|
|
54
|
+
`write` creates or replaces a whole file. `edit` replaces one exact piece of text, which must match exactly once. Neither reads files, so the agent reads with Bash. Relative paths start from the working directory, and absolute paths work wherever the OS allows.
|
|
132
55
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
`view_image` reads an image from the execution environment and shows it to a model that accepts images. Tau's built-in instructions tell the agent to use it only when the user explicitly asks to view or analyze an image.
|
|
136
|
-
|
|
137
|
-
Supported formats are JPEG, PNG, and WebP, and the source file can be at most 50 MiB. An image is returned unchanged if both dimensions are at most 4,096 pixels and it is at most 3.5 MiB. A larger image is scaled down to fit within 4,096 pixels, keeping its aspect ratio; images are never scaled up. To meet the size limit, Tau tries lossless encoding first, then lossy compression, and reduces dimensions further only if needed. Transparency is kept. If a valid image still cannot fit the limit, the call fails. Relative paths resolve from the session's working directory.
|
|
56
|
+
`view_image` accepts JPEG, PNG, and WebP files up to 50 MiB and shrinks large images. The agent uses it only when you ask.
|
|
138
57
|
|
|
139
58
|
## Command-line tools
|
|
140
59
|
|
|
141
|
-
`tau tool` provides standalone utilities
|
|
142
|
-
|
|
143
|
-
| Command | Purpose | Guide |
|
|
144
|
-
| --- | --- | --- |
|
|
145
|
-
| `tau tool pdf-unpack` | Extract OCR Markdown and page-image patches from a PDF using Mistral. | [PDF unpacking](pdf-unpacking.md) |
|
|
146
|
-
| `tau tool image-generate` | Generate or edit an image using Google or OpenAI. | [Image generation](image-generation.md) |
|
|
147
|
-
| `tau tool speech-generate` | Generate narration or dialogue using ElevenLabs and assemble a WAV. | [Speech generation](speech-generation.md) |
|
|
148
|
-
| `tau tool openrouter` | Typed decisions and standalone text/media analysis. | [OpenRouter](openrouter.md) |
|
|
149
|
-
|
|
150
|
-
Each guide covers setup, input, examples, outputs, and failures. Run `tau tool --help` to list commands, or `tau tool <command> --help` for one command. Agents can read the same guides with `tau_docs`.
|
|
151
|
-
|
|
152
|
-
## Code-mode composition
|
|
153
|
-
|
|
154
|
-
`code` runs a JavaScript program, inline or from a saved file, that combines the enabled capabilities. It can also run the program as a background job. See [code mode](code-mode.md) for input, output, limits, background code jobs, and each capability.
|
|
155
|
-
|
|
156
|
-
## Subagent tools
|
|
60
|
+
`tau tool` provides standalone utilities that work in any shell. Agents run them through Bash. Their files and credentials must be on the machine running the command.
|
|
157
61
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
Configured command client tools also belong to the client. They run processes on the client machine, and can run limited commands in the execution environment when the work belongs on the session machine. This matters with remote attachment, where the TUI and its tools may be on a laptop while the host and execution environment are elsewhere. See [client tools](client-tools.md) for configuration, protocol helpers, and limits, and [TUI](tui.md) for diff-tool configuration.
|
|
165
|
-
|
|
166
|
-
### Sending files to Telegram
|
|
167
|
-
|
|
168
|
-
Telegram provides four client tools, each accepting `{ path, caption? }` and delivering to the current chat:
|
|
169
|
-
|
|
170
|
-
| Tool | Delivery | Supported files | Maximum size |
|
|
171
|
-
| --- | --- | --- | --- |
|
|
172
|
-
| `send_photo_to_telegram` | In-chat photo | JPEG/PNG; width plus height at most 10,000 pixels, aspect ratio at most 20 | 10,000,000 bytes |
|
|
173
|
-
| `send_video_to_telegram` | Playable video | MPEG4 | 50,000,000 bytes |
|
|
174
|
-
| `send_audio_to_telegram` | Audio player | MP3/M4A | 50,000,000 bytes |
|
|
175
|
-
| `send_document_to_telegram` | Original file attachment | Any type, including PDF, CSV, ZIP, WAV, and original-quality images | 50,000,000 bytes |
|
|
176
|
-
|
|
177
|
-
Paths may be absolute or relative to the session's working directory. Captions are plain text of at most 1,024 UTF-16 code units. Documents keep their original bytes and filename, while photos go through Telegram's own photo processing. File contents never enter the model's context or the session history.
|
|
178
|
-
|
|
179
|
-
Files are read in chunks of at most 8,000,000 bytes. A file that is not a regular file, is empty, is too large, or changes during the transfer is rejected. The tools do not inspect codecs, convert files, or try another delivery method. Telegram checks media compatibility, including photo dimensions. Convert unsupported media before sending, or send it as a document.
|
|
180
|
-
|
|
181
|
-
Read errors, cancellation, and Telegram delivery errors fail the tool call. Each call has five minutes and is never retried automatically, because an interrupted upload may already have reached Telegram.
|
|
182
|
-
|
|
183
|
-
The runner holds the upload credentials, and the recipient is always the session's bot and chat; the agent cannot choose another. These tools are not affected by `enabledClientTools` and do not exist in TUI sessions or subagents. Viewing an image with `view_image` does not send it to Telegram. Automatic voice replies through `/tts_on` are separate from these tools.
|
|
184
|
-
|
|
185
|
-
## When a tool is missing or fails
|
|
186
|
-
|
|
187
|
-
First work out where the tool should come from:
|
|
62
|
+
| Command | Purpose |
|
|
63
|
+
| --- | --- |
|
|
64
|
+
| `tau tool pdf-unpack` | [OCR a PDF](pdf-unpacking.md) with Mistral. |
|
|
65
|
+
| `tau tool image-generate` | [Generate or edit an image](image-generation.md) with Google or OpenAI. |
|
|
66
|
+
| `tau tool speech-generate` | [Generate narration or dialogue](speech-generation.md) with ElevenLabs. |
|
|
67
|
+
| `tau tool openrouter` | [Typed decisions and text or media analysis](openrouter.md). |
|
|
188
68
|
|
|
189
|
-
|
|
190
|
-
- For a tool inside a subagent, check the main persona's `tools` against the list of tools subagents can receive.
|
|
191
|
-
- For a client tool, confirm that an attached, observing client offers it and that client tools are not disabled.
|
|
192
|
-
- If `tau_docs` is missing, something is wrong with the Tau installation or version; no persona setting removes it.
|
|
69
|
+
`tau tool <command> --help` lists a command's flags.
|
|
193
70
|
|
|
194
|
-
|
|
71
|
+
## Checking what a session has
|
|
195
72
|
|
|
196
|
-
|
|
73
|
+
`tau --debug --persona <id>` prints the tool schemas of a new local session. A turn keeps the tools it started with, so persona changes, reloads, and clients attaching apply from the next turn.
|
|
@@ -1,235 +1,41 @@
|
|
|
1
1
|
# Troubleshooting
|
|
2
2
|
|
|
3
|
-
Most
|
|
3
|
+
Most problems come from a setting on the wrong machine or a change that has not been applied. Start by finding which part reads the setting, using [how Tau works](how-tau-works.md).
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Inspecting state
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- `tau --debug --persona <id>` prints what a new local session would load, including the full prompt, and exits. Keep the output private. It cannot inspect a remote host.
|
|
8
|
+
- `/help` shows the loaded skills and context files of the current session.
|
|
9
|
+
- `/reload` reports configuration warnings for the current session.
|
|
10
|
+
- `!!pwd`, `!!printf '%s\n' "$HOME"`, and `!!command -v git` show what the agent sees, without using context.
|
|
11
|
+
- `tau auth list` shows Codex accounts on the host.
|
|
8
12
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
```sh
|
|
12
|
-
tau --help
|
|
13
|
-
tau attach --help
|
|
14
|
-
tau auth --help
|
|
15
|
-
tau history --help
|
|
16
|
-
tau telegram --help
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
Help describes that installed binary, and `tau_docs` describes the host's installed version. An attached TUI, a remote host, and deployed history services can each run a different version, so the host's documentation may not match an older client's flags or a separately deployed service.
|
|
20
|
-
|
|
21
|
-
For a local startup, `tau --debug` loads configuration and content from the current directory, prints warnings and catalog information, and exits without opening the TUI:
|
|
22
|
-
|
|
23
|
-
```sh
|
|
24
|
-
cd /path/that-should-own-the-session
|
|
25
|
-
tau --debug
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
Add `--persona <exact-id>` to check one persona. The output includes the complete project context sent to the model, so keep it private and do not use it to dump configuration. It cannot inspect a running remote host, a hosted environment, or an attached client.
|
|
29
|
-
|
|
30
|
-
Inside the TUI, `/help` shows the commands, loaded skills, and context file paths of the current session. `/reload` asks the host to load session content again.
|
|
13
|
+
No command prints the complete effective configuration.
|
|
31
14
|
|
|
32
15
|
## A configuration change has no effect
|
|
33
16
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
Confirm that part's machine, `cwd`, home, and tool paths. In an attached session, these checks report the execution environment, not the laptop:
|
|
37
|
-
|
|
38
|
-
```text
|
|
39
|
-
!!pwd
|
|
40
|
-
!!printf '%s\n' "$HOME"
|
|
41
|
-
!!command -v git
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
The global level is skipped when the relevant `cwd` is outside home. Every project level on the path applies, with rules that depend on the field. Read the warnings and [configuration](configuration.md) for these common causes:
|
|
45
|
-
|
|
46
|
-
- a nearer value, object, or `enabledClientTools` list replaced the broader one;
|
|
47
|
-
- a merging field kept keys from another level;
|
|
48
|
-
- a relative path resolved from the level that declared it;
|
|
49
|
-
- an invalid nearer value was skipped, so a broader value still applies; or
|
|
50
|
-
- a misspelled field was removed without a warning.
|
|
51
|
-
|
|
52
|
-
Validate JSON without printing it:
|
|
53
|
-
|
|
54
|
-
```sh
|
|
55
|
-
node -e 'JSON.parse(require("node:fs").readFileSync(process.argv[1], "utf8"))' \
|
|
56
|
-
/path/to/config.json
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
Run `tau --debug` from the intended directory for a new local startup. For a running session, run `/reload` while idle and read every warning.
|
|
60
|
-
|
|
61
|
-
| Change | How to apply |
|
|
62
|
-
| --- | --- |
|
|
63
|
-
| Session configuration and content | `/reload` while idle |
|
|
64
|
-
| MCP server definitions | Start a new session, or reopen the session after the host has unloaded it |
|
|
65
|
-
| Theme, voice, recording shortcut, personal speech vocabulary, or TUI client tools | Restart `tau` or `tau attach` |
|
|
66
|
-
| Host environment, `apiKeys`, history, hosted environments, listener, or Tau version | Restart the host |
|
|
67
|
-
| Default persona or execution environment | Create a new session if it must change |
|
|
68
|
-
| Telegram config, routing, voice, personal speech vocabulary, or workspaces | Restart the runner |
|
|
69
|
-
|
|
70
|
-
## `/reload` is unavailable, refused, or not enough
|
|
71
|
-
|
|
72
|
-
`/reload` is a TUI command for the current session. It is refused while a turn or another conflicting operation is running. Wait for the turn to finish, or interrupt it, and run the command again.
|
|
73
|
-
|
|
74
|
-
Reload updates configuration, personas, prompts, skills, `AGENTS.md` context, and host tools for later turns. It does not:
|
|
75
|
-
|
|
76
|
-
- change the execution environment, its `cwd`, or its home;
|
|
77
|
-
- change the session's MCP servers;
|
|
78
|
-
- reload an attached client's themes, voice, recording shortcut, personal speech vocabulary, or tools;
|
|
79
|
-
- read environment variables again in a running process;
|
|
80
|
-
- reload the host's history service or hosted environment settings;
|
|
81
|
-
- update Tau's code or built-in documentation; or
|
|
82
|
-
- change subagents that are already running.
|
|
83
|
-
|
|
84
|
-
A turn keeps the persona, model settings, tools, and policies it started with. Reasoning changes and reloads do not affect the running turn or its steering. A queued message uses the settings current when it starts. If behavior seems unchanged, let a new turn start after the reload before deciding the change failed.
|
|
85
|
-
|
|
86
|
-
Protocol and SDK clients can call `session.reload` directly, with the same rules.
|
|
87
|
-
|
|
88
|
-
## A persona, prompt, skill, model, or theme is missing
|
|
89
|
-
|
|
90
|
-
Session content comes from the execution environment, and themes come from the TUI. Check the exact discovery path and the `/reload` warnings.
|
|
91
|
-
|
|
92
|
-
### Persona
|
|
93
|
-
|
|
94
|
-
For a new local session, run `tau --debug --persona <exact-id>`. The filename must match `id`, and `provider`, `model`, and a non-empty prompt body are required. Startup IDs are exact and case-sensitive. See [personas](personas.md).
|
|
95
|
-
|
|
96
|
-
### Prompt
|
|
97
|
-
|
|
98
|
-
Run `/reload` after adding, removing, or renaming a prompt or changing its label. The body is read each time the prompt is used, so using it fails if the file has since become unreadable or invalid. `/prompt:<id>` only fills the editor. See [prompts and project context](prompts-and-project-context.md).
|
|
99
|
-
|
|
100
|
-
### Skill
|
|
101
|
-
|
|
102
|
-
Use `/help` to see loaded skills. A skill needs `SKILL.md` in uppercase, valid frontmatter, a lowercase name with dashes, and a matching directory name. At one level, `.tau/skills` wins over `.agents/skills`, and nearer levels win overall.
|
|
103
|
-
|
|
104
|
-
Every persona can use all discovered skills. The trigger decides when the agent opens one. `allowed-tools` is ignored. See [skills](skills.md).
|
|
105
|
-
|
|
106
|
-
### Model
|
|
107
|
-
|
|
108
|
-
Providers must be known, and model IDs are exact and case-sensitive. Check warnings for unknown providers or models. `tau --debug --persona <id>` shows how a local startup resolves the model, and a small request confirms the endpoint, account, and credentials. Refresh the catalog and reload while idle. See [models](models.md).
|
|
109
|
-
|
|
110
|
-
### Theme
|
|
111
|
-
|
|
112
|
-
Check the exact built-in theme ID and the client's `defaultTheme`. Use `/theme:<id>` for the current run, or restart the TUI to apply a new default. A remote host's theme does not affect attached clients.
|
|
113
|
-
|
|
114
|
-
## A tool or subagent is unavailable
|
|
115
|
-
|
|
116
|
-
Work out which kind of tool is missing before changing configuration.
|
|
117
|
-
|
|
118
|
-
For a host tool, check the active persona's `tools` list. A list replaces the defaults. Run `tau --debug --persona <id>` for a new local session, or reload the current session while idle. Missing credentials make a tool fail but usually do not remove it.
|
|
119
|
-
|
|
120
|
-
For subagents, check three things:
|
|
121
|
-
|
|
122
|
-
1. The main persona has `agents`, and the calling agent is the main agent or a native Tau subagent at depth 1.
|
|
123
|
-
2. A requested model exactly matches an entry in the launch allowlist.
|
|
124
|
-
3. Fewer than 16 subagents are running in the session.
|
|
125
|
-
|
|
126
|
-
A running subagent keeps its model, tools, and working directory after a reload. Recovery does not restore subagents, so old IDs cannot receive follow-ups after a host restart. Use `tau.agents.list()` in `code` to see the caller's live descendants. The main agent sees all of them. See [subagents](subagents.md).
|
|
127
|
-
|
|
128
|
-
If `tau_docs` is missing, the problem is the host's installation or version, not a persona. Check the host package and restart it.
|
|
129
|
-
|
|
130
|
-
## A command client tool is missing or fails
|
|
131
|
-
|
|
132
|
-
A command client tool exists only while its client observes the session. On the client side, check:
|
|
133
|
-
|
|
134
|
-
1. The definition is in global configuration on the client machine, and the client's `cwd` is inside home.
|
|
135
|
-
2. The entry is valid and its schema has an object root.
|
|
136
|
-
3. The nearest project `enabledClientTools` includes the exact, case-sensitive name, or no project sets the field and `defaultEnabled` applies.
|
|
137
|
-
4. The TUI was not started with `--no-client-tools`.
|
|
138
|
-
5. No other client and no host tool uses the same name.
|
|
139
|
-
6. The client was restarted or reconnected after the configuration change.
|
|
140
|
-
|
|
141
|
-
Unknown names in the selection are ignored, and an empty `enabledClientTools` selects none. `/reload` does not refresh client tools.
|
|
142
|
-
|
|
143
|
-
For failures, find which side failed. Launch, permission, `PATH`, timeout, stderr, framing, and nonzero-exit errors come from the client machine. Errors from `executionEnvironment.exec` come from the session machine. The executable runs directly, without a shell, with the client process's directory and environment.
|
|
144
|
-
|
|
145
|
-
When the client detaches, its tools disappear and running calls are cancelled. Reconnecting does not resume the earlier process. See [client tools](client-tools.md).
|
|
146
|
-
|
|
147
|
-
## A credential is reported missing or rejected
|
|
148
|
-
|
|
149
|
-
Find the process that makes the request:
|
|
150
|
-
|
|
151
|
-
| Operation | Where the credential belongs |
|
|
152
|
-
| ---------------------------------------- | ------------------------------- |
|
|
153
|
-
| Model calls, host `web`, or `history` | Host |
|
|
154
|
-
| `/listen`, `/speak`, or TUI client tools | Client |
|
|
155
|
-
| Telegram bot or transcription | Runner |
|
|
156
|
-
| `tau history` or `tau tool` commands | The machine running the command |
|
|
157
|
-
| Fly Sprite connection | Host startup configuration |
|
|
158
|
-
|
|
159
|
-
A variable set on the laptop does not reach a remote host. After changing environment variables or `apiKeys`, restart the process that uses them. `apiKeys` in a project file are rejected; check the process's environment and its global configuration.
|
|
160
|
-
|
|
161
|
-
Never print the secret, the environment, or the whole configuration. Check the expected source privately, read the error message, and make one small request. See [credentials](credentials.md).
|
|
162
|
-
|
|
163
|
-
## A Codex account cannot be selected
|
|
164
|
-
|
|
165
|
-
Run this on the session host, not on an attached client:
|
|
166
|
-
|
|
167
|
-
```sh
|
|
168
|
-
tau auth list
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
It shows stored accounts, which one is active, refresh status, and usage windows, without showing tokens. Fix the problem with these commands:
|
|
172
|
-
|
|
173
|
-
```sh
|
|
174
|
-
tau auth login codex
|
|
175
|
-
tau auth use codex --account developer@example.com
|
|
176
|
-
tau auth logout codex --account developer@example.com
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
Log in again when credentials have expired or refresh failed. Choose an account with `auth use`. Logging out the active account leaves none active, and Tau never switches accounts because of usage or failures. A new selection applies to later requests in every session, not to requests already in progress.
|
|
180
|
-
|
|
181
|
-
Do not edit `~/.config/tau/auth.json`; the auth commands handle updates and permissions.
|
|
182
|
-
|
|
183
|
-
## Bash prints unexpected text, prompts, or reports no TTY
|
|
184
|
-
|
|
185
|
-
Every command runs in a fresh non-interactive login Bash in the execution environment. Test startup with `!!bash -lc 'printf ok'`. Check `/etc/profile`, the first user login file, `BASH_ENV`, and any `.bashrc` they source. A file that prints, reads stdin, prompts, sets up the terminal, or exits affects every command.
|
|
186
|
-
|
|
187
|
-
Use flags that avoid prompts. Set up credentials beforehand, configure Git and SSH to work without prompts, and avoid editors and tools that need a terminal. Aliases, variables, `cd`, and functions do not carry over between calls, so pass `workingDirectory` or write a complete command each time.
|
|
188
|
-
|
|
189
|
-
In local environments, Tau removes inherited variables with credential-like names. If a command needs authentication, use that tool's own non-interactive credential setup instead of passing the whole environment through. Hosted environments use their own environment.
|
|
190
|
-
|
|
191
|
-
## WebSocket attachment is unauthorized or unsafe
|
|
192
|
-
|
|
193
|
-
Confirm that client and server use the same token. `--auth-token` wins when given; otherwise `TAU_WS_AUTH_TOKEN` can supply it on either side. Check that it is set without logging its value.
|
|
194
|
-
|
|
195
|
-
Tau sends the token as the `tau_token` query parameter. A reverse proxy must pass through the query string and the WebSocket upgrade, and should remove query strings from its logs. A rejected token shows up in the client as an unexpected WebSocket close, so compare with the server's or proxy's logs.
|
|
196
|
-
|
|
197
|
-
Tau does not handle TLS. Use `wss://` behind a trusted TLS reverse proxy, or keep the server on loopback and use an SSH tunnel. Run without a token only where every client that can connect is trusted with full session access.
|
|
198
|
-
|
|
199
|
-
If attachment reports an unsupported protocol version or an invalid message, upgrade host and client to the same Tau release and restart both. Do not downgrade a host that may have saved sessions in a newer format.
|
|
200
|
-
|
|
201
|
-
## Remote attach uses the wrong directory or cannot create a session
|
|
202
|
-
|
|
203
|
-
For `tau attach --new`, `--cwd` must be an absolute path inside the chosen execution environment. With the default local kind, it is a path on the host, not on the attaching machine. Tau does not create the directory, clone a repository, or detect repository attributes.
|
|
204
|
-
|
|
205
|
-
Creating a session also fails if Tau cannot read the hostname from the execution environment, for example because `node` is missing there or the target does not respond in time. The error gives the reason and any output from the failed command. Over the session protocol, these details are in the error's `data.cause`.
|
|
206
|
-
|
|
207
|
-
For a Fly Sprite session, check on the host that:
|
|
208
|
-
|
|
209
|
-
- `flySprites` is set in the host's startup configuration;
|
|
210
|
-
- its token is available to the host process;
|
|
211
|
-
- the named Sprite exists;
|
|
212
|
-
- the absolute `cwd` exists in the Sprite; and
|
|
213
|
-
- the configured `home` matches the account you intend to use.
|
|
17
|
+
Check these in order:
|
|
214
18
|
|
|
215
|
-
|
|
19
|
+
1. You edited the file on the machine that reads it.
|
|
20
|
+
2. The working directory is inside home if you edited global configuration.
|
|
21
|
+
3. A nearer project level does not override the field.
|
|
22
|
+
4. You spelled the field correctly, because Tau removes unknown fields without a warning.
|
|
23
|
+
5. You applied the change. See [configuration](configuration.md).
|
|
216
24
|
|
|
217
|
-
|
|
25
|
+
An invalid value is skipped with a warning, so a value from a broader level may still apply.
|
|
218
26
|
|
|
219
|
-
## A
|
|
27
|
+
## A tool is missing
|
|
220
28
|
|
|
221
|
-
|
|
29
|
+
Check the active persona's `tools` list, which replaces the defaults. Client tools come from an attached client, so check [client tools](client-tools.md) for those. MCP is unavailable in sessions on a remote execution environment. Missing credentials make a tool fail without removing it.
|
|
222
30
|
|
|
223
|
-
A
|
|
31
|
+
## A credential is rejected
|
|
224
32
|
|
|
225
|
-
A
|
|
33
|
+
Find the process making the request. A key exported on a laptop does not reach a remote host, and the agent's Bash commands do not inherit variables with credential-like names. After changing environment variables or `apiKeys`, restart the process. See [models and credentials](models-and-credentials.md).
|
|
226
34
|
|
|
227
|
-
|
|
35
|
+
## Commands hang or print unexpected text
|
|
228
36
|
|
|
229
|
-
|
|
37
|
+
Every command runs in a fresh non-interactive login Bash with no terminal. Test startup with `!!bash -lc 'printf ok'`. If the output has anything beyond `ok`, look at `/etc/profile`, your login files, and `BASH_ENV`. Set up Git and SSH so they work without prompts.
|
|
230
38
|
|
|
231
|
-
|
|
39
|
+
## A session is missing or will not recover
|
|
232
40
|
|
|
233
|
-
|
|
234
|
-
- [Telegram](telegram.md#troubleshooting): ignored messages, project selection, audio, voice replies, and late or missing replies.
|
|
235
|
-
- [Telegram projects and workspaces](telegram-projects.md#troubleshooting): repository preparation, provisioning, and workspace recovery.
|
|
41
|
+
The host lists only sessions it can reconnect. Check that you run the same OS user and Tau version or newer, and that the directory, Sprite, and host configuration still exist. Keep the session file and the error message, and never edit session files. See [sessions](sessions.md).
|