Repository Analysis

SteamDeckHomebrew/decky-loader

A plugin loader for the Steam Deck.

4.4 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of SteamDeckHomebrew/decky-loader, a TypeScript project with 7,035 GitHub stars. SynthScan v2.0 examined 23,784 lines of code across 141 source files, recording 81 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 4.4 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.4
Adjusted Score
4.4
Raw Score
100%
Time Factor
2026-07-14
Last Push
7.0K
Stars
TypeScript
Language
23.8K
Lines of Code
141
Files
81
Pattern Hits
2026-07-14
Scan Date
0.01
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

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 2MEDIUM 8LOW 71

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 81 distinct pattern matches across 9 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.

Excessive Try-Catch Wrapping26 hits · 30 pts
SeverityFileLineSnippetContext
LOWbackend/decky_loader/wsrouter.py74 except Exception as err:CODE
LOWbackend/decky_loader/injector.py326 except Exception as e:STRING
LOWbackend/decky_loader/injector.py355 except Exception as e:STRING
LOWbackend/decky_loader/updater.py225 except Exception as e:CODE
LOWbackend/decky_loader/browser.py102 except Exception as e:CODE
LOWbackend/decky_loader/browser.py166 except Exception as e:CODE
LOWbackend/decky_loader/browser.py254 except Exception as e:CODE
LOWbackend/decky_loader/loader.py186 except Exception as e:CODE
LOWbackend/decky_loader/loader.py214 except Exception as e:CODE
LOWbackend/decky_loader/loader.py225 except Exception as e:CODE
LOWbackend/decky_loader/settings.py47 except Exception as e:CODE
MEDIUMbackend/decky_loader/settings.py43def read(self):CODE
LOWbackend/decky_loader/utilities.py106 except Exception as e:CODE
LOWbackend/decky_loader/utilities.py118 except Exception as e:CODE
LOWbackend/decky_loader/utilities.py245 except Exception as e:CODE
LOWbackend/decky_loader/utilities.py456 except Exception:STRING
LOWbackend/decky_loader/main.py218 except Exception:CODE
LOWbackend/decky_loader/helpers.py87 except Exception as e:CODE
LOWbackend/decky_loader/helpers.py105 except Exception as e:CODE
LOWbackend/decky_loader/helpers.py128 except Exception as e:CODE
MEDIUMbackend/decky_loader/helpers.py70def get_loader_version() -> str:CODE
MEDIUMbackend/decky_loader/helpers.py94def get_system_pythonpaths() -> list[str]:CODE
LOWbackend/decky_loader/plugin/sandboxed_plugin.py211 except Exception as e:CODE
MEDIUMbackend/decky_loader/plugin/sandboxed_plugin.py146def _unload(self):CODE
LOWbackend/decky_loader/plugin/plugin.py173 except Exception as e:CODE
LOWbackend/decky_loader/plugin/imports/decky.py202except Exception as e:CODE
Hyper-Verbose Identifiers25 hits · 26 pts
SeverityFileLineSnippetContext
LOWfrontend/src/store.tsx104export async function requestMultiplePluginInstalls(requests: PluginInstallRequest[]) {CODE
LOWfrontend/src/fallback.ts63 function getGamepadNavigationTrees(): any {CODE
LOWfrontend/src/developer.tsx40export async function setShouldConnectToReactDevTools(enable: boolean) {CODE
LOWfrontend/src/utils/errors.ts20export function getLikelyErrorSourceFromValveError(error: ValveError): ErrorSource {CODE
LOWfrontend/src/utils/errors.ts24export function getLikelyErrorSourceFromValveReactError(error: ValveReactErrorInfo): ErrorSource {CODE
LOWbackend/decky_loader/wsrouter.py149 def handle_received_response_message(self, call_id: int):CODE
LOWbackend/decky_loader/injector.py203 async def add_script_to_evaluate_on_new_document(self, js: str, add_dom_wrapper: bool = True, manage_socket: bool = CODE
LOWbackend/decky_loader/injector.py266 async def remove_script_to_evaluate_on_new_document(self, script_id: str, manage_socket: bool = True):STRING
LOWbackend/decky_loader/browser.py66 async def _download_remote_binaries_for_plugin_with_name(self, pluginBasePath: str):CODE
LOWbackend/decky_loader/browser.py120 def set_plugin_dir_permissions(self, plugin_dir: str) -> bool:CODE
LOWbackend/decky_loader/browser.py313 async def request_multiple_plugin_installs(self, requests: List[PluginInstallRequest]):CODE
LOWbackend/decky_loader/loader.py142 async def handle_plugin_frontend_assets(self, request: web.Request):CODE
LOWbackend/decky_loader/loader.py148 async def handle_plugin_frontend_assets_from_data(self, request: web.Request):CODE
LOWbackend/decky_loader/loader.py206 async def handle_plugin_method_call_legacy(self, plugin_name: str, method_name: str, kwargs: Dict[Any, Any]):CODE
LOWbackend/decky_loader/loader.py219 async def handle_plugin_method_call(self, plugin_name: str, method_name: str, *args: List[Any]):CODE
LOWbackend/decky_loader/loader.py230 async def handle_plugin_backend_reload(self, plugin_name: str):CODE
LOWbackend/decky_loader/utilities.py95 async def _handle_legacy_server_method_call(self, request: Request) -> Response:CODE
LOWbackend/decky_loader/utilities.py296 async def disallow_remote_debugging(self):STRING
LOWbackend/decky_loader/helpers.py110async def download_remote_binary_to_path(url: str, binHash: str, path: str) -> bool:CODE
LOWbackend/decky_loader/helpers.py163def get_effective_user_group_id() -> int:CODE
LOW…ckend/decky_loader/localplatform/localplatformlinux.py55def _get_effective_user_group_id() -> int:CODE
LOW…ckend/decky_loader/localplatform/localplatformlinux.py59def _get_effective_user_group() -> str:CODE
LOWbackend/decky_loader/localplatform/localplatform.py44def get_use_cef_close_workaround() -> bool:CODE
LOWbackend/decky_loader/localplatform/localsocket.py33 async def _open_socket_if_not_exists(self):CODE
LOWbackend/decky_loader/localplatform/localsocket.py147 async def _open_socket_if_not_exists(self):CODE
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMbackend/main.py1# This file is needed to make the relative imports in decky_loader/ work properly.COMMENT
MEDIUMbackend/decky_loader/settings.py18 #Create the folder with the correct permissionCOMMENT
MEDIUMscripts/collect-debug-info.sh3# Define the directory to scanCOMMENT
MEDIUMscripts/plugin-info.sh4# Define the directory to scanCOMMENT
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHbackend/decky_loader/injector.py84 res = await self.evaluate_js(f"window['{var_name}'] !== null && window['{var_name}'] !== undefined", False, manaCODE
HIGHbackend/decky_loader/utilities.py441 return (GamepadNavTree?.m_context?.m_controller || FocusNavController)?.m_ActiveContext?CODE
Redundant / Tautological Comments6 hits · 9 pts
SeverityFileLineSnippetContext
LOWbackend/decky_loader/browser.py179 # Check if plugin was already installed before thisCOMMENT
LOWbackend/decky_loader/browser.py194 # Check if the file is a local file or a URLCOMMENT
LOWscripts/deckdebug.sh28# Check if the dependencies are installedCOMMENT
LOWscripts/tasks.sh25# Check if the dependencies are installedCOMMENT
LOWscripts/tasks.sh84 # Check if the task has either a command or script.COMMENT
LOWscripts/plugin-info.sh9 # Check if package.json exists in the subdirectoryCOMMENT
Unused Imports7 hits · 7 pts
SeverityFileLineSnippetContext
LOWbackend/decky_loader/updater.py1CODE
LOWbackend/decky_loader/loader.py1CODE
LOWbackend/decky_loader/utilities.py1CODE
LOWbackend/decky_loader/plugin/sandboxed_plugin.py17CODE
LOWbackend/decky_loader/localplatform/localplatform.py8CODE
LOWbackend/decky_loader/localplatform/localplatform.py11CODE
LOWbackend/decky_loader/localplatform/localplatform.py14CODE
Deep Nesting7 hits · 7 pts
SeverityFileLineSnippetContext
LOWbackend/decky_loader/browser.py66CODE
LOWbackend/decky_loader/browser.py173CODE
LOWbackend/decky_loader/utilities.py315CODE
LOWbackend/decky_loader/main.py175CODE
LOWbackend/decky_loader/helpers.py110CODE
LOWbackend/decky_loader/plugin/plugin.py91CODE
LOW…ckend/decky_loader/localplatform/localplatformlinux.py87CODE
Over-Commented Block3 hits · 3 pts
SeverityFileLineSnippetContext
LOWfrontend/src/router-hook.tsx161 // Object.setPrototypeOf(stateNodeClone, Object.getPrototypeOf(routerNode.stateNode));COMMENT
LOWbackend/decky_loader/utilities.py181 del headers[header]COMMENT
LOWscripts/tasks.sh1#!/usr/bin/env bashCOMMENT
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWbackend/decky_loader/utilities.py315CODE