AI Slop Code Risk Monitor

James-Yu/LaTeX-Workshop

SlopCodeMonitor badge for James-Yu/LaTeX-Workshop Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.

0.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for James-Yu/LaTeX-Workshop, a TypeScript project with 12,393 GitHub stars. SynthScan examined 1,701,677 lines of code across 4819 source files, recording 75 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 0.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.

0.1
Adjusted Signal
0.1
Raw Pattern Score
100%
Time Factor
2026-10-29
Last Push
12.4K
Stars
TypeScript
Language
1.7M
Lines of Code
4.8K
Files
75
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 0.1/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.4/100 · LOW

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

Agent Over-Engineering Ratio 0.1/100 · LOW

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

PR Review Velocity Impact 0.5/100 · LOW

Which changes need focused human review? 75 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 8HIGH 4MEDIUM 0LOW 63

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 75 distinct pattern matches across 9 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 Indicators8 hits · 80 pts
SeverityFileLineSnippetContext
CRITICALsrc/main.ts104 } else if (vscode.window.activeTextEditor && vscode.window.activeTextEditor.document.languageId.toLowerCase() ==CODE
CRITICALsrc/core/commands.ts111 if (lw.extra.liveshare.handle.command.syncTeX()) {CODE
CRITICALsrc/core/root.ts213 logger.log(`The active document cannot be used as the root file: ${vscode.window.activeTextEditor.document.uri.tCODE
CRITICALsrc/core/root.ts240 logger.log(`The active document cannot be used as the root file: ${vscode.window.activeTextEditor.document.uri.tCODE
CRITICALsrc/preview/viewer.ts64 clientSet = lw.extra.liveshare.handle.viewer.refresh(pdfUri.fsPath, clientSet)CODE
CRITICALsrc/preview/viewer.ts278 if (lw.extra.liveshare.handle.viewer.reverseSyncTeX(websocket, uri, data)) {CODE
CRITICALsrc/preview/viewer.ts316 if (lw.extra.liveshare.handle.viewer.syncTeX(websocket, data)) {CODE
CRITICALsrc/preview/server.ts253 if (await lw.extra.liveshare.handle.server.request(request, response)) {CODE
Cross-Language Confusion4 hits · 28 pts
SeverityFileLineSnippetContext
HIGH⚡dev/editviewer.py28 .replace('''this.removePageBorders = options.removePageBorders || false;''', '''this.removePageBorders =CODE
HIGH⚡dev/editviewer.py31 .replace('''this.setTitle(title || url);''', '''// this.setTitle(title || url);''') \CODE
HIGH⚡dev/editviewer.py34 .replace('''(!event.shiftKey || window.chrome || window.opera)) {''', '''(!event.shiftKey || window.chroCODE
HIGHdev/editviewer.py46 .replace('''hPadding = vPadding = 0;''', '''if (this._scrollMode === ScrollMode.HORIZONTAL || this._spreCODE
Hyper-Verbose Identifiers26 hits · 26 pts
SeverityFileLineSnippetContext
LOWtest/units/07_outline/bibtex.test.ts21 async function buildFromParsedBibContent() {CODE
LOWviewer/components/gui.ts116function registerAutoReloadCheckBox() {CODE
LOWdev/pyintel/uni.py10def remove_relation_character(description):CODE
LOWdev/pyintel/uni.py39def generate_unimathsymbols_intel(infile, json_out):CODE
LOWsrc/main.ts167function registerLatexWorkshopCommands(extensionContext: vscode.ExtensionContext) {CODE
LOWsrc/locate/pair.ts115function buildMacroPairTreeFromNode(doc: vscode.TextDocument, node: Ast.Node, next: Ast.Node | undefined, parentMacroPaiCODE
LOWsrc/locate/pair.ts258function walkThruForSurroundingPairs(pos: vscode.Position, macroPairTree: MacroPair[]): MacroPair[] {CODE
LOWsrc/locate/pair.ts305function walkThruForPairsNextToPosition(pos: vscode.Position, macroPairTree: MacroPair[]): MacroPair[] {CODE
LOWsrc/locate/synctex.ts187function getCurrentEditorCoordinates(): {line: number, column: number, inputFileUri: vscode.Uri} | undefined {CODE
LOWsrc/locate/synctex.ts609function getViewColumnOfVisibleTextEditor(): vscode.ViewColumn | undefined {CODE
LOWsrc/locate/synctex.ts663function getColumnBySurroundingText(line: string, textBeforeSelectionFull: string, textAfterSelectionFull: string) {CODE
LOWsrc/lint/latex-code-actions.ts151function replaceWhitespaceOnLineBefore(document: vscode.TextDocument, position: vscode.Position, replaceWith: string) {CODE
LOWsrc/lint/latex-code-actions.ts171function replaceRangeWithRepeatedString(document: vscode.TextDocument, range: vscode.Range, replacementString: string) {CODE
LOWsrc/lint/latex-code-actions.ts175function replaceMathDelimitersInRange(document: vscode.TextDocument, range: vscode.Range, oldDelim: '$' | '$$', startDelCODE
LOWsrc/core/file.ts178function hasLaTeXClassPackageLangId(langId: string): boolean {CODE
LOWsrc/parse/find.ts100function getFirstRememberedSubstring(s: string, pat: RegExp): string {CODE
LOWsrc/completion/completer/completerutils.ts55export function filterNonLetterSuggestions(suggestions: CompletionItem[], typedText: string, pos: vscode.Position): CompCODE
LOWsrc/utils/utils.ts296export function replaceArgumentPlaceholders(rootFile: string, tmpDir: string): (arg: string) => string {CODE
LOWsrc/utils/logger.ts187function showErrorMessageWithCompilerLogButton(message: string) {CODE
LOWsrc/utils/logger.ts205function showErrorMessageWithExtensionLogButton(message: string) {CODE
LOWsrc/language/selection.ts60function nodeStackToSelectionRange(stack: Ast.Node[]): vscode.SelectionRange {CODE
LOWsrc/compile/build.ts56export function isFileExcludedFromBuildOnSave(filePath: string): boolean {CODE
LOWsrc/outline/structure.ts90function getCachedDataRootFileName(sections: TeXElement[]): string | undefined {CODE
LOWsrc/preview/viewer.ts406function showInvisibleWebviewPanel(pdfUri: vscode.Uri): boolean {CODE
LOWsrc/preview/server.ts138function getConfiguredExternalOrigin(): string | undefined {CODE
LOWsrc/extras/liveshare.ts301function handleViewerReverseSyncTeX(websocket: ws, uri: vscode.Uri, data: Extract<ClientRequest, { type: 'reverse_syncteCODE
Over-Commented Block12 hits · 12 pts
SeverityFileLineSnippetContext
LOW.github/workflows/codeql-analysis.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
LOW.github/workflows/codeql-analysis.yml61 # https://git.io/JvXDlCOMMENT
LOWdev/latex3command.py101COMMENT
LOWdev/pyintel/parse_tlpdb.py1#!/usr/bin/env pythonCOMMENT
LOWdev/pyintel/parse_tlpdb.py21# from this software without specific prior written permission.COMMENT
LOWsrc/locate/synctex.ts141 *COMMENT
LOWsrc/locate/synctex.ts161// const pos = line.indexOf(':')COMMENT
LOWsrc/locate/synctex.ts421// command = path.resolve(lw.extensionRoot, './scripts/synctex.bat')COMMENT
LOWsrc/locate/synctex.ts441// proc.stderr.on('data', newStderr => {COMMENT
LOWsrc/locate/synctex.ts481/**COMMENT
LOWsrc/utils/utils.ts201// }COMMENT
LOWsrc/language/folding.ts141 const opStack: { keyword: string, index: number }[] = []COMMENT
Fake / Example Data9 hits · 9 pts
SeverityFileLineSnippetContext
LOWdev/packages/zebra-goodies.json80 "name": "placeholder",CODE
LOWdev/packages/zebra-goodies.json87 "name": "placeholder",CODE
LOWdev/packages/minted.json299 "placeholder",CODE
LOWdev/packages/class-pagelayout.json441 "name": "placeholder",CODE
LOWdev/packages/class-pagelayout.json527 "placeholder",CODE
LOWdev/packages/tcolorboxlibraryposter.json145 "placeholder"CODE
LOWdata/packagenames.json1409 "detail": "A Polish version of “lorem ipsum…” in the form of a LaTeX package",CODE
LOWdata/packagenames.json6714 "detail": "Easy access to the Lorem Ipsum dummy text",CODE
LOWdata/packages/minted.json299 "placeholder",CODE
Unused Imports7 hits · 7 pts
SeverityFileLineSnippetContext
LOWdev/latex3command.py8CODE
LOWdev/latex3command.py10CODE
LOWdev/latex3command.py11CODE
LOWdev/pyintel/__init__.py1CODE
LOWdev/pyintel/__init__.py2CODE
LOWdev/pyintel/__init__.py3CODE
LOWdev/pyintel/parse_tlpdb.py50CODE
Excessive Try-Catch Wrapping4 hits · 4 pts
SeverityFileLineSnippetContext
LOWdev/unimathsymbols.py11except Exception:CODE
LOWdev/pyintel/parse_tlpdb.py323 except Exception as e:CODE
LOWdev/pyintel/parse_tlpdb.py341 except Exception as e:CODE
LOWdev/pyintel/parse_tlpdb.py425 except Exception as exc:CODE
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippetContext
LOWdev/pyintel/pkgcommand.py209CODE
LOWdev/pyintel/ctanpkg.py76CODE
LOWdev/pyintel/parse_tlpdb.py147CODE
LOWdev/pyintel/parse_tlpdb.py207CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/completion/completer/macro.ts21function getData() { return data }CODE