AI Slop Code Risk Monitor

sipeed/NanoKVM

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

Affordable, Multifunctional, Nano RISC-V IP-KVM

1.4 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for sipeed/NanoKVM, a TypeScript project with 6,581 GitHub stars. SynthScan examined 123,956 lines of code across 550 source files, recording 121 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 1.4 (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.

1.4
Adjusted Signal
1.4
Raw Pattern Score
100%
Time Factor
2026-10-21
Last Push
6.6K
Stars
TypeScript
Language
124.0K
Lines of Code
550
Files
121
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 4.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.2/100 · LOW

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

Agent Over-Engineering Ratio 3.8/100 · LOW

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

PR Review Velocity Impact 6.0/100 · LOW

Which changes need focused human review? 121 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 0HIGH 1MEDIUM 13LOW 107

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 121 distinct pattern matches across 11 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 Block45 hits · 45 pts
SeverityFileLineSnippetContext
LOWtools/nanokvm_update_edid/nanokvm_update_edid.c1#include <stdio.h>COMMENT
LOWtools/nanokvm_update_edid/nanokvm_update_edid.h1#ifndef NANOKVM_UPDATE_EDID_HCOMMENT
LOWweb/src/pages/desktop/menu/settings/account/users.tsx61 const [users, setUsers] = useState<User[]>([]);COMMENT
LOWweb/src/pages/storage/index.tsx161COMMENT
LOWserver/include/kvm_vision.h1COMMENT
LOWserver/service/storage/media.go41const partitionDevice = "/dev/mmcblk0p3"COMMENT
LOWserver/service/storage/media.go641// openMediumLocked is openMedium for a caller that already holdsCOMMENT
LOWserver/service/storage/cache.go21// metadata this side cached: a file the target grew keeps the size it had whenCOMMENT
LOWserver/service/storage/job.go21// jobProgressInterval matches the ticker the downloader reports with, so theCOMMENT
LOWserver/service/download/service.go81// that a restart interrupted. They are hidden and can be hundreds ofCOMMENT
LOW.devcontainer/post-create.sh1#!/usr/bin/env bashCOMMENT
LOWsupport/sg2002/kvm_system/main/include/config.h1#ifndef CONFIG_H_COMMENT
LOWsupport/sg2002/kvm_system/main/include/config.h21#include "qr.h"COMMENT
LOWsupport/sg2002/kvm_system/main/lib/hdmi/hdmi.h1#ifndef HDMI_H_COMMENT
LOW…ort/sg2002/kvm_system/main/lib/oled_ctrl/oled_ctrl.cpp541 // OLED_ShowString_AlignRight(AlignRightEND, 4, "--", 8);COMMENT
LOW…pport/sg2002/kvm_system/main/lib/oled_ctrl/oled_ctrl.h1#ifndef OLED_CTRL_H_COMMENT
LOW…pport/sg2002/kvm_system/main/lib/oled_ctrl/oled_ctrl.h21COMMENT
LOWsupport/sg2002/kvm_system/main/lib/libqr/qrcnv.c161#define qrWriteEOR_ASCII() { *rptr++ = '\n'; }COMMENT
LOWsupport/sg2002/kvm_system/main/lib/libqr/qr.h21#include <stdio.h>COMMENT
LOWsupport/sg2002/kvm_system/main/lib/libqr/qr.h161#define QR_DWD_MAX 2956 /* データコード語の最大長(型番40/レベルL) */COMMENT
LOWsupport/sg2002/kvm_system/main/lib/libqr/qrcmd.h41#define QRCMD_EXTRA_PARAM_D int *order, int *extra,COMMENT
LOWsupport/sg2002/kvm_system/main/lib/libqr/qrcmd.h61#define QR_SA_SRC_MAX 112233COMMENT
LOWsupport/sg2002/kvm_system/main/lib/libqr/qrcmd.h81#define qrCmdDestroy qrDestroyCOMMENT
LOWsupport/sg2002/kvm_system/main/lib/libqr/qrcnv.h21COMMENT
LOWsupport/sg2002/kvm_system/main/lib/libqr/qrcmd.c21#define errx(code, ...) { \COMMENT
LOW…sg2002/kvm_system/main/lib/system_state/system_state.h1#ifndef SYSTEM_STATE_H_COMMENT
LOWsupport/sg2002/additional/vision/CMakeLists.txt41###### Add link search path for requirements/libs ######COMMENT
LOWsupport/sg2002/additional/vision/CMakeLists.txt61#### on this componentCOMMENT
LOW…rt/sg2002/additional/vision/include/maix_image_obj.hpp421 // {COMMENT
LOW…pport/sg2002/additional/vision/include/maix_camera.hpp1/**COMMENT
LOW…pport/sg2002/additional/vision/include/maix_vision.hpp1#include "maix_image.hpp"COMMENT
LOWsupport/sg2002/additional/vision/src/maix_image.cpp1/**COMMENT
LOWsupport/sg2002/additional/kvm_mmf/src/kvm_mmf.cpp1#include <stdint.h>COMMENT
LOWsupport/sg2002/additional/kvm_mmf/src/kvm_mmf.cpp21#include "cvi_isp.h"COMMENT
LOWsupport/sg2002/additional/kvm/include/kvm_vision.h1COMMENT
LOWsupport/sg2002/additional/kvm/include/kvm_vision.h21#include <pthread.h>COMMENT
LOWsupport/sg2002/additional/kvm/src/kvm_vision.cpp21#define VENC_MJPEG 0COMMENT
LOWsupport/sg2002/additional/kvm/src/kvm_vision.cpp41COMMENT
LOW…hgo-middleware/v2/sample/common/sample_common_sensor.c1/*COMMENT
LOWsupport/sg2002/kvm_vision_test/main/CMakeLists.txt1############### Add include ###################COMMENT
LOWsupport/sg2002/kvm_vision_test/main/CMakeLists.txt21# SET_PROPERTY(SOURCE ${ADD_ASM_SRCS} PROPERTY LANGUAGE C) # set .S ASM file as C languageCOMMENT
LOWsupport/sg2002/kvm_vision_test/main/CMakeLists.txt41#### Just for this component, won't affect other COMMENT
LOWsupport/sg2002/kvm_vision_test/main/CMakeLists.txt61# 'sites': [], # download site, user can manually download file and put it into dl_pathCOMMENT
LOWscripts/build-in-container.sh1#!/bin/bashCOMMENT
LOWscripts/package.sh1#!/bin/bashCOMMENT
Hyper-Verbose Identifiers44 hits · 44 pts
SeverityFileLineSnippetContext
LOWtools/logo_generator/logo_generator.py517 def on_pixel_grid_pixel_click(self, event: PixelGrid.PixelClick):CODE
LOWtools/logo_generator/logo_generator.py573 def action_threshold_up_small(self):CODE
LOWtools/logo_generator/logo_generator.py578 def action_threshold_down_small(self):CODE
LOWweb/src/lib/localstorage.ts234export function getKeyboardLedStatusVisible(): boolean {CODE
LOWweb/src/lib/localstorage.ts239export function setKeyboardLedStatusVisible(visible: boolean) {CODE
LOWweb/src/lib/picoclaw-gateway.ts496function normalizeLiteralEmptyText(value: string) {CODE
LOWweb/src/lib/picoclaw-storage.ts87export function getPicoclawRuntimeInstallSnapshot(): PicoclawRuntimeInstallSnapshot | null {CODE
LOWweb/src/lib/picoclaw-storage.ts113export function setPicoclawRuntimeInstallSnapshot(snapshot: PicoclawRuntimeInstallSnapshot) {CODE
LOWweb/src/lib/picoclaw-storage.ts121export function clearPicoclawRuntimeInstallSnapshot() {CODE
LOWweb/src/api/vm.ts73export function setOriginalResolutionConfig(CODE
LOWweb/src/api/vm.ts86export function setSelectedOriginalResolution(selectedResolution: string) {CODE
LOWweb/src/pages/terminal/validater.ts49export function validatePicocomParameters(params: PicocomParameters) {CODE
LOWweb/src/pages/desktop/keyboard-led-status/model.ts35export function parseKeyboardLedStatusMessage(message: {CODE
LOWweb/src/pages/desktop/keyboard-led-status/model.ts55export function shouldAcceptKeyboardLedStatus(CODE
LOWweb/src/pages/desktop/mouse/relative.tsx401 function releasePressedTouchButton() {CODE
LOWweb/src/pages/desktop/screen/geometry.ts211export function getConfiguredFrameContent(CODE
LOWweb/src/pages/desktop/screen/geometry.ts253export function getCenteredInputRegionByAspectRatio(CODE
LOWweb/src/pages/desktop/screen/direct.worker.ts350function releaseDecodeBackpressure(source: VideoDecoder) {CODE
LOWweb/src/pages/desktop/menu/keyboard/paste.tsx68 function translateRuToEnWithPunctuation(value: string): string {CODE
LOWweb/src/pages/desktop/picoclaw/message-utils.ts65export function retainLatestObservationScreenshot(CODE
LOWweb/src/pages/desktop/picoclaw/runtime-view.ts33export function isPicoclawRuntimeInstalling(CODE
LOWweb/src/pages/desktop/picoclaw/runtime-view.ts79export function getPicoclawSidebarStatusColor(CODE
LOWweb/src/pages/desktop/picoclaw/runtime-view.ts116export function getPicoclawSidebarConnectionLabel(CODE
LOWweb/src/pages/desktop/picoclaw/runtime-view.ts189export function derivePicoclawControlViewModel({CODE
LOWweb/src/pages/desktop/picoclaw/sidebar-effects.ts152 function markRuntimeTransportUnavailable(reason: string) {CODE
LOWweb/src/pages/desktop/picoclaw/sidebar-effects.ts370export function usePicoclawSidebarLifecycle({CODE
LOWweb/src/pages/desktop/picoclaw/sidebar-effects.ts473export function usePicoclawInstallRefresh(CODE
LOWweb/src/pages/desktop/picoclaw/sidebar-effects.ts494export function usePicoclawGatewayAutoConnect({CODE
LOWweb/src/pages/desktop/picoclaw/sidebar-effects.ts543export function usePicoclawInstallSnapshotSync({CODE
LOWweb/src/pages/desktop/picoclaw/keyboard-lock.ts4export function releasePicoclawInputFocus() {CODE
LOWweb/src/pages/desktop/picoclaw/message.tsx63function normalizeLiteralEmptyText(value: string): string {CODE
LOWweb/src/pages/desktop/picoclaw/sidebar-actions.ts90export function createPicoclawSidebarActions(options: PicoclawSidebarActionOptions) {CODE
LOWweb/src/pages/desktop/picoclaw/sidebar-actions.ts158 function markRuntimeStatusUnavailable(source: string) {CODE
LOWweb/src/pages/desktop/picoclaw/sidebar-actions.ts314 function runtimeStatusFromResponse(response: unknown) {CODE
LOWweb/src/pages/desktop/picoclaw/sidebar-actions.ts390 async function applyRuntimeToggleSuccess(status: PicoclawRuntimeStatus, shouldStop: boolean) {CODE
LOWweb/src/pages/desktop/picoclaw/sidebar-actions.ts421 async function confirmRuntimeToggleResult(shouldStop: boolean) {CODE
LOWweb/src/pages/desktop/picoclaw/sidebar-actions.ts442 function runtimeToggleFailureMessage(CODE
LOW…/src/pages/desktop/picoclaw/sidebar-session-actions.ts60export function createPicoclawSidebarSessionActions(options: PicoclawSidebarSessionActionOptions) {CODE
LOW…/src/pages/desktop/picoclaw/sidebar-session-actions.ts232 async function handleSelectHistorySession(sessionId: string) {CODE
LOW…/src/pages/desktop/picoclaw/sidebar-session-actions.ts320 async function handleDeleteHistorySession(sessionId: string) {CODE
LOWweb/src/pages/desktop/capture-status/model.ts12export function parseCaptureStatusMessage(message: { data: unknown }): CaptureStatus | null {CODE
LOWweb/src/pages/desktop/capture-status/model.ts42export function getCaptureStatusMessageKey(result: number) {CODE
LOWweb/src/pages/desktop/capture-status/model.ts63export function shouldAcceptCaptureStatus(current: CaptureStatus | null, next: CaptureStatus) {CODE
LOWweb/src/pages/desktop/capture-status/model.ts71function getCaptureStatusTimestamp(status: CaptureStatus) {CODE
Decorative Section Separators8 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUM⚡tools/logo_generator/logo_generator.py280 # Row 0: ┌────────────────────────────────┐ (top border)COMMENT
MEDIUM⚡tools/logo_generator/logo_generator.py282 # Row 17: └────────────────────────────────┘ (bottom border)COMMENT
MEDIUM⚡server/build.sh25# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡server/build.sh27# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡server/build.sh36# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡server/build.sh38# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡server/build.sh57# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡server/build.sh59# ------------------------------------------------------------------------------COMMENT
Excessive Try-Catch Wrapping8 hits · 16 pts
SeverityFileLineSnippetContext
LOWtools/logo_generator/logo_generator.py113 except Exception as e:CODE
MEDIUMtools/logo_generator/logo_generator.py114 print(f"Error: Failed to open image - {e}")CODE
MEDIUM⚡tools/logo_generator/logo_generator.py207 print("Error: No image source provided")CODE
LOW⚡tools/logo_generator/logo_generator.py210 except Exception as e:CODE
MEDIUM⚡tools/logo_generator/logo_generator.py211 print(f"Error: Failed to create ICO - {e}")CODE
MEDIUMtools/logo_generator/logo_generator.py597 print(f"Error: File not found - {image_path}")CODE
LOWkvmapp/system/update-nanokvm.py88 except Exception as e:CODE
MEDIUMkvmapp/system/update-nanokvm.py73def main() -> None:CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHserver/utils/mediapath.go122// A missing component is kept as requested so callers can still create a newCOMMENT
Verbosity Indicators3 hits · 7 pts
SeverityFileLineSnippetContext
LOW⚡server/build.sh26# Step 1: Check PrerequisitesCOMMENT
LOW⚡server/build.sh37# Step 2: Build the BinaryCOMMENT
LOW⚡server/build.sh58# Step 3: Patch RPATHCOMMENT
Structural Annotation Overuse3 hits · 7 pts
SeverityFileLineSnippetContext
LOW⚡server/build.sh26# Step 1: Check PrerequisitesCOMMENT
LOW⚡server/build.sh37# Step 2: Build the BinaryCOMMENT
LOW⚡server/build.sh58# Step 3: Patch RPATHCOMMENT
Redundant / Tautological Comments2 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡tools/logo_generator/logo_generator.py285 # Check if within pixel grid area (y from 1 to 16, since row 0 is top border)COMMENT
LOW⚡tools/logo_generator/logo_generator.py288 # Check if x is within valid range (1 to 32, since there are borders on both sides)COMMENT
Unused Imports4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtools/logo_generator/logo_generator.py6CODE
LOWtools/logo_generator/logo_generator.py7CODE
LOWtools/logo_generator/logo_generator.py7CODE
LOWtools/logo_generator/logo_generator.py7CODE
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtools/logo_generator/logo_generator.py136CODE
LOWtools/logo_generator/logo_generator.py500CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWweb/public/mockServiceWorker.js124async function handleRequest(event, requestId, requestInterceptedAt) {CODE