parent\dotnet\Telemetry\LLMEnvironmentDetectorForTelemetry.cs (25)
31new EnvironmentDetectionRuleWithResult<string>("cowork", new AnyPresentEnvironmentRule(getEnvironmentVariable, "CLAUDE_CODE_IS_COWORK")),
33new EnvironmentDetectionRuleWithResult<string>("claude", new AnyPresentEnvironmentRule(getEnvironmentVariable, "CLAUDECODE", "CLAUDE_CODE", "CLAUDE_CODE_ENTRYPOINT")),
35new EnvironmentDetectionRuleWithResult<string>("cursor", new AnyPresentEnvironmentRule(getEnvironmentVariable, "CURSOR_EDITOR", "CURSOR_AI", "CURSOR_TRACE_ID", "CURSOR_AGENT")),
37new EnvironmentDetectionRuleWithResult<string>("gemini", new AnyPresentEnvironmentRule(getEnvironmentVariable, "GEMINI_CLI")),
39new EnvironmentDetectionRuleWithResult<string>("copilot-cli", new AnyPresentEnvironmentRule(
43new EnvironmentDetectionRuleWithResult<string>("copilot-app", new EnvironmentVariableValueRule(getEnvironmentVariable, "AI_AGENT", "github_copilot_app_agent")),
46new EnvironmentDetectionRuleWithResult<string>("copilot-vscode", new AnyMatchEnvironmentRule(
50new EnvironmentDetectionRuleWithResult<string>("codex", new AnyPresentEnvironmentRule(getEnvironmentVariable, "CODEX_CLI", "CODEX_SANDBOX", "CODEX_CI", "CODEX_THREAD_ID")),
52new EnvironmentDetectionRuleWithResult<string>("aider", new EnvironmentVariableValueRule(getEnvironmentVariable, "OR_APP_NAME", "Aider")),
54new EnvironmentDetectionRuleWithResult<string>("plandex", new EnvironmentVariableValueRule(getEnvironmentVariable, "OR_APP_NAME", "plandex")),
56new EnvironmentDetectionRuleWithResult<string>("amp", new AnyPresentEnvironmentRule(getEnvironmentVariable, "AMP_HOME")),
58new EnvironmentDetectionRuleWithResult<string>("qwen", new AnyPresentEnvironmentRule(getEnvironmentVariable, "QWEN_CODE")),
60new EnvironmentDetectionRuleWithResult<string>("droid", new AnyPresentEnvironmentRule(getEnvironmentVariable, "DROID_CLI")),
62new EnvironmentDetectionRuleWithResult<string>("opencode", new AnyPresentEnvironmentRule(getEnvironmentVariable, "OPENCODE_AI")),
64new EnvironmentDetectionRuleWithResult<string>("zed", new AnyPresentEnvironmentRule(getEnvironmentVariable, "ZED_ENVIRONMENT", "ZED_TERM")),
66new EnvironmentDetectionRuleWithResult<string>("kimi", new AnyPresentEnvironmentRule(getEnvironmentVariable, "KIMI_CLI")),
68new EnvironmentDetectionRuleWithResult<string>("openhands", new EnvironmentVariableValueRule(getEnvironmentVariable, "OR_APP_NAME", "OpenHands")),
70new EnvironmentDetectionRuleWithResult<string>("goose", new AnyPresentEnvironmentRule(getEnvironmentVariable, "GOOSE_TERMINAL", "GOOSE_PROVIDER")),
72new EnvironmentDetectionRuleWithResult<string>("cline", new AnyPresentEnvironmentRule(getEnvironmentVariable, "CLINE_TASK_ID")),
74new EnvironmentDetectionRuleWithResult<string>("roo", new AnyPresentEnvironmentRule(getEnvironmentVariable, "ROO_CODE_TASK_ID")),
76new EnvironmentDetectionRuleWithResult<string>("windsurf", new AnyPresentEnvironmentRule(getEnvironmentVariable, "WINDSURF_SESSION")),
78new EnvironmentDetectionRuleWithResult<string>("replit", new AnyPresentEnvironmentRule(getEnvironmentVariable, "REPL_ID")),
80new EnvironmentDetectionRuleWithResult<string>("augment", new AnyPresentEnvironmentRule(getEnvironmentVariable, "AUGMENT_AGENT")),
82new EnvironmentDetectionRuleWithResult<string>("antigravity", new AnyPresentEnvironmentRule(getEnvironmentVariable, "ANTIGRAVITY_AGENT")),
84new EnvironmentDetectionRuleWithResult<string>("generic_agent", new AnyPresentEnvironmentRule(getEnvironmentVariable, "AGENT_CLI")),