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, Gemini) 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

@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?

@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
@meaghanlewis meaghanlewis marked this pull request as ready for review October 7, 2025 17:11
@meaghanlewis meaghanlewis requested a review from a team as a code owner October 7, 2025 17:11
@Copilot Copilot AI review requested due to automatic review settings October 7, 2025 17:11
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds documentation for the new LLM agent detection feature in the .NET CLI telemetry system. The changes clarify what telemetry data is collected when the CLI is invoked by LLM agents and explain how the detection mechanism works.

Key changes:

  • Added telemetry collection entry for LLM agent detection in .NET CLI versions >=10.0.100
  • Introduced new "LLM Detection" section explaining the detection mechanism and supported agents
  • Added table of supported LLM agents with their detection environment variables

Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

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

Left some suggestions to consider.

meaghanlewis and others added 6 commits October 9, 2025 12:18
Corrected formatting in telemetry documentation.
@meaghanlewis meaghanlewis merged commit bc6f309 into main Oct 9, 2025
12 checks passed
@meaghanlewis meaghanlewis deleted the copilot/fix-53222cf8-939c-4513-baf1-5be63b2e714d branch October 9, 2025 19:52
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
4 participants