Skip to content

460 add agent skill flag#463

Draft
SeanAlexanderHarris wants to merge 7 commits into
459-add-agent-use-detectionfrom
460-add-agent-skill-flag
Draft

460 add agent skill flag#463
SeanAlexanderHarris wants to merge 7 commits into
459-add-agent-use-detectionfrom
460-add-agent-skill-flag

Conversation

@SeanAlexanderHarris

@SeanAlexanderHarris SeanAlexanderHarris commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a global --skill flag so an AI agent/workflow invoking the CLI can identify itself, for observability into agentic CLI usage.
  • Supersedes the original plan (a dedicated X-Prolific-Agent-Skill header) with a skill/<value> token folded into the existing User-Agent header, alongside the agent/<value> token from Add ai detection to include the agent or model using the cli Closes #459 #462 — avoids relying on a custom header that's likely scrubbed by the backend.
  • Wires the composed User-Agent into the three request paths that build their own *http.Request and bypass Client.Execute() (dataset upload, collection export download, batch export download), none of which previously sent any User-Agent at all.

Stacked on #462 (459-add-agent-use-detection) since this builds directly on the agentenv AI-agent detection it adds.

Closes #460

Test plan

  • go build ./...
  • go test ./... (excluding the pre-existing, unrelated contract_test.TestAPICoverage drift on this branch lineage)
  • golangci-lint run ./...
  • Manually verified with PROLIFIC_DEBUG=true: --skill cli-command-create study list sends User-Agent: prolific-oss/cli/<version> agent/claude-code skill/cli-command-create

🤖 Generated with Claude Code

@SeanAlexanderHarris
SeanAlexanderHarris requested review from a team as code owners July 17, 2026 00:59
@prolific-snyk

prolific-snyk commented Jul 17, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@SeanAlexanderHarris
SeanAlexanderHarris marked this pull request as draft July 17, 2026 01:05
SeanAlexanderHarris and others added 7 commits July 17, 2026 02:17
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants