Documentation
¶
Overview ¶
Package agentclient identifies a coding agent that launched the CLI. The detected name is safe to print and to send as the X-Nuon-Agent header.
Index ¶
Constants ¶
View Source
const ( // Header is the request header carrying the detected agent name. Header = "X-Nuon-Agent" // CommandHeader is the request header carrying the CLI command path, without arguments. CommandHeader = "X-Nuon-Command" // EnvVar overrides detection. "off" disables it. "cursor" and "claude" force a name. EnvVar = "NUON_AGENT_CLIENT" // AIAgentEnvVar is the general agent name. The value is a slug, optionally // with @version: amp, claude-code, cursor-cli@1.2.3. AIAgentEnvVar = "AI_AGENT" Amp = "amp" Cursor = "cursor" Gemini = "gemini" Codex = "codex" Antigravity = "antigravity" Augment = "augment-cli" OpenCode = "opencode" Cowork = "cowork" Claude = "claude" Replit = "replit" Copilot = "github-copilot" )
Variables ¶
This section is empty.
Functions ¶
func FirstRunGuide ¶
FirstRunGuide is the one-time stderr notice printed the first time an agent runs the CLI.
func ProductEnvKeys ¶
func ProductEnvKeys() []string
ProductEnvKeys are the variables detectProduct reads. Tests clear them so a developer shell does not leak into a "no agent" case.
Types ¶
Click to show internal directories.
Click to hide internal directories.