cli/pkg/cmd/factory
William Martin c51769c977 Record agentic invocations in User-Agent header
Detect which AI coding agent is invoking gh by checking well-known
environment variables and include the agent name in the User-Agent
header sent to GitHub APIs.

Supported agents: Codex, Gemini CLI, Copilot CLI, OpenCode,
Claude Code, and Amp. Generic AI_AGENT env var is also supported
with validation to prevent header injection.

Fixes github/cli#1111

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-24 19:58:37 +01:00
..
default.go Record agentic invocations in User-Agent header 2026-03-24 19:58:37 +01:00
default_test.go Record agentic invocations in User-Agent header 2026-03-24 19:58:37 +01:00
remote_resolver.go Fix remoteResolver caching issue 2025-02-20 13:15:23 +01:00
remote_resolver_test.go Refactor remote resolver caching tests 2025-02-20 13:15:56 +01:00