Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions packages/cli/src/telemetry/agent_runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ const VENDOR_RULES: VendorRule[] = [
name: "bob",
check: (env) => typeof env["BOBSHELL_CLI"] === "string",
},
// Claude Code sets CLAUDE_CODE_CHILD_SESSION on what its tools spawn, and an
// inherited CLAUDE_CODE_ENTRYPOINT (older versions). Not CLAUDECODE: its IDE
// extensions also set that in the terminal a person types into.
// Claude Code sets CLAUDE_CODE_CHILD_SESSION on what its tools spawn, and
// CLAUDE_CODE_ENTRYPOINT on itself, which MCP servers inherit too. Not
// CLAUDECODE: its IDE extensions also set that in a terminal a person uses.
// Source: https://code.claude.com/docs/en/env-vars
{
name: "claude_code",
Expand Down Expand Up @@ -327,10 +327,10 @@ const VENDOR_RULES: VendorRule[] = [
// Warp Oz: OZ_RUN_ID wraps a Claude/Codex/Gemini run, so it follows them.
// Source: https://github.com/warpdotdev/warp (crates/warp_cli/src/lib.rs)
{ name: "warp_oz", check: (env) => typeof env["OZ_RUN_ID"] === "string" },
// An app built on the Claude Agent SDK, running a command outside Claude
// Code's own shell tool (that path sets CLAUDECODE, caught above). The SDK
// always sets CLAUDE_AGENT_SDK_VERSION on the process it spawns. After the
// agent rules, so a vendor that builds on the SDK and sets its own marker wins.
// An app built on the Claude Agent SDK, outside Claude Code's own shell tool
// (that path sets CLAUDE_CODE_CHILD_SESSION, caught above). The SDK always
// sets CLAUDE_AGENT_SDK_VERSION on what it spawns. After the agent rules, so
// a vendor that builds on the SDK and sets its own marker wins.
// Source: https://github.com/anthropics/claude-agent-sdk-python (src/claude_agent_sdk/_internal/transport/subprocess_cli.py)
{
name: "claude_agent_sdk",
Expand Down
Loading