Repository navigation
Track steering, bots, splits, panes, and sub-agents in usage analytics - #1459
Merged
Merged
Conversation
- message sent now says how it was delivered (new_turn, steer, queue, bot) and what happened (started_turn, steered, queued, delivered); is_queued stays for existing insights. - Bots: created, forked (other machine, changed harness, moved agents), archived, deleted. - User splits (with whether the window is a bot's and the split count) and panes opened from the new-tab page, by kind. - The server now sends a few anonymous PostHog events of its own, gated by the synced "Share usage analytics" choice and tagged with the update channel and every enabled feature flag: sub agent created (harness, by a bot, from another machine, in a worktree) and agent layout changed (action, in a bot). - Server diagnostics and analytics share one telemetry settings module. - Privacy policy describes server analytics and feature usage. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Newer features had no instrumentation, so we couldn't see how much people use steering, bots, splits, or sub-agents.
New and changed events
message sent(changed)delivery(new_turn,steer,queue,bot) andoutcome(started_turn,steered,queued,delivered).is_queuedis kept for the existing insightbot created/bot forked/bot archived/bot deletedsplit openedpane openedsub agent createdagent layout changedServer analytics
Agents create sub-agents and change layouts on the server, and every client would see the results arrive, including history on a fresh install. So these events come from the server, which sees each one exactly once.
platform: serverand an anonymous hashed machine ID, with no person profile and no IP geolocation.The privacy policy now describes server analytics and feature usage.
Verified
message sent(new_turn/started_turn), then a mid-turn message (steer/queued, accepted after the running tool call)split opened(in_bot: false,split_count: 2)pane opened(terminal)agent layout changed(split, from a real layout API call), arriving withplatform: server, an anonymous ID, and no person profilesub agent created. The dev Codex turn hung, so the agent couldn't start one. Both are covered by unit tests at their capture points.🤖 Generated with Claude Code