A plugin loader for the Steam Deck.
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).
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.
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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | backend/decky_loader/wsrouter.py | 74 | except Exception as err: | CODE |
| LOW | backend/decky_loader/injector.py | 326 | except Exception as e: | STRING |
| LOW | backend/decky_loader/injector.py | 355 | except Exception as e: | STRING |
| LOW | backend/decky_loader/updater.py | 225 | except Exception as e: | CODE |
| LOW | backend/decky_loader/browser.py | 102 | except Exception as e: | CODE |
| LOW | backend/decky_loader/browser.py | 166 | except Exception as e: | CODE |
| LOW | backend/decky_loader/browser.py | 254 | except Exception as e: | CODE |
| LOW | backend/decky_loader/loader.py | 186 | except Exception as e: | CODE |
| LOW⚡ | backend/decky_loader/loader.py | 214 | except Exception as e: | CODE |
| LOW⚡ | backend/decky_loader/loader.py | 225 | except Exception as e: | CODE |
| LOW | backend/decky_loader/settings.py | 47 | except Exception as e: | CODE |
| MEDIUM | backend/decky_loader/settings.py | 43 | def read(self): | CODE |
| LOW | backend/decky_loader/utilities.py | 106 | except Exception as e: | CODE |
| LOW | backend/decky_loader/utilities.py | 118 | except Exception as e: | CODE |
| LOW | backend/decky_loader/utilities.py | 245 | except Exception as e: | CODE |
| LOW | backend/decky_loader/utilities.py | 456 | except Exception: | STRING |
| LOW | backend/decky_loader/main.py | 218 | except Exception: | CODE |
| LOW | backend/decky_loader/helpers.py | 87 | except Exception as e: | CODE |
| LOW | backend/decky_loader/helpers.py | 105 | except Exception as e: | CODE |
| LOW | backend/decky_loader/helpers.py | 128 | except Exception as e: | CODE |
| MEDIUM | backend/decky_loader/helpers.py | 70 | def get_loader_version() -> str: | CODE |
| MEDIUM | backend/decky_loader/helpers.py | 94 | def get_system_pythonpaths() -> list[str]: | CODE |
| LOW | backend/decky_loader/plugin/sandboxed_plugin.py | 211 | except Exception as e: | CODE |
| MEDIUM | backend/decky_loader/plugin/sandboxed_plugin.py | 146 | def _unload(self): | CODE |
| LOW | backend/decky_loader/plugin/plugin.py | 173 | except Exception as e: | CODE |
| LOW | backend/decky_loader/plugin/imports/decky.py | 202 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/src/store.tsx | 104 | export async function requestMultiplePluginInstalls(requests: PluginInstallRequest[]) { | CODE |
| LOW | frontend/src/fallback.ts | 63 | function getGamepadNavigationTrees(): any { | CODE |
| LOW | frontend/src/developer.tsx | 40 | export async function setShouldConnectToReactDevTools(enable: boolean) { | CODE |
| LOW | frontend/src/utils/errors.ts | 20 | export function getLikelyErrorSourceFromValveError(error: ValveError): ErrorSource { | CODE |
| LOW | frontend/src/utils/errors.ts | 24 | export function getLikelyErrorSourceFromValveReactError(error: ValveReactErrorInfo): ErrorSource { | CODE |
| LOW | backend/decky_loader/wsrouter.py | 149 | def handle_received_response_message(self, call_id: int): | CODE |
| LOW | backend/decky_loader/injector.py | 203 | async def add_script_to_evaluate_on_new_document(self, js: str, add_dom_wrapper: bool = True, manage_socket: bool = | CODE |
| LOW | backend/decky_loader/injector.py | 266 | async def remove_script_to_evaluate_on_new_document(self, script_id: str, manage_socket: bool = True): | STRING |
| LOW | backend/decky_loader/browser.py | 66 | async def _download_remote_binaries_for_plugin_with_name(self, pluginBasePath: str): | CODE |
| LOW | backend/decky_loader/browser.py | 120 | def set_plugin_dir_permissions(self, plugin_dir: str) -> bool: | CODE |
| LOW | backend/decky_loader/browser.py | 313 | async def request_multiple_plugin_installs(self, requests: List[PluginInstallRequest]): | CODE |
| LOW | backend/decky_loader/loader.py | 142 | async def handle_plugin_frontend_assets(self, request: web.Request): | CODE |
| LOW | backend/decky_loader/loader.py | 148 | async def handle_plugin_frontend_assets_from_data(self, request: web.Request): | CODE |
| LOW⚡ | backend/decky_loader/loader.py | 206 | async def handle_plugin_method_call_legacy(self, plugin_name: str, method_name: str, kwargs: Dict[Any, Any]): | CODE |
| LOW⚡ | backend/decky_loader/loader.py | 219 | async def handle_plugin_method_call(self, plugin_name: str, method_name: str, *args: List[Any]): | CODE |
| LOW⚡ | backend/decky_loader/loader.py | 230 | async def handle_plugin_backend_reload(self, plugin_name: str): | CODE |
| LOW | backend/decky_loader/utilities.py | 95 | async def _handle_legacy_server_method_call(self, request: Request) -> Response: | CODE |
| LOW | backend/decky_loader/utilities.py | 296 | async def disallow_remote_debugging(self): | STRING |
| LOW | backend/decky_loader/helpers.py | 110 | async def download_remote_binary_to_path(url: str, binHash: str, path: str) -> bool: | CODE |
| LOW | backend/decky_loader/helpers.py | 163 | def get_effective_user_group_id() -> int: | CODE |
| LOW | …ckend/decky_loader/localplatform/localplatformlinux.py | 55 | def _get_effective_user_group_id() -> int: | CODE |
| LOW | …ckend/decky_loader/localplatform/localplatformlinux.py | 59 | def _get_effective_user_group() -> str: | CODE |
| LOW | backend/decky_loader/localplatform/localplatform.py | 44 | def get_use_cef_close_workaround() -> bool: | CODE |
| LOW | backend/decky_loader/localplatform/localsocket.py | 33 | async def _open_socket_if_not_exists(self): | CODE |
| LOW | backend/decky_loader/localplatform/localsocket.py | 147 | async def _open_socket_if_not_exists(self): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | backend/main.py | 1 | # This file is needed to make the relative imports in decky_loader/ work properly. | COMMENT |
| MEDIUM | backend/decky_loader/settings.py | 18 | #Create the folder with the correct permission | COMMENT |
| MEDIUM | scripts/collect-debug-info.sh | 3 | # Define the directory to scan | COMMENT |
| MEDIUM | scripts/plugin-info.sh | 4 | # Define the directory to scan | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | backend/decky_loader/injector.py | 84 | res = await self.evaluate_js(f"window['{var_name}'] !== null && window['{var_name}'] !== undefined", False, mana | CODE |
| HIGH | backend/decky_loader/utilities.py | 441 | return (GamepadNavTree?.m_context?.m_controller || FocusNavController)?.m_ActiveContext? | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | backend/decky_loader/browser.py | 179 | # Check if plugin was already installed before this | COMMENT |
| LOW | backend/decky_loader/browser.py | 194 | # Check if the file is a local file or a URL | COMMENT |
| LOW | scripts/deckdebug.sh | 28 | # Check if the dependencies are installed | COMMENT |
| LOW | scripts/tasks.sh | 25 | # Check if the dependencies are installed | COMMENT |
| LOW | scripts/tasks.sh | 84 | # Check if the task has either a command or script. | COMMENT |
| LOW | scripts/plugin-info.sh | 9 | # Check if package.json exists in the subdirectory | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | backend/decky_loader/updater.py | 1 | CODE | |
| LOW | backend/decky_loader/loader.py | 1 | CODE | |
| LOW | backend/decky_loader/utilities.py | 1 | CODE | |
| LOW | backend/decky_loader/plugin/sandboxed_plugin.py | 17 | CODE | |
| LOW | backend/decky_loader/localplatform/localplatform.py | 8 | CODE | |
| LOW | backend/decky_loader/localplatform/localplatform.py | 11 | CODE | |
| LOW | backend/decky_loader/localplatform/localplatform.py | 14 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | backend/decky_loader/browser.py | 66 | CODE | |
| LOW | backend/decky_loader/browser.py | 173 | CODE | |
| LOW | backend/decky_loader/utilities.py | 315 | CODE | |
| LOW | backend/decky_loader/main.py | 175 | CODE | |
| LOW | backend/decky_loader/helpers.py | 110 | CODE | |
| LOW | backend/decky_loader/plugin/plugin.py | 91 | CODE | |
| LOW | …ckend/decky_loader/localplatform/localplatformlinux.py | 87 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/src/router-hook.tsx | 161 | // Object.setPrototypeOf(stateNodeClone, Object.getPrototypeOf(routerNode.stateNode)); | COMMENT |
| LOW | backend/decky_loader/utilities.py | 181 | del headers[header] | COMMENT |
| LOW | scripts/tasks.sh | 1 | #!/usr/bin/env bash | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | backend/decky_loader/utilities.py | 315 | CODE |