Skip to content

Conversation

baronfel
Copy link
Member

@baronfel baronfel commented Sep 29, 2025

Impact

Add two new known LLM agentic CLIs, and a proposed 'generic' option to drive discussion across other tools/products.

We want to try and use this detection to change the behavior of the product in a way that is more useful to LLMs - specifically enabling terminal logger and disabling it's live-update portion. This change, plus dotnet/msbuild#12581 from MSBuild, will let us do the first example of that behavioral change.

Once we detect an LLM is present, we tell the MSBuild Terminal Logger to disable its live-update feature, which is token-inefficient.

Risk

Low for this change - it's additional detection + telemetry plus a flag that has zero impact if TL is not used on a particular build.

@baronfel baronfel changed the title More LLM detections for other CLI agents More LLM detections for other CLI agents + alter TL behavior in the presence of LLMs Sep 30, 2025
@baronfel
Copy link
Member Author

baronfel commented Oct 1, 2025

Approved over email

…, refactoring relevant codepaths to work in terms of MSBuildArgs for consistency, and aligning on a constant
YuliiaKovalova pushed a commit to dotnet/msbuild that referenced this pull request Oct 2, 2025
…#12584)

Fixes part of #12486, but not all.

### Context

This introduces a new Terminal Logger Parameter (`DISABLENODEDISPLAY`)
that disables the live-updating node display portion of the Terminal
Logger output. This output is very wasteful when LLMs are running the
build, and the hope is that we can toggle this flag automatically at the
dotnet CLI level to maintain the structure benefits of TL while also not
flooding the context.

### Changes Made

* introduced a new parameter and threaded it through the logic

### Testing

* Manual testing done - verified that the flag does in fact disable the
display entirely.


https://github.com/user-attachments/assets/f6e9f74b-77c2-46be-a1ae-7d974d5d7348

### Notes

This will use the logic from dotnet/sdk#51054 in
the SDK to turn off the live-update feature.

Co-authored-by: Chet Husk <[email protected]>
@baronfel baronfel merged commit e55c60d into dotnet:release/10.0.1xx Oct 3, 2025
27 checks passed
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.

4 participants