AI Slop Code Risk Monitor

agegr/pi-web

SlopCodeMonitor badge for agegr/pi-web Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Web UI for the pi coding agent

2.3 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for agegr/pi-web, a TypeScript project with 7,952 GitHub stars. SynthScan examined 190,243 lines of code across 645 source files, recording 365 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 2.3 (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.3
Adjusted Signal
2.3
Raw Pattern Score
100%
Time Factor
2026-10-29
Last Push
8.0K
Stars
TypeScript
Language
190.2K
Lines of Code
645
Files
365
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 8.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 9.9/100 · LOW

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

PR Review Velocity Impact 10.6/100 · LOW

Which changes need focused human review? 365 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 0MEDIUM 31LOW 334

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 365 distinct pattern matches across 6 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.

Hyper-Verbose Identifiers303 hits · 311 pts
SeverityFileLineSnippetContext
LOWinstrumentation-node.ts5export function registerNodeInstrumentation(): void {CODE
LOWdemo/mock/install.ts32function openWelcomeSessionOnFirstVisit(): void {CODE
LOWdemo/mock/sessions/tool-selection.ts4export function readSessionToolSelectionFromEntries(entries: readonly SessionEntry[]): string[] | undefined {CODE
LOWdemo/components/ChatMinimap.tsx71function getAssistantAnswerMarkdown(message: AgentMessage | Partial<AgentMessage>): string {CODE
LOWdemo/components/MessageView.tsx267function haveSameRelevantToolResults(CODE
LOWdemo/components/EnabledModelsSection.tsx242export function EnabledModelsProviderSwitch({CODE
LOWdemo/components/ChatWindow.tsx1514function getExtensionDialogSummary(request: ExtensionDialogRequest): string | undefined {CODE
LOWdemo/components/ExtensionStatusBar.tsx8export function sanitizeExtensionStatusText(text: string): string {CODE
LOWdemo/components/ExtensionStatusBar.tsx17export function formatExtensionStatusLine(statuses: ExtensionStatusItem[]): string {CODE
LOWdemo/components/PluginsConfig.tsx42function normalizePluginSourceInput(value: string): string {CODE
LOWdemo/components/PluginsConfig.tsx630function StandaloneExtensionDetail({ extension }: { extension: PluginStandaloneExtensionInfo }) {CODE
LOWdemo/components/enabled-models-helpers.ts66export function enabledModelsProviderToggle(CODE
LOWdemo/components/ChatInput.tsx161function subscribeUpwardMenuMaxHeight(CODE
LOWdemo/components/ChatInput.tsx241export function canRunBuiltinSlashCommandWhileStreaming(message: string): boolean {CODE
LOWdemo/components/ChatInput.tsx249export function canClearBuiltinCommandInput(message: string, imageCount: number, submittedMessage: string): boolean {CODE
LOWdemo/components/ChatInput.tsx363function draftImageToAttachedImage(image: ChatDraftImage): AttachedImage {CODE
LOWdemo/components/ChatInput.tsx370function draftImagesToAttachedImages(images: ChatDraftImage[] | undefined): AttachedImage[] {CODE
LOWdemo/components/ChatInput.tsx393export function getUserMessageDraftImages(message: UserMessage): ChatDraftImage[] {CODE
LOW⚡demo/components/ExtensionWidgets.tsx11export function formatExtensionWidgetContent(lines: string[]): string {CODE
LOW⚡demo/components/ExtensionWidgets.tsx15export function snapshotExtensionWidgetContents(CODE
LOW⚡demo/components/ExtensionWidgets.tsx21export function getUpdatedExtensionWidgetKeys(CODE
LOWdemo/components/ExtensionWidgets.tsx35function getDefaultExpandedWidgetKey(widgets: ExtensionWidgetItem[]): string | null {CODE
LOWdemo/components/FileViewer.tsx120function getSelectedSourceLineRange(root: HTMLElement, selection: Selection | null): SelectedLineRange | null {CODE
LOWdemo/hooks/useKeyboardShortcuts.ts66export function useGlobalKeyboardShortcuts(CODE
LOWdemo/hooks/useViewportHeight.ts12export function shouldUseVisualViewportHeight({CODE
LOWdemo/hooks/useViewportHeight.ts22function hasFocusedEditableElement(): boolean {CODE
LOWdemo/lib/agent-event-wire.ts112export function isEventIncludedInSnapshot(CODE
LOWdemo/lib/turn-written-files.ts36function collectApplyPatchDeletePaths(input: Record<string, unknown> | undefined, details: unknown): Set<string> {CODE
LOWdemo/lib/file-links.ts73function looksLikeRelativeFileHref(href: string): boolean {CODE
LOWdemo/lib/draft-store.ts46export function mergeRestoredSubmissionText(submitted: string, current: string): string {CODE
LOWdemo/lib/draft-store.ts52export function mergeRestoredSubmissionDraft(CODE
LOWdemo/lib/path-security.ts25export function isExistingPathWithinRoots(target: string, roots: Set<string>): boolean {CODE
LOWdemo/lib/ansi.ts40function lastNonSpaceVisibleCharIndex(text: string): number {CODE
LOWdemo/lib/ansi.ts58export function normalizeCustomPanelLines(lines: string[]): string[] {CODE
LOWdemo/lib/file-viewer-state.ts10export function resolveInitialFileDisplayMode(CODE
LOW⚡demo/lib/apply-patch.ts67export function applyPatchResultHasFailures(details: unknown): boolean {CODE
LOW⚡demo/lib/apply-patch.ts77export function getApplyPatchAppliedFiles(details: unknown): string[] | null {CODE
LOWdemo/lib/markdown.ts30function rewriteEscapedInlineCodeBackticks(line: string): string {CODE
LOWdemo/lib/markdown.ts269function getDisplayMathGluedCloseContent(line: string, indent: string): string | null {CODE
LOWdemo/lib/markdown.ts283function isDisplayMathBlockBoundary(line: string): boolean {CODE
LOWdemo/lib/session-row-context-menu.ts20export function dispatchSessionRowContextMenu(CODE
LOWdemo/lib/model-catalog.ts79function optionalNonNegativeNumber(value: unknown): number | undefined {CODE
LOWdemo/lib/model-catalog.ts330export function recommendModelCatalogPreset(CODE
LOW⚡demo/lib/session-view-cache.ts103export function deleteSessionViewSnapshot(sessionId: string): void {CODE
LOW⚡demo/lib/session-view-cache.ts112export function snapshotCoversLoadedEntries(CODE
LOW⚡demo/lib/session-view-cache.ts122export function resetSessionViewCacheForTests(): void {CODE
LOWdemo/lib/session-timing.ts15export function computeSessionTotalActiveMs(entries: readonly TimingEntry[]): number {CODE
LOWdemo/lib/chat-lazy-load.ts63export function getPromptAnchorSpacerHeight(CODE
LOWdemo/lib/subagent-profile-precedence.ts10export function isSubagentProfileOverridden(CODE
LOWdemo/lib/enabled-models.ts275export function computeEnabledModelsState(input: EnabledModelsInput): EnabledModelsState {CODE
LOWdemo/lib/model-discovery.ts48function thinkingLevelMapFromEfforts(value: Record<string, unknown>): DiscoveredModel["thinkingLevelMap"] {CODE
LOWdemo/lib/message-display.ts87export function getDisplayableAssistantBlocks(CODE
LOWdemo/lib/message-display.ts126export function splitFinalAssistantBlocks(CODE
LOWdemo/lib/atomic-file.ts9export function writePrivateFileAtomicSync(path: string, contents: string): void {CODE
LOWdemo/lib/normalize.ts41function normalizeAssistantToolCalls(CODE
LOWdemo/lib/normalize.ts61export function normalizeStreamingToolCalls(msg: AgentMessage): AgentMessage {CODE
LOWdemo/lib/thinking-expansion-preference.ts7export function isThinkingExpandedByDefault(): boolean {CODE
LOWdemo/lib/thinking-expansion-preference.ts16export function setThinkingExpandedByDefault(expanded: boolean): void {CODE
LOWdemo/lib/subagents.ts249function parseExtensionToolSelectors(value: unknown): string[] {CODE
LOWdemo/lib/subagents.ts342function isProjectProfilePathAllowed(cwd: string, target: string): boolean {CODE
243 more matches not shown…
Decorative Section Separators28 hits · 87 pts
SeverityFileLineSnippetContext
MEDIUMdemo/components/ModelsConfig.tsx55// ── Types ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/components/ModelsConfig.tsx174// ── Form field helpers ────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/components/ModelsConfig.tsx304// ── Provider detail ───────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/components/ModelsConfig.tsx553// ── ThinkingLevelMap editor ───────────────────────────────────────────────────COMMENT
MEDIUMdemo/components/ModelsConfig.tsx691// ── Model detail ──────────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/components/ModelsConfig.tsx1298// ── OAuth detail ──────────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/components/ModelsConfig.tsx1568// ── API Key detail ────────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/components/ModelsConfig.tsx1703// ── Add provider picker ───────────────────────────────────────────────────────COMMENT
MEDIUMdemo/components/ModelsConfig.tsx1844// ── Main component ────────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/components/ChatInput.tsx987 // ── @ file autocomplete ──────────────────────────────────────────────────COMMENT
MEDIUM⚡demo/lib/apply-patch.ts84// ── Shared row building ──────────────────────────────────────────────────────COMMENT
MEDIUMdemo/lib/apply-patch.ts146// ── Source 1: V4A patch document (tool call input) ───────────────────────────COMMENT
MEDIUMdemo/lib/apply-patch.ts218// ── Source 2: applied result preview (details.preview) ───────────────────────COMMENT
MEDIUMcomponents/ModelsConfig.tsx66// ── Types ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMcomponents/ModelsConfig.tsx201// ── Form field helpers ────────────────────────────────────────────────────────COMMENT
MEDIUMcomponents/ModelsConfig.tsx332// ── Provider detail ───────────────────────────────────────────────────────────COMMENT
MEDIUMcomponents/ModelsConfig.tsx573// ── ThinkingLevelMap editor ───────────────────────────────────────────────────COMMENT
MEDIUMcomponents/ModelsConfig.tsx712// ── Model detail ──────────────────────────────────────────────────────────────COMMENT
MEDIUMcomponents/ModelsConfig.tsx1369// ── OAuth detail ──────────────────────────────────────────────────────────────COMMENT
MEDIUMcomponents/ModelsConfig.tsx1627// ── API Key detail ────────────────────────────────────────────────────────────COMMENT
MEDIUMcomponents/ModelsConfig.tsx1765// ── Add provider picker ───────────────────────────────────────────────────────COMMENT
MEDIUMcomponents/ModelsConfig.tsx1906// ── Main component ────────────────────────────────────────────────────────────COMMENT
MEDIUMcomponents/ChatInput.tsx1143 // ── @ file autocomplete ──────────────────────────────────────────────────COMMENT
MEDIUM⚡lib/apply-patch.ts84// ── Shared row building ──────────────────────────────────────────────────────COMMENT
MEDIUMlib/apply-patch.ts146// ── Source 1: V4A patch document (tool call input) ───────────────────────────COMMENT
MEDIUMlib/apply-patch.ts218// ── Source 2: applied result preview (details.preview) ───────────────────────COMMENT
MEDIUMlib/debug-types.ts8// ── Server: GET /api/agent/debug?session=<id> ────────────────────────────────COMMENT
MEDIUMlib/debug-types.ts231// ── Browser: the page and its selected session ───────────────────────────────COMMENT
Over-Commented Block28 hits · 28 pts
SeverityFileLineSnippetContext
LOWinstrumentation-node.ts21COMMENT
LOWdemo/lib/session-view-cache.ts1// Bounded in-memory snapshot of one session's rendered view, so switching backCOMMENT
LOWdemo/lib/paths.ts1import { normalize, parse, sep } from "path";COMMENT
LOWbin/browser-opener.js1"use strict";COMMENT
LOWbin/rotate-preview-secrets.js1"use strict";COMMENT
LOWcomponents/SessionSidebar.tsx1481 () => archiveRows.flatMap((row) => (row.kind === "archive-group" ? [row] : [])),COMMENT
LOWcomponents/SessionSidebar.tsx1921 // the source as it is, running or not. The copy opens where its row is: theCOMMENT
LOWhooks/useAgentSession.ts1261 }, []);COMMENT
LOWhooks/useAgentSession.ts1381 addNotice({ type: "warning", message: translate("chat.sendUnconfirmed") });COMMENT
LOWlib/mcp-config-read.ts41import { readMcpHostInactive, withMcpStatuses } from "./mcp-status";COMMENT
LOWlib/session-revision.ts1// Opaque freshness revision for a session read, used by the client-sideCOMMENT
LOWlib/mcp-sign-in.ts41// `extensions/mcp/cli.js` login()): connect once, to learn whether the serverCOMMENT
LOWlib/mcp-sign-in.ts61// - **A time limit.** The SDK's loopback callback gives up after 5 minutes:COMMENT
LOWlib/rpc-manager.ts3081 // Determine which tools to pass based on requested toolNames.COMMENT
LOWlib/markdown.ts461COMMENT
LOWlib/mcp-secrets.ts1// Secret classification and masking for MCP server entries (ADR 0006). TheCOMMENT
LOWlib/file-tree-visibility.ts1import { execFile } from "child_process";COMMENT
LOWlib/mcp-server-display.ts1import type { McpConfigFieldRef, McpConfigFileProblem, McpOverrideKey, McpServerInfo, McpVariableReference } from "./apiCOMMENT
LOWlib/session-view-cache.ts1// Bounded in-memory snapshot of one session's rendered view, so switching backCOMMENT
LOWlib/session-reader.ts461 return globalThis.__piSessionPathCache;COMMENT
LOWlib/mcp-config-file.ts21// written back with the indentation of its first indented line (" " whenCOMMENT
LOWlib/mcp-host.ts41// - Nothing connects until a session prompts. Browsing, switching sessions,COMMENT
LOWlib/mcp-test.ts21 McpTool,COMMENT
LOWlib/mcp-test.ts41// flag and leaves a stdio child running until its request times out.COMMENT
LOWlib/mcp-status.ts1import type { McpHostInactiveInfo, McpScope, McpServerInfo, McpServerStatus } from "./api-types";COMMENT
LOWlib/session-list-scanner.ts1// Cache session-list metadata without building the SDK's unused allMessagesText.COMMENT
LOWlib/paths.ts1import { realpathSync } from "fs";COMMENT
LOWlib/mcp-command.ts1// Who owns `/mcp`, decided the same way on the server and in the browser.COMMENT
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMpackage-lock.json10703 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE
MEDIUMdemo/package-lock.json8655 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOWlib/mcp-import-core.ts156 | "placeholder"CODE
LOWlib/mcp-import-core.ts576 field(this.field(path, "placeholder", placeholderLabel(path, placeholder), placeholder));CODE
LOWlib/mcp-import-core.ts692 ...(reason === "placeholder" && authorization ? { optional: true } : {}),CODE
Modern AI Meta-Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMdocs/agents/subagents.md23- `model` resolves as `request ?? profile`: the profile decides by default, and one run may go to a different model, whiCODE