We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c82cbb6 commit 0cbd266Copy full SHA for 0cbd266
src/track.ts
@@ -9,10 +9,11 @@ const pkg = require("../package.json");
9
10
// Detect if the CLI was invoked by a coding agent, based on well-known env vars.
11
function detectAIAgent(): string {
12
- if (process.env.CODEX_SANDBOX) return "codex_cli";
13
if (process.env.CLAUDECODE) return "claude_code";
14
- if (process.env.GEMINI_CLI) return "gemini_cli";
+ if (process.env.CLINE_ACTIVE) return "cline";
+ if (process.env.CODEX_SANDBOX) return "codex_cli";
15
if (process.env.CURSOR_AGENT) return "cursor";
16
+ if (process.env.GEMINI_CLI) return "gemini_cli";
17
if (process.env.OPENCODE) return "open_code";
18
return "unknown";
19
}
0 commit comments