Skip to content

Track steering, bots, splits, panes, and sub-agents in usage analytics - #1459

Merged
dylanplayer merged 1 commit into
mainfrom
codevisor/telemetry-features
Nov 23, 2026
Merged

dylanplayer merged 1 commit into
mainfrom
codevisor/telemetry-features

Conversation

@dylanplayer

Copy link
Copy Markdown
Member

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

Where Event Properties
App message sent (changed) adds delivery (new_turn, steer, queue, bot) and outcome (started_turn, steered, queued, delivered). is_queued is kept for the existing insight
App bot created / bot forked / bot archived / bot deleted harness_id, project_count, other_machine, changed_harness, moved_agents
App split opened in_bot, split_count
App pane opened kind (terminal, browser, chat, document, review, simulator, plugin, …)
Server sub agent created harness_id, by_bot, other_machine, uses_worktree
Server agent layout changed action (split, move, resize, …), in_bot

Server 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.

  • They're sent to the same PostHog project with no new dependency.
  • They're gated by the synced "Share usage analytics" choice (from Report errors users hit to Sentry from the app and server #1455), so servers that never received a choice send nothing.
  • They carry platform: server and an anonymous hashed machine ID, with no person profile and no IP geolocation.
  • Server diagnostics and analytics now share one module for consent, flags, and the update channel.

The privacy policy now describes server analytics and feature usage.

Verified

  • Server: all 2,269 tests pass with coverage. Lint, typecheck, format, comments, and size ratchet pass. Swift format and lint pass, and the 203 tests in the affected suites pass.
  • Dev app with analytics on, all checked in PostHog:
    • 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 with platform: server, an anonymous ID, and no person profile
  • Not exercised by hand: bot create/fork/archive/delete, and sub 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

- 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]>
@dylanplayer
dylanplayer merged commit 2d72714 into main Nov 23, 2026
@dylanplayer
dylanplayer deleted the codevisor/telemetry-features branch November 23, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant