AI Slop Code Risk Monitor

lukilabs/craft-agents-oss

SlopCodeMonitor badge for lukilabs/craft-agents-oss Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
3.4 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for lukilabs/craft-agents-oss, a TypeScript project with 7,301 GitHub stars. SynthScan examined 450,021 lines of code across 2157 source files, recording 1007 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 3.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.

3.4
Adjusted Signal
3.4
Raw Pattern Score
100%
Time Factor
2026-10-23
Last Push
7.3K
Stars
TypeScript
Language
450.0K
Lines of Code
2.2K
Files
1.0K
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 9.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.8/100 · LOW

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

Agent Over-Engineering Ratio 11.8/100 · LOW

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

PR Review Velocity Impact 14.5/100 · LOW

Which changes need focused human review? 1007 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 2HIGH 11MEDIUM 164LOW 830

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 1007 distinct pattern matches across 20 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 Identifiers562 hits · 562 pts
SeverityFileLineSnippetContext
LOWscripts/electron-dev.ts51async function ensureBundledUvForCurrentPlatform(): Promise<void> {CODE
LOW…es/ui/src/components/ui/AnimatedCollapsibleContent.tsx16export function AnimatedCollapsibleContent({ isOpen, children, className }: AnimatedCollapsibleContentProps) {CODE
LOWpackages/ui/src/components/ui/StyledDropdown.tsx28export function mirrorHoverToOpenStateClasses(className?: string): string | undefined {CODE
LOW…ges/ui/src/components/ui/IslandFollowUpContentView.tsx44export function IslandFollowUpContentView({CODE
LOWpackages/ui/src/components/ui/Island.tsx158function installGlobalScrollBlockers(): () => void {CODE
LOWpackages/ui/src/components/chat/turn-utils.ts183export function shouldShowThinkingIndicator(phase: TurnPhase, isBuffering: boolean): boolean {CODE
LOWpackages/ui/src/components/chat/turn-utils.ts297function extractTodosFromActivities(activities: ActivityItem[]): TodoItem[] | undefined {CODE
LOWpackages/ui/src/components/chat/follow-up-helpers.ts12export function extractAnnotationSelectedText(annotation: AnnotationV1, messageContent: string): string {CODE
LOWpackages/ui/src/components/chat/TurnCard.tsx459function createAnnotationIndexBadge(index: number): HTMLSpanElement {CODE
LOWpackages/ui/src/components/chat/turn/tool-display.ts54export function computeEditWriteDiffStats(CODE
LOWpackages/ui/src/components/chat/turn/tool-display.ts215function extractActionFromDisplayName(iconName: string, llmName: string): string {CODE
LOWpackages/ui/src/components/markdown/diff-normalize.ts51function containsUnifiedFileBreakCandidate(lines: string[]): boolean {CODE
LOW…ages/ui/src/components/markdown/annotation-resolver.ts32function normalizeWhitespaceWithMap(input: string): NormalizedText {CODE
LOW…es/ui/src/components/markdown/TiptapMarkdownEditor.tsx69export function preprocessMarkdownForOfficial(markdown: string): string {CODE
LOW…es/ui/src/components/markdown/TiptapMarkdownEditor.tsx96export function postprocessMarkdownFromOfficial(markdown: string): string {CODE
LOW…es/ui/src/components/markdown/TiptapMarkdownEditor.tsx175async function handleDroppedOrPastedFiles(CODE
LOWpackages/ui/src/components/markdown/link-target.ts54export function resolveMarkdownLinkTarget(target: string): ResolvedMarkdownLinkTarget {CODE
LOWpackages/ui/src/components/markdown/link-target.ts72export function classifyMarkdownLinkTarget(target: string): 'file' | 'url' {CODE
LOW…/ui/src/components/markdown/MarkdownDatatableBlock.tsx172function computeNumericGranularities(values: number[], type: 'number' | 'currency' | 'percent'): GranularityOption[] {CODE
LOW…/ui/src/components/markdown/MarkdownDatatableBlock.tsx222function computeGranularityOptions(data: DatatableData): Map<string, GranularityOption[]> {CODE
LOWpackages/ui/src/components/markdown/mermaid-source.ts51export function getFirstMermaidDiagramLine(code: string): string | null {CODE
LOWpackages/ui/src/components/markdown/TiptapSlashMenu.ts148function insertRichBlockAndOpenEditor(CODE
LOWpackages/ui/src/components/markdown/TiptapSlashMenu.ts168function findLastCodeLanguageInDoc(editor: Editor): string | null {CODE
LOWpackages/ui/src/components/markdown/TiptapSlashMenu.ts182function resolvePreferredCodeLanguage(editor: Editor): string {CODE
LOWpackages/ui/src/components/markdown/TiptapSlashMenu.ts203function insertCodeBlockWithPlaceholder(editor: Editor, insertPos?: number) {CODE
LOW…src/components/markdown/CollapsibleMarkdownContext.tsx32export function CollapsibleMarkdownProvider({ children }: CollapsibleMarkdownProviderProps) {CODE
LOW…ui/src/components/annotations/interaction-selectors.ts3export function getAnnotationInteractionSourceKey(state: AnnotationInteractionState, messageId?: string): string {CODE
LOW…ui/src/components/annotations/interaction-selectors.ts17export function getAnnotationInteractionAnchor(state: AnnotationInteractionState): { x: number; y: number } | null {CODE
LOW…ents/annotations/use-annotation-island-presentation.ts33export function decideAnnotationIslandPresentation(CODE
LOW…ents/annotations/use-annotation-island-presentation.ts44export function useAnnotationIslandPresentation({CODE
LOW…i/src/components/annotations/annotation-host-config.ts21export function shouldRenderAnnotationIslandInPortal(host: AnnotationHost): boolean {CODE
LOWpackages/ui/src/components/annotations/island-motion.ts31export function getDefaultIslandWidthEstimate(): number {CODE
LOWpackages/ui/src/components/annotations/island-motion.ts35export function buildSelectionEntryTransition(from: PointerSnapshot | null, to: PointerSnapshot | null): IslandTransitioCODE
LOWpackages/ui/src/components/annotations/island-motion.ts64export function buildAnnotationChipEntryTransition(): IslandTransitionConfig {CODE
LOW…s/annotations/use-annotation-interaction-controller.ts21export function useAnnotationInteractionController() {CODE
LOWpackages/ui/src/components/annotations/block-markers.ts4export function clearBlockAnnotationMarkers(root: HTMLElement): void {CODE
LOWpackages/ui/src/components/annotations/block-markers.ts13export function applyBlockAnnotationMarker(root: HTMLElement, annotation: AnnotationV1): void {CODE
LOW…es/ui/src/components/annotations/interaction-policy.ts16export function getAnnotationChipInteraction(annotation?: AnnotationV1 | null): AnnotationChipInteraction {CODE
LOW⚡…es/ui/src/components/annotations/interaction-policy.ts28export function isAnnotationChipClickable(annotation?: AnnotationV1 | null): boolean {CODE
LOW⚡…es/ui/src/components/annotations/interaction-policy.ts32export function getAnnotationChipOpenMode(): 'view' {CODE
LOW⚡…es/ui/src/components/annotations/interaction-policy.ts41export function shouldIgnoreSelectionMouseUpTarget(target: EventTarget | null): boolean {CODE
LOW…kages/ui/src/components/annotations/annotation-core.ts18export function hasExistingTextRangeAnnotation(CODE
LOW…kages/ui/src/components/annotations/annotation-core.ts32export function createSelectionPreviewAnnotation(CODE
LOW…kages/ui/src/components/annotations/annotation-core.ts66export function createTextSelectionAnnotation(CODE
LOW…ui/src/components/annotations/island-dismiss-policy.ts9export function resolveIslandOutsideDismissAction({CODE
LOW…rc/components/annotations/interaction-state-machine.ts47export function annotationInteractionReducer(CODE
LOW…/components/annotations/annotation-overlay-geometry.ts31export function computeAnnotationOverlayGeometry({CODE
LOW…ges/ui/src/components/annotations/selection-restore.ts8export function restoreDomSelectionFromOffsets(CODE
LOW…ges/ui/src/components/annotations/selection-restore.ts37export function scheduleDomSelectionRestore(CODE
LOW…kages/ui/src/components/annotations/follow-up-state.ts25export function getAnnotationFollowUpState(annotation: AnnotationV1): AnnotationFollowUpState {CODE
LOW…kages/ui/src/components/annotations/follow-up-state.ts50export function formatAnnotationFollowUpTooltipText(annotation: AnnotationV1, maxLength = 180): string {CODE
LOW…components/annotations/use-annotation-island-events.ts41export function useAnnotationIslandEvents({CODE
LOW…src/components/overlay/AnnotatableMarkdownDocument.tsx63export function AnnotatableMarkdownDocument({CODE
LOW…src/components/overlay/FullscreenOverlayBaseHeader.tsx193export function FullscreenOverlayBaseHeader({CODE
LOW…omponents/overlay/DocumentFormattedMarkdownOverlay.tsx61export function DocumentFormattedMarkdownOverlay({CODE
LOW…es/ui/src/components/overlay/FullscreenOverlayBase.tsx88export function handleFullscreenEscapeWithStack(): boolean {CODE
LOWpackages/ui/src/lib/dismissible-layer-bridge.ts37export function setDismissibleLayerBridge(bridge: DismissibleLayerBridge | null): void {CODE
LOWpackages/ui/src/lib/dismissible-layer-bridge.ts41export function getDismissibleLayerBridge(): DismissibleLayerBridge | null {CODE
LOWpackages/session-tools-core/src/validation.ts121export function validateJsonFileHasFields(CODE
LOWpackages/session-tools-core/src/validation.ts307function getFirstMermaidDiagramLine(code: string): string {CODE
502 more matches not shown…
Decorative Section Separators155 hits · 494 pts
SeverityFileLineSnippetContext
MEDIUMscripts/install-server.sh25# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/install-server.sh27# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/install-server.sh38# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/install-server.sh40# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/install-server.sh50# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/install-server.sh52# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/install-server.sh64# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/install-server.sh66# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/install-server.sh71# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/install-server.sh73# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/docker-smoke-test.sh2# =============================================================================COMMENT
MEDIUM⚡scripts/docker-smoke-test.sh15# =============================================================================COMMENT
MEDIUMpackages/ui/src/components/ui/StyledDropdown.tsx96// ── Content ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/ui/src/components/ui/StyledDropdown.tsx127// ── Item ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/ui/src/components/ui/StyledDropdown.tsx153// ── Separator ────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/ui/src/components/ui/StyledDropdown.tsx167// ── Sub-menu trigger ─────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/ui/src/components/ui/StyledDropdown.tsx189// ── Sub-menu content ─────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/ui/src/components/ui/StyledDropdown.tsx217// ── Shortcut ─────────────────────────────────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownJsonBlock.tsx25// ── Themes (same as JSONPreviewOverlay) ────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownJsonBlock.tsx41// ── Deep parse helper (same as JSONPreviewOverlay) ─────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownJsonBlock.tsx78// ── Error boundary ────────────────────────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownJsonBlock.tsx108// ── Helpers ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownJsonBlock.tsx115// ── Main component ────────────────────────────────────────────────────────COMMENT
MEDIUM…/ui/src/components/markdown/MarkdownDatatableBlock.tsx58// ── Types ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…/ui/src/components/markdown/MarkdownDatatableBlock.tsx82// ── Cell formatting ──────────────────────────────────────────────────────────COMMENT
MEDIUM…/ui/src/components/markdown/MarkdownDatatableBlock.tsx129// ── Sort icon ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…/ui/src/components/markdown/MarkdownDatatableBlock.tsx148// ── Grouping granularity ─────────────────────────────────────────────────COMMENT
MEDIUM…/ui/src/components/markdown/MarkdownDatatableBlock.tsx283// ── Error boundary ───────────────────────────────────────────────────────────COMMENT
MEDIUM…/ui/src/components/markdown/MarkdownDatatableBlock.tsx300// ── Main component ───────────────────────────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownDiffBlock.tsx27// ── Custom element + theme registration (same as ShikiDiffViewer) ──────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownDiffBlock.tsx44// ── Helpers ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownDiffBlock.tsx55// ── Error boundary ────────────────────────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownDiffBlock.tsx85// ── Theme bridge ──────────────────────────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownDiffBlock.tsx116// ── Main component ────────────────────────────────────────────────────────COMMENT
MEDIUM…ages/ui/src/components/markdown/PreviewBlockChrome.tsx25// ── Frame + header ───────────────────────────────────────────────────────────COMMENT
MEDIUM…ages/ui/src/components/markdown/PreviewBlockChrome.tsx90// ── States ───────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ages/ui/src/components/markdown/PreviewBlockChrome.tsx115// ── Fade ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ages/ui/src/components/markdown/PreviewBlockChrome.tsx133// ── Item navigator ───────────────────────────────────────────────────────────COMMENT
MEDIUM…i/src/components/markdown/MarkdownSpreadsheetBlock.tsx42// ── Types ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…i/src/components/markdown/MarkdownSpreadsheetBlock.tsx65// ── Cell formatting ──────────────────────────────────────────────────────────COMMENT
MEDIUM…i/src/components/markdown/MarkdownSpreadsheetBlock.tsx103// ── Error boundary ───────────────────────────────────────────────────────────COMMENT
MEDIUM…i/src/components/markdown/MarkdownSpreadsheetBlock.tsx120// ── Main component ───────────────────────────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownHtmlBlock.tsx47// ── Types ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownHtmlBlock.tsx60// ── Error boundary ───────────────────────────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownHtmlBlock.tsx77// ── HTML preprocessing ───────────────────────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownHtmlBlock.tsx96// ── Main component ───────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/ui/src/components/markdown/table-export.ts10// ── Types ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/ui/src/components/markdown/table-export.ts18// ── Markdown ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/ui/src/components/markdown/table-export.ts35// ── CSV (RFC 4180) ───────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/ui/src/components/markdown/table-export.ts55// ── XLSX ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/ui/src/components/markdown/table-export.ts101// ── XLSX Styles ──────────────────────────────────────────────────────────────COMMENT
MEDIUM…ckages/ui/src/components/markdown/MarkdownPdfBlock.tsx53// ── Types ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ckages/ui/src/components/markdown/MarkdownPdfBlock.tsx66// ── Error boundary ───────────────────────────────────────────────────────────COMMENT
MEDIUM…ckages/ui/src/components/markdown/MarkdownPdfBlock.tsx83// ── Main component ───────────────────────────────────────────────────────────COMMENT
MEDIUM…/ui/src/components/overlay/MultiDiffPreviewOverlay.tsx164 // ── Fade-in reveal ──────────────────────────────────────────────────COMMENT
MEDIUMpackages/shared/src/config/theme-roles.ts15// ───────────────────────── color math ─────────────────────────COMMENT
MEDIUMpackages/shared/src/config/theme-roles.ts307// ───────────────────────── role tables ─────────────────────────COMMENT
MEDIUMpackages/shared/src/agent/claude-agent.ts503 // ── WS2 persistent streaming-input query state (flag ON only) ─────────────COMMENT
MEDIUMpackages/shared/src/agent/claude-agent.ts1585 // ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMpackages/shared/src/agent/claude-agent.ts1587 // ═══════════════════════════════════════════════════════════════════════════COMMENT
95 more matches not shown…
Verbosity Indicators51 hits · 99 pts
SeverityFileLineSnippetContext
LOW⚡scripts/build-server.ts813 // Step 1: CleanCOMMENT
LOW⚡scripts/build-server.ts820 // Step 2: Download Bun runtimeCOMMENT
LOW⚡scripts/build-server.ts824 // Step 3: Download uvCOMMENT
LOW⚡scripts/build-server.ts828 // Step 4: Build the Pi agent server subprocessCOMMENT
LOW⚡scripts/build-server.ts847 // Step 5: Assemble resourcesCOMMENT
LOW⚡scripts/build-server.ts851 // Step 6: Copy production node_modulesCOMMENT
LOW⚡scripts/build-server.ts855 // Step 7: Copy workspace packagesCOMMENT
LOW⚡scripts/build-server.ts860 // Step 8: Create entry scripts + Docker filesCOMMENT
LOWpackages/shared/src/auth/github-copilot.ts257 // Step 1: request a device + user code pairCOMMENT
LOWpackages/shared/src/auth/github-copilot.ts294 // Step 2: poll for the GitHub access token until authorized or expiredCOMMENT
LOW⚡packages/shared/src/auth/github-copilot.ts366 // Step 3: trade the GitHub token for Copilot API credentialsCOMMENT
LOW⚡packages/shared/src/auth/github-copilot.ts370 // Step 4: accept policies for gated models so they actually show up in theCOMMENT
LOW⚡packages/shared/src/utils/logo.ts350 // Step 1: Try full domain first (e.g., mail.google.com)COMMENT
LOW⚡packages/shared/src/utils/logo.ts358 // Step 2: Try root domain (e.g., google.com)COMMENT
LOW⚡packages/shared/src/utils/logo.ts364 // Step 3: Fall back to Google Favicon V2 API (uses full domain for better results)COMMENT
LOW⚡packages/shared/src/utils/binary-detection.ts227 // Step 1: Strip only CR/LF (standard base64 line wrapping per RFC 2045).COMMENT
LOW⚡packages/shared/src/utils/binary-detection.ts231 // Step 2: Strict charset — detect alphabet variant.COMMENT
LOW⚡packages/shared/src/utils/binary-detection.ts238 // Step 3: Normalize to standard alphabet for decodingCOMMENT
LOW⚡packages/shared/src/utils/binary-detection.ts243 // Step 4: Auto-pad to make length divisible by 4COMMENT
LOW⚡packages/shared/src/utils/binary-detection.ts248 // Step 5: DecodeCOMMENT
LOW⚡packages/shared/src/utils/binary-detection.ts257 // Step 6: Canonical roundtrip — re-encode and compare to padded input.COMMENT
LOW⚡packages/shared/src/utils/binary-detection.ts261 // Step 7: Binary-likeness check (unchanged)COMMENT
LOW⚡packages/shared/src/agent/mode-manager.ts1181 // Step 3: Use bash AST-based validationCOMMENT
LOW⚡packages/shared/src/agent/mode-manager.ts1190 // Step 3: Convert AST rejection reason to BashRejectionReasonCOMMENT
LOWpackages/shared/src/agent/mode-manager.ts1139 // Step 1: Check for dangerous control characters (before parsing)COMMENT
LOWpackages/shared/src/agent/mode-manager.ts1151 // Step 2: Determine if this is a PowerShell commandCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts180 // Step 1: Permission mode checkCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts257 // Step 2: Source blockingCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts324 // Step 3: Prerequisite checkCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts419 // Step 4: call_llm interceptionCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts447 // Step 5: Input transformsCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts747 // Step 6: Ask-mode prompt decisionCOMMENT
LOW⚡…ckages/shared/src/agent/backend/internal/drivers/pi.ts40 // Step 1: Exchange GitHub OAuth token → Copilot API tokenCOMMENT
LOW⚡…ckages/shared/src/agent/backend/internal/drivers/pi.ts44 // Step 2: Extract base URL from tokenCOMMENT
LOW⚡…ckages/shared/src/agent/backend/internal/drivers/pi.ts52 // Step 3: GET /modelsCOMMENT
LOW…hared/src/agent/__tests__/claude-event-adapter.test.ts858 // Step 1: tool_start via stream eventCOMMENT
LOW…hared/src/agent/__tests__/claude-event-adapter.test.ts869 // Step 2: assistant message confirms tool (deduped)COMMENT
LOW…hared/src/agent/__tests__/claude-event-adapter.test.ts881 // Step 3: user message with tool resultCOMMENT
LOW⚡…ed/src/sources/__tests__/token-refresh-manager.test.ts569 // Step 1: getSourcesNeedingRefresh includes the expired sourceCOMMENT
LOW⚡…ed/src/sources/__tests__/token-refresh-manager.test.ts573 // Step 2: refreshSources refreshes and restores auth stateCOMMENT
LOW⚡…ed/src/sources/__tests__/token-refresh-manager.test.ts578 // Step 3: Verify auth state is restoredCOMMENT
LOWpackages/server-core/src/services/image-utils.ts128 // Step 1: Compute target dimensions if resize neededCOMMENT
LOWpackages/server-core/src/services/image-utils.ts140 // Step 2: Encode — try preferred format firstCOMMENT
LOWpackages/server-core/src/services/image-utils.ts176 // Step 5: Give upCOMMENT
LOWapps/electron/src/renderer/App.tsx1306 // Step 1: Store attachments and get persistent metadataCOMMENT
LOWapps/electron/src/renderer/App.tsx1348 // Step 2: Create processed attachments for ClaudeCOMMENT
LOWapps/electron/src/renderer/App.tsx1377 // Step 3: Extract badges from mentions (sources/skills) with embedded iconsCOMMENT
LOWapps/electron/src/renderer/App.tsx1419 // Step 5: Create user message with StoredAttachments (for UI display)COMMENT
LOWapps/electron/src/renderer/App.tsx1445 // Step 6: Send to Claude with processed attachments + stored attachments for persistenceCOMMENT
LOW⚡…/electron/src/main/__tests__/sessions-sanitize.test.ts176 // Step 1: badge substitution (as done in sessions.ts)COMMENT
LOW⚡…/electron/src/main/__tests__/sessions-sanitize.test.ts183 // Step 2: sanitize remaining mentionsCOMMENT
Structural Annotation Overuse51 hits · 99 pts
SeverityFileLineSnippetContext
LOW⚡scripts/build-server.ts813 // Step 1: CleanCOMMENT
LOW⚡scripts/build-server.ts820 // Step 2: Download Bun runtimeCOMMENT
LOW⚡scripts/build-server.ts824 // Step 3: Download uvCOMMENT
LOW⚡scripts/build-server.ts828 // Step 4: Build the Pi agent server subprocessCOMMENT
LOW⚡scripts/build-server.ts847 // Step 5: Assemble resourcesCOMMENT
LOW⚡scripts/build-server.ts851 // Step 6: Copy production node_modulesCOMMENT
LOW⚡scripts/build-server.ts855 // Step 7: Copy workspace packagesCOMMENT
LOW⚡scripts/build-server.ts860 // Step 8: Create entry scripts + Docker filesCOMMENT
LOWpackages/shared/src/auth/github-copilot.ts257 // Step 1: request a device + user code pairCOMMENT
LOWpackages/shared/src/auth/github-copilot.ts294 // Step 2: poll for the GitHub access token until authorized or expiredCOMMENT
LOW⚡packages/shared/src/auth/github-copilot.ts366 // Step 3: trade the GitHub token for Copilot API credentialsCOMMENT
LOW⚡packages/shared/src/auth/github-copilot.ts370 // Step 4: accept policies for gated models so they actually show up in theCOMMENT
LOW⚡packages/shared/src/utils/logo.ts350 // Step 1: Try full domain first (e.g., mail.google.com)COMMENT
LOW⚡packages/shared/src/utils/logo.ts358 // Step 2: Try root domain (e.g., google.com)COMMENT
LOW⚡packages/shared/src/utils/logo.ts364 // Step 3: Fall back to Google Favicon V2 API (uses full domain for better results)COMMENT
LOW⚡packages/shared/src/utils/binary-detection.ts227 // Step 1: Strip only CR/LF (standard base64 line wrapping per RFC 2045).COMMENT
LOW⚡packages/shared/src/utils/binary-detection.ts231 // Step 2: Strict charset — detect alphabet variant.COMMENT
LOW⚡packages/shared/src/utils/binary-detection.ts238 // Step 3: Normalize to standard alphabet for decodingCOMMENT
LOW⚡packages/shared/src/utils/binary-detection.ts243 // Step 4: Auto-pad to make length divisible by 4COMMENT
LOW⚡packages/shared/src/utils/binary-detection.ts248 // Step 5: DecodeCOMMENT
LOW⚡packages/shared/src/utils/binary-detection.ts257 // Step 6: Canonical roundtrip — re-encode and compare to padded input.COMMENT
LOW⚡packages/shared/src/utils/binary-detection.ts261 // Step 7: Binary-likeness check (unchanged)COMMENT
LOW⚡packages/shared/src/agent/mode-manager.ts1181 // Step 3: Use bash AST-based validationCOMMENT
LOW⚡packages/shared/src/agent/mode-manager.ts1190 // Step 3: Convert AST rejection reason to BashRejectionReasonCOMMENT
LOWpackages/shared/src/agent/mode-manager.ts1139 // Step 1: Check for dangerous control characters (before parsing)COMMENT
LOWpackages/shared/src/agent/mode-manager.ts1151 // Step 2: Determine if this is a PowerShell commandCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts180 // Step 1: Permission mode checkCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts257 // Step 2: Source blockingCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts324 // Step 3: Prerequisite checkCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts419 // Step 4: call_llm interceptionCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts447 // Step 5: Input transformsCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts747 // Step 6: Ask-mode prompt decisionCOMMENT
LOW⚡…ckages/shared/src/agent/backend/internal/drivers/pi.ts40 // Step 1: Exchange GitHub OAuth token → Copilot API tokenCOMMENT
LOW⚡…ckages/shared/src/agent/backend/internal/drivers/pi.ts44 // Step 2: Extract base URL from tokenCOMMENT
LOW⚡…ckages/shared/src/agent/backend/internal/drivers/pi.ts52 // Step 3: GET /modelsCOMMENT
LOW…hared/src/agent/__tests__/claude-event-adapter.test.ts858 // Step 1: tool_start via stream eventCOMMENT
LOW…hared/src/agent/__tests__/claude-event-adapter.test.ts869 // Step 2: assistant message confirms tool (deduped)COMMENT
LOW…hared/src/agent/__tests__/claude-event-adapter.test.ts881 // Step 3: user message with tool resultCOMMENT
LOW⚡…ed/src/sources/__tests__/token-refresh-manager.test.ts569 // Step 1: getSourcesNeedingRefresh includes the expired sourceCOMMENT
LOW⚡…ed/src/sources/__tests__/token-refresh-manager.test.ts573 // Step 2: refreshSources refreshes and restores auth stateCOMMENT
LOW⚡…ed/src/sources/__tests__/token-refresh-manager.test.ts578 // Step 3: Verify auth state is restoredCOMMENT
LOWpackages/server-core/src/services/image-utils.ts128 // Step 1: Compute target dimensions if resize neededCOMMENT
LOWpackages/server-core/src/services/image-utils.ts140 // Step 2: Encode — try preferred format firstCOMMENT
LOWpackages/server-core/src/services/image-utils.ts176 // Step 5: Give upCOMMENT
LOWapps/electron/src/renderer/App.tsx1306 // Step 1: Store attachments and get persistent metadataCOMMENT
LOWapps/electron/src/renderer/App.tsx1348 // Step 2: Create processed attachments for ClaudeCOMMENT
LOWapps/electron/src/renderer/App.tsx1377 // Step 3: Extract badges from mentions (sources/skills) with embedded iconsCOMMENT
LOWapps/electron/src/renderer/App.tsx1419 // Step 5: Create user message with StoredAttachments (for UI display)COMMENT
LOWapps/electron/src/renderer/App.tsx1445 // Step 6: Send to Claude with processed attachments + stored attachments for persistenceCOMMENT
LOW⚡…/electron/src/main/__tests__/sessions-sanitize.test.ts176 // Step 1: badge substitution (as done in sessions.ts)COMMENT
LOW⚡…/electron/src/main/__tests__/sessions-sanitize.test.ts183 // Step 2: sanitize remaining mentionsCOMMENT
Excessive Try-Catch Wrapping54 hits · 49 pts
SeverityFileLineSnippetContext
LOWapps/electron/resources/scripts/xlsx_tool.py177 except Exception as e:CODE
LOWapps/electron/resources/scripts/xlsx_tool.py232 except Exception as e:CODE
LOWapps/electron/resources/scripts/xlsx_tool.py250 except Exception:CODE
LOWapps/electron/resources/scripts/xlsx_tool.py272 except Exception as e:CODE
LOWapps/electron/resources/scripts/xlsx_tool.py309 except Exception as e:CODE
LOWapps/electron/resources/scripts/xlsx_tool.py369 except Exception as e:CODE
LOWapps/electron/resources/scripts/docx_tool.py152 except Exception as e:CODE
LOWapps/electron/resources/scripts/docx_tool.py204 except Exception as e:CODE
LOWapps/electron/resources/scripts/docx_tool.py284 except Exception as e:CODE
LOWapps/electron/resources/scripts/docx_tool.py322 except Exception as e:CODE
LOWapps/electron/resources/scripts/docx_tool.py384 except Exception as e:CODE
LOWapps/electron/resources/scripts/markitdown_cli.py116 except Exception:CODE
LOWapps/electron/resources/scripts/markitdown_cli.py126 except Exception as e:CODE
LOW⚡apps/electron/resources/scripts/pdf_tool.py698 except Exception as e:CODE
LOW⚡apps/electron/resources/scripts/pdf_tool.py969 except Exception as e:CODE
LOW⚡apps/electron/resources/scripts/pdf_tool.py1175 except Exception as e:CODE
LOWapps/electron/resources/scripts/pdf_tool.py452 except Exception as e:CODE
LOWapps/electron/resources/scripts/pdf_tool.py493 except Exception as e:CODE
LOWapps/electron/resources/scripts/pdf_tool.py549 except Exception as e:CODE
LOWapps/electron/resources/scripts/pdf_tool.py580 except Exception as e:CODE
LOWapps/electron/resources/scripts/pdf_tool.py614 except Exception as e:CODE
LOWapps/electron/resources/scripts/pdf_tool.py637 except Exception as e:CODE
LOWapps/electron/resources/scripts/pdf_tool.py674 except Exception as e:CODE
LOWapps/electron/resources/scripts/pdf_tool.py739 except Exception as e:CODE
LOWapps/electron/resources/scripts/pdf_tool.py781 except Exception as e:CODE
LOWapps/electron/resources/scripts/pdf_tool.py810 except Exception as e:CODE
LOWapps/electron/resources/scripts/pdf_tool.py842 except Exception as e:CODE
LOWapps/electron/resources/scripts/pdf_tool.py871 except Exception as e:CODE
LOWapps/electron/resources/scripts/pdf_tool.py913 except Exception as e:CODE
LOWapps/electron/resources/scripts/pdf_tool.py992 except Exception as e:CODE
LOWapps/electron/resources/scripts/pdf_tool.py1012 except Exception as e:CODE
LOWapps/electron/resources/scripts/pdf_tool.py1131 except Exception as e:CODE
LOWapps/electron/resources/scripts/pdf_tool.py1212 except Exception as e:CODE
LOWapps/electron/resources/scripts/pdf_tool.py1235 except Exception as e:CODE
LOWapps/electron/resources/scripts/pdf_tool.py1266 except Exception as e:CODE
LOWapps/electron/resources/scripts/pdf_tool.py1315 except Exception as e:CODE
LOWapps/electron/resources/scripts/doc_diff.py66 except Exception as e:CODE
LOWapps/electron/resources/scripts/doc_diff.py227 except Exception as e:CODE
LOWapps/electron/resources/scripts/ical_tool.py167 except Exception as e:CODE
LOWapps/electron/resources/scripts/ical_tool.py275 except Exception as e:CODE
LOWapps/electron/resources/scripts/ical_tool.py366 except Exception as e:CODE
LOWapps/electron/resources/scripts/img_tool.py125 except Exception as e:CODE
LOWapps/electron/resources/scripts/img_tool.py155 except Exception as e:CODE
LOWapps/electron/resources/scripts/img_tool.py172 except Exception as e:CODE
LOWapps/electron/resources/scripts/img_tool.py206 except Exception as e:CODE
LOWapps/electron/resources/scripts/img_tool.py243 except Exception:CODE
LOWapps/electron/resources/scripts/img_tool.py245 except Exception:CODE
LOWapps/electron/resources/scripts/img_tool.py257 except Exception as e:CODE
LOWapps/electron/resources/scripts/img_tool.py313 except Exception:CODE
LOWapps/electron/resources/scripts/img_tool.py327 except Exception as e:CODE
LOWapps/electron/resources/scripts/img_tool.py370 except Exception as e:CODE
LOWapps/electron/resources/scripts/pptx_tool.py109 except Exception as e:CODE
LOWapps/electron/resources/scripts/pptx_tool.py295 except Exception as e:CODE
LOWapps/electron/resources/scripts/pptx_tool.py358 except Exception as e:CODE
Over-Commented Block44 hits · 44 pts
SeverityFileLineSnippetContext
LOWbunfig.toml1preload = ["./packages/shared/src/unified-network-interceptor.ts"]COMMENT
LOWscripts/install-server.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/docker-smoke-test.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/electron-build-main.ts301 "--platform=node",COMMENT
LOW…es/ui/src/components/markdown/MarkdownMermaidBlock.tsx21//COMMENT
LOWpackages/ui/src/components/markdown/Markdown.tsx181 )COMMENT
LOWpackages/ui/src/components/markdown/table-export.ts101// ── XLSX Styles ──────────────────────────────────────────────────────────────COMMENT
LOWpackages/core/src/types/message.ts281 annotations?: AnnotationV1[];COMMENT
LOWpackages/shared/src/unified-network-interceptor.ts1001 // - index-dropping relays send argument-delta chunks without `tc.index`.COMMENT
LOWpackages/shared/src/agent/base-agent.ts201 protected pathProcessor: PathProcessor;COMMENT
LOWpackages/shared/src/agent/base-agent.ts221 // when a model directly calls an unknown tool on an inactive source.COMMENT
LOWpackages/shared/src/agent/tool-matching.ts281 // Detect background tasks/shells from results. Only the session's own agent: a subagent'sCOMMENT
LOWpackages/shared/src/agent/tool-matching.ts421 //COMMENT
LOWpackages/shared/src/agent/claude-agent.ts1201 // without the [1m] suffix): every call re-reads the whole context. Subagents inherit it.COMMENT
LOWpackages/shared/src/agent/claude-agent.ts1241 // - non-Claude models disable thinking entirelyCOMMENT
LOWpackages/shared/src/agent/claude-agent.ts1641 forkSession: true,COMMENT
LOWpackages/shared/src/agent/pi-agent.ts2241 images: images.length > 0 ? images : undefined,COMMENT
LOWpackages/shared/src/agent/backend/pi/event-adapter.ts121 // Track last usage for emitting with complete eventCOMMENT
LOWpackages/shared/src/agent/backend/pi/event-adapter.ts141 private fallbackTimerId: ReturnType<typeof setTimeout> | null = null;COMMENT
LOW…es/shared/src/agent/__tests__/pi-event-adapter.test.ts1201 expect(finalEvents[0].turnId).toMatch(/^pi-turn-1/);COMMENT
LOWpackages/pi-agent-server/src/index.ts621 // Build tools: coding tools + web tools wrapped with permission hooks + proxy tools.COMMENT
LOWpackages/pi-agent-server/src/index.ts641 };COMMENT
LOWpackages/pi-agent-server/src/index.ts1241 send({ type: 'event', event: { type: 'context_usage', ...payload } });COMMENT
LOWpackages/server-core/src/tasks/TaskRunner.ts141 /** Sum of each child's (input + output) tokens observed at completion. */COMMENT
LOW…er-core/src/sessions/sendmessage-oauth-refresh.test.ts1import { afterEach, beforeEach, describe, expect, it } from 'bun:test'COMMENT
LOW…r-core/src/sessions/refresh-connection-runtime.test.ts1import { afterEach, beforeEach, describe, expect, it, jest } from 'bun:test'COMMENT
LOWpackages/server-core/src/sessions/SessionManager.ts801 // Tasks Conductor: id of the run that spawned this child session (child nodes only)COMMENT
LOWpackages/server-core/src/sessions/SessionManager.ts901 authRetryAttempted?: booleanCOMMENT
LOWpackages/server-core/src/sessions/SessionManager.ts921 // ~/.claude/projects/{cwd-hash}/ directory to find the parent's session file.COMMENT
LOWpackages/server-core/src/sessions/SessionManager.ts6601 // `midStreamBehavior` (resolved via {@link resolveMidStreamBehavior},COMMENT
LOW…c/sessions/execute-prompt-automation-test-mode.test.ts1import { afterEach, beforeEach, describe, expect, it } from 'bun:test'COMMENT
LOWpackages/server-core/src/sources/build-servers.ts61 // API renew endpoint — non-OAuth token refreshCOMMENT
LOWpackages/server-core/src/handlers/rpc/tasks.ts261 //COMMENT
LOWpackages/server-core/src/handlers/rpc/sessions.ts201 return sessionManager.deleteSession(sessionId)COMMENT
LOWapps/webui/src/adapter/web-api.ts261 }COMMENT
LOWapps/electron/resources/scripts/pdf_tool.py1# /// scriptCOMMENT
LOWapps/electron/scripts/build-dmg.sh121cp "$TEMP_DIR/${BUN_DOWNLOAD}/bun" "$ELECTRON_DIR/vendor/bun/"COMMENT
LOWapps/electron/src/renderer/App.tsx841 // - During streaming (atom.isProcessing = true): Atom is source of truthCOMMENT
LOWapps/electron/src/renderer/main.tsx21// the language we just restored from localStorage. The main-process IPC handlerCOMMENT
LOW…s/electron/src/renderer/contexts/NavigationContext.tsx1241 navigate(routes.view.allSessions(sessionId))COMMENT
LOW…lectron/src/renderer/components/app-shell/AppShell.tsx1601 }COMMENT
LOW…ctron/src/renderer/event-processor/handlers/session.ts581 //COMMENT
LOWapps/electron/src/main/index.ts1// Load user's shell environment first (before other imports that may use env)COMMENT
LOWapps/electron/src/main/handlers/browser.ts181 }COMMENT
Synthetic Comment Markers4 hits · 30 pts
SeverityFileLineSnippetContext
HIGHpackages/ui/src/components/markdown/linkify.ts230 // (e.g., AI-generated `[commit](https://github.com/...)` → `\`commit\``)COMMENT
HIGHpackages/server-core/src/sessions/SessionManager.ts737 // Session name (user-defined or AI-generated)COMMENT
HIGHapps/electron/src/renderer/atoms/sessions.ts104 // Include plan messages as final responses (they're AI-generated content)COMMENT
HIGHapps/electron/src/renderer/utils/session.ts124 // Include plan messages as final responses (they're AI-generated content)COMMENT
Fake / Example Data24 hits · 24 pts
SeverityFileLineSnippetContext
LOWpackages/shared/src/projects/__tests__/storage.test.ts75 const body = 'TOP-OF-MEMORY ' + 'lorem ipsum dolor sit amet '.repeat(74) + ' BOTTOM-OF-MEMORY';CODE
LOWpackages/shared/src/projects/__tests__/storage.test.ts75 const body = 'TOP-OF-MEMORY ' + 'lorem ipsum dolor sit amet '.repeat(74) + ' BOTTOM-OF-MEMORY';CODE
LOW…ages/shared/src/utils/__tests__/large-response.test.ts72 const eightKTokenText = ('lorem ipsum dolor sit amet ').repeat(1185).slice(0, 32_000);CODE
LOW…ages/shared/src/utils/__tests__/large-response.test.ts72 const eightKTokenText = ('lorem ipsum dolor sit amet ').repeat(1185).slice(0, 32_000);CODE
LOW…ages/shared/src/utils/__tests__/large-response.test.ts138 const eightKTokenText = ('lorem ipsum dolor sit amet ').repeat(1185).slice(0, 32_000);CODE
LOW…ages/shared/src/utils/__tests__/large-response.test.ts138 const eightKTokenText = ('lorem ipsum dolor sit amet ').repeat(1185).slice(0, 32_000);CODE
LOW…ages/shared/src/utils/__tests__/large-response.test.ts239 ('Lorem ipsum dolor sit amet, consectetur adipiscing elit. ' +CODE
LOW…ages/shared/src/utils/__tests__/large-response.test.ts239 ('Lorem ipsum dolor sit amet, consectetur adipiscing elit. ' +CODE
LOW…kages/shared/src/agent/__tests__/browser-tools.test.ts535 expect(result.content[0].text).toContain('Filled element @e2 with "user@example.com"')CODE
LOW…red/src/agent/__tests__/browser-tool-redaction.test.ts40 'Filled element @e1 with "user@example.com"',CODE
LOW…/shared/src/sources/__tests__/multi-header-e2e.test.ts235 'X-Auth-Email': 'user@example.com',CODE
LOW…/shared/src/sources/__tests__/multi-header-e2e.test.ts242 expect(headers['X-Auth-Email']).toBe('user@example.com');CODE
LOW…shared/src/sources/__tests__/multi-header-auth.test.ts192 'X-Auth-Email': 'user@example.com',CODE
LOW…shared/src/sources/__tests__/multi-header-auth.test.ts203 expect(headers['X-Auth-Email']).toBe('user@example.com');CODE
LOW…r-core/src/sessions/browser-password-redaction.test.ts43 await result(claudeResult('Filled element @e1 with "user@example.com"\nFilled password field @e2 (7 characters)\nCliCODE
LOW…r-core/src/sessions/browser-password-redaction.test.ts65 await result(claudeResult('Filled element @e1 with "user@example.com"'))CODE
LOWapps/electron/resources/docs/data-tables.md35 { "name": "Acme Corp", "revenue": 4200000, "growth": 0.152, "active": true, "tier": "Enterprise" },CODE
LOWapps/electron/resources/docs/data-tables.md65| `text` | Any string | Plain text | `"John Doe"` | John Doe |CODE
LOW…tron/src/renderer/playground/registry/edit-popover.tsx427 name: 'placeholder',CODE
LOW…lectron/src/renderer/playground/registry/turn-card.tsx1683 name: 'Acme Corp',CODE
LOW…electron/src/renderer/playground/registry/messages.tsx473 email: 'user@example.com',CODE
LOW…electron/src/renderer/playground/registry/messages.tsx860 email: 'user@example.com',CODE
LOWapps/electron/src/renderer/playground/registry/chat.tsx1414 name: 'placeholder',CODE
LOW…n/src/renderer/utils/__tests__/auth-validation.test.ts229 expect(validateBasicAuthCredentials('user@example.com', 'pass', true)).toBe(true)CODE
Deep Nesting26 hits · 23 pts
SeverityFileLineSnippetContext
LOWapps/electron/resources/scripts/xlsx_tool.py69CODE
LOWapps/electron/resources/scripts/xlsx_tool.py124CODE
LOWapps/electron/resources/scripts/xlsx_tool.py188CODE
LOWapps/electron/resources/scripts/xlsx_tool.py320CODE
LOWapps/electron/resources/scripts/docx_tool.py88CODE
LOWapps/electron/resources/scripts/docx_tool.py161CODE
LOWapps/electron/resources/scripts/docx_tool.py295CODE
LOWapps/electron/resources/scripts/docx_tool.py358CODE
LOWapps/electron/resources/scripts/pdf_tool.py71CODE
LOWapps/electron/resources/scripts/pdf_tool.py465CODE
LOWapps/electron/resources/scripts/pdf_tool.py647CODE
LOWapps/electron/resources/scripts/pdf_tool.py684CODE
LOWapps/electron/resources/scripts/pdf_tool.py1022CODE
LOWapps/electron/resources/scripts/pdf_tool.py1244CODE
LOWapps/electron/resources/scripts/doc_diff.py86CODE
LOWapps/electron/resources/scripts/doc_diff.py125CODE
LOWapps/electron/resources/scripts/ical_tool.py123CODE
LOWapps/electron/resources/scripts/ical_tool.py176CODE
LOWapps/electron/resources/scripts/ical_tool.py286CODE
LOWapps/electron/resources/scripts/img_tool.py82CODE
LOWapps/electron/resources/scripts/img_tool.py214CODE
LOWapps/electron/resources/scripts/img_tool.py270CODE
LOWapps/electron/resources/scripts/pptx_tool.py44CODE
LOWapps/electron/resources/scripts/pptx_tool.py165CODE
LOWapps/electron/resources/scripts/pptx_tool.py251CODE
LOWapps/electron/resources/scripts/pptx_tool.py305CODE
Empty Error Handlers4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHapps/electron/resources/scripts/docx_tool.py372except (ValueError, IndexError):CODE
HIGHapps/electron/resources/scripts/markitdown_cli.py116except Exception:CODE
HIGHapps/electron/resources/scripts/pdf_tool.py160except ValueError:CODE
HIGHapps/electron/resources/scripts/img_tool.py245except Exception:CODE
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICAL…ectron/src/main/__tests__/browser-pane-manager.test.ts810 const sendCallsAfterShow = instance.window.webContents.send.mock.calls.slice(sendsBeforeShow)CODE
CRITICAL…ectron/src/main/__tests__/browser-pane-manager.test.ts841 const sendCallsAfterFinishLoad = instance.window.webContents.send.mock.calls.slice(sendsBeforeFinishLoad)CODE
Modern AI Meta-Vocabulary5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMpackages/messaging-gateway/src/pairing.test.ts70 // Internal access is ugly but cheaper than a fake-clock scaffold.COMMENT
MEDIUM…ron/src/transport/__tests__/channel-map-parity.test.ts39// Compile-time guardrails: if these fail, CHANNEL_MAP and ElectronAPI drifted.COMMENT
MEDIUMapps/electron/src/shared/route-parser.ts209 // Automations navigator - supports type filters (scheduled, event, agentic)COMMENT
MEDIUMapps/electron/src/shared/route-parser.ts215 // Check for type filter: automations/scheduled, automations/event, automations/agenticCOMMENT
MEDIUMapps/electron/src/shared/route-parser.ts328 // Build base from filter (automations, automations/scheduled, automations/event, automations/agentic)COMMENT
Magic Placeholder Names2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHapps/electron/resources/docs/sources.md390 "BRAVE_API_KEY": "your-api-key"CODE
HIGH…lectron/src/renderer/playground/registry/turn-card.tsx1752Authorization: Bearer YOUR_API_KEYCODE
Unused Imports10 hits · 10 pts
SeverityFileLineSnippetContext
LOW…ectron/resources/scripts/tests/test_pptx_tool_smoke.py1CODE
LOW…electron/resources/scripts/tests/_tool_test_harness.py1CODE
LOW…ectron/resources/scripts/tests/test_docx_tool_smoke.py1CODE
LOW…lectron/resources/scripts/tests/test_doc_diff_smoke.py1CODE
LOW…ctron/resources/scripts/tests/test_markitdown_smoke.py1CODE
LOW…lectron/resources/scripts/tests/test_pdf_tool_smoke.py8CODE
LOW…lectron/resources/scripts/tests/test_pdf_tool_smoke.py15CODE
LOW…ectron/resources/scripts/tests/test_xlsx_tool_smoke.py1CODE
LOW…ectron/resources/scripts/tests/test_ical_tool_smoke.py1CODE
LOW…lectron/resources/scripts/tests/test_img_tool_smoke.py1CODE
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMpackages/shared/src/agent/mode-manager.ts1932 // Check plans folder with robust path containment (prevents sibling-prefix bypasses)COMMENT
MEDIUMpackages/shared/src/agent/mode-manager.ts1938 // Check data folder with robust path containmentCOMMENT
MEDIUMapps/electron/src/renderer/App.tsx847 // This is simpler and more robust than checking event types - we just askCOMMENT
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWscripts/docker-smoke-test.sh53 # Check if container is still runningCOMMENT
LOWscripts/install-app.sh39# Check if yq is available (optional, for YAML parsing)COMMENT
LOWscripts/install-app.sh88 # Check if we're entering a new file entryCOMMENT
LOWscripts/install-app.sh118 # Check if we're entering a new file entryCOMMENT
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…lectron/src/renderer/playground/registry/turn-card.tsx1345 elif model_type == "gradient_boosting":CODE
Example Usage Blocks2 hits · 4 pts
SeverityFileLineSnippetContext
LOWscripts/install-server.sh4# Usage:COMMENT
LOW⚡scripts/docker-smoke-test.sh8# Usage:COMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMapps/electron/resources/scripts/pdf_tool.py897 # Create a single-page image PDF and merge into outputCOMMENT
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOW…ed/src/utils/__tests__/binary-detection-base64.test.ts26 function processData(items: string[]): Map<string, number> {CODE
LOWpackages/server-core/src/webui/node-adapter.ts33async function handleRequest(CODE