-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
Description
Describe the feature
(from discussion with @danielroe)
We can export a flag to indicate if CLI is running within an AI agent for increasing verbosity or span more info.
We might also have something like agentProvider additionally.
Some references for env detection (chatgpt assisted might need double check)
- Generic:
AI_AGENT(*) - Cursor:
CURSOR_AGENT/CURSOR_TRACE_ID(*) (cli) - Gemeni:
GEMINI_CLI(*) - Codex:
CODEX_SANDBOX(*) - ClaudeCode:
CLAUDECODE/CLAUDE_CODE(*) - Replit:
REPL_ID(*) - Mastra CLI:
MASTRA_TELEMETRY_DISABLED - Open Code:
OPENCODE_CONFIG_DIR/OPENCODE_DISABLE_LSP_DOWNLOAD/... - Goose CLI:
GOOSE_PROVIDER/GOOSE_MODEL/... - Offline‑AI CLI:
AI_NPM_LOG_LEVEL/AI_NPM_REGISTRY - Devin:
/opt/.devinfile (*)
Copilot agent in VSCode seems needing parent crawling: (vscode-copilot-terminal-detection)
* : learned from @vercel/detect-agent ❤️
sandros94