AI Slop Code Risk Monitor

microsoft/terminal

SlopCodeMonitor badge for microsoft/terminal Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

The new Windows Terminal and the original Windows console host, all in the same place!

3.8 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for microsoft/terminal, a C++ project with 105,294 GitHub stars. SynthScan examined 359,680 lines of code across 1404 source files, recording 1294 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 3.8 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

3.8
Adjusted Signal
3.8
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
105.3K
Stars
C++
Language
359.7K
Lines of Code
1.4K
Files
1.3K
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 16.7/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 1268 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.4/100 · LOW

Are imports declared and package/API names verified? 18 finding(s).

Agent Over-Engineering Ratio 0.5/100 · LOW

Are wrappers, guards, and repeated structures necessary? 8 finding(s).

PR Review Velocity Impact 17.3/100 · LOW

Which changes need focused human review? 1294 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 1HIGH 3MEDIUM 24LOW 1266

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 1294 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block1220 hits · 1198 pts
SeverityFileLineSnippetContext
LOWtools/WindbgExtension.js1COMMENT
LOW…Y/GUIConsole/GUIConsole.WPF/Properties/AssemblyInfo.cs21// COM, set the ComVisible attribute to true on that type.COMMENT
LOW…Y/GUIConsole/GUIConsole.WPF/Properties/AssemblyInfo.cs41)]COMMENT
LOW…onsole/GUIConsole.WPF/Properties/Resources.Designer.cs1//------------------------------------------------------------------------------COMMENT
LOWsamples/ConPTY/GUIConsole/GUIConsole.ConPTY/Terminal.cs21 /// A stream of VT-100-enabled output from the console.COMMENT
LOWsamples/ConPTY/MiniTerm/MiniTerm/Program.cs1using System;COMMENT
LOW…es/ConPTY/MiniTerm/MiniTerm/Properties/AssemblyInfo.cs21COMMENT
LOWsamples/ConPTY/EchoCon/EchoCon/stdafx.h1// stdafx.h : include file for standard system include files,COMMENT
LOWsamples/ConPTY/EchoCon/EchoCon/targetver.h1#pragma onceCOMMENT
LOWsamples/ConPTY/EchoCon/EchoCon/stdafx.cpp1// stdafx.cpp : source file that includes just the standard includesCOMMENT
LOWscratch/ScratchIslandApp/WindowExe/pch.h21#define WIN32_LEAN_AND_MEANCOMMENT
LOWscratch/ScratchIslandApp/WindowExe/pch.h41COMMENT
LOWscratch/ScratchIslandApp/WindowExe/pch.h61// * Media for ScaleTransformCOMMENT
LOWscratch/ScratchIslandApp/WindowExe/pch.h81#include <WinUser.h>COMMENT
LOWscratch/ScratchIslandApp/WindowExe/SampleMain.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWscratch/ScratchIslandApp/WindowExe/SampleMain.cpp81 // cause WT to start with Ctrl-C disabled. This wouldn't matter, because it's a Windows-subsystemCOMMENT
LOWscratch/ScratchIslandApp/WindowExe/pch.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWscratch/ScratchIslandApp/WindowExe/SampleAppHost.cpp61COMMENT
LOWscratch/ScratchIslandApp/WindowExe/resource.h1//{{NO_DEPENDENCIES}}COMMENT
LOWscratch/ScratchIslandApp/WindowExe/resource.h21#ifndef APSTUDIO_READONLY_SYMBOLSCOMMENT
LOW…atch/ScratchIslandApp/WindowExe/SampleIslandWindow.cpp201 OnSize(size.cx, size.cy);COMMENT
LOWscratch/ScratchIslandApp/SampleApp/pch.h1// Copyright (c) Microsoft Corporation.COMMENT
LOWscratch/ScratchIslandApp/SampleApp/pch.h21// Windows::UI::Xaml::Media::Animation::IStoryboard::GetCurrentTimeCOMMENT
LOWscratch/ScratchIslandApp/SampleApp/pch.h41#include <winrt/Windows.UI.Xaml.Data.h>COMMENT
LOWscratch/ScratchIslandApp/SampleApp/pch.h61COMMENT
LOWscratch/ScratchIslandApp/SampleApp/pch.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWscratch/ScratchIslandApp/SampleApp/dll/pch.h1// Copyright (c) Microsoft Corporation.COMMENT
LOWscratch/ScratchIslandApp/SampleApp/dll/pch.cpp1// Copyright (c) Microsoft Corporation.COMMENT
LOWdep/Console/winconp.h61#define CONSOLE_REGISTRY_FONTFAMILY L"FontFamily"COMMENT
LOWdep/Console/winconp.h81#define CONSOLE_REGISTRY_WORD_DELIM L"WordDelimiters"COMMENT
LOWdep/Console/winconp.h101#define CONSOLE_REGISTRY_COPYCOLOR L"CopyColor"COMMENT
LOWdep/Console/winconp.h461UnregisterConsoleIME(COMMENT
LOWdep/Console/winconp.h481#define CONSOLE_OUTPUT_STRING L"CONOUT$"COMMENT
LOWdep/Console/winconp.h601#define PID_CONSOLE_WRAPTEXT 2COMMENT
LOWdep/Console/winconp.h661//COMMENT
LOWdep/Console/condrv.h21 Kernel and user modes.COMMENT
LOWdep/Console/condrv.h61#define CD_IO_OBJECT_TYPE_CURRENT_OUTPUT 0x02COMMENT
LOWdep/Console/ntcon.h1//COMMENT
LOWdep/Console/ntcon.h21COMMENT
LOWoss/pcg/include/pcg_random.hpp1// PCG Random Number Generation for C++COMMENT
LOWoss/stb/stb_rect_pack.h1// stb_rect_pack.h - v1.01 - public domain - rectangle packingCOMMENT
LOWoss/stb/stb_rect_pack.h21// No memory allocations; uses qsort() and assert() from stdlib.COMMENT
LOWoss/stb/stb_rect_pack.h41//COMMENT
LOWoss/stb/stb_rect_pack.h61//////////////////////////////////////////////////////////////////////////////COMMENT
LOWoss/stb/stb_rect_pack.h81typedef struct stbrp_context stbrp_context;COMMENT
LOWoss/stb/stb_rect_pack.h101// You should not try to access the 'rects' array from another threadCOMMENT
LOWoss/stb/stb_rect_pack.h121 stbrp_coord w, h;COMMENT
LOWoss/stb/stb_rect_pack.h141// Note: to guarantee best results, either:COMMENT
LOWoss/stb/stb_rect_pack.h201//COMMENT
LOWoss/stb/stb_rect_pack.h381 }COMMENT
LOWoss/chromium/base/numerics/safe_math_clang_gcc_impl.h1// Copyright 2017 The Chromium Authors. All rights reserved.COMMENT
LOWoss/chromium/base/numerics/safe_math_arm_impl.h21COMMENT
LOWoss/chromium/base/numerics/clamped_math_impl.h1// Copyright 2017 The Chromium Authors. All rights reserved.COMMENT
LOWoss/chromium/base/numerics/safe_conversions.h1// Copyright 2014 The Chromium Authors. All rights reserved.COMMENT
LOWoss/chromium/base/numerics/safe_conversions.h281 constexpr StrictNumeric(Src value) // NOLINT(runtime/explicit)COMMENT
LOWoss/chromium/base/numerics/checked_math_impl.h1// Copyright 2017 The Chromium Authors. All rights reserved.COMMENT
LOWoss/chromium/base/numerics/safe_math.h1// Copyright 2017 The Chromium Authors. All rights reserved.COMMENT
LOWoss/chromium/base/numerics/safe_conversions_impl.h1// Copyright 2014 The Chromium Authors. All rights reserved.COMMENT
LOWoss/chromium/base/numerics/safe_conversions_impl.h221// truncated to fit the mantissa of the floating point. The direction ofCOMMENT
LOWoss/chromium/base/numerics/safe_math_shared_impl.h1// Copyright 2017 The Chromium Authors. All rights reserved.COMMENT
1160 more matches not shown…
AI Slop Vocabulary17 hits · 48 pts
SeverityFileLineSnippetContext
MEDIUMoss/chromium/base/numerics/clamped_math.h44 // This is not an explicit constructor because we want a seamless conversionCOMMENT
MEDIUMoss/chromium/base/numerics/checked_math.h44 // This is not an explicit constructor because we want a seamless conversionCOMMENT
MEDIUMsrc/renderer/atlas/BackendD3D.cpp308 // it being simple to implement and robust against more peculiar fonts with unusually large/small descenders, etCOMMENT
MEDIUMsrc/renderer/atlas/BackendD2D.cpp679 // it being simple to implement and robust against more peculiar fonts with unusually large/small descenders, etCOMMENT
MEDIUMsrc/renderer/atlas/BackendD2D.cpp694 // color, it is seamless.COMMENT
MEDIUMsrc/inc/til/color.h22 // Here, we leverage the spec-legality of using unions for type conversions and theCOMMENT
LOWsrc/tools/vtpipeterm/main.cpp13#else // Building inside Windows, just use the kernel32 ones.COMMENT
MEDIUMsrc/types/CodepointWidthDetector.cpp22// Fundamentally, the trie is generated by taking all 1114112 codepoints and their assigned values and deduplicatingCOMMENT
MEDIUMsrc/types/UiaTextRangeBase.cpp985 // so leverage size_t(-1) being converted to 0xffff...COMMENT
MEDIUMsrc/host/input.cpp359 // Going back to the Win 7 behavior then should make shutdown a lot more robust.COMMENT
MEDIUMsrc/host/screenInfo.cpp1523 // Essentially ResetConptyCursorPositionMayBeWrong(), but here we explicitly use our initial generationCOMMENT
MEDIUMsrc/terminal/parser/base64.cpp47 // Is 4 enough? Certainly not. 6 on the other hand is just way too much. Clearly 5 is just right.COMMENT
MEDIUMsrc/terminal/parser/ft_fuzzer/fuzzing_directed.h370 // is designed to leverage the & operator overload to have CFuzzArrayCOMMENT
MEDIUMsrc/interactivity/win32/windowio.cpp993 // so they can be faithfully represented as a user "typing" into the client application. The vision would bCOMMENT
LOWsrc/cascadia/TerminalApp/TabManagement.cpp614 // GH#11107 - Always just set the item directly first so that ifCOMMENT
MEDIUMsrc/cascadia/TerminalSettingsModel/JsonUtils.h1010 // Cleverly leverage EnumMapper to do the heavy lifting.COMMENT
MEDIUM…erminalSettingsModel/CascadiaSettingsSerialization.cpp1137 // will fail; we can leverage this to detect when they are equivalent and delete the user's duplicate copies.COMMENT
Decorative Section Separators7 hits · 32 pts
SeverityFileLineSnippetContext
MEDIUM⚡doc/specs/#13000 - In-process ConPTY.md356// ┌──────────────────┐COMMENT
MEDIUM⚡doc/specs/#13000 - In-process ConPTY.md360// ╭ ├──────────────────┤ ├── VT scrollback (partially addressed)COMMENT
MEDIUM⚡doc/specs/#13000 - In-process ConPTY.md364// Console Buffer ──┤ ├──────────────────┤ ├──── VT Viewport (top y = 1)COMMENT
MEDIUM⚡doc/specs/#13000 - In-process ConPTY.md368// ╰ └──────────────────┘COMMENT
MEDIUM⚡doc/specs/#13000 - In-process ConPTY.md374// ┌──────────────────┐ ╮COMMENT
MEDIUM⚡doc/specs/#13000 - In-process ConPTY.md378// ╭ ├──────────────────┤ ╮ ╯COMMENT
MEDIUM⚡doc/specs/#13000 - In-process ConPTY.md382// ╰ └──────────────────┘ ╯COMMENT
Synthetic Comment Markers3 hits · 22 pts
SeverityFileLineSnippetContext
HIGH…Console/GUIConsole.WPF/Properties/Settings.Designer.cs3// This code was generated by a tool.COMMENT
HIGH…onsole/GUIConsole.WPF/Properties/Resources.Designer.cs3// This code was generated by a tool.COMMENT
HIGHsrc/tools/ColorTool/ColorTool/Resources.Designer.cs3// This code was generated by a tool.COMMENT
Structural Annotation Overuse9 hits · 15 pts
SeverityFileLineSnippetContext
LOW…ecs/#885 - Terminal Settings Model/Actions Addendum.md44### Step 1: Consolidating actionsCOMMENT
LOW…ecs/#885 - Terminal Settings Model/Actions Addendum.md100### Step 2: Querying actionsCOMMENT
LOW…ecs/#885 - Terminal Settings Model/Actions Addendum.md142### Step 3: Settings UI needsCOMMENT
LOW⚡src/terminal/parser/InputStateMachineEngine.cpp979 // Step 3: check if mouse movedCOMMENT
LOW⚡src/terminal/parser/InputStateMachineEngine.cpp985 // Step 4: update internal state before returning, even if we couldn't fully understand thisCOMMENT
LOWsrc/terminal/parser/InputStateMachineEngine.cpp879 // Step 1: Translate which button was affectedCOMMENT
LOWsrc/terminal/parser/InputStateMachineEngine.cpp935 // Step 2: Decide whether to set or clear that button's bitCOMMENT
LOWsrc/server/ObjectHeader.h27 // NOTE: This class must have a virtual method for the stored "this" pointers to match what we're actually looking fCOMMENT
LOWsrc/cascadia/TerminalConnection/AzureConnection.cpp783 //// Step 8: connecting to said terminalCOMMENT
Fake / Example Data10 hits · 15 pts
SeverityFileLineSnippetContext
LOW⚡src/tools/ConsoleBench/main.cpp448static constexpr std::string_view s_payload_utf8{ "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmCODE
LOW⚡src/tools/ConsoleBench/main.cpp448static constexpr std::string_view s_payload_utf8{ "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmCODE
LOW⚡src/tools/ConsoleBench/main.cpp450static constexpr std::wstring_view s_payload_utf16{ L"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiCODE
LOW⚡src/tools/ConsoleBench/main.cpp450static constexpr std::wstring_view s_payload_utf16{ L"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiCODE
LOW⚡src/terminal/parser/ft_fuzzer/VTCommandFuzzer.cpp117 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore mCODE
LOW⚡src/terminal/parser/ft_fuzzer/VTCommandFuzzer.cpp117 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore mCODE
LOW⚡src/terminal/parser/ft_fuzzer/VTCommandFuzzer.cpp118 "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem apeCODE
LOW⚡src/terminal/parser/ft_fuzzer/VTCommandFuzzer.cpp118 "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem apeCODE
LOW⚡src/terminal/parser/ft_fuzzer/VTCommandFuzzer.cpp119 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore mCODE
LOW⚡src/terminal/parser/ft_fuzzer/VTCommandFuzzer.cpp119 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore mCODE
Verbosity Indicators9 hits · 15 pts
SeverityFileLineSnippetContext
LOW⚡src/terminal/parser/InputStateMachineEngine.cpp979 // Step 3: check if mouse movedCOMMENT
LOW⚡src/terminal/parser/InputStateMachineEngine.cpp985 // Step 4: update internal state before returning, even if we couldn't fully understand thisCOMMENT
LOWsrc/terminal/parser/InputStateMachineEngine.cpp879 // Step 1: Translate which button was affectedCOMMENT
LOWsrc/terminal/parser/InputStateMachineEngine.cpp935 // Step 2: Decide whether to set or clear that button's bitCOMMENT
LOWsrc/interactivity/win32/windowio.cpp348 // we need to check if there is an active popup because otherwise they won't be able to receive shift+key eventsCOMMENT
LOWsrc/cascadia/TerminalCore/TerminalSelection.cpp480 // so we need to check if we're pointing to that one before returning it.COMMENT
LOWsrc/cascadia/WindowsTerminal/AppHost.cpp566 // We need to check if the top left point of the titlebar of the window is within any screenCOMMENT
LOW…c/cascadia/TerminalSettingsModel/GlobalAppSettings.cpp449 // so we need to check if they were explicitly setCOMMENT
LOWsrc/cascadia/TerminalConnection/AzureConnection.cpp783 //// Step 8: connecting to said terminalCOMMENT
Slop Phrases9 hits · 14 pts
SeverityFileLineSnippetContext
LOWsrc/inc/til/mutex.h70 // ensures you don't forget to do so, unlike with std::mutex/std::shared_mutex.COMMENT
LOW…olorTool/ConsoleTargets/TerminalSchemeConsoleTarget.cs13 Console.WriteLine("Copy and paste the following text into the schemes array of your Windows Terminal settingCODE
MEDIUMsrc/terminal/adapter/InteractDispatch.cpp83 // It's worth noting that all of this is bad design in either case.COMMENT
LOWsrc/cascadia/WindowsTerminal/NonClientIslandWindow.cpp661 // GH#5209 - make sure to use MONITOR_DEFAULTTONEAREST, so that this willCOMMENT
LOWsrc/cascadia/TerminalApp/AppCommandlineArgs.cpp398 // GH#10070 - make sure to not use the MRU order when switchingCOMMENT
LOWsrc/cascadia/TerminalControl/TermControl.cpp2736 // GH#2061 - make sure to account for the size the padding _will be_ scaled toCOMMENT
LOWsrc/cascadia/TerminalControl/TermControl.cpp2772 // GH#2061 - make sure to account for the size the padding _will be_ scaled toCOMMENT
LOWsrc/cascadia/TerminalConnection/ConptyConnection.cpp484 // GH#11556 - make sure to format the error code to this string as an UNSIGNED intCOMMENT
LOWsrc/cascadia/TerminalConnection/ConptyConnection.cpp521 // GH#11556 - make sure to format the error code to this string as an UNSIGNED intCOMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALtools/WindbgExtension.js24 return host.namespace.Debugger.Utility.Control.ExecuteCommand("dx Microsoft::Console::Interactivity::ServiceLocator:CODE
Unused Imports7 hits · 7 pts
SeverityFileLineSnippetContext
LOWsrc/tools/vttests/test-unicode.py16CODE
LOWsrc/tools/vttests/test-unicode.py17CODE
LOWsrc/tools/vttests/test-unicode.py18CODE
LOWsrc/tools/vttests/burrito.py17CODE
LOWsrc/tools/vttests/template.py8CODE
LOWsrc/tools/vttests/template.py9CODE
LOWsrc/tools/vttests/template.py10CODE
Excessive Try-Catch Wrapping1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMdoc/specs/#1595 - Suggestions UI/dump-workflows.py28 print(f"Error parsing {filename}: {e}")CODE
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdoc/specs/#1595 - Suggestions UI/dump-workflows.py6CODE