🐹 Clean, uninstall, analyze, optimize, and monitor your Mac from the terminal.
This report presents the forensic synthetic code analysis of tw93/Mole, a Shell project with 58,881 GitHub stars. SynthScan v2.0 examined 54,001 lines of code across 146 source files, recording 138 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 5.3 places this repository in the Low AI signal 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 138 distinct pattern matches across 5 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 | 1012 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | lib/core/base.sh | 1014 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 13 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 16 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 41 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 43 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 60 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 62 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 81 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 83 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 100 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 102 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 133 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 135 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 186 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 188 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 272 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 274 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 448 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 450 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 589 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 591 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 859 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/base.sh | 861 | # ============================================================================ | 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 | 191 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/log.sh | 193 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/log.sh | 386 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/log.sh | 388 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/log.sh | 433 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/log.sh | 435 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/sudo.sh | 7 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/sudo.sh | 9 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/sudo.sh | 233 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/sudo.sh | 235 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 34 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 36 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 63 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 65 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 244 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 246 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 512 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 514 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 856 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 858 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 1047 | # ============================================================================ | COMMENT |
| MEDIUM | lib/core/file_ops.sh | 1049 | # ============================================================================ | 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 | 247 | # ======================================================================== | COMMENT |
| MEDIUM | lib/core/timeout.sh | 249 | # ======================================================================== | 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 | 1016 | # Check if terminal supports ANSI escape codes | COMMENT |
| LOW⚡ | lib/core/base.sh | 1024 | # Check if running in interactive terminal | COMMENT |
| LOW | lib/core/base.sh | 997 | # Check if enough time has elapsed | COMMENT |
| LOW | lib/core/app_protection.sh | 43 | # Check if bundle ID matches pattern (glob support) | COMMENT |
| LOW | lib/core/app_protection.sh | 94 | # Check if application is a protected system component | COMMENT |
| LOW | lib/core/app_protection.sh | 147 | # Check if application data should be protected during cleanup | COMMENT |
| LOW | lib/core/app_protection.sh | 248 | # Check if a path is protected from deletion | COMMENT |
| LOW | lib/core/app_protection.sh | 458 | # Check if a path is protected by whitelist patterns | COMMENT |
| LOW | lib/core/app_protection.sh | 503 | # Check if target is a parent directory of a whitelisted path | COMMENT |
| LOW | lib/core/app_protection.sh | 510 | # Check if target is a child of a whitelisted directory path | COMMENT |
| LOW | lib/core/app_protection.sh | 1223 | # Output results | COMMENT |
| LOW | lib/core/app_protection.sh | 1629 | # Check if process is running using exact match only | COMMENT |
| LOW | lib/core/ui.sh | 522 | # Check if terminal has Full Disk Access | COMMENT |
| LOW | lib/core/sudo.sh | 33 | # Check if lid is closed; ignore pipeline failures so set -e doesn't exit | COMMENT |
| LOW | lib/core/sudo.sh | 77 | # Check if already have sudo access | COMMENT |
| LOW | lib/core/sudo.sh | 128 | # Check if in clamshell mode - if yes, skip Touch ID entirely | COMMENT |
| LOW | lib/core/sudo.sh | 279 | # Check if sudo session is active | COMMENT |
| LOW | lib/core/sudo.sh | 338 | # Check if already established | COMMENT |
| LOW | lib/core/sudo.sh | 371 | # Check if already established | COMMENT |
| LOW | lib/core/file_ops.sh | 231 | # Check if path is protected (keychains, system settings, etc) | COMMENT |
| LOW | lib/core/file_ops.sh | 273 | # Check if path exists | COMMENT |
| LOW | lib/core/file_ops.sh | 346 | # Check if it's a permission error | COMMENT |
| LOW | lib/core/timeout.sh | 267 | # Check if process still exists | COMMENT |
| LOW | lib/core/timeout.sh | 311 | # Check if command was killed by timeout (exit codes 143=SIGTERM, 137=SIGKILL) | COMMENT |
| LOW | lib/optimize/tasks.sh | 364 | # Check if database has any entries worth cleaning. | COMMENT |
| LOW | lib/optimize/tasks.sh | 998 | # Check if periodic command exists (removed in macOS 26+) | COMMENT |
| LOW | lib/optimize/tasks.sh | 1278 | # Check if a login item name corresponds to an installed app. | COMMENT |
| LOW | lib/clean/dev.sh | 181 | # Check if pnpm is actually usable (not just Corepack shim) | COMMENT |
| LOW | lib/clean/dev.sh | 1013 | # Check if simctl is accessible and working; timeout prevents hang when CLT-only. | COMMENT |
| LOW | lib/clean/project.sh | 36 | # Check if a directory contains projects (directly or in subdirectories). | COMMENT |
| LOW⚡ | lib/clean/project.sh | 354 | # Check if parent directory has a .csproj/.fsproj/.vbproj file | COMMENT |
| LOW⚡ | lib/clean/project.sh | 359 | # Check if bin directory contains Debug/ or Release/ subdirectories | COMMENT |
| LOW⚡ | lib/clean/project.sh | 365 | # Check if a vendor directory should be protected from purge | COMMENT |
| LOW | lib/clean/project.sh | 396 | # Check if an artifact should be protected from purge | COMMENT |
| LOW | lib/clean/project.sh | 466 | # Check if we should abort (scanning file removed by Ctrl+C) | COMMENT |
| LOW | lib/clean/project.sh | 601 | # Check if a path was modified recently (safety check). | COMMENT |
| LOW | lib/clean/project.sh | 1329 | # 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 | 60 | # Check if path is inside Caskroom. Quote literals so Homebrew bottle | COMMENT |
| LOW | lib/uninstall/batch.sh | 753 | # Check if sudo is needed | COMMENT |
| LOW | lib/manage/purge_paths.sh | 66 | # Check if using custom config | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | cmd/analyze/scanner.go | 41 | // inside calculateDirSizeConcurrent. Independent of entrySem because a | COMMENT |
| LOW | bin/clean.sh | 341 | trap 'cleanup EXIT $?' EXIT | 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 | 861 | # ============================================================================ | COMMENT |
| LOW | lib/core/app_protection.sh | 221 | # Deleting anything that belongs to them under the per-user Darwin folder -- a | COMMENT |
| LOW | lib/core/app_protection.sh | 641 | fi | COMMENT |
| LOW | lib/core/app_protection.sh | 1061 | fi | COMMENT |
| LOW | lib/core/app_protection.sh | 1081 | # 1. DevEco-Studio (Huawei) | COMMENT |
| LOW | lib/core/bundle_resolver.sh | 21 | COMMENT | |
| LOW | lib/core/bundle_resolver.sh | 41 | local hit="" | 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/file_ops.sh | 521 | # | COMMENT |
| LOW | lib/core/file_ops.sh | 1041 | set -e | 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 | 101 | # | COMMENT |
| LOW | lib/optimize/tasks.sh | 121 | # Hotspot). Bare interface presence therefore over-reports active VPNs and | COMMENT |
| LOW | lib/uninstall/batch.sh | 521 | for fb in "${fallback_paths[@]}"; do | COMMENT |
| LOW | lib/uninstall/batch.sh | 761 | COMMENT | |
| LOW | lib/uninstall/batch.sh | 981 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/core/ui.sh | 96 | # we cannot just use the total width formula on the whole string. | COMMENT |
| MEDIUM | lib/core/sudo.sh | 326 | # Use the robust implementation from common.sh | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | bin/touchid.sh | 134 | # Create the file | COMMENT |