Repository Analysis

tw93/Mole

🐹 Clean, uninstall, analyze, optimize, and monitor your Mac. Free open-source CLI, plus a native Mac app.

4.0 Likely human-written View on GitHub

Analysis Overview

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).

4.0
Adjusted Score
4.0
Raw Score
100%
Time Factor
2026-08-28
Last Push
65.2K
Stars
Shell
Language
75.1K
Lines of Code
164
Files
154
Pattern Hits
2026-08-29
Scan Date
0.00
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 0HIGH 0MEDIUM 65LOW 89

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 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.

Decorative Section Separators62 hits · 183 pts
SeverityFileLineSnippetContext
MEDIUMscripts/setup-quick-launchers.sh73# ──────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/setup-quick-launchers.sh75# ──────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/base.sh1314# ============================================================================COMMENT
MEDIUMlib/core/base.sh1316# ============================================================================COMMENT
MEDIUMlib/core/base.sh20# ============================================================================COMMENT
MEDIUMlib/core/base.sh23# ============================================================================COMMENT
MEDIUMlib/core/base.sh77# ============================================================================COMMENT
MEDIUMlib/core/base.sh79# ============================================================================COMMENT
MEDIUMlib/core/base.sh96# ============================================================================COMMENT
MEDIUMlib/core/base.sh98# ============================================================================COMMENT
MEDIUMlib/core/base.sh126# ============================================================================COMMENT
MEDIUMlib/core/base.sh128# ============================================================================COMMENT
MEDIUMlib/core/base.sh145# ============================================================================COMMENT
MEDIUMlib/core/base.sh147# ============================================================================COMMENT
MEDIUMlib/core/base.sh428# ============================================================================COMMENT
MEDIUMlib/core/base.sh430# ============================================================================COMMENT
MEDIUMlib/core/base.sh481# ============================================================================COMMENT
MEDIUMlib/core/base.sh483# ============================================================================COMMENT
MEDIUMlib/core/base.sh567# ============================================================================COMMENT
MEDIUMlib/core/base.sh569# ============================================================================COMMENT
MEDIUMlib/core/base.sh743# ============================================================================COMMENT
MEDIUMlib/core/base.sh745# ============================================================================COMMENT
MEDIUMlib/core/base.sh884# ============================================================================COMMENT
MEDIUMlib/core/base.sh886# ============================================================================COMMENT
MEDIUMlib/core/base.sh1161# ============================================================================COMMENT
MEDIUMlib/core/base.sh1163# ============================================================================COMMENT
MEDIUMlib/core/log.sh20# ============================================================================COMMENT
MEDIUMlib/core/log.sh22# ============================================================================COMMENT
MEDIUMlib/core/log.sh36# ============================================================================COMMENT
MEDIUMlib/core/log.sh38# ============================================================================COMMENT
MEDIUMlib/core/log.sh86# ============================================================================COMMENT
MEDIUMlib/core/log.sh88# ============================================================================COMMENT
MEDIUMlib/core/log.sh199# ============================================================================COMMENT
MEDIUMlib/core/log.sh201# ============================================================================COMMENT
MEDIUMlib/core/log.sh394# ============================================================================COMMENT
MEDIUMlib/core/log.sh396# ============================================================================COMMENT
MEDIUMlib/core/log.sh441# ============================================================================COMMENT
MEDIUMlib/core/log.sh443# ============================================================================COMMENT
MEDIUMlib/core/sudo.sh7# ============================================================================COMMENT
MEDIUMlib/core/sudo.sh9# ============================================================================COMMENT
MEDIUMlib/core/sudo.sh235# ============================================================================COMMENT
MEDIUMlib/core/sudo.sh237# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh71# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh73# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh100# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh102# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh1007# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh1009# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh1777# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh1779# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh2694# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh2696# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh3230# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh3232# ============================================================================COMMENT
MEDIUMlib/core/timeout.sh13# ============================================================================COMMENT
MEDIUMlib/core/timeout.sh15# ============================================================================COMMENT
MEDIUMlib/core/timeout.sh66# ============================================================================COMMENT
MEDIUMlib/core/timeout.sh68# ============================================================================COMMENT
MEDIUMlib/core/timeout.sh319 # ========================================================================COMMENT
MEDIUMlib/core/timeout.sh321 # ========================================================================COMMENT
2 more matches not shown…
Redundant / Tautological Comments45 hits · 68 pts
SeverityFileLineSnippetContext
LOWbin/touchid.sh30# Check if Touch ID is already configuredCOMMENT
LOWbin/touchid.sh44# Check if system supports Touch IDCOMMENT
LOWbin/touchid.sh46 # Check if bioutil exists and has Touch ID capabilityCOMMENT
LOWbin/touchid.sh107 # Check if we should use sudo_local (Sonoma+)COMMENT
LOWbin/touchid.sh109 # Check if already correctly configured in sudo_localCOMMENT
LOWbin/touchid.sh125 # Check if configured in sudo (Legacy)COMMENT
LOWbin/touchid.sh172 # Check if already configured (Legacy)COMMENT
LOWbin/completion.sh224 # Check if already installed and normalize to latest lineCOMMENT
LOWlib/core/base.sh1318# Check if terminal supports ANSI escape codesCOMMENT
LOWlib/core/base.sh1326 # Check if running in interactive terminalCOMMENT
LOWlib/core/base.sh1299 # Check if enough time has elapsedCOMMENT
LOWlib/core/app_protection.sh68# Check if bundle ID matches pattern (glob support)COMMENT
LOWlib/core/app_protection.sh119# Check if application is a protected system componentCOMMENT
LOWlib/core/app_protection.sh172# Check if application data should be protected during cleanupCOMMENT
LOWlib/core/app_protection.sh347# Check if a path is protected from deletionCOMMENT
LOWlib/core/app_protection.sh587# Check if a path is protected by whitelist patternsCOMMENT
LOWlib/core/app_protection.sh632 # Check if target is a parent directory of a whitelisted pathCOMMENT
LOWlib/core/app_protection.sh639 # Check if target is a child of a whitelisted directory pathCOMMENT
LOWlib/core/app_protection.sh2161 # Check if process is running using exact match onlyCOMMENT
LOWlib/core/ui.sh533# Check if terminal has Full Disk AccessCOMMENT
LOWlib/core/sudo.sh35 # Check if lid is closed; ignore pipeline failures so set -e doesn't exitCOMMENT
LOWlib/core/sudo.sh79 # Check if already have sudo accessCOMMENT
LOWlib/core/sudo.sh130 # Check if in clamshell mode - if yes, skip Touch ID entirelyCOMMENT
LOWlib/core/sudo.sh281# Check if sudo session is activeCOMMENT
LOWlib/core/sudo.sh340 # Check if already establishedCOMMENT
LOWlib/core/sudo.sh373 # Check if already establishedCOMMENT
LOWlib/core/file_ops.sh994 # Check if path is protected (keychains, system settings, etc)COMMENT
LOWlib/core/file_ops.sh1129 # Check if path existsCOMMENT
LOWlib/core/file_ops.sh1345 # Check if it's a permission errorCOMMENT
LOWlib/core/timeout.sh339 # Check if process still existsCOMMENT
LOWlib/core/timeout.sh383 # Check if command was killed by timeout (exit codes 143=SIGTERM, 137=SIGKILL)COMMENT
LOWlib/optimize/tasks.sh506 # Check if database has any entries worth cleaning.COMMENT
LOWlib/optimize/tasks.sh1333 # Check if periodic command exists (removed in macOS 26+)COMMENT
LOWlib/optimize/tasks.sh1728# Check if a login item name corresponds to an installed app.COMMENT
LOWlib/clean/project.sh39# Check if a directory contains projects (directly or in subdirectories).COMMENT
LOWlib/clean/project.sh412 # Check if parent directory has a .csproj/.fsproj/.vbproj fileCOMMENT
LOWlib/clean/project.sh417 # Check if bin directory contains Debug/ or Release/ subdirectoriesCOMMENT
LOWlib/clean/project.sh423# Check if a vendor directory should be protected from purgeCOMMENT
LOWlib/clean/project.sh453# Check if an artifact should be protected from purgeCOMMENT
LOWlib/clean/project.sh552 # Check if we should abort (scanning file removed by Ctrl+C)COMMENT
LOWlib/clean/project.sh1987 # Check if there are other items with same artifact name AND same projectCOMMENT
LOWlib/clean/brew.sh206 # Check if Homebrew cache is whitelistedCOMMENT
LOWlib/uninstall/brew.sh32# Check if Homebrew is installed and accessibleCOMMENT
LOWlib/uninstall/brew.sh80 # Check if path is inside Caskroom. Quote literals so Homebrew bottleCOMMENT
LOWlib/manage/purge_paths.sh66 # Check if using custom configCOMMENT
Over-Commented Block42 hits · 40 pts
SeverityFileLineSnippetContext
LOWcmd/analyze/scanner.go81 action()COMMENT
LOWcmd/analyze/scanner.go101 // low (NumCPU capped at 4) because each du process is itself heavilyCOMMENT
LOWcmd/analyze/delete.go21)COMMENT
LOWcmd/analyze/format.go121COMMENT
LOWcmd/analyze/cache.go281COMMENT
LOWcmd/analyze/constants.go41 cacheDirReadBatch = 512COMMENT
LOWbin/clean.sh541# IMPORTANT: This file overrides start_section / end_section fromCOMMENT
LOWtests/timeout_tty_background_fixture.sh1#!/bin/bashCOMMENT
LOWscripts/audit_bundle_drift.sh1#!/bin/bashCOMMENT
LOWscripts/setup-quick-launchers.sh61#!/bin/bashCOMMENT
LOWlib/core/base.sh1161# ============================================================================COMMENT
LOWlib/core/base.sh1181# spinner on close.COMMENT
LOWlib/core/base.sh1361 esacCOMMENT
LOWlib/core/base.sh1381 debug_log "Deferred cleanup while active: $1"COMMENT
LOWlib/core/app_protection.sh241 return 1COMMENT
LOWlib/core/app_protection.sh1041 )COMMENT
LOWlib/core/app_protection.sh1401 fiCOMMENT
LOWlib/core/ui.sh121 # Optimization: If total width <= max_width, return original string (checked above)COMMENT
LOWlib/core/timeouts.sh1#!/bin/bashCOMMENT
LOWlib/core/timeouts.sh21# DISK_VERIFY Filesystem-level verify/repair operations. ~30s.COMMENT
LOWlib/core/timeouts.sh41# `find /private/var/folders -maxdepth 8` GPU-cache scan inCOMMENT
LOWlib/core/app_protection_data.sh621# Generic app-name words that collide with many unrelated LaunchAgents/Daemons.COMMENT
LOWlib/core/file_ops.sh641 return 0COMMENT
LOWlib/core/file_ops.sh1781# Route a deletion through either macOS Trash or permanent rm, while loggingCOMMENT
LOWlib/core/file_ops.sh2201 end tellCOMMENT
LOWlib/core/file_ops.sh2861COMMENT
LOWlib/core/timeout.sh1#!/bin/bashCOMMENT
LOWlib/core/timeout.sh21# brew install coreutilsCOMMENT
LOWlib/core/timeout.sh121# Returns:COMMENT
LOWlib/core/timeout.sh141run_with_timeout() {COMMENT
LOWlib/clean/app_caches.sh361}COMMENT
LOWlib/clean/app_caches.sh801 # JianyingPro (剪映专业版 / CapCut CN, com.lemon.lvpro) generated cacheCOMMENT
LOWlib/clean/dev.sh781 # ~/Library/Caches/pypoetry is Poetry's macOS cache root, and itsCOMMENT
LOWlib/clean/dev.sh1181# validated absolute path (mise and other version managers relocate these).COMMENT
LOWlib/clean/dev.sh4181 local physical_before=""COMMENT
LOWlib/clean/dev.sh5021 # contain prompts and transcript events. Neither is default-cleanable.COMMENT
LOWlib/clean/apps.sh241 local bundle_id=""COMMENT
LOWlib/clean/apps.sh941 local -a orphaned_target_ids=()COMMENT
LOWlib/clean/apps.sh961 "org.wireshark.ChmodBPF:/Applications/Wireshark.app"COMMENT
LOWlib/uninstall/batch.sh661# this check (the scan dedupe collapses same-basename rows and keeps the liveCOMMENT
LOWlib/uninstall/batch.sh1441 while IFS= read -r survivor_name; doCOMMENT
LOWlib/uninstall/batch.sh1541 # discovery_app_name is empty only in the sibling-guard name-collisionCOMMENT
AI Slop Vocabulary3 hits · 8 pts
SeverityFileLineSnippetContext
LOWlib/core/ui.sh107 # we cannot just use the total width formula on the whole string.COMMENT
MEDIUMlib/core/sudo.sh328 # Use the robust implementation from common.shCOMMENT
MEDIUMlib/uninstall/batch.sh1507 # not by the app bundle's owner. Do not elevate solely because aCOMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMbin/touchid.sh134 # Create the fileCOMMENT
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscripts/audit_function_duplication.py25CODE