50 instantiations of EnvironmentDetectionRuleWithResult
dotnet (25)
Telemetry\LLMEnvironmentDetectorForTelemetry.cs (25)
15
new
EnvironmentDetectionRuleWithResult
<string>("cowork", new AnyPresentEnvironmentRule("CLAUDE_CODE_IS_COWORK")),
17
new
EnvironmentDetectionRuleWithResult
<string>("claude", new AnyPresentEnvironmentRule("CLAUDECODE", "CLAUDE_CODE", "CLAUDE_CODE_ENTRYPOINT")),
19
new
EnvironmentDetectionRuleWithResult
<string>("cursor", new AnyPresentEnvironmentRule("CURSOR_EDITOR", "CURSOR_AI", "CURSOR_TRACE_ID", "CURSOR_AGENT")),
21
new
EnvironmentDetectionRuleWithResult
<string>("gemini", new AnyPresentEnvironmentRule("GEMINI_CLI")),
23
new
EnvironmentDetectionRuleWithResult
<string>("copilot-cli", new AnyPresentEnvironmentRule(
27
new
EnvironmentDetectionRuleWithResult
<string>("copilot-app", new EnvironmentVariableValueRule("AI_AGENT", "github_copilot_app_agent")),
30
new
EnvironmentDetectionRuleWithResult
<string>("copilot-vscode", new AnyMatchEnvironmentRule(
34
new
EnvironmentDetectionRuleWithResult
<string>("codex", new AnyPresentEnvironmentRule("CODEX_CLI", "CODEX_SANDBOX", "CODEX_CI", "CODEX_THREAD_ID")),
36
new
EnvironmentDetectionRuleWithResult
<string>("aider", new EnvironmentVariableValueRule("OR_APP_NAME", "Aider")),
38
new
EnvironmentDetectionRuleWithResult
<string>("plandex", new EnvironmentVariableValueRule("OR_APP_NAME", "plandex")),
40
new
EnvironmentDetectionRuleWithResult
<string>("amp", new AnyPresentEnvironmentRule("AMP_HOME")),
42
new
EnvironmentDetectionRuleWithResult
<string>("qwen", new AnyPresentEnvironmentRule("QWEN_CODE")),
44
new
EnvironmentDetectionRuleWithResult
<string>("droid", new AnyPresentEnvironmentRule("DROID_CLI")),
46
new
EnvironmentDetectionRuleWithResult
<string>("opencode", new AnyPresentEnvironmentRule("OPENCODE_AI")),
48
new
EnvironmentDetectionRuleWithResult
<string>("zed", new AnyPresentEnvironmentRule("ZED_ENVIRONMENT", "ZED_TERM")),
50
new
EnvironmentDetectionRuleWithResult
<string>("kimi", new AnyPresentEnvironmentRule("KIMI_CLI")),
52
new
EnvironmentDetectionRuleWithResult
<string>("openhands", new EnvironmentVariableValueRule("OR_APP_NAME", "OpenHands")),
54
new
EnvironmentDetectionRuleWithResult
<string>("goose", new AnyPresentEnvironmentRule("GOOSE_TERMINAL", "GOOSE_PROVIDER")),
56
new
EnvironmentDetectionRuleWithResult
<string>("cline", new AnyPresentEnvironmentRule("CLINE_TASK_ID")),
58
new
EnvironmentDetectionRuleWithResult
<string>("roo", new AnyPresentEnvironmentRule("ROO_CODE_TASK_ID")),
60
new
EnvironmentDetectionRuleWithResult
<string>("windsurf", new AnyPresentEnvironmentRule("WINDSURF_SESSION")),
62
new
EnvironmentDetectionRuleWithResult
<string>("replit", new AnyPresentEnvironmentRule("REPL_ID")),
64
new
EnvironmentDetectionRuleWithResult
<string>("augment", new AnyPresentEnvironmentRule("AUGMENT_AGENT")),
66
new
EnvironmentDetectionRuleWithResult
<string>("antigravity", new AnyPresentEnvironmentRule("ANTIGRAVITY_AGENT")),
68
new
EnvironmentDetectionRuleWithResult
<string>("generic_agent", new AnyPresentEnvironmentRule("AGENT_CLI")),
dotnet-aot (25)
src\sdk\src\Cli\dotnet\Telemetry\LLMEnvironmentDetectorForTelemetry.cs (25)
15
new
EnvironmentDetectionRuleWithResult
<string>("cowork", new AnyPresentEnvironmentRule("CLAUDE_CODE_IS_COWORK")),
17
new
EnvironmentDetectionRuleWithResult
<string>("claude", new AnyPresentEnvironmentRule("CLAUDECODE", "CLAUDE_CODE", "CLAUDE_CODE_ENTRYPOINT")),
19
new
EnvironmentDetectionRuleWithResult
<string>("cursor", new AnyPresentEnvironmentRule("CURSOR_EDITOR", "CURSOR_AI", "CURSOR_TRACE_ID", "CURSOR_AGENT")),
21
new
EnvironmentDetectionRuleWithResult
<string>("gemini", new AnyPresentEnvironmentRule("GEMINI_CLI")),
23
new
EnvironmentDetectionRuleWithResult
<string>("copilot-cli", new AnyPresentEnvironmentRule(
27
new
EnvironmentDetectionRuleWithResult
<string>("copilot-app", new EnvironmentVariableValueRule("AI_AGENT", "github_copilot_app_agent")),
30
new
EnvironmentDetectionRuleWithResult
<string>("copilot-vscode", new AnyMatchEnvironmentRule(
34
new
EnvironmentDetectionRuleWithResult
<string>("codex", new AnyPresentEnvironmentRule("CODEX_CLI", "CODEX_SANDBOX", "CODEX_CI", "CODEX_THREAD_ID")),
36
new
EnvironmentDetectionRuleWithResult
<string>("aider", new EnvironmentVariableValueRule("OR_APP_NAME", "Aider")),
38
new
EnvironmentDetectionRuleWithResult
<string>("plandex", new EnvironmentVariableValueRule("OR_APP_NAME", "plandex")),
40
new
EnvironmentDetectionRuleWithResult
<string>("amp", new AnyPresentEnvironmentRule("AMP_HOME")),
42
new
EnvironmentDetectionRuleWithResult
<string>("qwen", new AnyPresentEnvironmentRule("QWEN_CODE")),
44
new
EnvironmentDetectionRuleWithResult
<string>("droid", new AnyPresentEnvironmentRule("DROID_CLI")),
46
new
EnvironmentDetectionRuleWithResult
<string>("opencode", new AnyPresentEnvironmentRule("OPENCODE_AI")),
48
new
EnvironmentDetectionRuleWithResult
<string>("zed", new AnyPresentEnvironmentRule("ZED_ENVIRONMENT", "ZED_TERM")),
50
new
EnvironmentDetectionRuleWithResult
<string>("kimi", new AnyPresentEnvironmentRule("KIMI_CLI")),
52
new
EnvironmentDetectionRuleWithResult
<string>("openhands", new EnvironmentVariableValueRule("OR_APP_NAME", "OpenHands")),
54
new
EnvironmentDetectionRuleWithResult
<string>("goose", new AnyPresentEnvironmentRule("GOOSE_TERMINAL", "GOOSE_PROVIDER")),
56
new
EnvironmentDetectionRuleWithResult
<string>("cline", new AnyPresentEnvironmentRule("CLINE_TASK_ID")),
58
new
EnvironmentDetectionRuleWithResult
<string>("roo", new AnyPresentEnvironmentRule("ROO_CODE_TASK_ID")),
60
new
EnvironmentDetectionRuleWithResult
<string>("windsurf", new AnyPresentEnvironmentRule("WINDSURF_SESSION")),
62
new
EnvironmentDetectionRuleWithResult
<string>("replit", new AnyPresentEnvironmentRule("REPL_ID")),
64
new
EnvironmentDetectionRuleWithResult
<string>("augment", new AnyPresentEnvironmentRule("AUGMENT_AGENT")),
66
new
EnvironmentDetectionRuleWithResult
<string>("antigravity", new AnyPresentEnvironmentRule("ANTIGRAVITY_AGENT")),
68
new
EnvironmentDetectionRuleWithResult
<string>("generic_agent", new AnyPresentEnvironmentRule("AGENT_CLI")),
2 references to EnvironmentDetectionRuleWithResult
dotnet (1)
Telemetry\LLMEnvironmentDetectorForTelemetry.cs (1)
13
private static readonly
EnvironmentDetectionRuleWithResult
<string>[] _detectionRules = [
dotnet-aot (1)
src\sdk\src\Cli\dotnet\Telemetry\LLMEnvironmentDetectorForTelemetry.cs (1)
13
private static readonly
EnvironmentDetectionRuleWithResult
<string>[] _detectionRules = [