@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,77 +1,138 @@
|
|
|
1
1
|
# Code mode
|
|
2
2
|
|
|
3
|
-
`code` runs a JavaScript program
|
|
3
|
+
Code mode lets the agent do many operations in one tool call. The `code` tool runs a short JavaScript program against Tau's APIs, and only what the program prints goes back to the model. The agent can therefore run ten searches or read a large result, keep the two lines that matter, and use little context.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The program runs in a sandbox with no imports, timers, files, network, environment variables, or credentials of its own. It can act only through the `tau` namespace, which holds the capabilities the persona selected:
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
| API | What it does |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| `tau.bash` | Run commands and manage background jobs. |
|
|
10
|
+
| `tau.web` | Search the web, fetch pages, and discover Markdown versions of pages. |
|
|
11
|
+
| `tau.history` | Search and read past transcripts. See [history](history.md). |
|
|
12
|
+
| `tau.mcp` | Find and call tools on [MCP servers](mcp.md). |
|
|
13
|
+
| `tau.models` | Run standalone model calls through OpenRouter. These see no session context. |
|
|
14
|
+
| `tau.agents` | Start and manage [subagents](subagents.md). |
|
|
8
15
|
|
|
9
|
-
The
|
|
16
|
+
The agent reads the API reference when it needs it, by printing `docs` or `await tau.docs("web")`, so you do not need to learn these APIs to use Tau. You will want to know them when you write skills or review what an agent did.
|
|
10
17
|
|
|
11
|
-
|
|
12
|
-
code({
|
|
13
|
-
file: ".agents/skills/audit/audit.js",
|
|
14
|
-
input: { project: "checkout", limit: 100 },
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
// audit.js
|
|
18
|
-
const { project, limit } = input;
|
|
19
|
-
```
|
|
18
|
+
## Examples
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
If the agent has not yet seen the runtime guide, it first runs a program that only prints it:
|
|
20
|
+
**Keep only what matters.** Run a noisy command and return only the failures:
|
|
24
21
|
|
|
25
22
|
```js
|
|
26
|
-
|
|
23
|
+
const result = await tau.bash.run({ command: "npm test" });
|
|
24
|
+
const failures = result.output
|
|
25
|
+
.split("\n")
|
|
26
|
+
.filter((line) => line.includes("FAIL"));
|
|
27
|
+
printText(`exit ${result.exitCode}, ${failures.length} failures`);
|
|
28
|
+
printText(truncate(failures.join("\n"), { maxChars: 4000 }));
|
|
27
29
|
```
|
|
28
30
|
|
|
29
|
-
|
|
31
|
+
**Work in parallel.** Run several searches and print a short summary of each:
|
|
30
32
|
|
|
31
33
|
```js
|
|
32
|
-
|
|
34
|
+
const queries = ["node 24 release notes", "node 24 breaking changes"];
|
|
35
|
+
const responses = await Promise.all(
|
|
36
|
+
queries.map((query) => tau.web.search(query, { numResults: 3 })),
|
|
37
|
+
);
|
|
38
|
+
for (const response of responses) {
|
|
39
|
+
for (const page of response.results) {
|
|
40
|
+
printText(
|
|
41
|
+
`${page.title}\n${page.url}\n${(page.highlights ?? []).join("\n")}\n`,
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
for (const notice of response.notices) printText(`notice: ${notice.message}`);
|
|
45
|
+
}
|
|
33
46
|
```
|
|
34
47
|
|
|
35
|
-
|
|
48
|
+
**Combine capabilities.** Find open issues on an MCP server and check each one against the repository:
|
|
36
49
|
|
|
37
|
-
|
|
50
|
+
```js
|
|
51
|
+
const { tools } = await tau.mcp.searchTools("list open issues", { limit: 1 });
|
|
52
|
+
const list = await tau.mcp.callTool(tools[0].server, tools[0].name, {
|
|
53
|
+
state: "open",
|
|
54
|
+
});
|
|
55
|
+
if (list.isError) throw new Error(list.content[0].text);
|
|
56
|
+
const issues = JSON.parse(list.content[0].text);
|
|
57
|
+
for (const issue of issues) {
|
|
58
|
+
const grep = await tau.bash.run({
|
|
59
|
+
command: `git log --oneline --grep="#${issue.number}"`,
|
|
60
|
+
});
|
|
61
|
+
printText(
|
|
62
|
+
`#${issue.number} ${issue.title}: ${grep.stdout.trim() || "no commits"}`,
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
```
|
|
38
66
|
|
|
39
|
-
|
|
67
|
+
**Classify with a cheap model.** Ask a decision model typed questions, so the program can act on the answers without parsing prose. `tau.models` sees only what you pass:
|
|
40
68
|
|
|
41
|
-
|
|
69
|
+
```js
|
|
70
|
+
const reports = await tau.bash.run({ command: "cat reports/*.txt" });
|
|
71
|
+
const { answers } = await tau.models.decisions({
|
|
72
|
+
model: "openai/gpt-6-luna-decisions",
|
|
73
|
+
state: reports.stdout,
|
|
74
|
+
questions: {
|
|
75
|
+
has_crash: {
|
|
76
|
+
type: "noul",
|
|
77
|
+
instructions: "Do these reports describe a crash?",
|
|
78
|
+
},
|
|
79
|
+
urgency: {
|
|
80
|
+
type: "score",
|
|
81
|
+
instructions: "How urgent is the worst report?",
|
|
82
|
+
criteria: ["Can wait", "Fix soon", "Blocking revenue"],
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
printText(JSON.stringify(answers));
|
|
87
|
+
```
|
|
42
88
|
|
|
43
|
-
|
|
89
|
+
**Run subagents and collect results.** Start one worker per package, wait for all of them, and print a status line for each. Subagents keep running if the program ends early:
|
|
44
90
|
|
|
45
91
|
```js
|
|
46
|
-
const
|
|
47
|
-
|
|
92
|
+
const packages = ["api", "web", "worker"];
|
|
93
|
+
const workers = await Promise.all(
|
|
94
|
+
packages.map((name) =>
|
|
95
|
+
tau.agents.spawn({
|
|
96
|
+
title: `audit ${name}`,
|
|
97
|
+
prompt: `Audit packages/${name} for unused dependencies and list them.`,
|
|
98
|
+
}),
|
|
99
|
+
),
|
|
100
|
+
);
|
|
101
|
+
const states = await Promise.all(
|
|
102
|
+
workers.map(({ id }) => tau.agents.waitUntilIdle({ id })),
|
|
103
|
+
);
|
|
104
|
+
for (const state of states)
|
|
105
|
+
printText(`${state.title}: ${state.status}, ${state.reason}`);
|
|
48
106
|
```
|
|
49
107
|
|
|
50
|
-
|
|
108
|
+
**Reuse a program.** A skill can ship a reviewed program and run it with different input, so the agent does not write it again. The agent passes `file` in place of inline code:
|
|
51
109
|
|
|
52
|
-
|
|
110
|
+
```js
|
|
111
|
+
code({
|
|
112
|
+
file: ".agents/skills/audit/audit.js",
|
|
113
|
+
input: { project: "checkout", limit: 100 },
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
// audit.js
|
|
117
|
+
const { project, limit } = input;
|
|
118
|
+
```
|
|
53
119
|
|
|
54
|
-
A
|
|
120
|
+
A saved program is a single file of at most 1 MiB and cannot import other files. `input` is any JSON value up to 16 KiB.
|
|
55
121
|
|
|
56
|
-
##
|
|
122
|
+
## Output
|
|
57
123
|
|
|
58
|
-
|
|
124
|
+
Only `printText(string)` and `await printImage({ data, mimeType })` produce output. Return values are ignored. `truncate(text, { maxChars })` and `truncateLines(text, { maxLines })` shorten text before printing.
|
|
59
125
|
|
|
60
|
-
|
|
126
|
+
Long text is cut in the middle to `maxOutputTokens`, which defaults to 8,192. When that happens, Tau tries to save the text to a temporary file and reports the path. The agent should read that file, because running the program again would repeat its side effects.
|
|
61
127
|
|
|
62
|
-
|
|
128
|
+
## Limits
|
|
63
129
|
|
|
64
|
-
|
|
130
|
+
A foreground program times out after 5 minutes, and `timeout` can raise this to 60 minutes. Programs can make 4,096 API requests, 32 at a time, and each request and response can be up to 64 MiB. Programs are never retried, and a failed program does not undo what it did.
|
|
65
131
|
|
|
66
|
-
|
|
132
|
+
## Background programs
|
|
67
133
|
|
|
68
|
-
|
|
134
|
+
With `background: true`, `code` returns a job ID right away and the program has no overall deadline. `list_code_jobs`, `read_code_job`, `wait_for_code_jobs`, and `stop_code_job` work like the [Bash job tools](tools.md). Stopping a program does not stop the Bash jobs or subagents it started.
|
|
69
135
|
|
|
70
|
-
|
|
71
|
-
- `tau.history`: read-only search and paginated transcripts. The agent uses it only when explicitly told to look at past sessions. It treats past content as data and never follows instructions in it. See [history](history.md).
|
|
72
|
-
- `tau.mcp`: finding and calling tools and resources on configured MCP servers. When the persona allows MCP, enabled server names and optional configured descriptions are visible in the initial tool definition, before any tool call. Disabled servers and connection settings are omitted. These summaries guide discovery and do not grant permission to act. The agent reads each tool's description and schema before calling it. The capability is missing from sessions on a remote execution environment. A session and its subagents share connections, which open on first use, and calls that change data are never retried. An `isError` result is returned as data, while protocol failures throw. MCP server configuration and trust rules apply. See [configuration reference](config-reference.md#mcpservers) and [security](security.md#trust-mcp-servers).
|
|
73
|
-
- `tau.bash`: `run`, `start`, `list`, `read`, `wait`, and `stop`. `run` returns stdout, stderr, and exit and termination fields, capturing up to 24 MiB. Beyond that it keeps the end, so check `truncated` before parsing. Optional UTF-8 `stdin` is limited to 16 MiB and closed after writing. Without `stdin` the command has no stdin at all, while `""` gives it an empty one. `start` takes no stdin. Background jobs are the same jobs that the agent's Bash job tools show, and each keeps the last 24 MiB of output. `read`, `wait`, and `stop` return that retained output as a string, without the job tools' token budget. `list` leaves out output and execution error messages. Jobs survive the program ending and interruption, while foreground commands are cancelled. The [Bash rules](tools.md#bash) apply.
|
|
74
|
-
- `tau.models`: lists a fixed set of OpenRouter models and runs standalone chats or typed decisions with them. The initial tool definition names the chat and decision model IDs, so the agent can see them before any tool call. These calls do not see the session's conversation or tools. A chat can include a JSON Schema. Tau then requests structured output from the provider, and a complete answer is the parsed JSON. The agent uses that answer directly for ordinary extraction and analysis. How strictly the schema is enforced varies by provider, so the agent adds targeted checks when a constraint matters for a consequential action. Chat and decision media can be paths on the agent's machine or inline padded base64 with a matching MIME type. Inline media counts toward the 64 MiB request limit, so large files go by path. Credentials stay on the host. Provider usage data is returned, but these charges are not included in the session's cost or usage logs. Requests can be cancelled and are never retried automatically. Limits on input, models, media, responses, and requests are the same as in [OpenRouter](openrouter.md). Tau holds concurrent model requests to a shared memory budget, so a large request can wait for earlier ones to finish. Check whether a response completed or was refused instead of assuming it is a full answer.
|
|
75
|
-
- `tau.agents`: starts subagents, sends them queued or steering input, interrupts them, waits until they are idle, and reads pages of their conversation traces. The main agent has it when the persona selects `agents`, and so do native Tau subagents at depth 1. Each agent reaches only its own descendants. Subagents keep working when the program that started or waits for them ends. See [subagents](subagents.md#managing-subagents).
|
|
136
|
+
## Your own code-mode tools
|
|
76
137
|
|
|
77
|
-
SDK
|
|
138
|
+
An SDK program or a client tool command can give the model its own API in the same sandbox. See [client tools](client-tools.md).
|
|
@@ -1,200 +1,106 @@
|
|
|
1
1
|
# Configuration
|
|
2
2
|
|
|
3
|
-
Tau
|
|
4
|
-
|
|
5
|
-
This page explains how the layers behave. Use [configuration reference](config-reference.md) for the fields themselves and [ownership and scope](ownership-and-scope.md) when more than one machine is involved.
|
|
6
|
-
|
|
7
|
-
## Where configuration is loaded
|
|
8
|
-
|
|
9
|
-
Tau recognizes these `config.json` locations:
|
|
10
|
-
|
|
11
|
-
| Level | Path | Included when |
|
|
12
|
-
| --- | --- | --- |
|
|
13
|
-
| Shipped defaults | Built into the installed Tau version | Always |
|
|
14
|
-
| Global | `~/.config/tau/config.json` | The relevant `cwd` is the home directory or lies below it |
|
|
15
|
-
| Project | `<ancestor>/.tau/config.json` | The ancestor is on the path from the relevant `cwd` to the discovery stop |
|
|
16
|
-
|
|
17
|
-
When `cwd` is inside home, discovery stops at home. When it is outside home, the global level is omitted and project discovery continues to the filesystem root.
|
|
18
|
-
|
|
19
|
-
A directory counts as a project level when it contains `.tau/` or `.agents/skills/`. The level does not need a `config.json` file, so a directory with only skills still takes part in content discovery.
|
|
20
|
-
|
|
21
|
-
For this layout:
|
|
3
|
+
Tau reads `config.json` from these levels, and nearer levels win:
|
|
22
4
|
|
|
23
5
|
```text
|
|
24
|
-
/home
|
|
25
|
-
|
|
26
|
-
work/ledger/
|
|
27
|
-
.tau/config.json
|
|
28
|
-
packages/api/
|
|
29
|
-
.tau/config.json
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
starting from `/home/ada/work/ledger/packages/api` loads, from least to most specific:
|
|
33
|
-
|
|
34
|
-
```text
|
|
35
|
-
/home/ada/.config/tau/config.json
|
|
36
|
-
/home/ada/work/ledger/.tau/config.json
|
|
37
|
-
/home/ada/work/ledger/packages/api/.tau/config.json
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
In a remote session, the session uses the `cwd` and home of the execution environment. An attached TUI loads its own client settings from the `cwd` and home of the `tau attach` process.
|
|
41
|
-
|
|
42
|
-
## How levels combine
|
|
43
|
-
|
|
44
|
-
For most fields, **the most specific level wins**. A value in the nearest project level replaces the same field from broader levels, including whole objects.
|
|
45
|
-
|
|
46
|
-
In `~/.config/tau/config.json`:
|
|
47
|
-
|
|
48
|
-
```json
|
|
49
|
-
{
|
|
50
|
-
"defaultPersona": "sonnet-5.5-coder"
|
|
51
|
-
}
|
|
6
|
+
~/.config/tau/config.json global, only when cwd is inside home
|
|
7
|
+
<ancestor>/.tau/config.json each project level, from broadest to nearest
|
|
52
8
|
```
|
|
53
9
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
10
|
+
When the working directory is inside home, the search stops at home. Otherwise it continues to the filesystem root and skips the global level. A session reads these files on its execution environment, and a client reads them from its own startup directory. See [how Tau works](how-tau-works.md).
|
|
11
|
+
|
|
12
|
+
## Fields
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
type Config = {
|
|
16
|
+
defaultPersona?: string; // "id" or "id:reasoning", default "sonnet-5.5-coder"
|
|
17
|
+
defaultTheme?: string; // built-in theme ID, default "gold"
|
|
18
|
+
apiKeys?: Record<string, string>; // global only, keyed by provider
|
|
19
|
+
subagents?: { launchModels?: string[] }; // "<provider>/<model>:<effort>"
|
|
20
|
+
modelSystemNotices?: Record<string, string>; // keyed by "<provider>/<model>"
|
|
21
|
+
mcpServers?: Record<string, McpServer>; // see mcp.md
|
|
22
|
+
clientTools?: CommandClientTool[]; // global only, see client-tools.md
|
|
23
|
+
enabledClientTools?: string[]; // project only, [] selects none
|
|
24
|
+
speech?: {
|
|
25
|
+
voiceId?: string; // ElevenLabs voice for /speak and Telegram /tts_on
|
|
26
|
+
recordingShortcut?: {
|
|
27
|
+
key: string; // one printable character, "ctrl+y", or "f1" to "f12"
|
|
28
|
+
gesture: "press" | "double-tap";
|
|
29
|
+
};
|
|
30
|
+
cleanupStyle?: "off" | "default"; // TUI dictation cleanup, default "off"
|
|
31
|
+
vocabulary?: string[]; // spelling hints for transcription
|
|
32
|
+
};
|
|
33
|
+
markdownExport?: {
|
|
34
|
+
// global only, see tui.md
|
|
35
|
+
url: string; // HTTPS, or HTTP on localhost
|
|
36
|
+
token?: string;
|
|
37
|
+
tokenEnv?: string; // variable holding the token
|
|
38
|
+
};
|
|
39
|
+
history?: {
|
|
40
|
+
// global only, see history.md
|
|
41
|
+
endpoint: string;
|
|
42
|
+
apiKey?: string;
|
|
43
|
+
apiKeyEnv?: string;
|
|
44
|
+
};
|
|
45
|
+
flySprites?: {
|
|
46
|
+
// see remote-sessions.md
|
|
47
|
+
baseURL?: string; // default "https://api.sprites.dev"
|
|
48
|
+
token?: string;
|
|
49
|
+
tokenEnv?: string;
|
|
50
|
+
home?: string; // default "/home/sprite"
|
|
51
|
+
};
|
|
52
|
+
};
|
|
60
53
|
```
|
|
61
54
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
A few fields use other rules:
|
|
65
|
-
|
|
66
|
-
- `apiKeys` is global-only; project values are rejected.
|
|
67
|
-
- `modelSystemNotices` merges by normalized `<provider>/<model>` key.
|
|
68
|
-
- `flySprites` configures one connection; more-specific connection fields replace broader values.
|
|
69
|
-
- `subagents.launchModels` selects the most-specific list.
|
|
70
|
-
- `clientTools` is defined only at global scope. `enabledClientTools` at the most-specific project level is an exact selection from those definitions.
|
|
71
|
-
- `history` is accepted only at global scope.
|
|
72
|
-
|
|
73
|
-
An empty `enabledClientTools` list in a project disables all command client tools for that project:
|
|
55
|
+
An example:
|
|
74
56
|
|
|
75
57
|
```json
|
|
76
58
|
{
|
|
77
|
-
"
|
|
59
|
+
"defaultPersona": "gpt-6.1-sol-coder:high",
|
|
60
|
+
"speech": { "vocabulary": ["Tau", "PostgreSQL"] },
|
|
61
|
+
"subagents": { "launchModels": ["openai/gpt-6-luna:medium"] },
|
|
62
|
+
"modelSystemNotices": {
|
|
63
|
+
"openai/gpt-6.1-sol": "Use the repository's formatter for source changes."
|
|
64
|
+
}
|
|
78
65
|
}
|
|
79
66
|
```
|
|
80
67
|
|
|
81
|
-
|
|
68
|
+
A model system notice is added to later user input for that model. It is saved with the session, so keep secrets out of it.
|
|
82
69
|
|
|
83
|
-
## How
|
|
70
|
+
## How levels combine
|
|
84
71
|
|
|
85
|
-
|
|
72
|
+
The nearest level replaces the whole field, with these exceptions:
|
|
86
73
|
|
|
87
|
-
|
|
88
|
-
|
|
74
|
+
| Field | Behavior |
|
|
75
|
+
| --- | --- |
|
|
76
|
+
| `speech` | Merges by field. `vocabulary` lists add up, nearest first. |
|
|
77
|
+
| `modelSystemNotices` | Merges by key. |
|
|
78
|
+
| `flySprites` | Merges by field. |
|
|
79
|
+
| `mcpServers` | Merges by server name. A nearer entry replaces the whole server, including its credentials. |
|
|
89
80
|
|
|
90
|
-
|
|
81
|
+
`apiKeys`, `clientTools`, `history`, and `markdownExport` are read from global configuration only. Tau rejects them in project files, so a cloned repository cannot set them.
|
|
91
82
|
|
|
92
83
|
## Invalid and unknown fields
|
|
93
84
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
An invalid field is skipped. If a broader level sets the same field validly, that broader value stays in effect. A warning therefore means your override did not apply.
|
|
97
|
-
|
|
98
|
-
Unknown fields are removed without a warning, both at the top level and inside nested objects. This lets an older Tau version read configuration written for a newer one. It also means a misspelled field silently has no effect:
|
|
85
|
+
An invalid value produces a warning and is skipped, so a broader value may stay in effect. Unknown fields are removed without a warning, which means a misspelled field has no effect:
|
|
99
86
|
|
|
100
87
|
```json
|
|
101
|
-
{
|
|
102
|
-
"defaultPersnoa": "gpt-6.1-sol-coder"
|
|
103
|
-
}
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
This is valid JSON but sets nothing, because `defaultPersnoa` is not a known field. Check edited keys against the [configuration reference](config-reference.md), especially when no warning appears.
|
|
107
|
-
|
|
108
|
-
### See configuration warnings
|
|
109
|
-
|
|
110
|
-
Where warnings appear depends on how the session was loaded:
|
|
111
|
-
|
|
112
|
-
- `tau` prints warnings for its startup directory before opening the TUI. It shows warnings for other sessions it loads in the transcript.
|
|
113
|
-
- `tau serve` and `tau telegram` write warnings for each session they create or recover to standard error, as JSON.
|
|
114
|
-
- An in-process [Node SDK](node-sdk.md) client receives them through `onDiagnostic`.
|
|
115
|
-
- `/reload` and `session.reload` return warnings for the current session, also in an attached client.
|
|
116
|
-
|
|
117
|
-
## Make a safe edit
|
|
118
|
-
|
|
119
|
-
First find out what reads the setting, and on which machine, `cwd`, and home. Then choose the narrowest level that works:
|
|
120
|
-
|
|
121
|
-
- Personal defaults and secrets usually belong in global configuration.
|
|
122
|
-
- Settings for a repository that collaborators share belong in the project's `.tau/config.json`, as long as they contain no secrets or machine-specific commands.
|
|
123
|
-
- Use a nested project level only when that subdirectory needs a different value.
|
|
124
|
-
- Client commands belong on the client. Defining them in a remote execution environment does not make them appear on an attached laptop.
|
|
125
|
-
|
|
126
|
-
Keep examples small and edit only the intended field. Validate JSON before asking Tau to load it:
|
|
127
|
-
|
|
128
|
-
```sh
|
|
129
|
-
node -e 'JSON.parse(require("node:fs").readFileSync(process.argv[1], "utf8"))' \
|
|
130
|
-
~/.config/tau/config.json
|
|
88
|
+
{ "defaultPersnoa": "gpt-6.1-sol-coder" }
|
|
131
89
|
```
|
|
132
90
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
```sh
|
|
136
|
-
cd ~/work/ledger
|
|
137
|
-
tau --debug
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
`--debug` inspects a local startup, and its output can include project instructions. It cannot show the state of a running host, a remote execution environment, or an attached client. For a running session, use `/reload` and read its configuration warnings. No command prints the complete effective configuration.
|
|
141
|
-
|
|
142
|
-
Never check a secret by printing the full config or environment into a shared transcript. Instead, run the operation that needs the credential. For Codex OAuth accounts, use the auth commands.
|
|
143
|
-
|
|
144
|
-
## When changes take effect
|
|
145
|
-
|
|
146
|
-
### New local or client process
|
|
147
|
-
|
|
148
|
-
Tau loads client configuration before opening the TUI. Restart the local TUI or `tau attach` to apply client changes such as:
|
|
149
|
-
|
|
150
|
-
- `defaultTheme`
|
|
151
|
-
- `clientTools` and `enabledClientTools`
|
|
152
|
-
- `speech.voiceId` and `speech.recordingShortcut`
|
|
153
|
-
- the client's global `speech.vocabulary` terms
|
|
154
|
-
- client environment variables
|
|
155
|
-
|
|
156
|
-
`/theme:<id>` changes only the current client's appearance. Themes are not saved in the session.
|
|
157
|
-
|
|
158
|
-
### Current session runtime
|
|
159
|
-
|
|
160
|
-
When no turn is running, `/reload` reads configuration and content again from the execution environment. It updates the session's runtime configuration, model catalog, personas, prompts, skills, the selected persona's definition, and project context. It also reports warnings and refreshes the session catalog, including its speech vocabulary. MCP server definitions stay as they were when the host loaded the session, and reload warns if the definitions on disk differ. See [`mcpServers`](config-reference.md#mcpservers).
|
|
161
|
-
|
|
162
|
-
The session keeps its current persona if that persona still exists. Otherwise Tau picks the first available persona. Changing `defaultPersona` does not switch an existing session on reload. It applies to new sessions, unless a CLI flag or creation request chooses another persona.
|
|
163
|
-
|
|
164
|
-
A turn keeps the persona, model settings, and tools it started with. Reload is refused while a turn is running, and reloaded settings apply to later turns.
|
|
165
|
-
|
|
166
|
-
### Host startup
|
|
167
|
-
|
|
168
|
-
Restart the host process to apply settings that the host reads once at startup, including:
|
|
169
|
-
|
|
170
|
-
- `flySprites`
|
|
171
|
-
- `history`
|
|
172
|
-
- host environment variables
|
|
173
|
-
|
|
174
|
-
For `tau serve`, make the changes on the host machine and restart the server. Restarting an attached TUI does not restart the host.
|
|
175
|
-
|
|
176
|
-
### New session or runner
|
|
177
|
-
|
|
178
|
-
Some settings apply only when something new is created. `defaultPersona` and startup persona flags choose the persona of a new session. The execution environment's kind, identity, `cwd`, and home are fixed when the session is created or recovered.
|
|
179
|
-
|
|
180
|
-
The Telegram runner loads its speech provider and its runner config at startup. Restart it after changing its voice, its global speech vocabulary, bot startup settings, presets, projects, routing, or workspace preparation.
|
|
181
|
-
|
|
182
|
-
- Workspace-preparation changes apply when a managed workspace is created or reconstructed. Restarting does not change a preserved workspace.
|
|
183
|
-
- Command client tools are chosen when the runner creates the client for a session. Changes apply to new sessions, and also to existing sessions when a runner restart recovers them.
|
|
184
|
-
- Existing sessions keep their recorded execution environment, unless recovery has to reconstruct a missing managed workspace (see [Telegram projects and workspaces](telegram-projects.md)).
|
|
185
|
-
|
|
186
|
-
## Common precedence mistakes
|
|
187
|
-
|
|
188
|
-
**Editing global config for a project outside home.** The global level is skipped when the relevant `cwd` is outside home. Add a project level, or change the environment's configured home.
|
|
189
|
-
|
|
190
|
-
**Editing the laptop for host behavior.** Credentials, session storage, hosted-environment definitions, and project configuration on the laptop do not reach a remote host through an attached TUI.
|
|
191
|
-
|
|
192
|
-
**Editing the host's files for a hosted environment.** A hosted execution environment has its own project files and home. Put project `.tau` content on that environment, not at a similar path on the host.
|
|
91
|
+
`tau` prints warnings at startup, `/reload` shows them for the current session, and `tau serve` and `tau telegram` write them to stderr. To check a new local startup, run `tau --debug` from the project directory.
|
|
193
92
|
|
|
194
|
-
|
|
93
|
+
## When changes apply
|
|
195
94
|
|
|
196
|
-
|
|
95
|
+
| Change | How to apply |
|
|
96
|
+
| --- | --- |
|
|
97
|
+
| `subagents`, `modelSystemNotices`, `speech.vocabulary` in a project | `/reload` while idle |
|
|
98
|
+
| `defaultPersona` | Applies to new sessions |
|
|
99
|
+
| `mcpServers` | New session, or reopen the session after the host unloads it |
|
|
100
|
+
| `defaultTheme`, `voiceId`, `recordingShortcut`, `cleanupStyle`, `markdownExport`, client tools | Restart the client |
|
|
101
|
+
| `apiKeys`, `history`, `flySprites`, host environment variables | Restart the host |
|
|
102
|
+
| Telegram configuration | Restart the runner |
|
|
197
103
|
|
|
198
|
-
|
|
104
|
+
## Choosing a level
|
|
199
105
|
|
|
200
|
-
|
|
106
|
+
Put personal defaults and secrets in global configuration. Put settings that collaborators share in the repository's `.tau/config.json`, and use a nested level only when a subdirectory needs a different value.
|