AI Slop Code Risk Monitor

lwouis/alt-tab-macos

SlopCodeMonitor badge for lwouis/alt-tab-macos Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Windows alt-tab on macOS

4.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for lwouis/alt-tab-macos, a Swift project with 16,462 GitHub stars. SynthScan examined 100,482 lines of code across 463 source files, recording 380 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 4.1 (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.

4.1
Adjusted Signal
4.1
Raw Pattern Score
100%
Time Factor
2026-10-23
Last Push
16.5K
Stars
Swift
Language
100.5K
Lines of Code
463
Files
380
Pattern Hits
2026-10-31
Scan Date
0.02
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 16.2/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.5/100 · LOW

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

Agent Over-Engineering Ratio 2.7/100 · LOW

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

PR Review Velocity Impact 19.2/100 · LOW

Which changes need focused human review? 380 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 1HIGH 7MEDIUM 2LOW 370

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 380 distinct pattern matches across 11 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.

Over-Commented Block331 hits · 310 pts
SeverityFileLineSnippetContext
LOWalt-tab-macos-Bridging-Header.h1#import "AppCenterApplication.h"COMMENT
LOW.periphery.yml1project: alt-tab-macos.xcodeprojCOMMENT
LOWscripts/copy_sparkle_helpers.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/copy_sparkle_helpers.sh101fiCOMMENT
LOWscripts/assets/pdf_textconv.sh1#!/bin/shCOMMENT
LOWscripts/assets/encode_heic.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/assets/pdf_diff_intellij.sh1#!/bin/shCOMMENT
LOWsrc/main.swift21signal(SIGTRAP) { s inCOMMENT
LOWsrc/App.swift641 // Same reasoning as the queues above: a preference the user never changed lives only in theCOMMENT
LOWsrc/preferences/PreferencesPersistenceProbe.swift1import FoundationCOMMENT
LOWsrc/preferences/PreferencesPersistenceCheck.swift1import AppKitCOMMENT
LOWsrc/preferences/PreferencesMigrationsTests.swift1import CocoaCOMMENT
LOWsrc/preferences/PreferencesMigrationsTests.swift321 let raw = try XCTUnwrap(defaults.string(forKey: "exceptions"), "expected an 'exceptions' JSON string")COMMENT
LOWsrc/preferences/settings-window/SettingsWindow.swift341 // Leading pad is the title-to-divider gap; trailing pad is the card-outer-edge-to-windowCOMMENT
LOW…/preferences/settings-window/SettingsSearchIndex.swift1import CocoaCOMMENT
LOW…ces/settings-window/SettingsSearchHighlightTests.swift1import XCTestCOMMENT
LOW…ferences/settings-window/SettingsSearchHighlight.swift61 guard !textField.stringValue.isEmpty else { return nil }COMMENT
LOW…ces/settings-window/SettingsSectionSearchContent.swift1import CocoaCOMMENT
LOW…ettings-window/SettingsSectionSearchContentTests.swift1import XCTestCOMMENT
LOWsrc/preferences/settings-window/SidebarListTests.swift1import XCTestCOMMENT
LOWsrc/preferences/settings-window/SidebarList.swift201 }COMMENT
LOW…-window/tabs/controls/OverrideClickResolverTests.swift1import XCTestCOMMENT
LOW…ttings-window/tabs/controls/NativeHotkeyResolver.swift1import Carbon.HIToolbox.EventsCOMMENT
LOW…tings-window/tabs/controls/OverrideClickResolver.swift1import FoundationCOMMENT
LOW…rences/settings-window/tabs/controls/ControlsTab.swift1import CocoaCOMMENT
LOW…ces/settings-window/tabs/controls/ShortcutEditor.swift1import CocoaCOMMENT
LOW…ces/settings-window/tabs/controls/ShortcutEditor.swift81 tabControl.selectedSegment = ShortcutEditor.selectedTabSegmentCOMMENT
LOWsrc/window-tracking/AxTitleNotificationPolicy.swift1import CocoaCOMMENT
LOWsrc/window-tracking/AxTitleNotificationPolicy.swift21/// Recording a descendant's `kAXTitle` as its window's is what listed a Chromium window as "Chromium"COMMENT
LOWsrc/window-tracking/AxObserverRegistry.swift1import CocoaCOMMENT
LOWsrc/window-tracking/AxObserverRegistry.swift21 static let shared = AxObserverRegistry()COMMENT
LOWsrc/window-tracking/AxObserverRegistry.swift461 ///COMMENT
LOWsrc/window-tracking/AxObserverRegistry.swift541 /// identity rather than a guess from titles or geometry — and it is readable at the instant the OSCOMMENT
LOWsrc/window-tracking/AxObserverRegistry.swift681 return (pid_t(Int32(bitPattern: UInt32(packed >> 32))), UInt64(packed & 0xFFFF_FFFF))COMMENT
LOWsrc/window-tracking/AttentionDriver.swift21COMMENT
LOWsrc/window-tracking/AttentionModel.swift1import FoundationCOMMENT
LOWsrc/window-tracking/AttentionEngine.swift1import CocoaCOMMENT
LOWsrc/window-tracking/AttentionEngine.swift101 }COMMENT
LOWsrc/window-tracking/TrackingTelemetryRecorder.swift1import CocoaCOMMENT
LOWsrc/window-tracking/AxObserverHealth.swift41 /// registered separately and its refusal is that notification's business alone: an app that does notCOMMENT
LOWsrc/window-tracking/AxObserverHealth.swift61 /// or as a background tab. Measured at ~175ms on 11 real closes across 6 apps, where WindowServer 816COMMENT
LOWsrc/window-tracking/TrackingTelemetry.swift1import FoundationCOMMENT
LOWsrc/window-tracking/AttentionSettlePolicy.swift1import FoundationCOMMENT
LOWsrc/macos/PermissionCalloutResolver.swift1import FoundationCOMMENT
LOWsrc/macos/PermissionCalloutResolver.swift41COMMENT
LOWsrc/macos/CGSCallScheduler.swift1import CocoaCOMMENT
LOWsrc/macos/CGSCallScheduler.swift41 /// Which of `wids` still exist (CGWindowListCreateDescriptionFromArray — a targeted lookup of exactlyCOMMENT
LOWsrc/macos/PermissionCalloutResolverTests.swift1import XCTestCOMMENT
LOWsrc/macos/AXCallScheduler.swift1import FoundationCOMMENT
LOWsrc/macos/AXCallScheduler.swift61 private init() {COMMENT
LOWsrc/macos/api-wrappers/SkyLight.framework.swift21COMMENT
LOWsrc/macos/api-wrappers/SkyLight.framework.swift121/// Sets the front process for a SINGLE Space, from a normal connection (yabai uses it inCOMMENT
LOWsrc/macos/api-wrappers/SkyLight.framework.swift141 /// and would otherwise SIGABRT on out-of-bounds heap garbageCOMMENT
LOWsrc/macos/api-wrappers/SkyLight.framework.swift161 /// rapid switching grew the target's top-left corner out to the screen's visible corner, bottom-rightCOMMENT
LOWsrc/macos/api-wrappers/SkyLight.framework.swift201// cross-checked against yabai (which uses the same `SLSRequestNotificationsForWindows` mechanism and the sameCOMMENT
LOWsrc/macos/api-wrappers/SkyLight.framework.swift221/// REPLACES this connection's watch list — it does not add to it. Always pass every wid you still want toCOMMENT
LOWsrc/macos/api-wrappers/SkyLight.framework.swift281// returns the window frame in top-left-origin global coordinates — same system as kAXPosition/kAXSize andCOMMENT
LOWsrc/macos/api-wrappers/AXUIElement.swift21 /// retries it); every other error is permanent for this call (a dead element, an attribute the app doesCOMMENT
LOWsrc/macos/api-wrappers/AXUIElement.swift61 // temporary issue; subscription may succeed if retriedCOMMENT
LOWsrc/macos/api-wrappers/AXUIElement.swift221COMMENT
271 more matches not shown…
Empty Error Handlers7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHscripts/assets/optimize_figma_pdf.py72except Exception:CODE
HIGHscripts/assets/optimize_figma_pdf.py93except Exception:CODE
HIGHscripts/assets/optimize_figma_pdf.py308except Exception:CODE
HIGHscripts/assets/optimize_figma_pdf.py346except Exception:CODE
HIGHscripts/assets/optimize_figma_pdf.py125except Exception:CODE
HIGHscripts/assets/optimize_figma_pdf.py269except Exception:CODE
HIGHscripts/assets/optimize_figma_pdf.py302except Exception:CODE
Structural Annotation Overuse9 hits · 16 pts
SeverityFileLineSnippetContext
LOW.claude/skills/assets-optimization/SKILL.md21## Step 1: InventoryCOMMENT
LOW.claude/skills/assets-optimization/SKILL.md50## Step 2: Vector PDFs — Figma exportsCOMMENT
LOW.claude/skills/assets-optimization/SKILL.md85## Step 3: SF Symbols via font subsetCOMMENT
LOW.claude/skills/assets-optimization/SKILL.md113## Step 4: Raster → HEIC at q50COMMENT
LOW.claude/skills/assets-optimization/SKILL.md156## Step 5: pbxproj registrationCOMMENT
LOW.claude/skills/assets-optimization/SKILL.md169## Step 6: VerifyCOMMENT
LOW⚡src/switcher/state/SelectionResolverTests.swift210 // Step 1: user picks "b" at slot 1.COMMENT
LOW⚡src/switcher/state/SelectionResolverTests.swift215 // Step 2: c steals focus. List reorders: c=0, a=1, b=2. Target now at index 2.COMMENT
LOW⚡src/switcher/state/SelectionResolverTests.swift220 // Step 3: a steals focus back. List reorders: a=0, c=1, b=2. Target stays at index 2.COMMENT
Hyper-Verbose Identifiers7 hits · 10 pts
SeverityFileLineSnippetContext
LOWscripts/install_swiftformat.js64function handleAppleSiliconSymlink() {CODE
LOW⚡scripts/assets/test_compile_illustrations.py14 def test_rejects_unsupported_effect_instead_of_dropping_it(self):CODE
LOW⚡scripts/assets/test_compile_illustrations.py18 def test_rejects_external_bitmap(self):CODE
LOW⚡scripts/assets/test_compile_illustrations.py22 def test_rejects_recursive_reference(self):CODE
LOW⚡scripts/assets/test_compile_illustrations.py26 def test_inherited_fill_survives_use_and_identical_nodes_are_shared(self):CODE
LOW⚡scripts/assets/test_compile_illustrations.py33 def test_rejects_duplicate_ids(self):CODE
LOW⚡scripts/assets/test_compile_illustrations.py37 def test_localized_highlight_keeps_metadata_without_english_preview_overlay(self):CODE
Excessive Try-Catch Wrapping10 hits · 10 pts
SeverityFileLineSnippetContext
LOWscripts/assets/optimize_figma_pdf.py62 except Exception:CODE
LOWscripts/assets/optimize_figma_pdf.py72 except Exception:CODE
LOWscripts/assets/optimize_figma_pdf.py93 except Exception:CODE
LOWscripts/assets/optimize_figma_pdf.py112 except Exception:CODE
LOWscripts/assets/optimize_figma_pdf.py125 except Exception:CODE
LOWscripts/assets/optimize_figma_pdf.py186 except Exception:CODE
LOWscripts/assets/optimize_figma_pdf.py269 except Exception:CODE
LOWscripts/assets/optimize_figma_pdf.py302 except Exception:CODE
LOWscripts/assets/optimize_figma_pdf.py308 except Exception:CODE
LOWscripts/assets/optimize_figma_pdf.py346 except Exception:CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALsrc/switcher/state/TestReducerRunnerTests.swift694 XCTAssertEqual(harness.state.groups.representativeByGroup.values.sorted(), [20])CODE
Deep Nesting9 hits · 8 pts
SeverityFileLineSnippetContext
LOWscripts/l10n/validate_localizations.py33CODE
LOWscripts/assets/compile_illustrations.py7CODE
LOWscripts/assets/compile_illustrations.py24CODE
LOWscripts/assets/compile_illustrations.py116CODE
LOWscripts/assets/compile_illustrations.py182CODE
LOWscripts/assets/optimize_figma_pdf.py76CODE
LOWscripts/assets/optimize_figma_pdf.py227CODE
LOWscripts/assets/optimize_figma_pdf.py337CODE
LOWscripts/assets/optimize_figma_pdf.py103CODE
Verbosity Indicators3 hits · 7 pts
SeverityFileLineSnippetContext
LOW⚡src/switcher/state/SelectionResolverTests.swift210 // Step 1: user picks "b" at slot 1.COMMENT
LOW⚡src/switcher/state/SelectionResolverTests.swift215 // Step 2: c steals focus. List reorders: c=0, a=1, b=2. Target now at index 2.COMMENT
LOW⚡src/switcher/state/SelectionResolverTests.swift220 // Step 3: a steals focus back. List reorders: a=0, c=1, b=2. Target stays at index 2.COMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsrc/events/PreferencesEvents.swift7/// should subscribe directly to its own preference; this file is a transition scaffold.COMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/assets/encode_heic.sh9# Usage:COMMENT
AI Slop Vocabulary1 hit · 1 pts
SeverityFileLineSnippetContext
MEDIUMscripts/build_readme_svg.py7that hands GitHub visitors off to https://alt-tab.app/. To stay seamless acrossSTRING