AI Slop Code Risk Monitor

xtermjs/xterm.js

SlopCodeMonitor badge for xtermjs/xterm.js Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

A terminal for the web

2.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for xtermjs/xterm.js, a TypeScript project with 21,306 GitHub stars. SynthScan examined 110,485 lines of code across 506 source files, recording 97 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 2.1 (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.

2.1
Adjusted Signal
2.1
Raw Pattern Score
100%
Time Factor
2026-10-29
Last Push
21.3K
Stars
TypeScript
Language
110.5K
Lines of Code
506
Files
97
Pattern Hits
2026-10-31
Scan Date
0.02
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 4.2/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 5.8/100 · LOW

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

Agent Over-Engineering Ratio 1.6/100 · LOW

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

PR Review Velocity Impact 8.4/100 · LOW

Which changes need focused human review? 97 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 9HIGH 2MEDIUM 3LOW 83

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 97 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.

Hallucination Indicators9 hits · 110 pts
SeverityFileLineSnippetContext
CRITICALaddons/addon-image/test/ImageAddon.test.ts120 strictEqual(await ctx.page.evaluate('window.term._core.buffer.lines.get(0)._data instanceof Uint32Array'), true);CODE
CRITICALaddons/addon-image/test/ImageAddon.test.ts121 strictEqual(await ctx.page.evaluate('window.term._core.buffer.lines.get(0)._extendedAttrs instanceof Object'), true)CODE
CRITICALaddons/addon-image/src/ImageStorage.ts197 this._terminal._core._inputHandler._dirtyRowTracker.markDirty(buffer.y);CODE
CRITICALaddons/addon-image/src/ImageStorage.ts212 this._terminal._core._inputHandler._dirtyRowTracker.markDirty(buffer.y);CODE
CRITICALaddons/addon-ligatures/src/fontLigatures/index.ts31 const caltFeatures = this._font.tables.gsub && this._font.tables.gsub.features.filter((f: { tag: string }) => f.tag CODE
CRITICAL⚡src/browser/CoreBrowserTerminal.ts1150 const canvasWidth = this._renderService.dimensions.css.canvas.width.toFixed(0);CODE
CRITICAL⚡src/browser/CoreBrowserTerminal.ts1151 const canvasHeight = this._renderService.dimensions.css.canvas.height.toFixed(0);CODE
CRITICAL⚡src/browser/CoreBrowserTerminal.ts1155 const cellWidth = this._renderService.dimensions.css.cell.width.toFixed(0);CODE
CRITICAL⚡src/browser/CoreBrowserTerminal.ts1156 const cellHeight = this._renderService.dimensions.css.cell.height.toFixed(0);CODE
Hyper-Verbose Identifiers36 hits · 36 pts
SeverityFileLineSnippetContext
LOWdemo/client/client.ts446function updateTerminalContainerBackground(): void {CODE
LOWdemo/client/components/window/testWindow.ts322function customGlyphAlignmentHandler(term: Terminal): void {CODE
LOWtest/benchmark/DecorationService.benchmark.ts18function registerSingleLineDecorations(service: DecorationService, bufferService: MockBufferService, count: number): voiCODE
LOWtest/playwright/SharedRendererTests.ts17export function injectSharedRendererTests(ctx: ISharedRendererTestContext): void {CODE
LOWtest/playwright/SharedRendererTests.ts1503async function getCellDomBackgroundColor(ctx: ITestContext, col: number, row: number): Promise<[number, number, number, CODE
LOWtest/playwright/SharedRendererTests.ts1508async function getCellDomForegroundColor(ctx: ITestContext, col: number, row: number): Promise<[number, number, number, CODE
LOWtest/playwright/SharedRendererTests.ts1528export function injectSharedRendererTestsStandalone(ctx: ISharedRendererTestContext, setupCb: () => Promise<void> | voidCODE
LOWaddons/addon-webgl/test/WebglSharedAtlasGarble.test.ts130function generateColoredAsciiFlood(cells: number, offset: number = 0): string {CODE
LOWaddons/addon-webgl/test/WebglAtlasStress.test.ts144function generateSyntheticTuiFrames(frameCount: number, cols: number, rows: number): string[] {CODE
LOWaddons/addon-webgl/src/GlyphRenderer.ts59function createFragmentShaderSource(maxFragmentShaderTextureUnits: number): string {CODE
LOWaddons/addon-webgl/src/TextureAtlas.ts1195function checkCompletelyTransparent(imageData: ImageData): boolean {CODE
LOWaddons/addon-webgl/src/DevicePixelObserver.ts8export function observeDevicePixelDimensions(element: HTMLElement, parentWindow: Window & typeof globalThis, callback: (CODE
LOW…/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts196function drawPathDefinitionCharacter(CODE
LOW…/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts405function drawPathNegativeDefinitionCharacter(CODE
LOW…/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts531function drawPathFunctionCharacter(CODE
LOWaddons/addon-web-links/test/WebLinksAddon.test.ts165async function resetAndHover(col: number, row: number): Promise<void> {CODE
LOW…addon-ligatures/src/fontLigatures/processors/helper.ts151function getSubstitutionAtPositionRange(substitutions: ISubstitutionLookupRecord[], lookups: Lookup[], index: number, raCODE
LOW…addon-ligatures/src/fontLigatures/processors/helper.ts168function getSubstitutionAtPosition(substitutions: ISubstitutionLookupRecord[], lookups: Lookup[], index: number, glyphIdCODE
LOW…ligatures/src/fontLigatures/processors/substitution.ts12export function getRangeSubstitutionGlyphs(table: SubstitutionTable, glyphId: [number, number]): Map<[number, number] | CODE
LOW…ligatures/src/fontLigatures/processors/substitution.ts41export function getIndividualSubstitutionGlyph(table: SubstitutionTable, glyphId: number): number | null {CODE
LOWsrc/browser/Dom.ts56export function addStandardDisposableListener(node: HTMLElement, type: string, handler: (event: any) => void, useCaptureCODE
LOWsrc/browser/Dom.ts154export function scheduleAtNextAnimationFrame(targetWindow: Window, runner: () => void, priority: number = 0): IDisposablCODE
LOWsrc/browser/Clipboard.ts66export function moveTextAreaUnderMouseCursor(ev: MouseEvent, textarea: HTMLTextAreaElement, screenElement: HTMLElement):CODE
LOWsrc/browser/renderer/shared/RendererUtils.ts22export function isRestrictedPowerlineGlyph(codepoint: number): boolean {CODE
LOWsrc/browser/renderer/shared/RendererUtils.ts63export function treatGlyphAsBackgroundColor(codepoint: number): boolean {CODE
LOWsrc/browser/renderer/shared/SelectionRenderModel.ts91export function createSelectionRenderModel(): ISelectionRenderModel {CODE
LOWsrc/browser/input/Mouse.ts6export function getCoordsRelativeToElement(window: Pick<Window, 'getComputedStyle'>, event: {clientX: number, clientY: nCODE
LOWsrc/browser/scrollable/mouseEvent.ts15function getParentWindowIfSameOrigin(w: Window): Window | null {CODE
LOWsrc/browser/services/MouseService.test.ts63function createTestMouseTargetElement(): HTMLElement {CODE
LOWsrc/common/WindowsMode.ts9export function updateWindowsModeWrappedState(bufferService: IBufferService): void {CODE
LOWsrc/common/input/Keyboard.test.ts10function testEvaluateKeyboardEvent(partialEvent: {CODE
LOWsrc/common/buffer/BufferReflow.ts25export function reflowLargerGetLinesToRemove(lines: CircularList<IBufferLine>, oldCols: number, newCols: number, bufferACODE
LOWsrc/common/buffer/BufferReflow.ts116export function reflowLargerCreateNewLayout(lines: CircularList<IBufferLine>, toRemove: number[]): INewLayoutResult {CODE
LOWsrc/common/buffer/BufferReflow.ts151export function reflowLargerApplyNewLayout(lines: CircularList<IBufferLine>, newLayout: number[]): void {CODE
LOWsrc/common/buffer/BufferReflow.ts179export function reflowSmallerGetNewLineLengths(wrappedLines: BufferLine[], oldCols: number, newCols: number): number[] {CODE
LOWsrc/common/buffer/BufferReflow.ts215export function getWrappedLineTrimmedLength(lines: BufferLine[], i: number, cols: number): number {CODE
Over-Commented Block21 hits · 21 pts
SeverityFileLineSnippetContext
LOWtest/playwright/MouseTracking.test.ts241 // await getReports(encoding); // clear reportsCOMMENT
LOWtest/playwright/MouseTracking.test.ts361 await pollFor(ctx.page, () => getReports(encoding), [{ col: 44, row: 25, state: { action: 'press', button: 'left',COMMENT
LOWtest/playwright/MouseTracking.test.ts561 { col: 44, row: 25, state: { action: 'press', button: 'left', modifier: { control: false, shift: false, meta: trCOMMENT
LOWtest/playwright/MouseTracking.test.ts581 // // } else {COMMENT
LOWtest/playwright/MouseTracking.test.ts721 // note: press/release caught by selection managerCOMMENT
LOWtest/playwright/MouseTracking.test.ts881 { col: 44, row: 25, state: { action: 'press', button: 'left', modifier: { control: false, shift: false, meta: trCOMMENT
LOWtest/playwright/MouseTracking.test.ts901 // } else {COMMENT
LOWtest/playwright/MouseTracking.test.ts1041 { col: 44, row: 25, state: { action: 'press', button: 'left', modifier: { control: false, shift: false, meta: trCOMMENT
LOWtest/playwright/MouseTracking.test.ts1061 // } else {COMMENT
LOWtest/playwright/MouseTracking.test.ts1221 // await mouseMove(44, 24);COMMENT
LOWtest/playwright/MouseTracking.test.ts1381 // SHIFTCOMMENT
LOWaddons/addon-image/fixture/gcrglf.sh41# (Sixel Display Mode). They control the same thing, so when DECSDM isCOMMENT
LOWaddons/addon-image/fixture/textcursor.sh1#!/bin/bashCOMMENT
LOWaddons/addon-image/fixture/textcursor.sh21# then, the text will overlap the image when a>b.COMMENT
LOWaddons/addon-image/fixture/textcursor.sh41# will potentially overlap the last row of sixels!COMMENT
LOWaddons/addon-webgl/src/WebglRenderer.ts681 // correctly within the cell.COMMENT
LOW…addon-webgl/src/customGlyphs/CustomGlyphDefinitions.ts281 //COMMENT
LOWaddons/addon-web-links/src/WebLinksAddon.ts1/**COMMENT
LOW…ddon-unicode-graphemes/src/third-party/unicode-trie.ts41COMMENT
LOWsrc/common/InputHandler.ts301 // 11 - Change VT100 text background color to Pt.COMMENT
LOWsrc/common/parser/EscapeSequenceParser.ts21// @vt: #Y ESC ST "String Terminator" "ESC \\" "Terminator used for string type sequences."COMMENT
Fake / Example Data12 hits · 12 pts
SeverityFileLineSnippetContext
LOWtest/benchmark/EscapeSequenceParser.benchmark.ts259 const data = '\x1b]0;Lorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\';CODE
LOWtest/benchmark/EscapeSequenceParser.benchmark.ts259 const data = '\x1b]0;Lorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\';CODE
LOWtest/benchmark/EscapeSequenceParser.benchmark.ts289 const data = '\x1b]1;Lorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\';CODE
LOWtest/benchmark/EscapeSequenceParser.benchmark.ts289 const data = '\x1b]1;Lorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\';CODE
LOWtest/benchmark/EscapeSequenceParser.benchmark.ts319 const data = '\x1bPpLorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\';CODE
LOWtest/benchmark/EscapeSequenceParser.benchmark.ts319 const data = '\x1bPpLorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\';CODE
LOWtest/benchmark/EscapeSequenceParser.benchmark.ts349 const data = '\x1bPqLorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\';CODE
LOWtest/benchmark/EscapeSequenceParser.benchmark.ts349 const data = '\x1bPqLorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\';CODE
LOWtest/benchmark/EscapeSequenceParser.benchmark.ts379 const data = '\x1b_XLorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\';CODE
LOWtest/benchmark/EscapeSequenceParser.benchmark.ts379 const data = '\x1b_XLorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\';CODE
LOWtest/benchmark/EscapeSequenceParser.benchmark.ts409 const data = '\x1b_YLorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\';CODE
LOWtest/benchmark/EscapeSequenceParser.benchmark.ts409 const data = '\x1b_YLorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\';CODE
Cross-Language Confusion (JS/TS)2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHsrc/common/Types.ts316 print(data: Uint32Array, start: number, end: number): void;CODE
HIGHsrc/common/parser/EscapeSequenceParser.test.ts122 print(data: Uint32Array, start: number, end: number): void {CODE
Verbosity Indicators4 hits · 9 pts
SeverityFileLineSnippetContext
LOW⚡…/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts339 // Step 1: Compute (x1', y1')COMMENT
LOW⚡…/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts345 // Step 2: Compute (cx', cy')COMMENT
LOW⚡…/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts367 // Step 3: Compute (cx, cy) from (cx', cy')COMMENT
LOW⚡…/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts371 // Step 4: Compute anglesCOMMENT
Structural Annotation Overuse4 hits · 9 pts
SeverityFileLineSnippetContext
LOW⚡…/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts339 // Step 1: Compute (x1', y1')COMMENT
LOW⚡…/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts345 // Step 2: Compute (cx', cy')COMMENT
LOW⚡…/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts367 // Step 3: Compute (cx, cy) from (cx', cy')COMMENT
LOW⚡…/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts371 // Step 4: Compute anglesCOMMENT
TODO Padding4 hits · 8 pts
SeverityFileLineSnippetContext
LOW⚡addons/addon-image/test/KittyGraphics.test.ts104 // TODO: Add tests for larger images with various dimensionsCOMMENT
LOW⚡addons/addon-image/test/KittyGraphics.test.ts105 // TODO: Add tests for virtual placement (U=1)COMMENT
LOW⚡addons/addon-image/test/KittyGraphics.test.ts106 // TODO: Add tests for animation framesCOMMENT
LOWsrc/browser/services/MouseService.test.ts230 // TODO: implement AUX button testsCOMMENT
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
LOWaddons/addon-image/fixture/textcursor.sh138 # color, so remove the color definition and just use the defaults.COMMENT
MEDIUM…/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts518 // Apply pattern offset to ensure seamless tiling across cells when cell dimensions are odd.COMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMbin/update-website.sh30 # Create a PR in the GitHub repoCOMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsrc/browser/CoreBrowserTerminal.ts419 // is to workaround a problem where highly dynamic TUIs like agentic CLIs reprint agressivelyCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWbin/vs_base_find_unused.js40// Example usageCOMMENT