Repository Analysis

rullerzhou-afk/clawd-on-desk

A pixel desktop pet that watches Claude Code, Codex, Cursor & other AI coding agents — so you don't have to.

7.2 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of rullerzhou-afk/clawd-on-desk, a JavaScript project with 5,358 GitHub stars. SynthScan v2.0 examined 237,847 lines of code across 663 source files, recording 1271 pattern matches distributed across 15 syntactic categories. The overall adjusted score of 7.2 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).

7.2
Adjusted Score
7.2
Raw Score
100%
Time Factor
2026-07-14
Last Push
5.4K
Stars
JavaScript
Language
237.8K
Lines of Code
663
Files
1.3K
Pattern Hits
2026-07-14
Scan Date
0.06
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 20HIGH 19MEDIUM 102LOW 1130

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 1271 distinct pattern matches across 15 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.

Hyper-Verbose Identifiers936 hits · 921 pts
SeverityFileLineSnippetContext
LOWtest/server-hook-management.test.js182function healthyClaudeSettingsWithThirdPartyHook() {CODE
LOWtest/server-hook-management.test.js834function makeServerWithLiveAutoStart(initialValue) {CODE
LOWtest/state-agent-icons.test.js34function shouldCheckRuntimeIconEntry(entry) {CODE
LOWtest/dashboard.test.js12function loadDashboardWithElectron(fakeElectron) {CODE
LOWtest/updater.test.js56function makeLatestReleaseResponse(release) {CODE
LOWtest/updater.test.js71function makePendingReleaseResponse(queue) {CODE
LOWtest/focus-mac-extras.test.js18function setupHermeticSupersetHome({ withDb = true } = {}) {CODE
LOWtest/copilot-hook.test.js32function makeFakeCopilotHomeWithSession(rootName, sessionId, contents) {CODE
LOWtest/permission-hotkey-focus.test.js107async function assertHotkeyLeavesFocusUntouchedOnCaptureFailure({ accelerator, expectedBehavior }) {CODE
LOWtest/settings-effect-router-notify-autoclose.test.js8function createFakeSettingsController() {CODE
LOWtest/readme-contributors.test.js89function extractContributorSection(markdown, filename) {CODE
LOWtest/permission-codex-response.test.js9function loadPermissionWithElectron(fakeElectron = null) {CODE
LOWtest/permission-codex-response.test.js32function createCodexDecisionHarness() {CODE
LOWtest/copilot-install.test.js40function makeTempHomeWithoutCopilot() {CODE
LOWtest/permission-notify-autoclose.test.js13function loadPermissionWithElectron(fakeElectron) {CODE
LOWtest/settings-effect-router.test.js8function createFakeSettingsController(initialSnapshot = {}) {CODE
LOWtest/settings-renderer-browser-env.test.js4023 assert.ok(agentsSource.includes("function syncAgentSwitchDisabledState("));CODE
LOWtest/settings-renderer-browser-env.test.js4031 assert.ok(agentOrderSource.includes("function sortAgentMetadataForSettings("));CODE
LOWtest/settings-renderer-browser-env.test.js4036 assert.ok(agentsSource.includes("function categorizeAgentsForSections("));CODE
LOWtest/settings-renderer-browser-env.test.js352function loadGeneralLanguageRowForTest({CODE
LOWtest/settings-renderer-browser-env.test.js621function createKeyboardEventForTest(key) {CODE
LOWtest/settings-renderer-browser-env.test.js950function loadTelegramApprovalTabForTest({CODE
LOWtest/settings-renderer-browser-env.test.js1108function loadAnimOverridesTabForTest({CODE
LOWtest/settings-renderer-browser-env.test.js1223function createAnimOverridesRuntime(card, overrides = {}) {CODE
LOWtest/settings-renderer-browser-env.test.js3030 assert.ok(generalSource.includes("function buildSessionHudOptionsList("));CODE
LOWtest/settings-renderer-browser-env.test.js3189 assert.ok(coreSource.includes("function clearTransientStateForChanges(changes)"));CODE
LOWtest/settings-renderer-browser-env.test.js3977 assert.ok(coreSource.includes("function measureCollapsibleBodyHeight("));CODE
LOWtest/renderer-low-power.test.js247 assert.ok(source.includes("function getLowPowerAnimationBoundaryDelayMs(root)"));CODE
LOWtest/renderer-low-power.test.js284 assert.ok(source.includes("function shouldSuppressPassiveTrackingForLowPower()"));CODE
LOWtest/renderer-low-power.test.js306 assert.ok(source.includes("function setCurrentScriptedSvgLowPowerPaused(paused)"));CODE
LOWtest/renderer-low-power.test.js649 assert.ok(source.includes("function resolveLowPowerStaticImageOverride(state, file)"));CODE
LOWtest/update-bubble-autoclose.test.js47function loadUpdateBubbleWithElectron(fakeElectron) {CODE
LOWtest/doctor-agent-integrations.test.js67function suspiciousShrinkGuardServer() {CODE
LOWtest/claude-settings-watcher.test.js359 function richHealthySettingsObject() {CODE
LOWtest/helpers/load-shared-process-with-mock.js8function loadSharedProcessWithMock({ execFileSyncMock, env, platform }) {CODE
LOWdocs/plans/plan-issue-244-low-power-idle.md165function shouldSuppressPassiveTrackingForLowPower() {CODE
LOWhooks/reasonix-install.js90function isDesiredReasonixHookEntry(entry, desiredCommand) {CODE
LOWhooks/reasonix-install.js99function normalizeReasonixHookEntries(entries, desiredCommand) {CODE
LOWhooks/server-config.js227function getPermissionProbeTimeoutMs(options = {}) {CODE
LOWhooks/server-config.js413function postPermissionToRunningServer(body, options, callback) {CODE
LOWhooks/server-config.js485function getManagedNodeCandidatesSync(homeDir, options = {}) {CODE
LOWhooks/server-config.js527async function getManagedNodeCandidatesAsync(homeDir, options = {}) {CODE
LOWhooks/server-config.js589function extractAbsolutePathFromShellOutput(raw) {CODE
LOWhooks/server-config.js611function normalizeWindowsPathForMatch(value) {CODE
LOWhooks/server-config.js630function validateWindowsNodeCandidate(value) {CODE
LOWhooks/server-config.js646function getWindowsCommonNodePaths(options = {}) {CODE
LOWhooks/server-config.js672function resolveWindowsNodeBinSync(options = {}) {CODE
LOWhooks/server-config.js713async function resolveWindowsNodeBinAsync(options = {}) {CODE
LOWhooks/kiro-install.js167function generateClawdTemplateFromBuiltin(options = {}) {CODE
LOWhooks/kiro-install.js216function syncClawdAgentFromBuiltin(filePath, options = {}) {CODE
LOWhooks/codex-install-utils.js71function buildCodexHookPosixInteropCommand(nodeBin, hookScript) {CODE
LOWhooks/codex-install-utils.js366function extractExistingWindowsNodeBin(settings, marker) {CODE
LOWhooks/codex-install-utils.js449function registerCodexCommandHooks(options = {}) {CODE
LOWhooks/codex-install-utils.js595function unregisterCodexCommandHooks(options = {}) {CODE
LOWhooks/cleanup-integrations.js91function resolveCopilotHomeForCleanup(homeDir, env, options = {}) {CODE
LOWhooks/cleanup-integrations.js101function buildCleanupOptionsForHome(homeDirInput, options = {}) {CODE
LOWhooks/cleanup-integrations.js217function unregisterAntigravityIntegration(options = {}) {CODE
LOWhooks/cleanup-integrations.js229function unregisterClaudeIntegration(options = {}) {CODE
LOWhooks/json-utils.js17async function readTextFileStripBomAsync(filePath, encoding = "utf-8") {CODE
LOWhooks/json-utils.js261function writeJsonAtomicWithBackup(filePath, data, options = {}) {CODE
876 more matches not shown…
Decorative Section Separators92 hits · 270 pts
SeverityFileLineSnippetContext
MEDIUMtest/state.test.js3608// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js3617// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js15// ── Helpers ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/state.test.js133// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js135// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js285// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js287// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js361// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js363// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js491// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js493// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js657// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js659// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js837// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js839// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js2018// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js2020// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js3166// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js3168// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js3332// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js3334// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js3557// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js3559// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js3763// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/state.test.js3767// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/win-foreground-terminal.test.js287// ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/win-foreground-terminal.test.js293// ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/updater.test.js1159// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/updater.test.js1166// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/copilot-hook.test.js383// ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/copilot-hook.test.js385// ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/permission-auto-approve.test.js189// ── Per-agent coverage ──────────────────────────────────────────────────────COMMENT
MEDIUMtest/clawd-hook.test.js1045// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/clawd-hook.test.js1047// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/theme-override.test.js26// ── state.js gate tests ────────────────────────────────────────────────────COMMENT
MEDIUMtest/theme-override.test.js188// ── settings-actions: setThemeOverrideDisabled / resetThemeOverrides ──────COMMENT
MEDIUMtest/telegram-sidecar-status-bridge.test.js12// ── Pure decision ──────────────────────────────────────────────────────────COMMENT
MEDIUMtest/telegram-sidecar-status-bridge.test.js53// ── Stateful bridge (fake timers + injected controller) ──────────────────────COMMENT
MEDIUMtest/agents.test.js37 // ── Required fields ───────────────────────────────────────────────────────COMMENT
MEDIUMtest/agents.test.js50 // ── Event mappings → valid states ───────────────────────────────────COMMENT
MEDIUMtest/agents.test.js84 // ── processNames format ─────────────────────────────────────────────COMMENT
MEDIUMtest/agents.test.js106 // ── Capabilities shape ──────────────────────────────────────────────COMMENT
MEDIUMtest/agents.test.js120 // ── Cross-agent: no duplicate IDs ───────────────────────────────────────COMMENT
MEDIUMtest/telegram-native-runner.test.js832// ── R1a sendNotification ──────────────────────────────────────────────────COMMENT
MEDIUMtest/telegram-native-runner.test.js946// ── R2 /status command ────────────────────────────────────────────────────COMMENT
MEDIUMtest/telegram-native-runner.test.js1098// ── R3 direct-send text intake ─────────────────────────────────────────────COMMENT
MEDIUMtest/shared-process.test.js17// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/shared-process.test.js19// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/shared-process.test.js85// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/shared-process.test.js87// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/shared-process.test.js131// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/shared-process.test.js133// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/shared-process.test.js277// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/shared-process.test.js279// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/shared-process.test.js319// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/shared-process.test.js321// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/shared-process.test.js502// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/shared-process.test.js504// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/shared-process.test.js630// ═════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/shared-process.test.js634// ═════════════════════════════════════════════════════════════════════════════COMMENT
32 more matches not shown…
Hallucination Indicators20 hits · 200 pts
SeverityFileLineSnippetContext
CRITICALtest/settings-renderer-browser-env.test.js3462 assert.strictEqual(harness.core.state.transientUiState.generalSwitches.has("soundMuted"), false);CODE
CRITICALtest/settings-renderer-browser-env.test.js3498 assert.strictEqual(harness.core.state.transientUiState.generalSwitches.has("soundMuted"), false);CODE
CRITICALtest/settings-renderer-browser-env.test.js3515 const manage = harness.core.state.mountedControls.generalSwitches.get("manageClaudeHooksAutomatically");CODE
CRITICALtest/settings-renderer-browser-env.test.js3516 const autoStart = harness.core.state.mountedControls.generalSwitches.get("autoStartWithClaude");CODE
CRITICALtest/settings-renderer-browser-env.test.js3541 let autoStart = harness.core.state.mountedControls.generalSwitches.get("autoStartWithClaude");CODE
CRITICALtest/settings-renderer-browser-env.test.js3553 autoStart = harness.core.state.mountedControls.generalSwitches.get("autoStartWithClaude");CODE
CRITICALtest/settings-renderer-browser-env.test.js3564 autoStart = harness.core.state.mountedControls.generalSwitches.get("autoStartWithClaude");CODE
CRITICALtest/settings-renderer-browser-env.test.js3595 const notificationPolicy = harness.core.state.mountedControls.bubblePolicyControls.get("notificationBubbleAutoCloseSCODE
CRITICALtest/settings-renderer-browser-env.test.js3704 const notificationPolicy = harness.core.state.mountedControls.bubblePolicyControls.get("notificationBubbleAutoCloseSCODE
CRITICALtest/settings-renderer-browser-env.test.js3759 const notificationPolicy = harness.core.state.mountedControls.bubblePolicyControls.get("notificationBubbleAutoCloseSCODE
CRITICALtest/settings-renderer-browser-env.test.js3789 const notificationPolicy = harness.core.state.mountedControls.bubblePolicyControls.get("notificationBubbleAutoCloseSCODE
CRITICALtest/settings-renderer-browser-env.test.js4092 harness.core.runtime.agentInstallationHints.agents.map((agent) => agent.agentId),CODE
CRITICALtest/settings-renderer-browser-env.test.js4617 const permissionsSwitch = [...harness.core.state.mountedControls.agentSwitches.values()]CODE
CRITICALtest/settings-renderer-browser-env.test.js4654 const soundSwitch = [...harness.core.state.mountedControls.agentSwitches.values()]CODE
CRITICALtest/settings-renderer-browser-env.test.js4714 const subagentSwitch = [...harness.core.state.mountedControls.agentSwitches.values()]CODE
CRITICALtest/settings-renderer-browser-env.test.js4771 const subagentSwitch = [...harness.core.state.mountedControls.agentSwitches.values()]CODE
CRITICALtest/settings-renderer-browser-env.test.js4774 const permissionsSwitch = [...harness.core.state.mountedControls.agentSwitches.values()]CODE
CRITICALtest/settings-renderer-browser-env.test.js5020 harness.core.state.mountedControls.animMapSwitches.set("clawd:error", {CODE
CRITICALtest/settings-renderer-browser-env.test.js5064 harness.core.state.mountedControls.animMapSwitches.set("clawd:error", {CODE
CRITICALtest/settings-renderer-browser-env.test.js5114 harness.core.state.mountedControls.animMapSwitches.set("clawd:error", {CODE
Over-Commented Block140 hits · 132 pts
SeverityFileLineSnippetContext
LOWtest-oneshot-gate.sh1#!/bin/bashCOMMENT
LOWtools/copilot-permission-capture/e2e-hook.js1#!/usr/bin/env nodeCOMMENT
LOWtools/copilot-permission-capture/capture.js1#!/usr/bin/env nodeCOMMENT
LOWtest/bubble-kimi-cue.test.js101COMMENT
LOWtest/permission-auto-approve.test.js1// Auto-pilot (autoApproveAllPermissions) chokepoint in showPermissionBubble.COMMENT
LOWtest/permission-plan-feedback.test.js1// Tests for the ExitPlanMode "Tell Claude what to change" feedback path.COMMENT
LOWtest/telegram-approval-settings.test.js261 "55",COMMENT
LOWtest/antigravity-install.test.js601 const command = __test.buildAntigravityHookCommand(COMMENT
LOWtest/antigravity-install.test.js661 // #568: [Console]::In.ReadToEnd() blocks forever when the runner neverCOMMENT
LOWtest/permission-autoclose-dismiss.test.js1// Autoclose dismiss-without-decision semantics. The autoclose timer firesCOMMENT
LOWtest/focus-ghostty-space.test.js1// test/focus-ghostty-space.test.js — Ghostty focus must not yank windowsCOMMENT
LOWtest/fakes/migration-transitions.js1"use strict";COMMENT
LOWtest/fakes/telegram-server.js1"use strict";COMMENT
LOWci/wayland-smoke.sh1#!/usr/bin/env bashCOMMENT
LOWagents/qoderwork.js1// QoderWork agent configurationCOMMENT
LOWagents/codex-log-monitor.js1// Codex CLI JSONL log monitorCOMMENT
LOWagents/qoder.js1// Qoder agent configurationCOMMENT
LOWhooks/codex-install-utils.js61// POSIX-side `command` for a hooks.json shared with WSL through CODEX_HOMECOMMENT
LOWhooks/claude-statusline.js1#!/usr/bin/env nodeCOMMENT
LOWhooks/codewhale-hook.js1#!/usr/bin/env nodeCOMMENT
LOWhooks/codewhale-install.js1#!/usr/bin/env nodeCOMMENT
LOWhooks/qwen-code-hook.js21const QWEN_PERMISSION_HTTP_TIMEOUT_MS = 590000;COMMENT
LOWhooks/quota-bucket.js1"use strict";COMMENT
LOWhooks/copilot-install.js1#!/usr/bin/env nodeCOMMENT
LOWhooks/copilot-install.js41COMMENT
LOWhooks/copilot-install.js141// silently overwrite a user's deny coming from a different fileCOMMENT
LOWhooks/copilot-install.js321 changed = true;COMMENT
LOWhooks/kimi-hook.js181COMMENT
LOWhooks/kimi-hook.js321COMMENT
LOWhooks/opencode-install.js1#!/usr/bin/env nodeCOMMENT
LOWhooks/codex-remote-monitor.js1#!/usr/bin/env nodeCOMMENT
LOWhooks/codex-remote-monitor.js201 // restart from 0 and drop any buffered partial, otherwise we'd skip the wholeCOMMENT
LOWhooks/state-payload-size.js1"use strict";COMMENT
LOWhooks/pid-cache.js1// hooks/pid-cache.js — Cross-process cache for the resolved process-treeCOMMENT
LOWhooks/pid-cache.js21// Why no time-based read expiry: the earlier design (idle TTL + absolute cap)COMMENT
LOWhooks/pid-cache.js41// required from shared-process.js: PR2 (#634) will have shared-process.jsCOMMENT
LOWhooks/pid-cache.js161 /* already gone / race with another SessionEnd — fine */COMMENT
LOWhooks/pid-cache.js201 const shapeOk = !!obj && typeof obj === "object"COMMENT
LOWhooks/clawd-hook.js481 // Terminal. The tree is stable within a session, so snapshot once onCOMMENT
LOWhooks/clawd-hook.js501 const canCacheSession = isWin && pidCache.canCache(sessionId, cwd);COMMENT
LOWhooks/clawd-hook.js541 } else if (!cacheOnlyNoFallback) {COMMENT
LOWhooks/antigravity-install.js161 ].join(" ");COMMENT
LOWhooks/shared-process.js381// Reads stdin until EOF, parses JSON. EOF-driven with a safety-net timer.COMMENT
LOWhooks/antigravity-statusline.js1#!/usr/bin/env nodeCOMMENT
LOWhooks/wsl-connectivity-probe.js1#!/usr/bin/env nodeCOMMENT
LOWhooks/copilot-hook.js1#!/usr/bin/env nodeCOMMENT
LOWhooks/copilot-hook.js21const path = require("path");COMMENT
LOWhooks/copilot-hook.js101 const trimmed = env.COPILOT_HOME.trim();COMMENT
LOWhooks/copilot-hook.js221 // capture showed it is always [] in current Copilot CLI.COMMENT
LOWhooks/copilot-hook.js321 : "Denied by Clawd";COMMENT
LOWhooks/copilot-hook.js401// 5. <repo>/.claude/settings.local.json (cross-tool inline)COMMENT
LOWscripts/remote-deploy.sh1#!/usr/bin/env bashCOMMENT
LOW.github/workflows/wayland-smoke.yml1# Headless-Wayland smoke test for the XWayland auto-relaunch (issue #441, PR #443).COMMENT
LOWsrc/server-route-state.js221 // PermissionRequest. Same validator the hook runs before POSTing —COMMENT
LOWsrc/server-route-state.js281 if (state.startsWith("mini-") && !svg) {COMMENT
LOWsrc/server-route-state.js301 // (matters most once PR2/#634 makes the codex hook cache-only too).COMMENT
LOWsrc/preload-settings.js1"use strict";COMMENT
LOWsrc/preload-settings.js161 runChecks: () => ipcRenderer.invoke("doctor:run-checks"),COMMENT
LOWsrc/remote-ssh-quote.js1"use strict";COMMENT
LOWsrc/win-foreground-terminal.js1"use strict";COMMENT
80 more matches not shown…
Cross-Language Confusion (JS/TS)19 hits · 95 pts
SeverityFileLineSnippetContext
HIGHtest/hermes-plugin.test.js87print(json.dumps({"events": [item["event"] for item in posts]}, sort_keys=True))CODE
HIGHtest/hermes-plugin.test.js108 return NoneCODE
HIGHtest/hermes-plugin.test.js136print(json.dumps([{"event": item["event"], "session_id": item["session_id"]} for item in posts]))CODE
HIGHtest/hermes-plugin.test.js172print(json.dumps(posts, sort_keys=True))CODE
HIGHtest/hermes-plugin.test.js220print(json.dumps(posts[-1], sort_keys=True))CODE
HIGHtest/hermes-plugin.test.js251print(json.dumps(posts[-1], sort_keys=True))CODE
HIGHtest/hermes-plugin.test.js278 return NoneCODE
HIGHtest/hermes-plugin.test.js310print(json.dumps(cases, sort_keys=True))CODE
HIGHtest/hermes-plugin.test.js361print(json.dumps({"calls": calls, "meta": meta}, sort_keys=True))CODE
HIGHtest/hermes-plugin.test.js411print(json.dumps({"calls": calls, "meta": meta}, sort_keys=True))CODE
HIGHtest/hermes-plugin.test.js450 return NoneCODE
HIGHtest/hermes-plugin.test.js466print(json.dumps({CODE
HIGHtest/hermes-plugin.test.js523 return FalseCODE
HIGHtest/hermes-plugin.test.js547print(json.dumps({"result": result, "calls": calls, "cached_port": mod._cached_port}, sort_keys=True))CODE
HIGHtest/hermes-plugin.test.js583 return FalseCODE
HIGHtest/hermes-plugin.test.js612print(json.dumps({CODE
HIGHtest/hermes-plugin.test.js649print(json.dumps({"result": result, "calls": calls, "logs": logs}, sort_keys=True))CODE
HIGHtest/hermes-plugin.test.js679 return FalseCODE
HIGHtest/hermes-plugin.test.js695print(json.dumps({CODE
Modern AI Meta-Vocabulary7 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUMtest/state.test.js3609// Qwen Code 0.16.1 self-submit filter — qwen's agentic loop fires a syntheticCOMMENT
MEDIUMdocs/releases/release-v0.6.0.md6- **Theme ecosystem** — fully pluggable theme system replacing hardcoded constants. Themes now define state-to-asset mapCODE
MEDIUMdocs/releases/release-v0.9.0.md13- **Mobile companion — read-only PWA LAN preview (M1)** (#391, #412, #419) - A new read-only mobile companion serves a sCODE
MEDIUMhooks/qwen-code-hook.js30// agentic-loop tool-result feedback, NOT user input. It used to flashCOMMENT
MEDIUMsrc/state.js317// 2000ms window covers the agentic loop with ~2x headroom while still lettingCOMMENT
MEDIUMsrc/state.js322// PostToolUseFailure (where the agentic loop may still self-submit), andCOMMENT
MEDIUMsrc/state.js1519 // Qwen Code 0.16.1 self-submit guard. qwen's agentic loop fires a syntheticCOMMENT
Excessive Try-Catch Wrapping22 hits · 22 pts
SeverityFileLineSnippetContext
MEDIUMhooks/hermes-plugin/__init__.py178def _read_runtime_port() -> Optional[int]:CODE
LOWhooks/hermes-plugin/__init__.py500 except Exception:CODE
LOWhooks/hermes-plugin/__init__.py514 except Exception:CODE
LOWhooks/hermes-plugin/__init__.py517 except Exception:CODE
LOWhooks/hermes-plugin/__init__.py633 except Exception:CODE
LOWhooks/hermes-plugin/__init__.py643 except Exception as exc:CODE
LOWhooks/hermes-plugin/__init__.py660 except Exception as exc:CODE
LOWhooks/hermes-plugin/__init__.py173 except Exception:CODE
LOWhooks/hermes-plugin/__init__.py184 except Exception:CODE
LOWhooks/hermes-plugin/__init__.py236 except Exception:CODE
LOWhooks/hermes-plugin/__init__.py253 except Exception as exc:CODE
LOWhooks/hermes-plugin/__init__.py315 except Exception:CODE
LOWhooks/hermes-plugin/__init__.py347 except Exception as exc:CODE
LOWhooks/hermes-plugin/__init__.py380 except Exception:CODE
LOWhooks/hermes-plugin/__init__.py397 except Exception:CODE
LOWhooks/hermes-plugin/__init__.py445 except Exception:CODE
LOWhooks/hermes-plugin/__init__.py473 except Exception:CODE
LOWhooks/hermes-plugin/__init__.py713 except Exception:CODE
LOWhooks/hermes-plugin/__init__.py967 except Exception:CODE
LOWhooks/hermes-plugin/__init__.py996 except Exception as exc:CODE
LOWhooks/hermes-plugin/__init__.py1080 except Exception:CODE
LOWhooks/hermes-plugin/__init__.py1126 except Exception:CODE
Verbosity Indicators10 hits · 16 pts
SeverityFileLineSnippetContext
LOWtest/gemini-log-monitor.test.js128 // Step 1: user message → thinkingCOMMENT
LOWtest/gemini-log-monitor.test.js145 // Step 2: 300ms — gemini text, no toolCalls (deferred idle starts)COMMENT
LOWtest/gemini-log-monitor.test.js153 // Step 3: 800ms — toolCalls arrive (within 2s defer) → cancel idle, emit attentionCOMMENT
LOWtest/gemini-log-monitor.test.js275 // Step 1: user messageCOMMENT
LOWtest/gemini-log-monitor.test.js287 // Step 2: gemini with tools → attention, turnHasTools=trueCOMMENT
LOWtest/gemini-log-monitor.test.js299 // Step 3: follow-up text (no tools) → should be SKIPPED (turnHasTools=true)COMMENT
LOWtest/gemini-log-monitor.test.js323 // Step 1: user messageCOMMENT
LOWtest/gemini-log-monitor.test.js335 // Step 2: gemini with tools → attention, turnHasTools=trueCOMMENT
LOWtest/gemini-log-monitor.test.js347 // Step 3: new user message → resets turnHasToolsCOMMENT
LOWtest/gemini-log-monitor.test.js360 // Step 4: gemini text without tools → should NOT be skipped (new turn, turnHasTools reset)COMMENT
Structural Annotation Overuse10 hits · 16 pts
SeverityFileLineSnippetContext
LOWtest/gemini-log-monitor.test.js128 // Step 1: user message → thinkingCOMMENT
LOWtest/gemini-log-monitor.test.js145 // Step 2: 300ms — gemini text, no toolCalls (deferred idle starts)COMMENT
LOWtest/gemini-log-monitor.test.js153 // Step 3: 800ms — toolCalls arrive (within 2s defer) → cancel idle, emit attentionCOMMENT
LOWtest/gemini-log-monitor.test.js275 // Step 1: user messageCOMMENT
LOWtest/gemini-log-monitor.test.js287 // Step 2: gemini with tools → attention, turnHasTools=trueCOMMENT
LOWtest/gemini-log-monitor.test.js299 // Step 3: follow-up text (no tools) → should be SKIPPED (turnHasTools=true)COMMENT
LOWtest/gemini-log-monitor.test.js323 // Step 1: user messageCOMMENT
LOWtest/gemini-log-monitor.test.js335 // Step 2: gemini with tools → attention, turnHasTools=trueCOMMENT
LOWtest/gemini-log-monitor.test.js347 // Step 3: new user message → resets turnHasToolsCOMMENT
LOWtest/gemini-log-monitor.test.js360 // Step 4: gemini text without tools → should NOT be skipped (new turn, turnHasTools reset)COMMENT
Fake / Example Data6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtest/settings-icons.test.js58 const placeholder = icons.getIcon("placeholder");CODE
LOWtest/settings-icons.test.js66 assert.strictEqual(icons.getIcon("no-such-tab-xyz"), icons.getIcon("placeholder"));CODE
LOWsrc/settings-renderer.js58 div.className = "placeholder";CODE
LOWsrc/settings-renderer.js60 `<div class="placeholder-icon">${getTabIcon("placeholder")}</div>` +CODE
LOWsrc/settings-tab-agents.js96 empty.className = "placeholder";CODE
LOWsrc/settings-tab-theme.js39 empty.className = "placeholder";CODE
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMtest/bubble-format.test.js163 // server is always second-to-last, tool is last — robust to extra prefixes.COMMENT
MEDIUMsrc/remote-ssh-deploy.js271 // with .trim(), so it's robust to either, but no-newline avoidsCOMMENT
Deep Nesting4 hits · 2 pts
SeverityFileLineSnippetContext
LOWhooks/hermes-plugin/__init__.py206CODE
LOWhooks/hermes-plugin/__init__.py265CODE
LOWhooks/hermes-plugin/__init__.py559CODE
LOWhooks/hermes-plugin/__init__.py1040CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtest-macos.sh95# Check if the state server received itCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/remote-deploy.sh5# Usage:COMMENT
Unused Imports1 hit · 0 pts
SeverityFileLineSnippetContext
LOWhooks/hermes-plugin/__init__.py8CODE