Skip to content

Copilot-specific env variable for running commands #307136

Closed as duplicate
Closed as duplicate

Description

Can Copilot run all commands with some special env variable? There are already some env vars available today under some situations (see https://github.com/dotnet/sdk/blob/1e5d8e39d3026edb222cdf4f8d8240f1eb99f24b/src/Cli/dotnet/Telemetry/LLMEnvironmentDetectorForTelemetry.cs), but looks like Copilot in VSCode doesn't use any special env variable.

This helps tooling around to provide better output from commands.

Activity

  1. meganrogge commented on Apr 6, 2026

    @meganrogge
    Collaborator

    What's your use case?

  2. Youssef1313 commented on Apr 6, 2026

    @Youssef1313
    MemberAuthor
    1. For .NET SDK and MSBuild, it can disable terminal logger or ANSI output which makes it easier for LLMs to understand the output.
    2. For .NET testing (Microsoft.Testing.Platform, to be specific), we can also disable ANSI output in LLM environments.
  3. aelij commented on May 18, 2026

    @aelij
    Member

    This seem to be closed by #316267, env var is COPILOT_AGENT

  4. locked and limited conversation to collaborators on Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions