AI Slop Code Risk Monitor

earendil-works/pi

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

AI agent toolkit: unified LLM API, agent loop, TUI, coding agent CLI

1.9 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for earendil-works/pi, a TypeScript project with 119,136 GitHub stars. SynthScan examined 603,311 lines of code across 2387 source files, recording 692 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 1.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.

1.9
Adjusted Signal
1.9
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
119.1K
Stars
TypeScript
Language
603.3K
Lines of Code
2.4K
Files
692
Pattern Hits
2026-10-31
Scan Date
0.01
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 5.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 2.7/100 · LOW

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

Agent Over-Engineering Ratio 5.4/100 · LOW

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

PR Review Velocity Impact 8.7/100 · LOW

Which changes need focused human review? 692 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 15HIGH 17MEDIUM 95LOW 565

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 692 distinct pattern matches across 12 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 Identifiers451 hits · 466 pts
SeverityFileLineSnippetContext
LOW⚡scripts/model-catalog-protocol.ts59export function getModelCatalogArtifactKey(revision: string, artifact: ModelCatalogArtifact): string {CODE
LOW⚡scripts/model-catalog-protocol.ts63export function getModelCatalogProviderKey(CODE
LOW⚡scripts/model-catalog-protocol.ts72export function isValidModelCatalogPiVersion(version: string): boolean {CODE
LOW⚡scripts/model-catalog-protocol.ts77export function compareModelCatalogPiVersions(left: string, right: string): number {CODE
LOW⚡scripts/model-catalog-protocol.ts85export function parseModelCatalogRepresentation(CODE
LOWpackages/evals/test/configured-runtime.test.ts47function loadConfiguredModelRuntime(agentDir: string): Promise<ModelRuntime> {CODE
LOWpackages/evals/src/report.ts360export function summarizeEvalObservations(CODE
LOWpackages/evals/src/report.ts437export function formatEvalComparisonReport(report: EvalComparisonReport): string {CODE
LOWpackages/evals/src/harness.ts130async function protectTransformedModules(): Promise<string[]> {CODE
LOWpackages/evals/src/harness.ts474export function createPiCodingAgentHarness(options?: PiCodingAgentHarnessOptions): Harness<PiCodingAgentInput, string>;CODE
LOWpackages/evals/src/harness.ts487export function resolveDocumentationVariant(CODE
LOWpackages/evals/src/harness.ts520export function createPiDocumentationEvalHarness(CODE
LOWpackages/coding-agent/test/model-runtime-test-utils.ts26export async function createInMemoryModelRegistry(credentials: CredentialStore): Promise<ModelRegistry> {CODE
LOWpackages/coding-agent/test/sdk-stream-options.test.ts150 async function createCacheWarmingSession(populate?: (manager: SessionManager, model: Model<Api>) => void) {CODE
LOW…s/coding-agent/test/sdk-codex-cache-probe-tool-loop.ts175function createMinimalResourceLoader(systemPrompt: string): ResourceLoader {CODE
LOW…s/coding-agent/test/sdk-codex-cache-probe-tool-loop.ts202function getWebSocketStatsSnapshot(sessionId: string): WebSocketStatsSnapshot {CODE
LOWpackages/coding-agent/test/utilities.ts198export async function createTestExtensionsResult(CODE
LOW…ages/coding-agent/test/interactive-mode-status.test.ts613 function createShowLoadedResourcesThis(options: {CODE
LOWpackages/coding-agent/test/extensions-runner.test.ts1251 async function loadSubscriptionExtension(factory: ExtensionFactory) {CODE
LOWpackages/coding-agent/test/image-processing.test.ts68function jpegWithXmpBeforeOrientation(): string {CODE
LOW…coding-agent/test/session-selector-path-delete.test.ts52function createSymlinkedSessionPaths(): {CODE
LOWpackages/coding-agent/test/test-harness.ts376async function createHarnessWithResourceLoader(CODE
LOWpackages/coding-agent/test/test-harness.ts471export async function createHarnessWithExtensions(options: HarnessOptions = {}): Promise<Harness> {CODE
LOW…ckages/coding-agent/test/package-command-paths.test.ts115 async function runPackageCommandDirectly(args: string[]): Promise<void> {CODE
LOW…ages/coding-agent/test/bash-close-hang-windows.test.ts13function createInheritedStdioCommand(pidFile: string): string {CODE
LOW…ding-agent/test/suite/agent-session-compaction.test.ts100async function createAbortableCompactionHarness(): Promise<{CODE
LOW…gent/test/suite/agent-session-bash-persistence.test.ts18function createControlledBashOperations(invocations: ControlledBashInvocation[]): BashOperations {CODE
LOW…st/suite/regressions/5943-session-start-notify.test.ts120function createReloadCommandContext(overrides: ReloadCommandContextOverrides = {}): ReloadCommandContext {CODE
LOW…st/suite/regressions/5943-session-start-notify.test.ts188function createLoadedResourcesContext(): LoadedResourcesContext {CODE
LOW…te/regressions/2781-skill-collision-precedence.test.ts55 function createSettingsWithPackage(pkgDir: string, scope: "user" | "project"): void {CODE
LOW…sions/4167-thinking-toggle-pending-tool-render.test.ts66function createFakeInteractiveModeThis(): RenderSessionContextThis {CODE
LOW…sions/4167-thinking-toggle-pending-tool-render.test.ts94function createAssistantToolCallMessage(): AssistantMessage {CODE
LOW…agent/examples/extensions/github-issue-autocomplete.ts91function createIssueAutocompleteProvider(CODE
LOW…xamples/extensions/custom-provider-gitlab-duo/index.ts210function invalidateDirectAccessToken() {CODE
LOW…es/coding-agent/examples/extensions/subagent/agents.ts116function findNearestProjectAgentsDir(cwd: string): string | null {CODE
LOWpackages/coding-agent/src/main.ts129function isPlainRuntimeMetadataCommand(parsed: Args): boolean {CODE
LOWpackages/coding-agent/src/main.ts243function findLocalSessionByExactId(CODE
LOWpackages/coding-agent/src/main.ts560async function promptForMissingSessionCwd(CODE
LOWpackages/coding-agent/src/migrations.ts84export function migrateSessionsFromAgentRoot(): void {CODE
LOWpackages/coding-agent/src/migrations.ts157function migrateKeybindingsConfigFile(): void {CODE
LOWpackages/coding-agent/src/migrations.ts222function checkDeprecatedExtensionDirs(baseDir: string, label: string): string[] {CODE
LOWpackages/coding-agent/src/package-manager-cli.ts58function getActiveManagedInstallRoot(): string | undefined {CODE
LOWpackages/coding-agent/src/package-manager-cli.ts606function updateTargetIncludesExtensions(target: UpdateTarget): boolean {CODE
LOWpackages/coding-agent/src/package-manager-cli.ts638function printSelfUpdateUnavailable(CODE
LOWpackages/coding-agent/src/package-manager-cli.ts659function printPnpmSelfUpdateMetadataHint(): void {CODE
LOWpackages/coding-agent/src/package-manager-cli.ts786function prepareWindowsNpmSelfUpdate(): void {CODE
LOWpackages/coding-agent/src/package-manager-cli.ts809function reportProjectTrustWarnings(warnings: readonly string[]): void {CODE
LOWpackages/coding-agent/src/package-manager-cli.ts815async function createCommandSettingsManager(options: {CODE
LOWpackages/coding-agent/src/config.ts49function normalizeSelfUpdatePackageTarget(target: SelfUpdatePackageTarget): {CODE
LOWpackages/coding-agent/src/config.ts71function makeSelfUpdateCommandStep(command: string, args: string[]): SelfUpdateCommandStep {CODE
LOWpackages/coding-agent/src/config.ts121function getSelfUpdateCommandForMethod(CODE
LOWpackages/coding-agent/src/config.ts260function normalizeExistingPathForComparison(path: string, resolveSymlinks: boolean): string | undefined {CODE
LOWpackages/coding-agent/src/config.ts279function getPathComparisonCandidates(path: string): string[] {CODE
LOWpackages/coding-agent/src/config.ts313function isManagedByGlobalPackageManager(method: InstallMethod, packageName: string, npmCommand?: string[]): boolean {CODE
LOWpackages/coding-agent/src/config.ts341export function getConfiguredSelfUpdateArgv(setting: string[] | undefined): string[] | undefined {CODE
LOWpackages/coding-agent/src/config.ts348export function makeConfiguredSelfUpdateCommand(CODE
LOWpackages/coding-agent/src/config.ts363export function getSelfUpdateUnavailableInstruction(CODE
LOWpackages/coding-agent/src/config.ts504export function getBundledInteractiveAssetPath(name: string): string {CODE
LOWpackages/coding-agent/src/config.ts511export function setEmbeddedQuickJSWasmPath(path: string): void {CODE
LOWpackages/coding-agent/src/config.ts525export function resolveCodemodeWorkerSpecifier(CODE
391 more matches not shown…
Decorative Section Separators65 hits · 200 pts
SeverityFileLineSnippetContext
MEDIUM…ding-agent/src/modes/interactive/components/mermaid.ts29 // `┌──────────────┐ ┌──────────────┐`COMMENT
MEDIUM…ding-agent/src/modes/interactive/components/mermaid.ts31 // `└──────────────┘ └──────────────┘`COMMENT
MEDIUMpackages/durable/test/harness-structured.test.ts46// ─── A scriptable task ──────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/test/harness-structured.test.ts201// ─── Ownership ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/test/harness-structured.test.ts320// ─── Waiting ────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/test/harness-structured.test.ts739// ─── Completing ─────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/test/harness-structured.test.ts850// ─── Abort order ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/test/harness-structured.test.ts996// ─── Background and terminal owners ─────────────────────────────────────────COMMENT
MEDIUMpackages/durable/test/harness-structured.test.ts1056// ─── Recovery ───────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/test/harness-structured.test.ts1186// ─── Built-in tool rounds ───────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/test/harness-structured.test.ts1432// ─── Review follow-ups ──────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/test/harness-compaction.test.ts193// ─── Range selection ──────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/test/harness-compaction.test.ts373// ─── Manual compaction ────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/test/harness-compaction.test.ts938// ─── Automatic compaction ─────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/test/harness-compaction.test.ts1618// ─── Recovery ─────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/test/spec-usage.test.ts42// ─── Names the spec leaves to the application ────────────────────────────────COMMENT
MEDIUMpackages/durable/test/spec-usage.test.ts91 // ─── Section 7.1: extensions and host setup ──────────────────────────────────COMMENT
MEDIUMpackages/durable/test/spec-usage.test.ts140 // ─── Section 7.2: hooks reading extension state ──────────────────────────────COMMENT
MEDIUMpackages/durable/test/spec-usage.test.ts164 // ─── Section 7.3: subagents ──────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/test/spec-usage.test.ts199 // ─── Section 7.4 ─────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/test/spec-usage.test.ts206 // ─── Section 5.1: a task with intent, effect, outcome ────────────────────────COMMENT
MEDIUMpackages/durable/test/spec-usage.test.ts244 // ─── Sequences ───────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/test/examples/26-plan-mode.ts26// ─── Product code: the plan extension ───────────────────────────────────────COMMENT
MEDIUMpackages/durable/test/examples/26-plan-mode.ts65// ─── Host setup ─────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/test/examples/32-tests-after-edits.ts25// ─── Product code: the project, an edit tool, and the test runner ─────────────COMMENT
MEDIUMpackages/durable/test/examples/32-tests-after-edits.ts96// ─── Host setup ─────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/test/examples/27-reviewer.ts29// ─── Product code: the reviewer extension ───────────────────────────────────COMMENT
MEDIUMpackages/durable/test/examples/27-reviewer.ts46// ─── Host setup ─────────────────────────────────────────────────────────────COMMENT
MEDIUM…ckages/durable/test/examples/22-subagent-background.ts34// ─── Product code ────────────────────────────────────────────────────────────COMMENT
MEDIUM…ckages/durable/test/examples/22-subagent-background.ts212// ─── Host setup ─────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/test/examples/29-tool-override.ts26// ─── Product code ───────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/test/examples/29-tool-override.ts53// ─── Host setup ─────────────────────────────────────────────────────────────COMMENT
MEDIUM…ckages/durable/test/examples/21-subagent-foreground.ts31// ─── Product code: the subagent extension ───────────────────────────────────COMMENT
MEDIUM…ckages/durable/test/examples/21-subagent-foreground.ts79// ─── Host setup ─────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/src/harness/scheduler.ts762 // ─── Scheduling ────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/src/harness/scheduler.ts1006 // ─── Ownership ───────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/src/harness/scheduler.ts2614 // ─── Invocation runtime ──────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/src/session/transaction.ts290 // ─── Table reads ────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/src/session/transaction.ts345 // ─── Table writes ───────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/src/session/transaction.ts582 // ─── Documents ──────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/src/session/transaction.ts755 // ─── Settlement ─────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/durable/src/session/transaction.ts1060 // ─── Helpers ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/chord/src/contract.ts353// ─── Static types ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/chord/src/connection.ts122// ─── relay ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/chord/src/connection.ts309// ─── connection ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/chord/src/object.ts38// ─── Services ────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/chord/src/object.ts132// ─── Declarations ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/chord/src/object.ts360// ─── Host interface the runtime pieces use ───────────────────────────────────COMMENT
MEDIUMpackages/chord/src/object.ts401// ─── Contexts ────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/chord/src/object.ts558// ─── References ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/chord/src/object.ts983// ─── Objects ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/chord/src/object.ts1774// ─── The factory's `self` ────────────────────────────────────────────────────COMMENT
MEDIUMpackages/chord/src/link.ts105// ─── payload packing ─────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/chord/src/link.ts240// ─── memory ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/chord/src/link.ts280// ─── Node IPC ────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/chord/src/link.ts341// ─── WebSocket ───────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/chord/src/delta/index.ts7// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/chord/src/delta/index.ts12// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/chord/src/delta/index.ts68// ─── Classification ──────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/chord/src/delta/index.ts78// ─── Overlap ─────────────────────────────────────────────────────────────────COMMENT
5 more matches not shown…
Hallucination Indicators15 hits · 150 pts
SeverityFileLineSnippetContext
CRITICALpackages/coding-agent/test/sdk-stream-options.test.ts197 fixture.session.agent.state.messages = fixture.session.agent.state.messages.slice(1);CODE
CRITICAL…coding-agent/test/suite/agent-session-codemode.test.ts144 harness.session.agent.state.tools.find((tool) => tool.name === name)?.description ?? "";CODE
CRITICAL…coding-agent/test/suite/agent-session-codemode.test.ts220 harness.session.agent.state.tools.find((tool) => tool.name === name)?.description ?? "";CODE
CRITICAL…coding-agent/test/suite/agent-session-codemode.test.ts235 const codemode = harness.session.agent.state.tools.find((tool) => tool.name === "codemode");CODE
CRITICAL…coding-agent/test/suite/agent-session-codemode.test.ts835 const codemode = harness.session.agent.state.tools.find((tool) => tool.name === "codemode");CODE
CRITICAL…coding-agent/test/suite/agent-session-codemode.test.ts842 const plain = overridden.session.agent.state.tools.find((tool) => tool.name === "codemode");CODE
CRITICAL…ages/coding-agent/test/suite/agent-session-mcp.test.ts362 const codemode = harness.session.agent.state.tools.find((tool) => tool.name === "codemode");CODE
CRITICAL…ages/coding-agent/test/suite/agent-session-mcp.test.ts483 const codemode = harness.session.agent.state.tools.find((tool) => tool.name === "codemode");CODE
CRITICAL…ages/coding-agent/test/suite/agent-session-mcp.test.ts568 const codemode = harness.session.agent.state.tools.find((tool) => tool.name === "codemode");CODE
CRITICAL…ages/coding-agent/test/suite/agent-session-mcp.test.ts597 harness.session.agent.state.tools.find((tool) => tool.name === name)?.description ?? "";CODE
CRITICAL…ages/coding-agent/test/suite/agent-session-mcp.test.ts683 const search = harness.session.agent.state.tools.find((tool) => tool.name === "mcp__docs__search");CODE
CRITICAL…ages/coding-agent/test/suite/agent-session-mcp.test.ts684 const fail = harness.session.agent.state.tools.find((tool) => tool.name === "mcp__docs__fail");CODE
CRITICAL…ages/coding-agent/test/suite/agent-session-mcp.test.ts783 const description = () => harness.session.agent.state.tools.find((tool) => tool.name === "codemode")?.description;CODE
CRITICAL…ages/coding-agent/test/suite/agent-session-mcp.test.ts991 const toolSearch = harness.session.agent.state.tools.find((tool) => tool.name === "tool_search");CODE
CRITICAL…nt/test/suite/agent-session-tool-orchestration.test.ts80 const find = (name: string) => harness.session.agent.state.tools.find((tool) => tool.name === name);CODE
Cross-Language Confusion (JS/TS)16 hits · 95 pts
SeverityFileLineSnippetContext
HIGH⚡packages/durable/test/examples/18-json.ts75 print({ view: watch.value });CODE
HIGH⚡packages/durable/test/examples/18-json.ts81 print({ entries: watch.value.entries, live: watch.value.docs["pi.live"] });CODE
HIGH⚡packages/durable/test/examples/18-json.ts87 print({ ...(entries.length === 0 ? {} : { entries }), live: value.docs["pi.live"] });CODE
HIGHpackages/chord/test/next/bench/relay.ts322 print(CODE
HIGHpackages/chord/test/next/bench/relay.ts359 print("Hold to live, the 1,000-item notes list view (133.7 KiB snapshot)", ["Case", "time"], rows);CODE
HIGHpackages/chord/test/next/bench/relay.ts536 print(CODE
HIGHpackages/chord/test/next/bench/relay.ts578 print(CODE
HIGH…es/chord/test/next/examples/36-plugin-failures/main.ts109print(await plugins.reload(host, bad, context));CODE
HIGH…es/chord/test/next/examples/36-plugin-failures/main.ts121print(await plugins.reload(host, good, context));CODE
HIGH…es/chord/test/next/examples/36-plugin-failures/main.ts150print(await plugins.reload(host, await buildDirty(["@example/greeter"]), context));CODE
HIGH…/chord/test/next/examples/38-watch-and-rollout/main.ts105print(await plugins.rollout(steps, built, context));CODE
HIGH⚡…/chord/test/next/examples/38-watch-and-rollout/main.ts121print(await plugins.rollout([steps[0]!, unreachable, steps[1]!], notes, context));CODE
HIGH⚡…/chord/test/next/examples/38-watch-and-rollout/main.ts123print(await plugins.rollout(steps, notes, context));CODE
HIGH⚡…/chord/test/next/examples/38-watch-and-rollout/main.ts131print(await plugins.rollout(steps, await plugins.build(plugins.state.value.dirty, context), context));CODE
HIGH…/chord/test/next/examples/38-watch-and-rollout/main.ts142print(await plugins.rollout(steps, early, context));CODE
HIGH…/chord/test/next/examples/38-watch-and-rollout/main.ts144print(await plugins.rollout(steps, await plugins.build(plugins.state.value.dirty, context), context));CODE
Fake / Example Data63 hits · 75 pts
SeverityFileLineSnippetContext
LOWpackages/coding-agent/test/git-update.test.ts32 git(["config", "--local", "user.email", "test@test.com"], repoDir);CODE
LOWpackages/coding-agent/test/git-update.test.ts117 git(["config", "--local", "user.email", "test@test.com"], installedDir);CODE
LOW…ages/coding-agent/test/session-selector-search.test.ts118 const filler = "lorem ipsum dolor sit amet ".repeat(400);CODE
LOW…ages/coding-agent/test/session-selector-search.test.ts118 const filler = "lorem ipsum dolor sit amet ".repeat(400);CODE
LOWpackages/coding-agent/docs/extensions.md2799const name = await ctx.ui.input("Name:", "placeholder");CODE
LOWpackages/coding-agent/docs/rpc-extension-ui.md75 "placeholder": "type something..."CODE
LOWpackages/tui/test/markdown.test.ts194 `1. Lorem ipsum dolor sit amet.CODE
LOWpackages/tui/test/markdown.test.ts194 `1. Lorem ipsum dolor sit amet.CODE
LOWpackages/tui/test/markdown.test.ts211 "1. Lorem ipsum dolor sit amet.",CODE
LOWpackages/tui/test/markdown.test.ts211 "1. Lorem ipsum dolor sit amet.",CODE
LOWpackages/tui/test/markdown.test.ts1788 assert.ok(joinedPlain.includes("user@example.com"), "Should contain email");CODE
LOW⚡packages/tui/test/editor.test.ts1008 const chunks = wordWrapLine("Lorem ipsum dolor sit amet, consectetur", 30);CODE
LOW⚡packages/tui/test/editor.test.ts1008 const chunks = wordWrapLine("Lorem ipsum dolor sit amet, consectetur", 30);CODE
LOW⚡packages/tui/test/editor.test.ts1011 assert.strictEqual(chunks[0]!.text, "Lorem ipsum dolor sit ");CODE
LOW⚡packages/tui/test/editor.test.ts1016 const chunks = wordWrapLine("Lorem ipsum dolor sit amet, consectetur", 30);CODE
LOW⚡packages/tui/test/editor.test.ts1016 const chunks = wordWrapLine("Lorem ipsum dolor sit amet, consectetur", 30);CODE
LOW⚡packages/tui/test/editor.test.ts1019 assert.strictEqual(chunks[0]!.text, "Lorem ipsum dolor sit ");CODE
LOW⚡packages/tui/test/editor.test.ts1024 const chunks = wordWrapLine("Lorem ipsum dolor sit amet, consectetur", 30);CODE
LOW⚡packages/tui/test/editor.test.ts1024 const chunks = wordWrapLine("Lorem ipsum dolor sit amet, consectetur", 30);CODE
LOW⚡packages/tui/test/editor.test.ts1027 assert.strictEqual(chunks[0]!.text, "Lorem ipsum dolor sit ");CODE
LOW⚡packages/tui/test/editor.test.ts1033 const chunks = wordWrapLine("Lorem ipsum dolor sit amet, consectetur", 30);CODE
LOW⚡packages/tui/test/editor.test.ts1033 const chunks = wordWrapLine("Lorem ipsum dolor sit amet, consectetur", 30);CODE
LOW⚡packages/tui/test/editor.test.ts1036 assert.strictEqual(chunks[0]!.text, "Lorem ipsum dolor sit ");CODE
LOW⚡packages/tui/test/editor.test.ts1042 const chunks = wordWrapLine("Lorem ipsum dolor sit amet, consectetur", 30);CODE
LOW⚡packages/tui/test/editor.test.ts1042 const chunks = wordWrapLine("Lorem ipsum dolor sit amet, consectetur", 30);CODE
LOW⚡packages/tui/test/editor.test.ts1045 assert.strictEqual(chunks[0]!.text, "Lorem ipsum dolor sit ");CODE
LOW⚡packages/tui/test/editor.test.ts1051 const chunks = wordWrapLine("Lorem ipsum dolor sit amet, consectetur", 30);CODE
LOW⚡packages/tui/test/editor.test.ts1051 const chunks = wordWrapLine("Lorem ipsum dolor sit amet, consectetur", 30);CODE
LOW⚡packages/tui/test/editor.test.ts1054 assert.strictEqual(chunks[0]!.text, "Lorem ipsum dolor sit ");CODE
LOWpackages/tui/test/editor.test.ts2220 "user@example.com",CODE
LOWpackages/tui/src/components/markdown.ts763 // For mailto: links strip the prefix (autolinked emails use text="foo@bar.com"COMMENT
LOWpackages/ai/test/mistral-reasoning-mode.test.ts57 apiKey: "fake-key",CODE
LOWpackages/ai/test/total-tokens.test.ts41 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aCODE
LOWpackages/ai/test/total-tokens.test.ts41 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aCODE
LOWpackages/ai/test/anthropic-thinking-disable.test.ts35 apiKey: "fake-key",CODE
LOWpackages/ai/test/mistral-tool-schema.test.ts42 apiKey: "fake-key",CODE
LOW…test/anthropic-empty-thinking-signature-compat.test.ts70 apiKey: "fake-key",CODE
LOWpackages/ai/test/cache-retention.test.ts120 apiKey: "fake-key",CODE
LOWpackages/ai/test/cache-retention.test.ts149 apiKey: "fake-key",CODE
LOWpackages/ai/test/cache-retention.test.ts173 apiKey: "fake-key",CODE
LOWpackages/ai/test/cache-retention.test.ts197 apiKey: "fake-key",CODE
LOWpackages/ai/test/cache-retention.test.ts223 apiKey: "fake-key",CODE
LOWpackages/ai/test/cache-retention.test.ts314 apiKey: "sk-fake-key",CODE
LOWpackages/ai/test/cache-retention.test.ts341 apiKey: "sk-fake-key",CODE
LOWpackages/ai/test/cache-retention.test.ts366 apiKey: "sk-fake-key",CODE
LOWpackages/ai/test/cache-retention.test.ts393 apiKey: "sk-fake-key",CODE
LOWpackages/ai/test/cache-retention.test.ts424 apiKey: "sk-fake-key",CODE
LOWpackages/ai/test/cache-retention.test.ts467 apiKey: "fake-key",CODE
LOWpackages/ai/test/cache-retention.test.ts492 apiKey: "fake-key",CODE
LOWpackages/ai/test/cache-retention.test.ts524 apiKey: "fake-key",CODE
LOWpackages/ai/test/cache-retention.test.ts586 apiKey: "fake-key",CODE
LOWpackages/ai/test/anthropic-temperature-compat.test.ts51 apiKey: "fake-key",CODE
LOW…ages/ai/test/anthropic-force-adaptive-thinking.test.ts54 apiKey: "fake-key",CODE
LOW…ges/ai/test/anthropic-error-tool-result-images.test.ts53 apiKey: "fake-key",CODE
LOWpackages/ai/test/sampling-options.test.ts54 apiKey: "fake-key",CODE
LOW⚡packages/ai/test/context-overflow.test.ts28// Lorem ipsum paragraph for realistic token estimationCOMMENT
LOW⚡packages/ai/test/context-overflow.test.ts29const LOREM_IPSUM = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut laboreCODE
LOW⚡packages/ai/test/context-overflow.test.ts29const LOREM_IPSUM = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut laboreCODE
LOWpackages/chord/test/next-node/compression.test.ts13 const bytes = UTF8.encode(JSON.stringify({ text: "lorem ipsum ".repeat(5000) }));CODE
LOWpackages/chord/test/next/remote/relay.test.ts683 const text = "lorem ipsum ".repeat(3000);CODE
3 more matches not shown…
AI Slop Vocabulary29 hits · 68 pts
SeverityFileLineSnippetContext
MEDIUMpackages/durable/test-workers/worker.ts41 #harness!: Harness;COMMENT
MEDIUMpackages/durable/test-workers/worker.ts64 this.#harness = await Harness.open(CODE
MEDIUM⚡packages/durable/test-workers/worker.ts81 await this.arm(this.#harness.wake());CODE
MEDIUM⚡packages/durable/test-workers/worker.ts82 this.#harness.resume();CODE
MEDIUM⚡packages/durable/test-workers/worker.ts87 return this.#harness;CODE
MEDIUMpackages/durable/test-workers/worker.ts105 await this.arm({ ...this.#harness.wake(), active: true });CODE
MEDIUMpackages/durable/test-workers/worker.ts106 this.#harness.resume();CODE
MEDIUM⚡packages/durable/test-workers/worker.ts119 return this.#harness.root(context, { agent: { model: { provider: "faux", modelId: "faux-1" } } });CODE
MEDIUM⚡packages/durable/test-workers/worker.ts124 await this.arm({ ...this.#harness.wake(), active: true });CODE
MEDIUM⚡packages/durable/test-workers/worker.ts134 this.#harness.resume();CODE
MEDIUMpackages/durable/src/harness/harness.ts122 return this.#host.harness.resolveAgent(this.id, undefined, context);CODE
MEDIUMpackages/durable/src/harness/harness.ts126 return this.#host.harness.commitWith((tx) => configure(tx, this.id, change), context);CODE
MEDIUMpackages/durable/src/harness/harness.ts140 return this.#host.harness.commitWith((tx) => createCompaction(tx, this.id, input), context);CODE
MEDIUM⚡packages/durable/src/harness/harness.ts153 return this.#host.harness.commitWith(change, context, { conversationId: this.id }, options);CODE
MEDIUM⚡packages/durable/src/harness/harness.ts157 return readContext(this.#host.harness, this.#host.storage, this.id, context, options?.at);CODE
MEDIUM⚡packages/durable/src/harness/harness.ts167 return this.#host.harness.readOnLine((storage) => storage.scanEntries(scan, limit, cursor, context));CODE
MEDIUMpackages/chord/docs/next/durable-observers/index.html119proposal. Code is Durable&#39;s <code>session/session.ts</code> and <code>harness/*.ts</code> at HEAD, simplified. NothiCODE
MEDIUMpackages/chord/docs/next/durable-observers/index.html162<p><strong>Durable</strong> is pi&#39;s agent harness; a <strong>Session</strong> is its one line of atomic commits. <stCODE
MEDIUMpackages/chord/docs/next/durable-observers/index.html439<td><code>packages/durable/src/session/session.ts</code> (<code>#runCommit</code>, <code>#publish</code>), <code>harnessCODE
MEDIUMpackages/chord/docs/next/dependencies/index.html153connects to the server, loads its plugins and opens the agent&#39;s harness. One of the plugins, code mode, needs theCODE
MEDIUMpackages/chord/docs/next/dependencies/index.html546<figure class="fig anim"><svg viewBox="0 0 720 331" width="100%" role="img" aria-label="Code mode on W parks on the harnCODE
MEDIUMpackages/chord/docs/next/dependencies/index.html690admission check, as p2&#39;s <code>whenRegistered</code> and its harness prerequisites are today.</p>CODE
MEDIUMpackages/chord/docs/next/dependencies/index.html998there&quot; is the app&#39;s admission check, not a registry rule; Durable&#39;s own &quot;model unavailable&quot; wait CODE
MEDIUMpackages/chord/docs/next/dependencies/index.html1495<td>The hold binds to <code>SessionTransfer</code>, whose attempt parks on <code>Harness</code>: <code>loading</code>, tCODE
MEDIUMpackages/chord/docs/next/dependencies/index.html1550<td>S keeps W1&#39;s hold as refused, <code>not_served</code>. ModelRuntime is <code>failed { waiting }</code>. W1&#39;sCODE
MEDIUMpackages/chord/docs/next/dependencies/index.html1557<td>S&#39;s commit re-runs its refused hold and sends <code>loading { hold, attempt }</code>, then <code>bound</code>. MCODE
MEDIUMpackages/chord/docs/next/dependencies/index.html1675<td>Transcript (on W1) follows the harness through <code>Harnesses.value.observeConversation(...)</code> and declares <cCODE
MEDIUMpackages/chord/docs/next/dependencies/index.html1676<td><code>self.follow</code> is Transcript&#39;s own step: S1 ends the observer <code>failed</code>, so Transcript failsCODE
MEDIUMpackages/chord/docs/next/dependencies/index.html2225attach runs Durable&#39;s code), not a dependency; a follower declares <code>retryOn</code> on the registry it reads theCODE
Verbosity Indicators13 hits · 26 pts
SeverityFileLineSnippetContext
LOW⚡packages/coding-agent/src/core/package-manager.ts817 // Step 1: Apply includes (or all if no includes)COMMENT
LOW⚡packages/coding-agent/src/core/package-manager.ts825 // Step 2: Apply excludesCOMMENT
LOW⚡packages/coding-agent/src/core/package-manager.ts830 // Step 3: Force-include (add back from allPaths, overriding exclusions)COMMENT
LOW⚡packages/coding-agent/src/core/package-manager.ts839 // Step 4: Force-exclude (remove even if included or force-included)COMMENT
LOW⚡packages/ai/test/tool-call-without-result.test.ts33 // Step 1: Create context with the calculate toolCOMMENT
LOW⚡packages/ai/test/tool-call-without-result.test.ts40 // Step 2: Ask the LLM to make a tool callCOMMENT
LOW⚡packages/ai/test/tool-call-without-result.test.ts47 // Step 3: Get the assistant's response (should contain a tool call)COMMENT
LOW⚡packages/ai/test/tool-call-without-result.test.ts61 // Step 4: Send a user message WITHOUT providing tool resultCOMMENT
LOW⚡packages/ai/test/tool-call-without-result.test.ts69 // Step 5: The fix should filter out the orphaned tool call, and the request should succeedCOMMENT
LOWpackages/ai/test/tool-call-id-normalization.test.ts51 // Step 1: Generate tool call with github-copilotCOMMENT
LOWpackages/ai/test/tool-call-id-normalization.test.ts90 // Step 2: Complete with openrouter (uses openai-completions API)COMMENT
LOWpackages/ai/test/tool-call-id-normalization.test.ts121 // Step 1: Generate tool call with github-copilotCOMMENT
LOWpackages/ai/test/tool-call-id-normalization.test.ts153 // Step 2: Complete with openai-codex (uses openai-codex-responses API)COMMENT
Structural Annotation Overuse13 hits · 26 pts
SeverityFileLineSnippetContext
LOW⚡packages/coding-agent/src/core/package-manager.ts817 // Step 1: Apply includes (or all if no includes)COMMENT
LOW⚡packages/coding-agent/src/core/package-manager.ts825 // Step 2: Apply excludesCOMMENT
LOW⚡packages/coding-agent/src/core/package-manager.ts830 // Step 3: Force-include (add back from allPaths, overriding exclusions)COMMENT
LOW⚡packages/coding-agent/src/core/package-manager.ts839 // Step 4: Force-exclude (remove even if included or force-included)COMMENT
LOW⚡packages/ai/test/tool-call-without-result.test.ts33 // Step 1: Create context with the calculate toolCOMMENT
LOW⚡packages/ai/test/tool-call-without-result.test.ts40 // Step 2: Ask the LLM to make a tool callCOMMENT
LOW⚡packages/ai/test/tool-call-without-result.test.ts47 // Step 3: Get the assistant's response (should contain a tool call)COMMENT
LOW⚡packages/ai/test/tool-call-without-result.test.ts61 // Step 4: Send a user message WITHOUT providing tool resultCOMMENT
LOW⚡packages/ai/test/tool-call-without-result.test.ts69 // Step 5: The fix should filter out the orphaned tool call, and the request should succeedCOMMENT
LOWpackages/ai/test/tool-call-id-normalization.test.ts51 // Step 1: Generate tool call with github-copilotCOMMENT
LOWpackages/ai/test/tool-call-id-normalization.test.ts90 // Step 2: Complete with openrouter (uses openai-completions API)COMMENT
LOWpackages/ai/test/tool-call-id-normalization.test.ts121 // Step 1: Generate tool call with github-copilotCOMMENT
LOWpackages/ai/test/tool-call-id-normalization.test.ts153 // Step 2: Complete with openai-codex (uses openai-codex-responses API)COMMENT
Over-Commented Block23 hits · 23 pts
SeverityFileLineSnippetContext
LOWscripts/build-binaries.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/auto-pi.sh1#!/usr/bin/env bashCOMMENT
LOWpackages/coding-agent/test/path-utils.test.ts81 // é = e + combining acute accent (U+0301)COMMENT
LOWpackages/coding-agent/test/tree-selector.test.ts441 // Tree structure:COMMENT
LOWpackages/coding-agent/docs/compaction.md301```typescriptCOMMENT
LOWpackages/coding-agent/docs/extensions.md601### Agent EventsCOMMENT
LOWpackages/coding-agent/examples/sdk/11-sessions.ts41 });COMMENT
LOWpackages/tui/native/napi.h1#ifndef PI_NAPI_HCOMMENT
LOWpackages/tui/test/editor.test.ts4281COMMENT
LOWpackages/tui/src/stdin-buffer.ts221 if (char === ESC && seqEnd < remaining.length && remaining[seqEnd] !== "\\") {COMMENT
LOWpackages/tui/src/keys.ts741 logicalShiftedSymbol &&COMMENT
LOWpackages/ai/test/provider-error-body-regression.test.ts1// Per-tier provider regression for issues/provider-error-body-passthrough.COMMENT
LOW…ckages/ai/test/provider-error-body-passthrough.test.ts1// Regression test for issues/provider-error-body-passthroughCOMMENT
LOW…ages/ai/test/anthropic-tool-name-normalization.test.ts141 if (toolCall.type === "toolCall") {COMMENT
LOWpackages/ai/src/types.ts381 /** Ask a capable provider to return a durable handle and continue the request asynchronously. */COMMENT
LOWpackages/ai/src/utils/error-body.ts1// Shared normalization for provider HTTP error objects.COMMENT
LOWpackages/ai/src/api/openai-completions.ts1521 const promptTokens = rawUsage.prompt_tokens || 0;COMMENT
LOWpackages/chord/src/wire.ts1import { type Static, type TSchema, Type } from "typebox";COMMENT
LOWpackages/chord/src/delta/index.ts541 const node = resolveValue(root, path);COMMENT
LOWpackages/chord/src/next/host/members.ts1// The member check (Q14): an implementation is one variant with exactly that variant's members, methods beingCOMMENT
LOW.github/workflows/nix.yml1name: NixCOMMENT
LOW.github/workflows/issue-analysis.yml1# Runs the repo's /is prompt against an issue when the `pi-analyze` label is addedCOMMENT
LOW.github/workflows/issue-analysis.yml21# creation permission. The analysis job uses it to upload the exportedCOMMENT
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHpackages/ai/README.md1703 apiKey: 'your-api-key'CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMscripts/create-source-archive.sh2# Create the deterministic source archive uploaded with GitHub releases.COMMENT
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWscripts/create-source-archive.sh4# Usage:COMMENT
LOWscripts/build-binaries.sh6# Usage:COMMENT