cli/pkg/cmd/search
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
..
code test(search): provide feature detection dependency 2025-08-31 12:25:43 +01:00
commits docs(search): move search syntax note to gh search --help 2025-08-02 03:01:40 -04:00
issues docs(search issues): mention advanced issue search syntax support 2025-09-08 18:37:17 +01:00
prs docs(search prs): mention advanced issue search syntax support 2025-09-08 18:37:37 +01:00
repos docs(search): move search syntax note to gh search --help 2025-08-02 03:01:40 -04:00
shared Record agentic invocations in User-Agent header 2026-03-24 19:58:37 +01:00
search.go Fix linter 2025-08-06 10:32:46 -06:00