Repository Analysis

tw93/Mole

🐹 Clean, uninstall, analyze, optimize, and monitor your Mac from the terminal.

5.3 Low AI signal View on GitHub

Analysis Overview

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

5.3
Adjusted Score
5.3
Raw Score
100%
Time Factor
2026-07-13
Last Push
58.9K
Stars
Shell
Language
54.0K
Lines of Code
146
Files
138
Pattern Hits
2026-07-14
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 64LOW 74

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

Decorative Section Separators62 hits · 183 pts
SeverityFileLineSnippetContext
MEDIUMscripts/setup-quick-launchers.sh73# ──────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/setup-quick-launchers.sh75# ──────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/base.sh1012# ============================================================================COMMENT
MEDIUMlib/core/base.sh1014# ============================================================================COMMENT
MEDIUMlib/core/base.sh13# ============================================================================COMMENT
MEDIUMlib/core/base.sh16# ============================================================================COMMENT
MEDIUMlib/core/base.sh41# ============================================================================COMMENT
MEDIUMlib/core/base.sh43# ============================================================================COMMENT
MEDIUMlib/core/base.sh60# ============================================================================COMMENT
MEDIUMlib/core/base.sh62# ============================================================================COMMENT
MEDIUMlib/core/base.sh81# ============================================================================COMMENT
MEDIUMlib/core/base.sh83# ============================================================================COMMENT
MEDIUMlib/core/base.sh100# ============================================================================COMMENT
MEDIUMlib/core/base.sh102# ============================================================================COMMENT
MEDIUMlib/core/base.sh133# ============================================================================COMMENT
MEDIUMlib/core/base.sh135# ============================================================================COMMENT
MEDIUMlib/core/base.sh186# ============================================================================COMMENT
MEDIUMlib/core/base.sh188# ============================================================================COMMENT
MEDIUMlib/core/base.sh272# ============================================================================COMMENT
MEDIUMlib/core/base.sh274# ============================================================================COMMENT
MEDIUMlib/core/base.sh448# ============================================================================COMMENT
MEDIUMlib/core/base.sh450# ============================================================================COMMENT
MEDIUMlib/core/base.sh589# ============================================================================COMMENT
MEDIUMlib/core/base.sh591# ============================================================================COMMENT
MEDIUMlib/core/base.sh859# ============================================================================COMMENT
MEDIUMlib/core/base.sh861# ============================================================================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.sh191# ============================================================================COMMENT
MEDIUMlib/core/log.sh193# ============================================================================COMMENT
MEDIUMlib/core/log.sh386# ============================================================================COMMENT
MEDIUMlib/core/log.sh388# ============================================================================COMMENT
MEDIUMlib/core/log.sh433# ============================================================================COMMENT
MEDIUMlib/core/log.sh435# ============================================================================COMMENT
MEDIUMlib/core/sudo.sh7# ============================================================================COMMENT
MEDIUMlib/core/sudo.sh9# ============================================================================COMMENT
MEDIUMlib/core/sudo.sh233# ============================================================================COMMENT
MEDIUMlib/core/sudo.sh235# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh34# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh36# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh63# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh65# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh244# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh246# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh512# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh514# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh856# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh858# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh1047# ============================================================================COMMENT
MEDIUMlib/core/file_ops.sh1049# ============================================================================COMMENT
MEDIUMlib/core/timeout.sh13# ============================================================================COMMENT
MEDIUMlib/core/timeout.sh15# ============================================================================COMMENT
MEDIUMlib/core/timeout.sh66# ============================================================================COMMENT
MEDIUMlib/core/timeout.sh68# ============================================================================COMMENT
MEDIUMlib/core/timeout.sh247 # ========================================================================COMMENT
MEDIUMlib/core/timeout.sh249 # ========================================================================COMMENT
2 more matches not shown…
Redundant / Tautological Comments50 hits · 76 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.sh1016# Check if terminal supports ANSI escape codesCOMMENT
LOWlib/core/base.sh1024 # Check if running in interactive terminalCOMMENT
LOWlib/core/base.sh997 # Check if enough time has elapsedCOMMENT
LOWlib/core/app_protection.sh43# Check if bundle ID matches pattern (glob support)COMMENT
LOWlib/core/app_protection.sh94# Check if application is a protected system componentCOMMENT
LOWlib/core/app_protection.sh147# Check if application data should be protected during cleanupCOMMENT
LOWlib/core/app_protection.sh248# Check if a path is protected from deletionCOMMENT
LOWlib/core/app_protection.sh458# Check if a path is protected by whitelist patternsCOMMENT
LOWlib/core/app_protection.sh503 # Check if target is a parent directory of a whitelisted pathCOMMENT
LOWlib/core/app_protection.sh510 # Check if target is a child of a whitelisted directory pathCOMMENT
LOWlib/core/app_protection.sh1223 # Output resultsCOMMENT
LOWlib/core/app_protection.sh1629 # Check if process is running using exact match onlyCOMMENT
LOWlib/core/ui.sh522# Check if terminal has Full Disk AccessCOMMENT
LOWlib/core/sudo.sh33 # Check if lid is closed; ignore pipeline failures so set -e doesn't exitCOMMENT
LOWlib/core/sudo.sh77 # Check if already have sudo accessCOMMENT
LOWlib/core/sudo.sh128 # Check if in clamshell mode - if yes, skip Touch ID entirelyCOMMENT
LOWlib/core/sudo.sh279# Check if sudo session is activeCOMMENT
LOWlib/core/sudo.sh338 # Check if already establishedCOMMENT
LOWlib/core/sudo.sh371 # Check if already establishedCOMMENT
LOWlib/core/file_ops.sh231 # Check if path is protected (keychains, system settings, etc)COMMENT
LOWlib/core/file_ops.sh273 # Check if path existsCOMMENT
LOWlib/core/file_ops.sh346 # Check if it's a permission errorCOMMENT
LOWlib/core/timeout.sh267 # Check if process still existsCOMMENT
LOWlib/core/timeout.sh311 # Check if command was killed by timeout (exit codes 143=SIGTERM, 137=SIGKILL)COMMENT
LOWlib/optimize/tasks.sh364 # Check if database has any entries worth cleaning.COMMENT
LOWlib/optimize/tasks.sh998 # Check if periodic command exists (removed in macOS 26+)COMMENT
LOWlib/optimize/tasks.sh1278# Check if a login item name corresponds to an installed app.COMMENT
LOWlib/clean/dev.sh181 # Check if pnpm is actually usable (not just Corepack shim)COMMENT
LOWlib/clean/dev.sh1013 # Check if simctl is accessible and working; timeout prevents hang when CLT-only.COMMENT
LOWlib/clean/project.sh36# Check if a directory contains projects (directly or in subdirectories).COMMENT
LOWlib/clean/project.sh354 # Check if parent directory has a .csproj/.fsproj/.vbproj fileCOMMENT
LOWlib/clean/project.sh359 # Check if bin directory contains Debug/ or Release/ subdirectoriesCOMMENT
LOWlib/clean/project.sh365# Check if a vendor directory should be protected from purgeCOMMENT
LOWlib/clean/project.sh396# Check if an artifact should be protected from purgeCOMMENT
LOWlib/clean/project.sh466 # Check if we should abort (scanning file removed by Ctrl+C)COMMENT
LOWlib/clean/project.sh601# Check if a path was modified recently (safety check).COMMENT
LOWlib/clean/project.sh1329 # 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.sh60 # Check if path is inside Caskroom. Quote literals so Homebrew bottleCOMMENT
LOWlib/uninstall/batch.sh753 # Check if sudo is neededCOMMENT
LOWlib/manage/purge_paths.sh66 # Check if using custom configCOMMENT
Over-Commented Block23 hits · 22 pts
SeverityFileLineSnippetContext
LOWcmd/analyze/scanner.go41 // inside calculateDirSizeConcurrent. Independent of entrySem because aCOMMENT
LOWbin/clean.sh341trap 'cleanup EXIT $?' EXITCOMMENT
LOWscripts/audit_bundle_drift.sh1#!/bin/bashCOMMENT
LOWscripts/setup-quick-launchers.sh61#!/bin/bashCOMMENT
LOWlib/core/base.sh861# ============================================================================COMMENT
LOWlib/core/app_protection.sh221# Deleting anything that belongs to them under the per-user Darwin folder -- aCOMMENT
LOWlib/core/app_protection.sh641 fiCOMMENT
LOWlib/core/app_protection.sh1061 fiCOMMENT
LOWlib/core/app_protection.sh1081 # 1. DevEco-Studio (Huawei)COMMENT
LOWlib/core/bundle_resolver.sh21COMMENT
LOWlib/core/bundle_resolver.sh41 local hit=""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/file_ops.sh521#COMMENT
LOWlib/core/file_ops.sh1041 set -eCOMMENT
LOWlib/core/timeout.sh1#!/bin/bashCOMMENT
LOWlib/core/timeout.sh21# brew install coreutilsCOMMENT
LOWlib/core/timeout.sh101#COMMENT
LOWlib/optimize/tasks.sh121 # Hotspot). Bare interface presence therefore over-reports active VPNs andCOMMENT
LOWlib/uninstall/batch.sh521 for fb in "${fallback_paths[@]}"; doCOMMENT
LOWlib/uninstall/batch.sh761COMMENT
LOWlib/uninstall/batch.sh981COMMENT
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
LOWlib/core/ui.sh96 # we cannot just use the total width formula on the whole string.COMMENT
MEDIUMlib/core/sudo.sh326 # Use the robust implementation from common.shCOMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMbin/touchid.sh134 # Create the fileCOMMENT