Open History to see the last commit
1# Product usage data
2
3The T3 Code server sends product usage events to T3 Code's own endpoint at `ingest.t3.codes`,
4associated with a hashed random identifier for the installation. To count how many installations one person
5uses, the server also sends a hashed identifier for your T3 Connect account when you are signed in
6to one, and a random identifier for each device that connects. The endpoint keeps a copy of each
7event and forwards events to PostHog. Events include the provider, model, reasoning effort,
8permission mode, turn and request results, duration, release channel, and token counts when
9available. Child-agent token counts are reported separately from the main agent's. Events include
10the model ID the provider used, including custom models and models served by a custom endpoint.
11
12Product events do not include prompts, responses, file contents, authentication tokens, conversation IDs,
13raw provider events, child-agent output, or identifiers from your provider accounts. The one exception is [agent feedback](#agent-feedback),
14which is off unless you turn it on.
15
16## Agent feedback
17
18Agent feedback lets agents tell the T3 team about T3 Code: a T3 tool or `t3` command that did not
19do what they expected, a confusing instruction, or a missing capability. Choose a mode in
20**Agent feedback** in **Settings > Labs**:
21
22- **Off**, the default: agents do not see the feedback tools, and `t3 feedback` stops with a
23 message pointing to Labs.
24- **When I ask**: agents send a report only when you ask them to, about anything in T3 Code.
25- **Automatic**: agents also report T3 Code problems they hit on their own, such as a T3 tool that
26 failed and made them find another way. These go out without asking you, so they carry only the
27 kind of problem and the tool or command it concerns, with no agent-written text, outline, or
28 conversation. `t3 feedback --kind bug --subject "t3 thread send" --expected "…" --actual "…"`
29 sends one the same way, so it works only in this mode.
30
31When you ask your agent for a report, in either mode, T3 Code shows it in the thread as a card
32with exactly what would leave your machine, and sends it only if you press **Send**. The agent
33carries on without waiting and never learns your answer. The card stays open until you answer it,
34even after the turn ends or the server restarts; **Don't send** sends nothing, and the agent is
35told not to send it another way. Only someone who can run agents on that machine can answer the
36card; people on a guest link cannot.
37
38Each report has the kind of problem, the T3 tool or command it concerns (or `general`), and, when
39you send it from a card, up to 300 characters each of expected behavior, actual behavior, and
40workaround, written by the agent, which is told not to quote your messages or code. The agent also says how many recent turns the
41problem spans. A report you approved carries an outline of those turns, and of at least the last 5,
42from when the agent asked: who spoke, how long each message was, and which tools ran, whether they
43worked, and how long they took. The outline has no text. Tools from your other MCP servers appear
44only as `mcp`. Turn on **Include the conversation** in the card to attach the text of your
45messages and the agent's replies in the turns the problem spans, up to 1,000 characters per
46message and 16 KB in all, oldest text dropped first; the card shows that text before you send it.
47To change a report, such as the turns it covers, ask the agent in the chat: it shows a new card,
48and you can decline the old one. Tool inputs and outputs, files, and attachments are never sent. An agent can
49show you at most 3 report cards and send 3 reports on its own per turn, and `t3 feedback` can
50send at most 10 an hour.
51
52Before anything is saved, T3 Code removes file paths (when text mentions one, the rest of that line
53goes with it), your user name, machine name, project title, branch, and git remote, and anything
54that looks like a key, token, email address, or URL with a password. It cannot recognise your code
55or a name written in a sentence, so only include the conversation when it holds nothing you would
56not send. Reports from agents also name the provider and the model. No thread IDs or project IDs
57are sent, and each report goes out under its own random ID, so reports cannot be tied to your
58installation or to each other.
59
60Reports are saved on your machine first, and a declined one is not saved at all; its card keeps
61only what you would have sent without the conversation. When product usage
62data is turned off, saved reports stay there and are not sent. `t3 feedback list` shows recent
63reports, the thread each came from, and a line for each outline; `t3 feedback list --json` shows
64exactly what each one holds.
65
66## Relay connection diagnostics
67
68T3 Code sends relay connection traces to Axiom to diagnose T3 Connect connectivity. These are
69separate from product events. Traces carry connection timings, request paths, environment and
70thread identifiers, and error types. They omit machine addresses, query strings, log lines,
71error messages, and stack frames.
72
73To disable product events and relay tracing from the server, set
74`T3CODE_TELEMETRY_ENABLED=false` in its environment before starting it. Relay tracing also stops
75when `T3CODE_OTEL_SDK_DISABLED` or `OTEL_SDK_DISABLED` turns OpenTelemetry export off.
76
77An administrator can turn product events and relay tracing off in the server and desktop app with
78a [managed policy](./managed-policy.md#other-capabilities). This does not control traces sent by
79the hosted web app or mobile clients.
80
81The desktop app reads `T3CODE_TELEMETRY_ENABLED` from your shell profile (for example `~/.zshrc`) on macOS and
82Linux, so export it there and restart the app. On Windows, set it as a user environment variable.
83
84A browser opened from a T3 Code server sends relay traces only while connected and allowed by that
85server's policy. The hosted web app sends relay traces when configured and has no tracing toggle.
86
87## Mobile app diagnostics
88
89When the iOS or Android app crashes or hits an error, it sends a report to T3 Code: the error
90message, the stack trace, the app version, and the device model and OS version. Each launch also
91sends startup timings, and every report carries a random ID for the install. Reports go through
92the T3 Connect relay to Axiom. They do not include your threads, prompts, or connection details,
93but an error message can quote a value the app was handling.
94
95To stop sending them, turn off **Send crash reports** in **Settings > About T3 Code > Diagnostics**.
96
97The mobile app also sends relay connection traces when its build has tracing configured. These
98carry an identifier for the current app session. To stop them, turn off **Send connection traces**
99in **Settings > About T3 Code > Diagnostics**, or on the T3 Connect setup sheet shown after you
100sign in. This is separate from crash reports. Server environment variables and managed policy do
101not disable mobile tracing.
102
103## Agent activity for mobile notifications
104
105When **Publish agent activity** is enabled on a host, it sends project and thread titles, model
106names, activity status, and environment and thread identifiers to the T3 Connect relay for
107[mobile notifications and live activities](./mobile-notifications.md). This is separate from
108product events and relay diagnostics. The telemetry opt-out does not disable it.
109
110To stop publishing, turn off **Publish agent activity** under **Settings > Sharing & access** on
111the host. Turning off notifications on a phone controls that phone's alerts, not the host's
112publishing setting.
113
114## Export diagnostics to your own receiver
115
116To send traces, metrics, or logs to an OpenTelemetry receiver, open
117**Settings > Maintenance > Diagnostics**, select an environment, and enter each signal's OTLP HTTP
118endpoint under **OpenTelemetry export** (for example `http://localhost:4318/v1/traces`). Save, then
119restart that environment's server. The receiver must be reachable from the server's machine.
120**Test** sends an empty export from the server to check an endpoint before or after you save it;
121saved endpoints are checked when the section opens. Checks send authentication headers only to
122the signal's currently running endpoint and do not follow redirects. To check a new endpoint
123that requires authentication, save it and restart the server first.
124
125`T3CODE_OTLP_*_URL` and standard `OTEL_EXPORTER_OTLP_*` environment variables override the saved
126settings. An overridden signal shows **Set by environment** and names the variable that set it, and its
127**Test** checks the running endpoint instead of the field. For endpoints saved here or set with `T3CODE_OTLP_*_URL`, set `T3CODE_OTLP_HEADERS` for
128receivers that need authentication and `T3CODE_OTLP_PROTOCOL=http/protobuf` for receivers that do
129not accept JSON. An endpoint set with `OTEL_EXPORTER_OTLP_*` takes its headers and protocol from
130`OTEL_EXPORTER_OTLP_HEADERS` and `OTEL_EXPORTER_OTLP_PROTOCOL` instead.