🐹 Clean, uninstall, analyze, optimize, and monitor your Mac. Free open-source CLI, plus a native Mac app.
This report presents the forensic synthetic code analysis of tw93/Mole, a Shell project with 65,185 GitHub stars. SynthScan v2.0 examined 75,115 lines of code across 164 source files, recording 154 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 4.0 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).
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.
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.
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.
The scanner identified 154 distinct pattern matches across 6 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/setup-quick-launchers.sh | 73 | # ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scripts/setup-quick-launchers.sh | 75 | # ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | lib/core/base.sh | 1314 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | lib/core/base.sh | 1316 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 20 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 23 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 77 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 79 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 96 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 98 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 126 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 128 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 145 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 147 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 428 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 430 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 481 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 483 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 567 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 569 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 743 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 745 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 884 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 886 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 1161 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 1163 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/log.sh | 20 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/log.sh | 22 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/log.sh | 36 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/log.sh | 38 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/log.sh | 86 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/log.sh | 88 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/log.sh | 199 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/log.sh | 201 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/log.sh | 394 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/log.sh | 396 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/log.sh | 441 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/log.sh | 443 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/sudo.sh | 7 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/sudo.sh | 9 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/sudo.sh | 235 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/sudo.sh | 237 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 71 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 73 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 100 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 102 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 1007 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 1009 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 1777 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 1779 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 2694 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 2696 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 3230 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 3232 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/timeout.sh | 13 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/timeout.sh | 15 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/timeout.sh | 66 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/timeout.sh | 68 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/timeout.sh | 319 | # ======================================================================== | COMMENT |
| MEDIUM | lib/core/timeout.sh | 321 | # ======================================================================== | COMMENT |
| 2 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bin/touchid.sh | 30 | # Check if Touch ID is already configured | COMMENT |
| LOW | bin/touchid.sh | 44 | # Check if system supports Touch ID | COMMENT |
| LOW | bin/touchid.sh | 46 | # Check if bioutil exists and has Touch ID capability | COMMENT |
| LOW | bin/touchid.sh | 107 | # Check if we should use sudo_local (Sonoma+) | COMMENT |
| LOW | bin/touchid.sh | 109 | # Check if already correctly configured in sudo_local | COMMENT |
| LOW | bin/touchid.sh | 125 | # Check if configured in sudo (Legacy) | COMMENT |
| LOW | bin/touchid.sh | 172 | # Check if already configured (Legacy) | COMMENT |
| LOW | bin/completion.sh | 224 | # Check if already installed and normalize to latest line | COMMENT |
| LOW⚡ | lib/core/base.sh | 1318 | # Check if terminal supports ANSI escape codes | COMMENT |
| LOW⚡ | lib/core/base.sh | 1326 | # Check if running in interactive terminal | COMMENT |
| LOW | lib/core/base.sh | 1299 | # Check if enough time has elapsed | COMMENT |
| LOW | lib/core/app_protection.sh | 68 | # Check if bundle ID matches pattern (glob support) | COMMENT |
| LOW | lib/core/app_protection.sh | 119 | # Check if application is a protected system component | COMMENT |
| LOW | lib/core/app_protection.sh | 172 | # Check if application data should be protected during cleanup | COMMENT |
| LOW | lib/core/app_protection.sh | 347 | # Check if a path is protected from deletion | COMMENT |
| LOW | lib/core/app_protection.sh | 587 | # Check if a path is protected by whitelist patterns | COMMENT |
| LOW | lib/core/app_protection.sh | 632 | # Check if target is a parent directory of a whitelisted path | COMMENT |
| LOW | lib/core/app_protection.sh | 639 | # Check if target is a child of a whitelisted directory path | COMMENT |
| LOW | lib/core/app_protection.sh | 2161 | # Check if process is running using exact match only | COMMENT |
| LOW | lib/core/ui.sh | 533 | # Check if terminal has Full Disk Access | COMMENT |
| LOW | lib/core/sudo.sh | 35 | # Check if lid is closed; ignore pipeline failures so set -e doesn't exit | COMMENT |
| LOW | lib/core/sudo.sh | 79 | # Check if already have sudo access | COMMENT |
| LOW | lib/core/sudo.sh | 130 | # Check if in clamshell mode - if yes, skip Touch ID entirely | COMMENT |
| LOW | lib/core/sudo.sh | 281 | # Check if sudo session is active | COMMENT |
| LOW | lib/core/sudo.sh | 340 | # Check if already established | COMMENT |
| LOW | lib/core/sudo.sh | 373 | # Check if already established | COMMENT |
| LOW | lib/core/file_ops.sh | 994 | # Check if path is protected (keychains, system settings, etc) | COMMENT |
| LOW | lib/core/file_ops.sh | 1129 | # Check if path exists | COMMENT |
| LOW | lib/core/file_ops.sh | 1345 | # Check if it's a permission error | COMMENT |
| LOW | lib/core/timeout.sh | 339 | # Check if process still exists | COMMENT |
| LOW | lib/core/timeout.sh | 383 | # Check if command was killed by timeout (exit codes 143=SIGTERM, 137=SIGKILL) | COMMENT |
| LOW | lib/optimize/tasks.sh | 506 | # Check if database has any entries worth cleaning. | COMMENT |
| LOW | lib/optimize/tasks.sh | 1333 | # Check if periodic command exists (removed in macOS 26+) | COMMENT |
| LOW | lib/optimize/tasks.sh | 1728 | # Check if a login item name corresponds to an installed app. | COMMENT |
| LOW | lib/clean/project.sh | 39 | # Check if a directory contains projects (directly or in subdirectories). | COMMENT |
| LOW⚡ | lib/clean/project.sh | 412 | # Check if parent directory has a .csproj/.fsproj/.vbproj file | COMMENT |
| LOW⚡ | lib/clean/project.sh | 417 | # Check if bin directory contains Debug/ or Release/ subdirectories | COMMENT |
| LOW⚡ | lib/clean/project.sh | 423 | # Check if a vendor directory should be protected from purge | COMMENT |
| LOW | lib/clean/project.sh | 453 | # Check if an artifact should be protected from purge | COMMENT |
| LOW | lib/clean/project.sh | 552 | # Check if we should abort (scanning file removed by Ctrl+C) | COMMENT |
| LOW | lib/clean/project.sh | 1987 | # Check if there are other items with same artifact name AND same project | COMMENT |
| LOW | lib/clean/brew.sh | 206 | # Check if Homebrew cache is whitelisted | COMMENT |
| LOW | lib/uninstall/brew.sh | 32 | # Check if Homebrew is installed and accessible | COMMENT |
| LOW | lib/uninstall/brew.sh | 80 | # Check if path is inside Caskroom. Quote literals so Homebrew bottle | COMMENT |
| LOW | lib/manage/purge_paths.sh | 66 | # Check if using custom config | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | cmd/analyze/scanner.go | 81 | action() | COMMENT |
| LOW | cmd/analyze/scanner.go | 101 | // low (NumCPU capped at 4) because each du process is itself heavily | COMMENT |
| LOW | cmd/analyze/delete.go | 21 | ) | COMMENT |
| LOW | cmd/analyze/format.go | 121 | COMMENT | |
| LOW | cmd/analyze/cache.go | 281 | COMMENT | |
| LOW | cmd/analyze/constants.go | 41 | cacheDirReadBatch = 512 | COMMENT |
| LOW | bin/clean.sh | 541 | # IMPORTANT: This file overrides start_section / end_section from | COMMENT |
| LOW | tests/timeout_tty_background_fixture.sh | 1 | #!/bin/bash | COMMENT |
| LOW | scripts/audit_bundle_drift.sh | 1 | #!/bin/bash | COMMENT |
| LOW | scripts/setup-quick-launchers.sh | 61 | #!/bin/bash | COMMENT |
| LOW | lib/core/base.sh | 1161 | # ============================================================================ | COMMENT |
| LOW | lib/core/base.sh | 1181 | # spinner on close. | COMMENT |
| LOW | lib/core/base.sh | 1361 | esac | COMMENT |
| LOW | lib/core/base.sh | 1381 | debug_log "Deferred cleanup while active: $1" | COMMENT |
| LOW | lib/core/app_protection.sh | 241 | return 1 | COMMENT |
| LOW | lib/core/app_protection.sh | 1041 | ) | COMMENT |
| LOW | lib/core/app_protection.sh | 1401 | fi | COMMENT |
| LOW | lib/core/ui.sh | 121 | # Optimization: If total width <= max_width, return original string (checked above) | COMMENT |
| LOW | lib/core/timeouts.sh | 1 | #!/bin/bash | COMMENT |
| LOW | lib/core/timeouts.sh | 21 | # DISK_VERIFY Filesystem-level verify/repair operations. ~30s. | COMMENT |
| LOW | lib/core/timeouts.sh | 41 | # `find /private/var/folders -maxdepth 8` GPU-cache scan in | COMMENT |
| LOW | lib/core/app_protection_data.sh | 621 | # Generic app-name words that collide with many unrelated LaunchAgents/Daemons. | COMMENT |
| LOW | lib/core/file_ops.sh | 641 | return 0 | COMMENT |
| LOW | lib/core/file_ops.sh | 1781 | # Route a deletion through either macOS Trash or permanent rm, while logging | COMMENT |
| LOW | lib/core/file_ops.sh | 2201 | end tell | COMMENT |
| LOW | lib/core/file_ops.sh | 2861 | COMMENT | |
| LOW | lib/core/timeout.sh | 1 | #!/bin/bash | COMMENT |
| LOW | lib/core/timeout.sh | 21 | # brew install coreutils | COMMENT |
| LOW | lib/core/timeout.sh | 121 | # Returns: | COMMENT |
| LOW | lib/core/timeout.sh | 141 | run_with_timeout() { | COMMENT |
| LOW | lib/clean/app_caches.sh | 361 | } | COMMENT |
| LOW | lib/clean/app_caches.sh | 801 | # JianyingPro (剪映专业版 / CapCut CN, com.lemon.lvpro) generated cache | COMMENT |
| LOW | lib/clean/dev.sh | 781 | # ~/Library/Caches/pypoetry is Poetry's macOS cache root, and its | COMMENT |
| LOW | lib/clean/dev.sh | 1181 | # validated absolute path (mise and other version managers relocate these). | COMMENT |
| LOW | lib/clean/dev.sh | 4181 | local physical_before="" | COMMENT |
| LOW | lib/clean/dev.sh | 5021 | # contain prompts and transcript events. Neither is default-cleanable. | COMMENT |
| LOW | lib/clean/apps.sh | 241 | local bundle_id="" | COMMENT |
| LOW | lib/clean/apps.sh | 941 | local -a orphaned_target_ids=() | COMMENT |
| LOW | lib/clean/apps.sh | 961 | "org.wireshark.ChmodBPF:/Applications/Wireshark.app" | COMMENT |
| LOW | lib/uninstall/batch.sh | 661 | # this check (the scan dedupe collapses same-basename rows and keeps the live | COMMENT |
| LOW | lib/uninstall/batch.sh | 1441 | while IFS= read -r survivor_name; do | COMMENT |
| LOW | lib/uninstall/batch.sh | 1541 | # discovery_app_name is empty only in the sibling-guard name-collision | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/core/ui.sh | 107 | # we cannot just use the total width formula on the whole string. | COMMENT |
| MEDIUM | lib/core/sudo.sh | 328 | # Use the robust implementation from common.sh | COMMENT |
| MEDIUM | lib/uninstall/batch.sh | 1507 | # not by the app bundle's owner. Do not elevate solely because a | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | bin/touchid.sh | 134 | # Create the file | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/audit_function_duplication.py | 25 | CODE |