Skip to content

Document an agent-<name> convention for MAPBOX_CLI_INSTALL_SOURCE - #36

Merged
mattpodwysocki merged 2 commits into
mainfrom
docs/166-agent-install-source-convention
Sep 23, 2026
Merged

mattpodwysocki merged 2 commits into
mainfrom
docs/166-agent-install-source-convention

Conversation

@mattpodwysocki

Copy link
Copy Markdown
Contributor

Summary

  • Comment-only in install.sh/install.ps1: documents agent-<name> (agent-claude-code, agent-cursor) as the convention for MAPBOX_CLI_INSTALL_SOURCE when a coding agent invokes the installer on someone's behalf, so an access-log query can tell these installs apart from a human or CI one — without standing up a second analytics endpoint the way Atlassian's twg installer does for the same question.
  • Uses a dash rather than the slash an earlier proposal used: both installers' existing sanitizer strips / (tr -cd/-replace keep only letters, digits, ., -, _), so agent/claude-code would silently collapse into agentclaude-code and lose the separator that makes the convention legible.
  • Left freeform, same as every other MAPBOX_CLI_INSTALL_SOURCE value today — no fixed list of agent names added to either installer.
  • No behavior change to either installer's network requests or sanitization.

Test plan

  • sh scripts/test-install.sh — all cases pass (comment-only change, confirmed nothing else moved)
  • CHANGELOG entry added

Distinguishing an install a coding agent triggered on someone's behalf
from a human or CI one is useful signal, and the installers already have
a mechanism that carries it: MAPBOX_CLI_INSTALL_SOURCE, which rides along
in the User-Agent as `src/<value>`. Comment-only in both installers —
agent-<name> (agent-claude-code, agent-cursor), so an access-log query can
tell these apart without a second reporting mechanism the way Atlassian's
twg installer stands up for the same question.

A dash rather than the slash an earlier proposal used: both installers'
existing sanitizer strips `/`, so agent/claude-code would silently
collapse into agentclaude-code and lose the separator that makes the
convention legible. Freeform otherwise, same as every other value here —
no fixed list of agent names to keep in sync in either installer.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@mattpodwysocki
mattpodwysocki requested a review from a team as a code owner September 22, 2026 17:49
zmofei
zmofei previously approved these changes Sep 23, 2026
…l-source-convention

# Conflicts:
#	CHANGELOG.md
@mattpodwysocki
mattpodwysocki merged commit d6de3de into main Sep 23, 2026
8 checks passed
@mattpodwysocki
mattpodwysocki deleted the docs/166-agent-install-source-convention branch September 23, 2026 14:04
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.

2 participants