AI Slop Code Risk Monitor

javaht/claude-desktop-zh-cn

SlopCodeMonitor badge for javaht/claude-desktop-zh-cn Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Claude Desktop Chinese Patch (macOS & Windows & Linux)

1.3 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for javaht/claude-desktop-zh-cn, a PowerShell project with 8,104 GitHub stars. SynthScan examined 56,356 lines of code across 37 source files, recording 70 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 1.3 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

1.3
Adjusted Signal
1.3
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
8.1K
Stars
PowerShell
Language
56.4K
Lines of Code
37
Files
70
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 4.9/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 53 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.4/100 · LOW

Are imports declared and package/API names verified? 5 finding(s).

Agent Over-Engineering Ratio 5.1/100 · LOW

Are wrappers, guards, and repeated structures necessary? 57 finding(s).

PR Review Velocity Impact 6.0/100 · LOW

Which changes need focused human review? 70 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 0MEDIUM 0LOW 70

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 70 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers45 hits · 50 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_structural_replacements.py20 def test_shared_regression_cases(self):CODE
LOW⚡tests/test_structural_replacements.py27 def test_bare_and_quoted_protected_rules_are_ignored(self):CODE
LOW⚡tests/test_structural_replacements.py35 def test_catalogs_have_no_unsafe_single_word_rules(self):CODE
LOW⚡tests/test_structural_replacements.py42 def test_real_rule_preparation_keeps_visible_phrases(self):CODE
LOW⚡tests/test_structural_replacements.py49 def test_native_ui_translations_remain_available(self):CODE
LOWtests/test_slash_command_menu.py20 def test_locales_have_same_commands_and_terminology(self):CODE
LOWtests/test_slash_command_menu.py27 def test_generation_and_runtime_for_all_locales(self):CODE
LOW⚡tests/test_slash_command_menu.py41 def test_language_switch_and_repeat_installation(self):CODE
LOW⚡tests/test_slash_command_menu.py51 def test_changed_minified_aliases_are_supported(self):CODE
LOW⚡tests/test_slash_command_menu.py60 def test_template_tokens_do_not_rewrite_captured_aliases(self):CODE
LOW⚡tests/test_slash_command_menu.py69 def test_changed_catalog_key_casing_is_corrected(self):CODE
LOW⚡tests/test_slash_command_menu.py77 def test_missing_ambiguous_and_wrong_component_anchors_fail_closed(self):CODE
LOWtests/test_slash_command_menu.py91 def test_corrupt_existing_patch_is_not_overwritten(self):CODE
LOWtests/test_slash_command_menu.py104 def test_installer_wrapper_skips_unknown_versions_without_writes(self):CODE
LOWtests/test_asar_frontend.py44 def test_round_trip_preserves_header_and_contents(self):CODE
LOWtests/test_asar_frontend.py86 def test_extract_rejects_unsafe_paths(self):CODE
LOWtests/test_asar_frontend.py94 def test_prepare_and_finalize_frontend_target(self):CODE
LOW⚡tests/test_asar_frontend.py150 def test_directory_mode_is_untouched(self):CODE
LOW⚡tests/test_asar_frontend.py160 def test_missing_bundle_raises(self):CODE
LOW⚡tests/test_asar_frontend.py167 def test_integrity_digest_slot_is_synced_per_slice(self):CODE
LOWtests/test_asar_frontend.py192 def test_integrity_entry_absent_is_a_noop(self):CODE
LOWtests/test_unregister_language.py32 def test_resets_registered_whitelists(self):CODE
LOW⚡scripts/patch_claude_zh_cn.py336def is_plain_ui_text_replacement(source: str) -> bool:CODE
LOW⚡scripts/patch_claude_zh_cn.py341def is_structural_js_literal_context(text: str, literal_start: int) -> bool:CODE
LOW⚡scripts/patch_claude_zh_cn.py349def replace_frontend_hardcoded_text(CODE
LOW⚡scripts/patch_claude_zh_cn.py1299def load_json_object_or_backup(path: Path, dry_run: bool = False) -> dict[str, Any]:CODE
LOW⚡scripts/patch_claude_zh_cn.py1316def ensure_config_library_entry(meta: dict[str, Any], config_id: str) -> None:CODE
LOWscripts/patch_claude_zh_cn.py211def require_virtualization_entitlement(app: Path) -> None:CODE
LOWscripts/patch_claude_zh_cn.py295def patch_language_display_names(app: Path) -> None:CODE
LOWscripts/patch_claude_zh_cn.py316def load_frontend_hardcoded_replacements(lang_code: str) -> list[tuple[str, str]]:CODE
LOWscripts/patch_claude_zh_cn.py424def patch_hardcoded_frontend_strings(app: Path, lang_code: str) -> None:CODE
LOWscripts/patch_claude_zh_cn.py501def load_slash_command_gloss_config(lang_code: str) -> tuple[dict[str, Any], dict[str, str]]:CODE
LOWscripts/patch_claude_zh_cn.py521def replace_slash_command_menu_text(CODE
LOWscripts/patch_claude_zh_cn.py862def compute_integrity_dictionary_digest(integrity: dict[str, Any]) -> str:CODE
LOWscripts/patch_claude_zh_cn.py873def sync_integrity_digest_slot(app: Path, integrity: dict[str, Any]) -> int:CODE
LOWscripts/patch_claude_zh_cn.py905def verify_integrity_digest_slot(app: Path, integrity: dict[str, Any]) -> None:CODE
LOWscripts/patch_claude_zh_cn.py933def update_electron_asar_integrity(app: Path, key: str, asar_path: Path) -> bool:CODE
LOWscripts/patch_claude_zh_cn.py1328def get_existing_third_party_config(user_home: Path, dry_run: bool = False) -> tuple[Path, Path, dict[str, Any]] | None:CODE
LOWscripts/patch_claude_zh_cn.py1347def set_third_party_config_auto_updates(user_home: Path, enabled: bool, dry_run: bool = False) -> bool:CODE
LOWscripts/patch_claude_zh_cn.py1371def managed_preferences_user_name(user_home: Path) -> str:CODE
LOWscripts/patch_claude_zh_cn.py1378def set_macos_managed_auto_updates(user_home: Path, enabled: bool, dry_run: bool = False) -> bool:CODE
LOWscripts/patch_claude_zh_cn.py1474def discover_cc_switch_skills(skills_dir: Path) -> list[dict[str, Any]]:CODE
LOWscripts/patch_claude_zh_cn.py1499def find_claude_desktop_skills_plugin_root(user_home: Path) -> Path:CODE
LOWscripts/patch_claude_zh_cn.py1743def preinstall_should_restore(app: Path) -> bool:CODE
LOWscripts/patch_claude_zh_cn.py1814def verify_electron_asar_integrity(app: Path) -> None:CODE
Excessive Try-Catch Wrapping11 hits · 8 pts
SeverityFileLineSnippetContext
LOWinstall-linux.sh59except Exception:CODE
LOW⚡scripts/patch_claude_zh_cn.py1307 except Exception:CODE
LOWscripts/patch_claude_zh_cn.py206 except Exception:CODE
LOWscripts/patch_claude_zh_cn.py472 except Exception as exc:CODE
LOWscripts/patch_claude_zh_cn.py1107 except Exception:CODE
LOWscripts/patch_claude_zh_cn.py1274 except Exception:CODE
LOWscripts/patch_claude_zh_cn.py1390 except Exception:CODE
LOWscripts/patch_claude_zh_cn.py1707 except Exception:CODE
LOWscripts/patch_claude_zh_cn.py1739 except Exception:CODE
LOWscripts/patch_claude_zh_cn.py1800 except Exception:CODE
LOWscripts/patch_claude_zh_cn.py1967 except Exception:CODE
Deep Nesting7 hits · 6 pts
SeverityFileLineSnippetContext
LOWscripts/convert_traditional.py106CODE
LOWscripts/convert_traditional.py119CODE
LOWscripts/convert_traditional.py305CODE
LOWscripts/convert_traditional.py129CODE
LOWscripts/patch_claude_zh_cn.py233CODE
LOWscripts/patch_claude_zh_cn.py726CODE
LOWscripts/patch_claude_zh_cn.py1250CODE
Unused Imports5 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/test_slash_command_menu.py3CODE
LOWscripts/convert_traditional.py21CODE
LOWscripts/patch_linux_asar.py14CODE
LOWscripts/patch_claude_zh_cn.py17CODE
LOW…s/claude-desktop-zh-localize/scripts/verify_mapping.py15CODE
Over-Commented Block1 hit · 1 pts
SeverityFileLineSnippetContext
LOWinstall-linux.sh1#!/usr/bin/env bashCOMMENT
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscripts/patch_claude_zh_cn.py1250def set_user_locale(user_home: Path, lang_code: str) -> None:CODE