AI Slop Code Risk Monitor

vercel-labs/deepsec

SlopCodeMonitor badge for vercel-labs/deepsec Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Deepsec is a security harness for finding vulnerabilities in your codebase powered by coding agents

0.9 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for vercel-labs/deepsec, a TypeScript project with 8,296 GitHub stars. SynthScan examined 115,875 lines of code across 730 source files, recording 86 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 0.9 (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.9
Adjusted Signal
0.9
Raw Pattern Score
100%
Time Factor
2026-09-29
Last Push
8.3K
Stars
TypeScript
Language
115.9K
Lines of Code
730
Files
86
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.2/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.3/100 · LOW

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

Agent Over-Engineering Ratio 2.0/100 · LOW

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

PR Review Velocity Impact 4.5/100 · LOW

Which changes need focused human review? 86 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 2MEDIUM 5LOW 79

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

Hyper-Verbose Identifiers47 hits · 47 pts
SeverityFileLineSnippetContext
LOWpackages/processor/src/index.ts88export function createDefaultAgentRegistry(): AgentRegistry {CODE
LOWpackages/processor/src/agents/pi-sdk.ts120function assertLexicallyInsideProjectRoot(guard: RootGuard, absolutePath: string): string {CODE
LOWpackages/processor/src/agents/pi-sdk.ts137function assertInsideProjectRootAllowMissing(guard: RootGuard, absolutePath: string): string {CODE
LOWpackages/processor/src/agents/pi-sdk.ts236export function createPiReadOnlyToolDefinitions(projectRoot: string): ToolDefinition<any, any>[] {CODE
LOWpackages/processor/src/agents/pi-sdk.ts300function stripGatewayProviderPrefix(modelName: string): string {CODE
LOWpackages/processor/src/agents/pi-sdk.ts353export function configureProviderOverrides(registry: ModelRegistry, cfg: PiAgentConfig): void {CODE
LOWpackages/processor/src/agents/pi-sdk.ts389function createGatewayPassThroughModel(modelId: string): PiProviderModelConfig {CODE
LOWpackages/processor/src/agents/pi-sdk.ts407function piModelToProviderModelConfig(model: PiModel): PiProviderModelConfig {CODE
LOWpackages/processor/src/agents/pi-sdk.ts428function registerGatewayModelIfNeeded(CODE
LOWpackages/processor/src/agents/pi-sdk.ts505export async function resolvePiModelWithDynamicGateway(CODE
LOWpackages/processor/src/agents/shared.ts494export function buildInvestigateJsonRepairPrompt(batch: FileRecord[]): string {CODE
LOWpackages/processor/src/agents/shared.ts529export function buildRevalidateJsonRepairPrompt(expected?: ExpectedFinding[]): string {CODE
LOWpackages/processor/src/agents/shared.ts564function buildRevalidateIdRepairPrompt(params: {CODE
LOWpackages/processor/src/agents/shared.ts699export function formatJsonRepairFailureDebugText(originalText: string, repairText: string): string {CODE
LOWpackages/processor/src/agents/shared.ts724function extractArrayCandidateForRepair(jsonPayload: string): string {CODE
LOWpackages/processor/src/agents/shared.ts857export function buildInvestigateFieldRepairPrompt(invalid: InvalidFindingEntry[]): string {CODE
LOWpackages/processor/src/agents/shared.ts897function investigateFindingSignature(f: Finding): string {CODE
LOWpackages/processor/src/agents/codex-sdk.ts113function findCodexSubscriptionAuth(): string | null {CODE
LOWpackages/processor/src/agents/codex-sdk.ts290export function buildGatewayProviderConfig(CODE
LOWpackages/deepsec/src/preflight.ts108export function reconcileAiGatewayDefaultsForRoute(CODE
LOWpackages/deepsec/src/preflight.ts135export async function applyConfiguredModelRoute(CODE
LOWpackages/deepsec/src/version.ts64export function getDeepsecWorkspaceDependency(): string {CODE
LOWpackages/deepsec/src/resolve-project-id.ts77export function resolveProjectIdForDirect(CODE
LOWpackages/deepsec/src/auth/vercel-link.ts52export function vercelAuthRecoveryActions(CODE
LOWpackages/deepsec/src/auth/model-route.ts65export function modelRouteCompatibilityError(CODE
LOWpackages/deepsec/src/auth/model-route.ts86export function defaultCredentialHeaderScheme(name: string): CredentialHeaderScheme {CODE
LOWpackages/deepsec/src/auth/model-route.ts250export async function verifyModelRouteWithFetch(CODE
LOWpackages/deepsec/src/auth/model-picker.ts147export function buildRecommendedModelChoices(results: BenchmarkResult[]): RecommendedModelChoice[] {CODE
LOWpackages/deepsec/src/setup/output.ts19export function createTerminalLineDecoder(onLine: (line: string) => void): {CODE
LOWpackages/deepsec/src/setup/workspace-config.ts40export function persistWorkspaceConfigRoute(workspaceDir: string, route: ModelRoute): void {CODE
LOWpackages/deepsec/src/setup/protocol.ts19export function setSetupDocumentationWorkspace(workspaceDir: string): void {CODE
LOWpackages/deepsec/src/setup/protocol.ts146export function formatSetupDocumentationHuman(): string | undefined {CODE
LOWpackages/deepsec/src/setup/repository-analysis.ts51export function buildRepositoryAnalysisPrompt(projectId: string): string {CODE
LOWpackages/deepsec/src/setup/fingerprint.ts7export function setupRepositoryIgnoreGlobs(root: string, workspaceDir?: string): string[] {CODE
LOWpackages/deepsec/src/setup/project-name.ts5export function deterministicVercelProjectName(projectId: string, targetRoot: string): string {CODE
LOW…es/deepsec/src/__tests__/setup-persisted-route.test.ts22function writeConnectionCheckpoint(dir: string, projectId: string, route: unknown): void {CODE
LOWpackages/deepsec/src/__tests__/tarball.test.ts276async function listTarballEntriesFromFile(CODE
LOWpackages/deepsec/src/sandbox/setup.ts88export function resolveBrokeredCredentials(CODE
LOWpackages/deepsec/src/sandbox/setup.ts557async function ensureClaudeNativeBinaries(CODE
LOWpackages/deepsec/src/sandbox/setup.ts640export function buildInstallAgentToolsScript(): string {CODE
LOWpackages/deepsec/src/commands/init.ts450function reconcileLocalDeepsecDependency(workspaceDir: string, dependency: string): void {CODE
LOWpackages/scanner/src/declarative-matcher.ts222export function compileDeclarativeMatcher(CODE
LOWpackages/scanner/src/declarative-matcher.ts265export function compileDeclarativeMatchers(CODE
LOWpackages/scanner/src/index.ts159function appendDeepsecDataIgnoreGlobs(CODE
LOW…epsec/files/packages/deepsec/src/sandbox/setup.ts.json84 "snippet": " */\nexport function resolveBrokeredCredentials(agentType: string | undefined): BrokeredCredentials {\CODE
LOW…epsec/files/packages/deepsec/src/sandbox/setup.ts.json92 "snippet": "export function resolveBrokeredCredentials(agentType: string | undefined): BrokeredCredentials {\n coCODE
LOW…epsec/files/packages/deepsec/src/sandbox/setup.ts.json148 "snippet": " */\nexport function resolveBrokeredCredentials(agentType: string | undefined): BrokeredCredentials {\CODE
Over-Commented Block26 hits · 26 pts
SeverityFileLineSnippetContext
LOWpackages/core/src/run.ts181// --- Run-level shutdown handling ---COMMENT
LOWpackages/core/src/run.ts221function installShutdownHandlers(): void {COMMENT
LOWpackages/processor/src/index.ts341 // 1. The owning run's RunMeta says it's done/error/missing — theCOMMENT
LOWpackages/processor/src/index.ts421 // (e.g. after some sandboxes failed) skips files that already carryCOMMENT
LOWpackages/processor/src/agents/codex-wrapper.sh1#!/bin/shCOMMENT
LOWpackages/processor/src/agents/shared.ts81export function classifyQuotaError(msg: string, hint?: QuotaAgentHint): QuotaSource | undefined {COMMENT
LOWpackages/processor/src/agents/shared.ts381 })COMMENT
LOW…ges/processor/src/__tests__/process-revalidate.test.ts901 // prose. We test it via the real ClaudeAgentSdkPlugin by stubbing theCOMMENT
LOWpackages/deepsec/src/preflight.ts21 resolveModelRoute,COMMENT
LOWpackages/deepsec/src/preflight.ts141 if (!route) return undefined;COMMENT
LOWpackages/deepsec/src/output-cap.ts1// Caps stdout/stderr of the deepsec worker when it runs inside a sandbox.COMMENT
LOWpackages/deepsec/src/quota-message.ts1// Renders the message we print when a process/revalidate run is stoppedCOMMENT
LOWpackages/deepsec/src/sandbox/setup.ts161 if (options.aiBaseUrl) {COMMENT
LOWpackages/deepsec/src/sandbox/setup.ts201 return env;COMMENT
LOWpackages/deepsec/src/sandbox/download.ts21// tampered with the archive, the extracted files can only land in theseCOMMENT
LOWpackages/deepsec/src/sandbox/download.ts41 // characters (the timestamp is an ISO string with `:`/`.` replaced byCOMMENT
LOWpackages/deepsec/src/sandbox/download.ts221 // "all or nothing" — if any entry is disallowed (wrong type orCOMMENT
LOWpackages/deepsec/src/sandbox/upload.ts141 }COMMENT
LOWpackages/deepsec/src/sandbox/upload.ts161 // → relative `-C data/x` would then chdir again).COMMENT
LOWpackages/deepsec/src/commands/export.ts261COMMENT
LOW.github/workflows/release.yml1name: ReleaseCOMMENT
LOW.github/workflows/release.yml81 uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0COMMENT
LOW.github/workflows/release.yml121 # together. With `id-token: write` set above and a Trusted PublisherCOMMENT
LOWe2e/pipeline-sandbox.test.ts301 // 4. sandbox process — 1 sandbox, 2 files, stub agent. TheCOMMENT
LOWe2e/vitest.config.ts1import { defineConfig } from "vitest/config";COMMENT
LOW.deepsec/pnpm-workspace.yaml1# Sever this directory from any ancestor pnpm workspace. pnpm walks upCOMMENT
Modern AI Meta-Vocabulary4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMpackages/deepsec/src/preflight.ts153 // Older scaffold-only workspaces persisted Gateway as a default even whenCOMMENT
MEDIUMpackages/deepsec/src/commands/init.ts64 // Defaults: scaffold `.deepsec/` inside the current codebase, with theCOMMENT
MEDIUMpackages/scanner/src/matchers/index.ts4// --- AI / agentic / messaging matchers ---COMMENT
MEDIUMpackages/scanner/src/matchers/index.ts344 // AI / agentic / messagingCOMMENT
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…lls/technical-writer/references/editorial-standards.md3Apply these standards to the passage and its surrounding section. They are editing criteria, not proof of authorship. A CODE
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHpackages/deepsec/src/sandbox/setup.ts885elif [ -f "package/vendor/\${TRIPLE}/codex/codex" ]; thenCODE
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWpackages/deepsec/src/sandbox/orchestrator.ts318 // Step 1: get a snapshot — either use one the user passed, or build a fresh oneCOMMENT
LOWpackages/deepsec/src/sandbox/orchestrator.ts347 // Step 2: spawn N worker sandboxes from the snapshot in parallelCOMMENT
Structural Annotation Overuse2 hits · 3 pts
SeverityFileLineSnippetContext
LOWpackages/deepsec/src/sandbox/orchestrator.ts318 // Step 1: get a snapshot — either use one the user passed, or build a fresh oneCOMMENT
LOWpackages/deepsec/src/sandbox/orchestrator.ts347 // Step 2: spawn N worker sandboxes from the snapshot in parallelCOMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpackages/deepsec/src/sandbox/setup.ts497 // theory, but resetting is cheap and more robust against clock skew.COMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWpackages/processor/src/__tests__/shared.test.ts375 const finding = JSON.stringify(validFinding({ description: "placeholder" }), null, 0).replace(CODE
LOWpackages/processor/src/__tests__/shared.test.ts376 '"description":"placeholder"',CODE