Windows alt-tab on macOS
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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 362 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 24 finding(s).
Which changes need focused human review? 380 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | alt-tab-macos-Bridging-Header.h | 1 | #import "AppCenterApplication.h" | COMMENT |
| LOW | .periphery.yml | 1 | project: alt-tab-macos.xcodeproj | COMMENT |
| LOW | scripts/copy_sparkle_helpers.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | scripts/copy_sparkle_helpers.sh | 101 | fi | COMMENT |
| LOW | scripts/assets/pdf_textconv.sh | 1 | #!/bin/sh | COMMENT |
| LOW | scripts/assets/encode_heic.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | scripts/assets/pdf_diff_intellij.sh | 1 | #!/bin/sh | COMMENT |
| LOW | src/main.swift | 21 | signal(SIGTRAP) { s in | COMMENT |
| LOW | src/App.swift | 641 | // Same reasoning as the queues above: a preference the user never changed lives only in the | COMMENT |
| LOW | src/preferences/PreferencesPersistenceProbe.swift | 1 | import Foundation | COMMENT |
| LOW | src/preferences/PreferencesPersistenceCheck.swift | 1 | import AppKit | COMMENT |
| LOW | src/preferences/PreferencesMigrationsTests.swift | 1 | import Cocoa | COMMENT |
| LOW | src/preferences/PreferencesMigrationsTests.swift | 321 | let raw = try XCTUnwrap(defaults.string(forKey: "exceptions"), "expected an 'exceptions' JSON string") | COMMENT |
| LOW | src/preferences/settings-window/SettingsWindow.swift | 341 | // Leading pad is the title-to-divider gap; trailing pad is the card-outer-edge-to-window | COMMENT |
| LOW | …/preferences/settings-window/SettingsSearchIndex.swift | 1 | import Cocoa | COMMENT |
| LOW | …ces/settings-window/SettingsSearchHighlightTests.swift | 1 | import XCTest | COMMENT |
| LOW | …ferences/settings-window/SettingsSearchHighlight.swift | 61 | guard !textField.stringValue.isEmpty else { return nil } | COMMENT |
| LOW | …ces/settings-window/SettingsSectionSearchContent.swift | 1 | import Cocoa | COMMENT |
| LOW | …ettings-window/SettingsSectionSearchContentTests.swift | 1 | import XCTest | COMMENT |
| LOW | src/preferences/settings-window/SidebarListTests.swift | 1 | import XCTest | COMMENT |
| LOW | src/preferences/settings-window/SidebarList.swift | 201 | } | COMMENT |
| LOW | …-window/tabs/controls/OverrideClickResolverTests.swift | 1 | import XCTest | COMMENT |
| LOW | …ttings-window/tabs/controls/NativeHotkeyResolver.swift | 1 | import Carbon.HIToolbox.Events | COMMENT |
| LOW | …tings-window/tabs/controls/OverrideClickResolver.swift | 1 | import Foundation | COMMENT |
| LOW | …rences/settings-window/tabs/controls/ControlsTab.swift | 1 | import Cocoa | COMMENT |
| LOW | …ces/settings-window/tabs/controls/ShortcutEditor.swift | 1 | import Cocoa | COMMENT |
| LOW | …ces/settings-window/tabs/controls/ShortcutEditor.swift | 81 | tabControl.selectedSegment = ShortcutEditor.selectedTabSegment | COMMENT |
| LOW | src/window-tracking/AxTitleNotificationPolicy.swift | 1 | import Cocoa | COMMENT |
| LOW | src/window-tracking/AxTitleNotificationPolicy.swift | 21 | /// Recording a descendant's `kAXTitle` as its window's is what listed a Chromium window as "Chromium" | COMMENT |
| LOW | src/window-tracking/AxObserverRegistry.swift | 1 | import Cocoa | COMMENT |
| LOW | src/window-tracking/AxObserverRegistry.swift | 21 | static let shared = AxObserverRegistry() | COMMENT |
| LOW | src/window-tracking/AxObserverRegistry.swift | 461 | /// | COMMENT |
| LOW | src/window-tracking/AxObserverRegistry.swift | 541 | /// identity rather than a guess from titles or geometry — and it is readable at the instant the OS | COMMENT |
| LOW | src/window-tracking/AxObserverRegistry.swift | 681 | return (pid_t(Int32(bitPattern: UInt32(packed >> 32))), UInt64(packed & 0xFFFF_FFFF)) | COMMENT |
| LOW | src/window-tracking/AttentionDriver.swift | 21 | COMMENT | |
| LOW | src/window-tracking/AttentionModel.swift | 1 | import Foundation | COMMENT |
| LOW | src/window-tracking/AttentionEngine.swift | 1 | import Cocoa | COMMENT |
| LOW | src/window-tracking/AttentionEngine.swift | 101 | } | COMMENT |
| LOW | src/window-tracking/TrackingTelemetryRecorder.swift | 1 | import Cocoa | COMMENT |
| LOW | src/window-tracking/AxObserverHealth.swift | 41 | /// registered separately and its refusal is that notification's business alone: an app that does not | COMMENT |
| LOW | src/window-tracking/AxObserverHealth.swift | 61 | /// or as a background tab. Measured at ~175ms on 11 real closes across 6 apps, where WindowServer 816 | COMMENT |
| LOW | src/window-tracking/TrackingTelemetry.swift | 1 | import Foundation | COMMENT |
| LOW | src/window-tracking/AttentionSettlePolicy.swift | 1 | import Foundation | COMMENT |
| LOW | src/macos/PermissionCalloutResolver.swift | 1 | import Foundation | COMMENT |
| LOW | src/macos/PermissionCalloutResolver.swift | 41 | COMMENT | |
| LOW | src/macos/CGSCallScheduler.swift | 1 | import Cocoa | COMMENT |
| LOW | src/macos/CGSCallScheduler.swift | 41 | /// Which of `wids` still exist (CGWindowListCreateDescriptionFromArray — a targeted lookup of exactly | COMMENT |
| LOW | src/macos/PermissionCalloutResolverTests.swift | 1 | import XCTest | COMMENT |
| LOW | src/macos/AXCallScheduler.swift | 1 | import Foundation | COMMENT |
| LOW | src/macos/AXCallScheduler.swift | 61 | private init() { | COMMENT |
| LOW | src/macos/api-wrappers/SkyLight.framework.swift | 21 | COMMENT | |
| LOW | src/macos/api-wrappers/SkyLight.framework.swift | 121 | /// Sets the front process for a SINGLE Space, from a normal connection (yabai uses it in | COMMENT |
| LOW | src/macos/api-wrappers/SkyLight.framework.swift | 141 | /// and would otherwise SIGABRT on out-of-bounds heap garbage | COMMENT |
| LOW | src/macos/api-wrappers/SkyLight.framework.swift | 161 | /// rapid switching grew the target's top-left corner out to the screen's visible corner, bottom-right | COMMENT |
| LOW | src/macos/api-wrappers/SkyLight.framework.swift | 201 | // cross-checked against yabai (which uses the same `SLSRequestNotificationsForWindows` mechanism and the same | COMMENT |
| LOW | src/macos/api-wrappers/SkyLight.framework.swift | 221 | /// REPLACES this connection's watch list — it does not add to it. Always pass every wid you still want to | COMMENT |
| LOW | src/macos/api-wrappers/SkyLight.framework.swift | 281 | // returns the window frame in top-left-origin global coordinates — same system as kAXPosition/kAXSize and | COMMENT |
| LOW | src/macos/api-wrappers/AXUIElement.swift | 21 | /// retries it); every other error is permanent for this call (a dead element, an attribute the app does | COMMENT |
| LOW | src/macos/api-wrappers/AXUIElement.swift | 61 | // temporary issue; subscription may succeed if retried | COMMENT |
| LOW | src/macos/api-wrappers/AXUIElement.swift | 221 | COMMENT | |
| 271 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | scripts/assets/optimize_figma_pdf.py | 72 | except Exception: | CODE |
| HIGH | scripts/assets/optimize_figma_pdf.py | 93 | except Exception: | CODE |
| HIGH | scripts/assets/optimize_figma_pdf.py | 308 | except Exception: | CODE |
| HIGH | scripts/assets/optimize_figma_pdf.py | 346 | except Exception: | CODE |
| HIGH | scripts/assets/optimize_figma_pdf.py | 125 | except Exception: | CODE |
| HIGH | scripts/assets/optimize_figma_pdf.py | 269 | except Exception: | CODE |
| HIGH | scripts/assets/optimize_figma_pdf.py | 302 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .claude/skills/assets-optimization/SKILL.md | 21 | ## Step 1: Inventory | COMMENT |
| LOW | .claude/skills/assets-optimization/SKILL.md | 50 | ## Step 2: Vector PDFs — Figma exports | COMMENT |
| LOW | .claude/skills/assets-optimization/SKILL.md | 85 | ## Step 3: SF Symbols via font subset | COMMENT |
| LOW | .claude/skills/assets-optimization/SKILL.md | 113 | ## Step 4: Raster → HEIC at q50 | COMMENT |
| LOW | .claude/skills/assets-optimization/SKILL.md | 156 | ## Step 5: pbxproj registration | COMMENT |
| LOW | .claude/skills/assets-optimization/SKILL.md | 169 | ## Step 6: Verify | COMMENT |
| LOW⚡ | src/switcher/state/SelectionResolverTests.swift | 210 | // Step 1: user picks "b" at slot 1. | COMMENT |
| LOW⚡ | src/switcher/state/SelectionResolverTests.swift | 215 | // Step 2: c steals focus. List reorders: c=0, a=1, b=2. Target now at index 2. | COMMENT |
| LOW⚡ | src/switcher/state/SelectionResolverTests.swift | 220 | // Step 3: a steals focus back. List reorders: a=0, c=1, b=2. Target stays at index 2. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/install_swiftformat.js | 64 | function handleAppleSiliconSymlink() { | CODE |
| LOW⚡ | scripts/assets/test_compile_illustrations.py | 14 | def test_rejects_unsupported_effect_instead_of_dropping_it(self): | CODE |
| LOW⚡ | scripts/assets/test_compile_illustrations.py | 18 | def test_rejects_external_bitmap(self): | CODE |
| LOW⚡ | scripts/assets/test_compile_illustrations.py | 22 | def test_rejects_recursive_reference(self): | CODE |
| LOW⚡ | scripts/assets/test_compile_illustrations.py | 26 | def test_inherited_fill_survives_use_and_identical_nodes_are_shared(self): | CODE |
| LOW⚡ | scripts/assets/test_compile_illustrations.py | 33 | def test_rejects_duplicate_ids(self): | CODE |
| LOW⚡ | scripts/assets/test_compile_illustrations.py | 37 | def test_localized_highlight_keeps_metadata_without_english_preview_overlay(self): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/assets/optimize_figma_pdf.py | 62 | except Exception: | CODE |
| LOW | scripts/assets/optimize_figma_pdf.py | 72 | except Exception: | CODE |
| LOW | scripts/assets/optimize_figma_pdf.py | 93 | except Exception: | CODE |
| LOW | scripts/assets/optimize_figma_pdf.py | 112 | except Exception: | CODE |
| LOW | scripts/assets/optimize_figma_pdf.py | 125 | except Exception: | CODE |
| LOW | scripts/assets/optimize_figma_pdf.py | 186 | except Exception: | CODE |
| LOW | scripts/assets/optimize_figma_pdf.py | 269 | except Exception: | CODE |
| LOW | scripts/assets/optimize_figma_pdf.py | 302 | except Exception: | CODE |
| LOW | scripts/assets/optimize_figma_pdf.py | 308 | except Exception: | CODE |
| LOW | scripts/assets/optimize_figma_pdf.py | 346 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | src/switcher/state/TestReducerRunnerTests.swift | 694 | XCTAssertEqual(harness.state.groups.representativeByGroup.values.sorted(), [20]) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/l10n/validate_localizations.py | 33 | CODE | |
| LOW | scripts/assets/compile_illustrations.py | 7 | CODE | |
| LOW | scripts/assets/compile_illustrations.py | 24 | CODE | |
| LOW | scripts/assets/compile_illustrations.py | 116 | CODE | |
| LOW | scripts/assets/compile_illustrations.py | 182 | CODE | |
| LOW | scripts/assets/optimize_figma_pdf.py | 76 | CODE | |
| LOW | scripts/assets/optimize_figma_pdf.py | 227 | CODE | |
| LOW | scripts/assets/optimize_figma_pdf.py | 337 | CODE | |
| LOW | scripts/assets/optimize_figma_pdf.py | 103 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | src/switcher/state/SelectionResolverTests.swift | 210 | // Step 1: user picks "b" at slot 1. | COMMENT |
| LOW⚡ | src/switcher/state/SelectionResolverTests.swift | 215 | // Step 2: c steals focus. List reorders: c=0, a=1, b=2. Target now at index 2. | COMMENT |
| LOW⚡ | src/switcher/state/SelectionResolverTests.swift | 220 | // Step 3: a steals focus back. List reorders: a=0, c=1, b=2. Target stays at index 2. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/events/PreferencesEvents.swift | 7 | /// should subscribe directly to its own preference; this file is a transition scaffold. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/assets/encode_heic.sh | 9 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/build_readme_svg.py | 7 | that hands GitHub visitors off to https://alt-tab.app/. To stay seamless across | STRING |