Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Oct 6, 2025

Summary

This pull request updates the .NET CLI telemetry documentation to include details about the new LLM agent detection feature. The most important changes clarify what data is collected when the CLI is run by an LLM agent and provide specifics on how detection works.

Telemetry feature update

  • Added documentation that, starting from version >=10.0.100, the CLI reports the detected LLM agent name if invoked from an LLM agent. This includes a reference to the new LLM Detection section for more information.

New LLM Detection section

  • Introduced a new "LLM Detection" section explaining how the CLI detects LLM agents and which environment variables are checked. The section includes a table listing supported agents (GitHub Copilot, Claude Code, Cursor, Windsurf, Cline, Roo Code, and Zed) and the environment variables used for detection, clarifying that only the agent type is reported, not the actual variable values.

Fixes #48774


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.


Internal previews

📄 File 🔗 Preview link
docs/core/tools/telemetry.md .NET SDK and .NET CLI telemetry

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.


Internal previews

📄 File 🔗 Preview link
docs/core/tools/telemetry.md docs/core/tools/telemetry

@Copilot Copilot AI changed the title [WIP] Add LLM telemetry data point for .NET CLI Telemetry Add LLM detection telemetry documentation for .NET CLI Oct 6, 2025
@Copilot Copilot AI requested a review from meaghanlewis October 6, 2025 21:03
Copilot finished work on behalf of meaghanlewis October 6, 2025 21:03
@meaghanlewis meaghanlewis requested a review from baronfel October 6, 2025 22:53
@meaghanlewis
Copy link
Contributor

@baronfel let me know if these changes are what you had in mind for the LLM telemetry data point. Should I also include Cursor in the agent list, and a scenario for when multiple agents are used?


| LLM agent | Variable | Value |
| --------- | -------- | ----- |
| Claude Code | CLAUDECODE | Return LLM tool name of "claude" |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot use the additional detections from dotnet/sdk#51054 (especially the test cases here) to flesh out this table since we added more after this issue was originally logged.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the table with additional LLM agents including GitHub Copilot, Cursor, Windsurf, Cline, Roo Code, and Zed based on the detections in SDK PR #51054. See commit 8da2d42.

@baronfel
Copy link
Member

baronfel commented Oct 7, 2025

@meaghanlewis thanks for kicking this off! We added a few more LLM agent detections recently so I'm having Copilot tackle those as well. Other than that this looks great.

@Copilot Copilot AI requested a review from baronfel October 7, 2025 00:48
Copilot finished work on behalf of baronfel October 7, 2025 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add LLM telemetry data point for .NET CLI Telemetry
3 participants