Repository Analysis

microsoft/winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).

3.0 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of microsoft/winget-cli, a C++ project with 26,165 GitHub stars. SynthScan v2.0 examined 324,887 lines of code across 2111 source files, recording 859 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 3.0 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

3.0
Adjusted Score
3.0
Raw Score
100%
Time Factor
2026-07-13
Last Push
26.2K
Stars
C++
Language
324.9K
Lines of Code
2.1K
Files
859
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 3HIGH 6MEDIUM 26LOW 824

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 859 distinct pattern matches across 9 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block815 hits · 815 pts
SeverityFileLineSnippetContext
LOW…tallAndCheckCorrelation/InstallAndCheckCorrelation.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWtools/SampleWinGetUWPCaller/AppInstallerCaller/pch.h1// Copyright (c) Microsoft Corporation.COMMENT
LOWtools/SampleWinGetUWPCaller/AppInstallerCaller/App.cpp101/// <summary>COMMENT
LOWtools/IndexComparisonTool/pch.h1// Copyright (c) Microsoft Corporation.COMMENT
LOWtools/IndexComparisonTool/pch.h21#include <string>COMMENT
LOWtools/IndexComparisonTool/pch.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsamples/ConnectionValidationSample/Program.cs1// Copyright (c) Microsoft Corporation.COMMENT
LOWsamples/WinGetUWPCaller/WinGetUWPCaller/pch.h1// Copyright (c) Microsoft Corporation.COMMENT
LOWsamples/WinGetUWPCaller/WinGetUWPCaller/pch.h21#include <mutex>COMMENT
LOWsamples/WinGetUWPCaller/WinGetUWPCaller/MainPage.cpp841 else if (uninstallResult)COMMENT
LOWsamples/WinGetUWPCaller/WinGetUWPCaller/App.cpp101/// <summary>COMMENT
LOW.github/workflows/spelling3.yml1# spelling.yml is blocked per https://github.com/check-spelling/check-spelling/security/advisories/GHSA-g86g-chm8-7r2pCOMMENT
LOW.github/workflows/spelling3.yml21#COMMENT
LOW.github/workflows/spelling3.yml41# Access to SARIF reports is generally restricted (by GitHub) to members of the repository.COMMENT
LOW.github/actions/spelling/patterns.txt81COMMENT
LOWdoc/specs/#888 - Com Api.md441 /// SAMPLE VALUES: For OpenWindowsCatalog "Microsoft.Winget.Source_8wekyb3d8bbwe"COMMENT
LOWdoc/specs/#888 - Com Api.md661 FindPackagesOptions();COMMENT
LOWsrc/binver/binver/version.h1#define STRINGIZE2(s) #sCOMMENT
LOWsrc/binver/binver/version.h21#define VER_COPYRIGHT_STR "Copyright (c) Microsoft Corporation"COMMENT
LOWsrc/binver/binver/resource.h1//{{NO_DEPENDENCIES}}COMMENT
LOW…nitTests/ManifestUnitTest/ManifestEqualityUnitTests.cs121 /// Manifest with all properties that provide equality.COMMENT
LOW…terop.UnitTests/ManifestUnitTest/V1ManifestReadTest.cs541#pragma warning disable SA1310 // FieldNamesMustNotContainUnderscoreCOMMENT
LOW…terop.UnitTests/ManifestUnitTest/V1ManifestReadTest.cs561COMMENT
LOWsrc/AppInstallerTestExeInstaller/main.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/ComInprocTestbed/pch.h1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/ComInprocTestbed/pch.h21#include <string_view>COMMENT
LOWsrc/ComInprocTestbed/Tests.h1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/ComInprocTestbed/pch.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/Dependencies.cpp1#include "pch.h"COMMENT
LOWsrc/AppInstallerCLITests/PinFlow.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/pch.h1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/pch.h21#include <catch2/reporters/catch_reporter_registrars.hpp>COMMENT
LOWsrc/AppInstallerCLITests/pch.h41#include <fstream>COMMENT
LOWsrc/AppInstallerCLITests/WorkFlow.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/WorkflowCommon.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/TestCommon.h1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/CustomHeader.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/PortableInstaller.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/Command.cpp181COMMENT
LOWsrc/AppInstallerCLITests/WorkflowGroupPolicy.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/PreIndexedPackageSource.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/UserSettings.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/RestClient.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/TestHooks.h1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/CompositeSource.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/InstallDependenciesFlow.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/ARPChanges.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/RestInterface_1_7.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/HttpClientHelper.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/InstallFlow.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/RestInterface_1_0.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/main.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/WorkflowCommon.h1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/Sources.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/ResumeFlow.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/AppInstallerCLITests/SQLiteIndex.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/WinGetUtilInterop/Manifest/ManifestVersion.cs1// -----------------------------------------------------------------------------COMMENT
LOWsrc/WinGetUtilInterop/Manifest/ManifestVersion.cs21 /// <summary>COMMENT
LOWsrc/WinGetUtilInterop/Manifest/ManifestVersion.cs41 /// <summary>COMMENT
LOWsrc/WinGetUtilInterop/Manifest/V1/MinManifestInfo.cs41 public string ManifestType { get; set; }COMMENT
755 more matches not shown…
Decorative Section Separators21 hits · 68 pts
SeverityFileLineSnippetContext
MEDIUMtools/WinGetLogViewer/media/viewer.js10 // ── State ────────────────────────────────────────────────────────COMMENT
MEDIUMtools/WinGetLogViewer/media/viewer.js46 // ── DOM refs ─────────────────────────────────────────────────────COMMENT
MEDIUMtools/WinGetLogViewer/media/viewer.js66 // ── Helpers ──────────────────────────────────────────────────────COMMENT
MEDIUMtools/WinGetLogViewer/media/viewer.js153 // ── Filter logic ─────────────────────────────────────────────────COMMENT
MEDIUMtools/WinGetLogViewer/media/viewer.js213 // ── Sidebar builder ──────────────────────────────────────────────COMMENT
MEDIUMtools/WinGetLogViewer/media/viewer.js353 // ── Virtual scroll renderer ───────────────────────────────────────COMMENT
MEDIUMtools/WinGetLogViewer/media/viewer.js452 // ── Scroll handler (virtual scroll repaint) ───────────────────────COMMENT
MEDIUMtools/WinGetLogViewer/media/viewer.js474 // ── Error navigation ─────────────────────────────────────────────COMMENT
MEDIUMtools/WinGetLogViewer/media/viewer.js497 // ── Option toggles ────────────────────────────────────────────────COMMENT
MEDIUMtools/WinGetLogViewer/media/viewer.js513 // ── Search ────────────────────────────────────────────────────────COMMENT
MEDIUMtools/WinGetLogViewer/media/viewer.js523 // ── Level / Channel / Subchannel "All / None" buttons ────────────COMMENT
MEDIUMtools/WinGetLogViewer/media/viewer.js567 // ── Export ────────────────────────────────────────────────────────COMMENT
MEDIUMtools/WinGetLogViewer/media/viewer.js577 // ── Message handler (from extension host) ─────────────────────────COMMENT
MEDIUMtools/WinGetLogViewer/src/logViewerProvider.ts21 // ── CustomReadonlyEditorProvider ────────────────────────────────COMMENT
MEDIUMtools/WinGetLogViewer/src/logViewerProvider.ts97 // ── Public: open any log file in a new panel ─────────────────────COMMENT
MEDIUMtools/WinGetLogViewer/src/logViewerProvider.ts166 // ── HTML builder ─────────────────────────────────────────────────COMMENT
MEDIUMsrc/AppInstallerCLICore/Commands/DebugCommand.cpp399// ── LogViewerTestCommand ─────────────────────────────────────────────────────COMMENT
MEDIUMsrc/AppInstallerCLICore/Commands/DebugCommand.cpp430 // ── All five levels on CLI ────────────────────────────────────────────COMMENT
MEDIUMsrc/AppInstallerCLICore/Commands/DebugCommand.cpp437 // ── One Info entry on every channel ──────────────────────────────────COMMENT
MEDIUMsrc/AppInstallerCLICore/Commands/DebugCommand.cpp447 // ── Subchannel simulation (sub-component logs routed through CLI) ─────COMMENT
MEDIUMsrc/AppInstallerCLICore/Commands/DebugCommand.cpp471 // ── Follow mode: stream log lines every 3 seconds ────────────────────COMMENT
Synthetic Comment Markers6 hits · 45 pts
SeverityFileLineSnippetContext
HIGH…ryCore/Microsoft/Schema/1_0/SearchResultsTable_1_0.cpp78 // Create an insert statement to select values into the table as requested.COMMENT
HIGH…ryCore/Microsoft/Schema/2_0/SearchResultsTable_2_0.cpp80 // Create an insert statement to select values into the table as requested.COMMENT
HIGHsrc/AppInstallerRepositoryCore/Rest/RestClient.cpp170 // Cache the information value as requestedCOMMENT
HIGH…et.SharedLib/Resources/GroupPolicyResource.Designer.cs3// This code was generated by a tool.COMMENT
HIGH…t.Configuration.Engine/Resources/Resources.Designer.cs3// This code was generated by a tool.COMMENT
HIGH….WinGet.Client.Engine/Properties/Resources.Designer.cs3// This code was generated by a tool.COMMENT
Hallucination Indicators3 hits · 30 pts
SeverityFileLineSnippetContext
CRITICAL…c/AppInstallerCLIE2ETests/PowerShell/PowerShellHost.cs65 var newModulePath = this.PowerShell.Runspace.SessionStateProxy.PSVariable.GetValue("env:PSModulePath") + $";CODE
CRITICAL…c/AppInstallerCLIE2ETests/PowerShell/PowerShellHost.cs66 this.PowerShell.Runspace.SessionStateProxy.PSVariable.Set("env:PSModulePath", newModulePath);CODE
CRITICAL…nitTests/Tests/ConfigurationProcessorTelemetryTests.cs189 Assert.Equal(testObjects.GetResult.ResultInformation.ResultCode.HResult.ToString(), runEvent.Properties[TeleCODE
Slop Phrases4 hits · 9 pts
SeverityFileLineSnippetContext
LOWsrc/AppInstallerCLITests/RestClient.cpp65 // Update this test to next version so that we don't forget to add to supported versions before rest e2e tests are aCOMMENT
LOWsrc/AppInstallerCLITests/TestHooks.h29 // Don't forget to clear the overrides after use!COMMENT
MEDIUMsrc/AppInstallerCLICore/Argument.cpp336 // Used for demonstration purposesCOMMENT
MEDIUMsrc/AppInstallerCLICore/ExecutionArgs.h196 // Used for demonstration purposesCOMMENT
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUM…oryCore/Microsoft/PredefinedInstalledSourceFactory.cpp320 // TODO: To support servicing, the initial implementation of update will simply leverageCOMMENT
MEDIUM…sitoryCore/Microsoft/ConfigurableTestSourceFactory.cpp30 // TODO: If this becomes more dynamic, refactor the UserSettings code to make it easier to leverage COMMENT
MEDIUM…nstallerCLICore/ConfigurationDynamicRuntimeFactory.cpp44 // have this implementation leverage that one with an event handler for the packaged specifics.COMMENT
Structural Annotation Overuse5 hits · 8 pts
SeverityFileLineSnippetContext
LOWdoc/windows/package-manager/package/repository.md31### Step 1: Validate your manifestCOMMENT
LOWdoc/windows/package-manager/package/repository.md41### Step 2: Clone the repositoryCOMMENT
LOWdoc/windows/package-manager/package/repository.md58### Step 3: Add your manifest to the local repositoryCOMMENT
LOWdoc/windows/package-manager/package/repository.md72### Step 4: Submit your manifest to the remote repositoryCOMMENT
LOWdoc/windows/package-manager/package/repository.md86### Step 5: Create a pull requestCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…stallerRepositoryCore/Public/winget/RepositorySearch.h376 // Example usage:COMMENT
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/AppInstallerCLITests/TestRestRequestHandler.h6class TestRestRequestHandler : public web::http::http_pipeline_stageCODE