Repository navigation
feat(cli): send is_eval and agent_name with CLI telemetry (CLI-2716) - #7396
Merged
Coly010 merged 2 commits intoOct 30, 2026
Conversation
Every analytics event now carries `is_eval`, true when `SUPABASE_EVAL` is `1` or `true`, so automated evaluation runs can be separated from real usage. Events from a detected agent also carry `agent_name`, the name the CLI already resolves for `is_agent`, so usage can be split by harness without decoding `env_signals`.
Contributor
There was a problem hiding this comment.
🤖 AI Review
Both independent reviews completed. The sole reported finding is refuted: the environment helper clears ambient variables before applying test values and restores them afterward. No confirmed issues remain.
Findings
No issues found.
Refuted findings (kept for transparency, not posted as review comments)
apps/cli/src/telemetry/analytics.layer.integration.test.ts:199(test-coverage): The new analytics tests inherit ambient agent-detection variables and SUPABASE_EVAL, causing environment-dependent failures.
Refuted: The finding incorrectly describes processEnvLayer as overlaying the real environment. Its applyProcessEnv helper explicitly clears process.env first. Consequently, the plain-run test removes ambient SUPABASE_EVAL and agent variables, while the positive test supplies only its selected evaluation and agent variables, along with telemetry settings and an optional stack test-run marker.
Stats
Claude findings: 1 · Codex findings: 0 · Confirmed: 0 · Refuted: 1 · Uncertain: 0
Models: claude-opus-5-5 + gpt-6.1-sol · Trigger: auto · Workflow run
This review runs once per PR. A maintainer can request another with a /ai-review comment.
jgoux
approved these changes
Oct 30, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 30, 2026
Coly010
deleted the
columferry/cli-2716-send-an-eval-tag-and-the-detected-agent-name-in-cli
branch
October 30, 2026 12:27
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.
Summary
Adds two properties to every CLI analytics event,
cli_command_executedincluded:is_evalistruewhenSUPABASE_EVALis1ortrue(case-insensitive), otherwisefalse. feat(experiments): tag every CLI arm with SUPABASE_EVAL (CLI-2724) evals#416 already setsSUPABASE_EVAL=1on every CLI run in the evals harness, and this is the CLI side that reports it, so eval runs can be kept out of agent usage numbers.agent_nameis the detected agent (for exampleclaude,codexorcursor_cli), sent only whenis_agentis true. It reuses theAiTooldetection that already drivesis_agentand thefeedback addmetadata, so usage can be split by harness without decodingenv_signals.Events from earlier CLI versions don't carry
is_eval, so queries should treat a missing value asfalse. Both properties are documented inapps/cli/docs/analytics.md.Linked issue
Closes CLI-2716