Repository Analysis

lukilabs/craft-agents-oss

3.3 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of lukilabs/craft-agents-oss, a TypeScript project with 6,944 GitHub stars. SynthScan v2.0 examined 396,455 lines of code across 1696 source files, recording 869 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 3.3 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

3.3
Adjusted Score
3.3
Raw Score
100%
Time Factor
2026-07-10
Last Push
6.9K
Stars
TypeScript
Language
396.5K
Lines of Code
1.7K
Files
869
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 2HIGH 7MEDIUM 134LOW 726

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 869 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers474 hits · 476 pts
SeverityFileLineSnippetContext
LOWscripts/electron-dev.ts53async function ensureBundledUvForCurrentPlatform(): Promise<void> {CODE
LOWpackages/ui/src/components/ui/StyledDropdown.tsx29export 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.tsx140function computeEditWriteDiffStats(CODE
LOWpackages/ui/src/components/chat/TurnCard.tsx624function extractActionFromDisplayName(iconName: string, llmName: string): string {CODE
LOWpackages/ui/src/components/chat/TurnCard.tsx1500function createAnnotationIndexBadge(index: number): HTMLSpanElement {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.ts39export function resolveMarkdownLinkTarget(target: string): ResolvedMarkdownLinkTarget {CODE
LOWpackages/ui/src/components/markdown/link-target.ts57export function classifyMarkdownLinkTarget(target: string): 'file' | 'url' {CODE
LOW…/ui/src/components/markdown/MarkdownDatatableBlock.tsx161function computeNumericGranularities(values: number[], type: 'number' | 'currency' | 'percent'): GranularityOption[] {CODE
LOW…/ui/src/components/markdown/MarkdownDatatableBlock.tsx211function computeGranularityOptions(data: DatatableData): Map<string, GranularityOption[]> {CODE
LOW…ages/ui/src/components/markdown/CollapsibleSection.tsx9function AnimatedCollapsibleContent({ isOpen, children }: { isOpen: boolean; children: React.ReactNode }) {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.tsx195export 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
414 more matches not shown…
Decorative Section Separators125 hits · 404 pts
SeverityFileLineSnippetContext
MEDIUMscripts/install-server.sh25# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/install-server.sh27# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/install-server.sh38# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/install-server.sh40# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/install-server.sh50# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/install-server.sh52# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/install-server.sh64# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/install-server.sh66# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/install-server.sh71# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/install-server.sh73# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/docker-smoke-test.sh2# =============================================================================COMMENT
MEDIUMscripts/docker-smoke-test.sh15# =============================================================================COMMENT
MEDIUMpackages/ui/src/components/ui/StyledDropdown.tsx97// ── Content ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/ui/src/components/ui/StyledDropdown.tsx135// ── Item ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/ui/src/components/ui/StyledDropdown.tsx164// ── Separator ────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/ui/src/components/ui/StyledDropdown.tsx178// ── Sub-menu trigger ─────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/ui/src/components/ui/StyledDropdown.tsx201// ── Sub-menu content ─────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/ui/src/components/ui/StyledDropdown.tsx231// ── Shortcut ─────────────────────────────────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownJsonBlock.tsx24// ── Themes (same as JSONPreviewOverlay) ────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownJsonBlock.tsx40// ── Deep parse helper (same as JSONPreviewOverlay) ─────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownJsonBlock.tsx77// ── Error boundary ────────────────────────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownJsonBlock.tsx107// ── Helpers ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownJsonBlock.tsx114// ── Main component ────────────────────────────────────────────────────────COMMENT
MEDIUM…/ui/src/components/markdown/MarkdownDatatableBlock.tsx50// ── Types ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…/ui/src/components/markdown/MarkdownDatatableBlock.tsx74// ── Cell formatting ──────────────────────────────────────────────────────────COMMENT
MEDIUM…/ui/src/components/markdown/MarkdownDatatableBlock.tsx118// ── Sort icon ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…/ui/src/components/markdown/MarkdownDatatableBlock.tsx137// ── Grouping granularity ─────────────────────────────────────────────────COMMENT
MEDIUM…/ui/src/components/markdown/MarkdownDatatableBlock.tsx272// ── Error boundary ───────────────────────────────────────────────────────────COMMENT
MEDIUM…/ui/src/components/markdown/MarkdownDatatableBlock.tsx289// ── Main component ───────────────────────────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownDiffBlock.tsx25// ── Custom element + theme registration (same as ShikiDiffViewer) ──────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownDiffBlock.tsx42// ── Helpers ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownDiffBlock.tsx53// ── Error boundary ────────────────────────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownDiffBlock.tsx83// ── Main component ────────────────────────────────────────────────────────COMMENT
MEDIUM…i/src/components/markdown/MarkdownSpreadsheetBlock.tsx35// ── Types ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…i/src/components/markdown/MarkdownSpreadsheetBlock.tsx58// ── Cell formatting ──────────────────────────────────────────────────────────COMMENT
MEDIUM…i/src/components/markdown/MarkdownSpreadsheetBlock.tsx96// ── Error boundary ───────────────────────────────────────────────────────────COMMENT
MEDIUM…i/src/components/markdown/MarkdownSpreadsheetBlock.tsx113// ── Main component ───────────────────────────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownHtmlBlock.tsx40// ── Types ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownHtmlBlock.tsx53// ── Error boundary ───────────────────────────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownHtmlBlock.tsx70// ── HTML preprocessing ───────────────────────────────────────────────────────COMMENT
MEDIUM…kages/ui/src/components/markdown/MarkdownHtmlBlock.tsx89// ── 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.tsx46// ── Types ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ckages/ui/src/components/markdown/MarkdownPdfBlock.tsx59// ── Error boundary ───────────────────────────────────────────────────────────COMMENT
MEDIUM…ckages/ui/src/components/markdown/MarkdownPdfBlock.tsx76// ── Main component ───────────────────────────────────────────────────────────COMMENT
MEDIUM…/ui/src/components/overlay/MultiDiffPreviewOverlay.tsx164 // ── Fade-in reveal ──────────────────────────────────────────────────COMMENT
MEDIUMpackages/shared/src/agent/claude-agent.ts518 // ── WS2 persistent streaming-input query state (flag ON only) ─────────────COMMENT
MEDIUMpackages/shared/src/agent/claude-agent.ts1511 // ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMpackages/shared/src/agent/claude-agent.ts1513 // ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMpackages/shared/src/agent/claude-agent.ts2143 // ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/shared/src/agent/claude-agent.ts2150 // ─────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ckages/shared/src/agent/backend/internal/drivers/pi.ts6// ── Copilot model types ────────────────────────────────────────────────COMMENT
MEDIUM…ckages/shared/src/agent/backend/internal/drivers/pi.ts15// ── Direct HTTP approach ─────────────────────────────────────────────COMMENT
MEDIUM…ckages/shared/src/agent/backend/internal/drivers/pi.ts156 // ── Tier 1: Direct HTTP API ──────────────────────────────────────COMMENT
MEDIUM…ckages/shared/src/agent/backend/internal/drivers/pi.ts173 // ── Tier 2: Pi SDK static catalog (last resort) ──────────────────COMMENT
MEDIUMpackages/shared/src/prompts/system.ts76// ── Context file cache ──────────────────────────────────────────────────COMMENT
65 more matches not shown…
Verbosity Indicators47 hits · 92 pts
SeverityFileLineSnippetContext
LOWscripts/build-server.ts830 // Step 1: CleanCOMMENT
LOWscripts/build-server.ts837 // Step 2: Download Bun runtimeCOMMENT
LOWscripts/build-server.ts841 // Step 3: Download uvCOMMENT
LOWscripts/build-server.ts845 // Step 4: Build MCP serversCOMMENT
LOWscripts/build-server.ts864 // Step 5: Assemble resourcesCOMMENT
LOWscripts/build-server.ts868 // Step 6: Copy production node_modulesCOMMENT
LOWscripts/build-server.ts872 // Step 7: Copy workspace packagesCOMMENT
LOWscripts/build-server.ts877 // Step 8: Create entry scripts + Docker filesCOMMENT
LOWpackages/shared/src/utils/logo.ts351 // Step 1: Try full domain first (e.g., mail.google.com)COMMENT
LOWpackages/shared/src/utils/logo.ts359 // Step 2: Try root domain (e.g., google.com)COMMENT
LOWpackages/shared/src/utils/logo.ts365 // Step 3: Fall back to Google Favicon V2 API (uses full domain for better results)COMMENT
LOWpackages/shared/src/utils/binary-detection.ts227 // Step 1: Strip only CR/LF (standard base64 line wrapping per RFC 2045).COMMENT
LOWpackages/shared/src/utils/binary-detection.ts231 // Step 2: Strict charset — detect alphabet variant.COMMENT
LOWpackages/shared/src/utils/binary-detection.ts238 // Step 3: Normalize to standard alphabet for decodingCOMMENT
LOWpackages/shared/src/utils/binary-detection.ts243 // Step 4: Auto-pad to make length divisible by 4COMMENT
LOWpackages/shared/src/utils/binary-detection.ts248 // Step 5: DecodeCOMMENT
LOWpackages/shared/src/utils/binary-detection.ts257 // Step 6: Canonical roundtrip — re-encode and compare to padded input.COMMENT
LOWpackages/shared/src/utils/binary-detection.ts261 // Step 7: Binary-likeness check (unchanged)COMMENT
LOWpackages/shared/src/agent/mode-manager.ts1128 // Step 3: Use bash AST-based validationCOMMENT
LOWpackages/shared/src/agent/mode-manager.ts1137 // Step 3: Convert AST rejection reason to BashRejectionReasonCOMMENT
LOWpackages/shared/src/agent/mode-manager.ts1086 // Step 1: Check for dangerous control characters (before parsing)COMMENT
LOWpackages/shared/src/agent/mode-manager.ts1098 // Step 2: Determine if this is a PowerShell commandCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts173 // Step 1: Permission mode checkCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts250 // Step 2: Source blockingCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts328 // Step 3: Prerequisite checkCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts384 // Step 4: call_llm interceptionCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts412 // Step 5: Input transformsCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts682 // Step 6: Ask-mode prompt decisionCOMMENT
LOW…ckages/shared/src/agent/backend/internal/drivers/pi.ts48 // Step 1: Exchange GitHub OAuth token → Copilot API tokenCOMMENT
LOW…ckages/shared/src/agent/backend/internal/drivers/pi.ts52 // Step 2: Extract base URL from tokenCOMMENT
LOW…ckages/shared/src/agent/backend/internal/drivers/pi.ts60 // Step 3: GET /modelsCOMMENT
LOW…hared/src/agent/__tests__/claude-event-adapter.test.ts763 // Step 1: tool_start via stream eventCOMMENT
LOW…hared/src/agent/__tests__/claude-event-adapter.test.ts774 // Step 2: assistant message confirms tool (deduped)COMMENT
LOW…hared/src/agent/__tests__/claude-event-adapter.test.ts786 // 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.tsx1273 // Step 1: Store attachments and get persistent metadataCOMMENT
LOWapps/electron/src/renderer/App.tsx1315 // Step 2: Create processed attachments for ClaudeCOMMENT
LOWapps/electron/src/renderer/App.tsx1341 // Step 3: Extract badges from mentions (sources/skills) with embedded iconsCOMMENT
LOWapps/electron/src/renderer/App.tsx1383 // Step 5: Create user message with StoredAttachments (for UI display)COMMENT
LOWapps/electron/src/renderer/App.tsx1409 // 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 Overuse47 hits · 92 pts
SeverityFileLineSnippetContext
LOWscripts/build-server.ts830 // Step 1: CleanCOMMENT
LOWscripts/build-server.ts837 // Step 2: Download Bun runtimeCOMMENT
LOWscripts/build-server.ts841 // Step 3: Download uvCOMMENT
LOWscripts/build-server.ts845 // Step 4: Build MCP serversCOMMENT
LOWscripts/build-server.ts864 // Step 5: Assemble resourcesCOMMENT
LOWscripts/build-server.ts868 // Step 6: Copy production node_modulesCOMMENT
LOWscripts/build-server.ts872 // Step 7: Copy workspace packagesCOMMENT
LOWscripts/build-server.ts877 // Step 8: Create entry scripts + Docker filesCOMMENT
LOWpackages/shared/src/utils/logo.ts351 // Step 1: Try full domain first (e.g., mail.google.com)COMMENT
LOWpackages/shared/src/utils/logo.ts359 // Step 2: Try root domain (e.g., google.com)COMMENT
LOWpackages/shared/src/utils/logo.ts365 // Step 3: Fall back to Google Favicon V2 API (uses full domain for better results)COMMENT
LOWpackages/shared/src/utils/binary-detection.ts227 // Step 1: Strip only CR/LF (standard base64 line wrapping per RFC 2045).COMMENT
LOWpackages/shared/src/utils/binary-detection.ts231 // Step 2: Strict charset — detect alphabet variant.COMMENT
LOWpackages/shared/src/utils/binary-detection.ts238 // Step 3: Normalize to standard alphabet for decodingCOMMENT
LOWpackages/shared/src/utils/binary-detection.ts243 // Step 4: Auto-pad to make length divisible by 4COMMENT
LOWpackages/shared/src/utils/binary-detection.ts248 // Step 5: DecodeCOMMENT
LOWpackages/shared/src/utils/binary-detection.ts257 // Step 6: Canonical roundtrip — re-encode and compare to padded input.COMMENT
LOWpackages/shared/src/utils/binary-detection.ts261 // Step 7: Binary-likeness check (unchanged)COMMENT
LOWpackages/shared/src/agent/mode-manager.ts1128 // Step 3: Use bash AST-based validationCOMMENT
LOWpackages/shared/src/agent/mode-manager.ts1137 // Step 3: Convert AST rejection reason to BashRejectionReasonCOMMENT
LOWpackages/shared/src/agent/mode-manager.ts1086 // Step 1: Check for dangerous control characters (before parsing)COMMENT
LOWpackages/shared/src/agent/mode-manager.ts1098 // Step 2: Determine if this is a PowerShell commandCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts173 // Step 1: Permission mode checkCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts250 // Step 2: Source blockingCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts328 // Step 3: Prerequisite checkCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts384 // Step 4: call_llm interceptionCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts412 // Step 5: Input transformsCOMMENT
LOW…c/agent/core/__tests__/pre-tool-use-checks.isolated.ts682 // Step 6: Ask-mode prompt decisionCOMMENT
LOW…ckages/shared/src/agent/backend/internal/drivers/pi.ts48 // Step 1: Exchange GitHub OAuth token → Copilot API tokenCOMMENT
LOW…ckages/shared/src/agent/backend/internal/drivers/pi.ts52 // Step 2: Extract base URL from tokenCOMMENT
LOW…ckages/shared/src/agent/backend/internal/drivers/pi.ts60 // Step 3: GET /modelsCOMMENT
LOW…hared/src/agent/__tests__/claude-event-adapter.test.ts763 // Step 1: tool_start via stream eventCOMMENT
LOW…hared/src/agent/__tests__/claude-event-adapter.test.ts774 // Step 2: assistant message confirms tool (deduped)COMMENT
LOW…hared/src/agent/__tests__/claude-event-adapter.test.ts786 // 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.tsx1273 // Step 1: Store attachments and get persistent metadataCOMMENT
LOWapps/electron/src/renderer/App.tsx1315 // Step 2: Create processed attachments for ClaudeCOMMENT
LOWapps/electron/src/renderer/App.tsx1341 // Step 3: Extract badges from mentions (sources/skills) with embedded iconsCOMMENT
LOWapps/electron/src/renderer/App.tsx1383 // Step 5: Create user message with StoredAttachments (for UI display)COMMENT
LOWapps/electron/src/renderer/App.tsx1409 // 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 · 50 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
LOWapps/electron/resources/scripts/pdf_tool.py698 except Exception as e:CODE
LOWapps/electron/resources/scripts/pdf_tool.py969 except Exception as e:CODE
LOWapps/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.py119 except Exception as e:CODE
LOWapps/electron/resources/scripts/img_tool.py149 except Exception as e:CODE
LOWapps/electron/resources/scripts/img_tool.py166 except Exception as e:CODE
LOWapps/electron/resources/scripts/img_tool.py200 except Exception as e:CODE
LOWapps/electron/resources/scripts/img_tool.py237 except Exception:CODE
LOWapps/electron/resources/scripts/img_tool.py239 except Exception:CODE
LOWapps/electron/resources/scripts/img_tool.py251 except Exception as e:CODE
LOWapps/electron/resources/scripts/img_tool.py307 except Exception:CODE
LOWapps/electron/resources/scripts/img_tool.py321 except Exception as e:CODE
LOWapps/electron/resources/scripts/img_tool.py364 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 Block38 hits · 37 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
LOWpackages/ui/src/components/chat/TurnCard.tsx2921 return nullCOMMENT
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 isStreaming?: boolean;COMMENT
LOWpackages/shared/src/unified-network-interceptor.ts981 }> | undefined;COMMENT
LOWpackages/shared/src/agent/mode-manager.ts1001 // Double-quoted string: fix the critical \" issue for Windows paths.COMMENT
LOWpackages/shared/src/agent/base-agent.ts201 // ============================================================COMMENT
LOWpackages/shared/src/agent/tool-matching.ts281 // Detect background tasks/shells from resultsCOMMENT
LOWpackages/shared/src/agent/tool-matching.ts421 // 1. Explicit `run_in_background: true` in the tool input.COMMENT
LOWpackages/shared/src/agent/claude-agent.ts1581 disallowedTools,COMMENT
LOWpackages/shared/src/agent/backend/pi/event-adapter.ts81 // Mini model ID for call_llm display default (#596).COMMENT
LOWpackages/pi-agent-server/src/index.ts1121 // Log API errors for debugging and attach provider-native turn anchor for branch cutoffs.COMMENT
LOWpackages/pi-agent-server/src/index.ts1341COMMENT
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.ts401 return createTokenGetter(manager, source)COMMENT
LOWpackages/server-core/src/sessions/SessionManager.ts881 // Model to use for this session (overrides global config if set)COMMENT
LOWpackages/server-core/src/sessions/SessionManager.ts921 // Map of shellId -> command for killing background shellsCOMMENT
LOWpackages/server-core/src/sessions/SessionManager.ts5721 // If currently processing, behavior depends on the connection'sCOMMENT
LOW…c/sessions/execute-prompt-automation-test-mode.test.ts1import { afterEach, beforeEach, describe, expect, it } from 'bun:test'COMMENT
LOWpackages/server-core/src/handlers/rpc/tasks.ts201 ...(spec.defaults?.permissionMode ? { permissionMode: spec.defaults.permissionMode } : {}),COMMENT
LOWpackages/server-core/src/handlers/rpc/sessions.ts201COMMENT
LOWapps/webui/src/adapter/web-api.ts241 // The OAuth provider redirects through the relay to our server's /api/oauth/callback,COMMENT
LOWapps/electron/electron-builder.yml61# and a per-platform optional dependency (`-darwin-arm64`, `-darwin-x64`, etc.)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.tsx221 } else if (event.type === 'complete' || event.type === 'interrupted' || event.type === 'error') {COMMENT
LOWapps/electron/src/renderer/App.tsx821 // Listen for session events - uses centralized event processor for consistent state transitionsCOMMENT
LOW…lectron/src/renderer/components/app-shell/AppShell.tsx1861 }COMMENT
LOW…rc/renderer/components/app-shell/kanban/TaskEditor.tsx521 // Create mode seeds the project from the board's active filter (so a new card staysCOMMENT
LOW…ctron/src/renderer/event-processor/handlers/session.ts541 }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/index.ts61// Initialize i18n for main process (menus, dialogs, etc.)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.ts812 // Session name (user-defined or AI-generated)COMMENT
HIGHapps/electron/src/renderer/atoms/sessions.ts102 // Include plan messages as final responses (they're AI-generated content)COMMENT
HIGHapps/electron/src/renderer/utils/session.ts123 // Include plan messages as final responses (they're AI-generated content)COMMENT
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.py76CODE
LOWapps/electron/resources/scripts/img_tool.py208CODE
LOWapps/electron/resources/scripts/img_tool.py264CODE
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
Fake / Example Data20 hits · 20 pts
SeverityFileLineSnippetContext
LOWpackages/shared/src/projects/__tests__/storage.test.ts74 const body = 'TOP-OF-MEMORY ' + 'lorem ipsum dolor sit amet '.repeat(74) + ' BOTTOM-OF-MEMORY';CODE
LOWpackages/shared/src/projects/__tests__/storage.test.ts74 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…/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
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.tsx426 name: 'placeholder',CODE
LOW…lectron/src/renderer/playground/registry/turn-card.tsx1678 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.tsx1289 name: 'placeholder',CODE
LOW…n/src/renderer/utils/__tests__/auth-validation.test.ts229 expect(validateBasicAuthCredentials('user@example.com', 'pass', true)).toBe(true)CODE
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICAL…ectron/src/main/__tests__/browser-pane-manager.test.ts776 const sendCallsAfterShow = instance.window.webContents.send.mock.calls.slice(sendsBeforeShow)CODE
CRITICAL…ectron/src/main/__tests__/browser-pane-manager.test.ts807 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.ts36// Compile-time guardrails: if these fail, CHANNEL_MAP and ElectronAPI drifted.COMMENT
MEDIUMapps/electron/src/shared/route-parser.ts195 // Automations navigator - supports type filters (scheduled, event, agentic)COMMENT
MEDIUMapps/electron/src/shared/route-parser.ts201 // Check for type filter: automations/scheduled, automations/event, automations/agenticCOMMENT
MEDIUMapps/electron/src/shared/route-parser.ts314 // Build base from filter (automations, automations/scheduled, automations/event, automations/agentic)COMMENT
Magic Placeholder Names2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHapps/electron/resources/docs/sources.md393 "BRAVE_API_KEY": "your-api-key"CODE
HIGH…lectron/src/renderer/playground/registry/turn-card.tsx1747Authorization: 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.ts1877 // Check plans folder with robust path containment (prevents sibling-prefix bypasses)COMMENT
MEDIUMpackages/shared/src/agent/mode-manager.ts1883 // Check data folder with robust path containmentCOMMENT
MEDIUMapps/electron/src/renderer/App.tsx830 // 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.tsx1340 elif model_type == "gradient_boosting":CODE
Overly Generic Function Names4 hits · 4 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
LOWapps/electron/resources/bridge-mcp-server/index.js2721 function getData($data, { dataLevel, dataNames, dataPathArr }) {CODE
LOWapps/electron/resources/bridge-mcp-server/index.js9034 function getData($data, { dataLevel, dataNames, dataPathArr }) {CODE
Example Usage Blocks2 hits · 4 pts
SeverityFileLineSnippetContext
LOWscripts/install-server.sh4# Usage:COMMENT
LOWscripts/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