26 instantiations of DetectionRule
aspire (26)
Telemetry\CodingAgentDetector.cs (26)
16
new
("cowork", ["CLAUDE_CODE_IS_COWORK"]),
17
new
("claude", ["CLAUDECODE", "CLAUDE_CODE", "CLAUDE_CODE_ENTRYPOINT"]),
18
new
("cursor", ["CURSOR_EDITOR", "CURSOR_AI", "CURSOR_TRACE_ID", "CURSOR_AGENT"]),
19
new
("gemini", ["GEMINI_CLI"]),
21
new
("copilot-cli", ["COPILOT_CLI", "GITHUB_COPILOT_CLI_MODE", "GH_COPILOT_WORKING_DIRECTORY", "COPILOT_MODEL", "COPILOT_ALLOW_ALL", "COPILOT_GITHUB_TOKEN"]),
24
new
("copilot-app", ["AI_AGENT"], "github_copilot_app_agent"),
27
new
("copilot-vscode", ["AI_AGENT"], "github_copilot_vscode_agent"),
28
new
("copilot-vscode", ["COPILOT_AGENT"]),
29
new
("codex", ["CODEX_CLI", "CODEX_SANDBOX", "CODEX_CI", "CODEX_THREAD_ID"]),
30
new
("aider", ["OR_APP_NAME"], "Aider"),
31
new
("plandex", ["OR_APP_NAME"], "plandex"),
32
new
("amp", ["AMP_HOME"]),
33
new
("qwen", ["QWEN_CODE"]),
34
new
("droid", ["DROID_CLI"]),
35
new
("opencode", ["OPENCODE_AI"]),
36
new
("zed", ["ZED_ENVIRONMENT", "ZED_TERM"]),
37
new
("kimi", ["KIMI_CLI"]),
38
new
("openhands", ["OR_APP_NAME"], "OpenHands"),
39
new
("goose", ["GOOSE_TERMINAL", "GOOSE_PROVIDER"]),
40
new
("cline", ["CLINE_TASK_ID"]),
41
new
("roo", ["ROO_CODE_TASK_ID"]),
42
new
("windsurf", ["WINDSURF_SESSION"]),
43
new
("replit", ["REPL_ID"]),
44
new
("augment", ["AUGMENT_AGENT"]),
45
new
("antigravity", ["ANTIGRAVITY_AGENT"]),
46
new
("generic_agent", ["AGENT_CLI"])
2 references to DetectionRule
aspire (2)
Telemetry\CodingAgentDetector.cs (2)
14
private static readonly
DetectionRule
[] s_detectionRules =
57
foreach (
var
rule in s_detectionRules)