Skip to content

Attribute Link CLI requests to invoking AI agents - #344

Draft
ericgan-stripe wants to merge 1 commit into
mainfrom
ericgan/agent-attribution
Draft

ericgan-stripe wants to merge 1 commit into
mainfrom
ericgan/agent-attribution

Conversation

@ericgan-stripe

@ericgan-stripe ericgan-stripe commented Sep 17, 2026

Copy link
Copy Markdown

Link CLI requests currently identify the CLI version but not the invoking coding agent. Append AIAgent/<normalized-agent> to the default User-Agent on Link API and authentication requests when a recognized environment signal is present. For example, a Codex invocation sends link-cli/<version> AIAgent/codex_cli.

The detector follows Stripe CLI's current eight-agent taxonomy and first-match priority, including Claude and Codex host fallbacks. It emits only normalized slugs.

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant