AI Slop Code Risk Monitor

nicobailon/pi-subagents

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

Pi extension for async subagent delegation with truncation, artifacts, and session sharing

3.9 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for nicobailon/pi-subagents, a TypeScript project with 4,111 GitHub stars. SynthScan examined 275,071 lines of code across 818 source files, recording 1072 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 3.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.

3.9
Adjusted Signal
3.9
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
4.1K
Stars
TypeScript
Language
275.1K
Lines of Code
818
Files
1.1K
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 17.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 17.4/100 · LOW

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

PR Review Velocity Impact 17.8/100 · LOW

Which changes need focused human review? 1072 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 3LOW 1069

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 1072 distinct pattern matches across 5 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 Identifiers1062 hits · 1050 pts
SeverityFileLineSnippetContext
LOWindex.ts12export default function registerSubagentExtension(pi: ExtensionAPI): void {CODE
LOWtools/oxlint/anti-slop/shared/reflect-method.ts24export function isGlobalReflectMethodCall(CODE
LOWtools/oxlint/anti-slop/shared/dictionary-types.ts142function isEffectivelyEmptyTypeLiteral(type: ESTree.TSTypeLiteral): boolean {CODE
LOWtools/oxlint/anti-slop/shared/dictionary-types.ts146function isEffectivelyEmptyInterface(CODE
LOWtools/oxlint/anti-slop/shared/dictionary-types.ts158function resolvedSubstitutionArgument(CODE
LOWtools/oxlint/anti-slop/shared/dictionary-types.ts307export function classifyUnsafeDictionaryValue(CODE
LOWtools/oxlint/anti-slop/shared/dictionary-types.ts467export function isPopulatedObjectExpression(expression: ESTree.Expression): boolean {CODE
LOWtools/oxlint/anti-slop/shared/dictionary-types.ts480export function isKnownEvidenceExpression(expression: ESTree.Expression): boolean {CODE
LOW…ols/oxlint/anti-slop/shared/lexical-type-parameters.ts14function collectInferTypeParameterNames(CODE
LOW…ols/oxlint/anti-slop/shared/lexical-type-parameters.ts34export function lexicalTypeParameterNames(CODE
LOWtools/oxlint/anti-slop/rules/no-widen-then-assert.ts18function unwrapExpressionParentheses(expression: ESTree.Expression): ESTree.Expression {CODE
LOWtools/oxlint/anti-slop/rules/no-widen-then-assert.ts143function isDefinitelyNarrowerRecordType(type: ESTree.TSType): boolean {CODE
LOWtools/oxlint/anti-slop/rules/no-widen-then-assert.ts171function resolvedVariableForIdentifier(CODE
LOW…s/oxlint/anti-slop/rules/no-chained-type-assertions.ts6function isTypeAssertionExpression(node: ESTree.Node): node is TypeAssertionExpression {CODE
LOW…s/oxlint/anti-slop/rules/no-chained-type-assertions.ts10function unwrapParenthesizedExpression(expression: ESTree.Expression): ESTree.Expression {CODE
LOW…s/oxlint/anti-slop/rules/no-chained-type-assertions.ts27function isOutermostAssertionInChain(node: TypeAssertionExpression): boolean {CODE
LOW…s/oxlint/anti-slop/rules/no-chained-type-assertions.ts39function isForbiddenAssertionChain(node: TypeAssertionExpression): boolean {CODE
LOWtools/oxlint/anti-slop/rules/no-known-value-widening.ts125function isDictionaryAccumulatorTarget(destination: WideningTarget): boolean {CODE
LOW…/anti-slop/rules/no-conditional-empty-object-spread.ts16function isConditionalEmptyObjectSpread(node: ESTree.Expression): boolean {CODE
LOW…ls/oxlint/anti-slop/rules/no-unsafe-dictionary-type.ts60function isInsideTypeAliasDeclaration(node: ESTree.Node): boolean {CODE
LOW…ols/oxlint/anti-slop/rules/no-shape-in-symbol-names.ts6function containsForbiddenSymbolName(name: string): boolean {CODE
LOWtest/unit/schemas.test.ts136function hasAnyOfArrayWithStringItems(schema: JsonSchemaNode | undefined): boolean {CODE
LOWtest/unit/agent-frontmatter.test.ts28function createNestedLinkedWorktree(): { repo: string; worktree: string } {CODE
LOWtest/unit/agent-frontmatter.test.ts43function writeLinkedWorktreePackage(repo: string): { packageAgentName: string; packageAgentPath: string; settingsPath: sCODE
LOWtest/unit/fleet.test.ts39function writeForegroundHistoryFile(resultsDir: string, run: { runId: string }): void {CODE
LOWtest/unit/host-peer-runtime-imports.test.ts28function extractStaticImportSpecifiers(source: string): string[] {CODE
LOWtest/unit/workflow-resume-hint.test.ts91function writeManagedWorktreeHandoff(root: string, childRunId: string): void {CODE
LOWtest/unit/worktree.test.ts85function assertRetainedHookFailure(error: unknown, message: RegExp): true {CODE
LOWtest/unit/async-interrupt-action.test.ts121function createWorkflowForegroundControl(CODE
LOWtest/unit/herdr-inspector.test.ts24function sessionRootsFromRunCommand(command: string): string[] {CODE
LOWtest/integration/fork-context-execution.test.ts63function makeSessionManagerRecorder(options: SessionStubOptions = {}) {CODE
LOWtest/integration/fork-context-execution.test.ts134 function makeExecutorWithDiscoverAgents(discoverAgentsImpl: typeof discoverAgents, config: Record<string, unknown> = {}CODE
LOWtest/integration/fork-context-execution.test.ts202 function makeForkingSessionManagerRecorder(options: { sessionFile: string; leafId: string }) {CODE
LOWtest/integration/fork-context-execution.test.ts273 function makeSignedThinkingSessionManager(childSessionFile: string) {CODE
LOWtest/integration/async-job-tracker.test.ts149function createNativeSupervisorHarness(sessionId: string) {CODE
LOWtest/integration/async-job-tracker.test.ts177function startSupervisorAttentionRun(asyncRoot: string, runId: string, timers: { tick(ms: number): void }) {CODE
LOWtest/integration/slash-commands.test.ts233async function captureSlashCommandParams(CODE
LOWtest/support/runner-child-session-factory.ts11export default function createRunnerChildSessionFactory() {CODE
LOWtest/support/single-execution-fixture.ts283export function installSingleExecutionHooks() {CODE
LOWtest/support/async-execution-fixture.ts609export function installAsyncExecutionHooks(): void {CODE
LOWtest/support/async-result-timeout-evidence.ts5export function asyncResultTimeoutEvidence(asyncDir: string, id: string): string[] {CODE
LOWtest/support/asking-child-session-factory.ts9export default function askingChildSessionFactory(): ChildSessionFactory {CODE
LOWsrc/extension/doctor.ts115function formatConfiguredSessionDir(input: DoctorReportInput): string {CODE
LOWsrc/extension/doctor.ts190function formatActiveAsyncCapacitySection(input: DoctorReportInput): string[] {CODE
LOWsrc/extension/doctor.ts199function formatPermissionSystemSection(): string[] {CODE
LOWsrc/extension/doctor.ts221function formatWorkflowScriptSection(): string[] {CODE
LOWsrc/extension/steering-notices.ts21export function handleSubagentSteeringNotice(input: {CODE
LOWsrc/extension/control-notices.ts38export function handleSubagentControlNotice(input: {CODE
LOWsrc/extension/schemas.ts30function isTopLevelParameterDescription(path: string[]): boolean {CODE
LOWsrc/extension/schemas.ts317export function createSubagentParamsSchema(disabled?: DisabledFeatureSurface): typeof SubagentParams {CODE
LOWsrc/extension/rpc.ts396function normalizeTargetParamsFromRecord(input: Record<string, unknown>): Pick<SubagentParamsLike, "id" | "runId" | "dirCODE
LOWsrc/extension/rpc.ts856export function registerSubagentRpcBridge(options: RegisterSubagentRpcBridgeOptions): {CODE
LOWsrc/extension/fanout-child.ts61function resolveNestedControlRoute(config: ChildRuntimeConfig): NestedRoute | undefined {CODE
LOWsrc/extension/fanout-child.ts80function createNestedControlInboxState(): NestedControlInboxState {CODE
LOWsrc/extension/fanout-child.ts84function startNestedControlInboxListener(pi: ExtensionAPI, state: SubagentState, route: NestedRoute, inboxState: NestedCCODE
LOWsrc/extension/fanout-child.ts152export default function registerFanoutChildSubagentExtension(pi: ExtensionAPI, childConfig: ChildRuntimeConfig): void {CODE
LOWsrc/extension/subagent-options.ts18export function flattenSubagentToolOptions(params: Record<string, unknown>, disabled?: DisabledFeatureSurface): SubagentCODE
LOWsrc/extension/tool-description.ts90export function buildSubagentToolPromptMetadata(config: Pick<ExtensionConfig, "toolDescriptionMode"> = {}, disabledFeatuCODE
LOWsrc/extension/tool-description.ts95export function resolveToolDescriptionMode(config: Pick<ExtensionConfig, "toolDescriptionMode">, options?: ToolDescriptiCODE
LOWsrc/extension/tool-description.ts134function loadCustomToolDescription(options?: ToolDescriptionOptions): string | undefined {CODE
1002 more matches not shown…
Modern AI Meta-Vocabulary3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMCHANGELOG.md2903- Removed exported `resolveSessionRoot()` function and `SessionRootInput` interface. These were introduced by PR #46 butCODE
MEDIUMdocs/workflows.md1# Workflows and orchestrationCOMMENT
MEDIUMdocs/workflows.md5## Recommended orchestration patternCOMMENT
Fake / Example Data5 hits · 5 pts
SeverityFileLineSnippetContext
LOWtest/unit/workflow-detach-reconcile.test.ts367 const status = { ...pausedWorkflow("placeholder", { runId: undefined, sessionFile }), runId: workflowRunId, sessionId:CODE
LOWtest/unit/workflow-detach-reconcile.test.ts388 const status = { ...pausedWorkflow("placeholder", { runId: undefined, sessionFile: undefined }), runId: workflowRunId,CODE
LOWtest/unit/workflow-detach-reconcile.test.ts413 const status = { ...pausedWorkflow("placeholder", { runId: undefined, sessionFile: undefined }), runId: workflowRunId,CODE
LOWtest/unit/workflow-detach-reconcile.test.ts438 const status = { ...pausedWorkflow("placeholder", { runId: undefined, sessionFile: "/tmp/replacement-child.jsonl" }), CODE
LOWsrc/runs/background/subagent-runner-bootstrap.ts80 throw new Error("Invalid runner configuration: 'placeholder' must be a string.");CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/extension/rpc.ts735async function handleRequest(CODE
Over-Commented Block1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/shared/fork-context.ts1// Forking a parent transcript into a child copies the parent's assistant messages verbatim, signedCOMMENT