Claude Desktop Chinese Patch (macOS & Windows)
This report presents the forensic synthetic code analysis of javaht/claude-desktop-zh-cn, a Python project with 6,474 GitHub stars. SynthScan v2.0 examined 53,991 lines of code across 34 source files, recording 185 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 3.7 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).
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.
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 185 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⚡ | scripts/patch_claude_zh_cn.py | 2312 | except Exception: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 151 | except Exception: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 2035 | except Exception: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 2205 | except Exception: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 2395 | except Exception: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 2731 | except Exception: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 2900 | except Exception: | CODE |
| LOW⚡ | scripts/experimental/frida_launch_zh.py | 791 | except Exception as exc: | CODE |
| LOW⚡ | scripts/experimental/frida_launch_zh.py | 793 | except Exception as exc: | CODE |
| LOW⚡ | scripts/experimental/frida_launch_zh.py | 796 | except Exception: | CODE |
| LOW⚡ | scripts/experimental/frida_launch_zh.py | 1200 | except Exception as exc: | CODE |
| LOW⚡ | scripts/experimental/frida_launch_zh.py | 1206 | except Exception as exc: | CODE |
| LOW⚡ | scripts/experimental/frida_launch_zh.py | 1209 | except Exception: | CODE |
| LOW⚡ | scripts/experimental/frida_launch_zh.py | 1425 | except Exception: | CODE |
| LOW⚡ | scripts/experimental/frida_launch_zh.py | 1434 | except Exception: | CODE |
| LOW⚡ | scripts/experimental/frida_launch_zh.py | 1443 | except Exception: | CODE |
| LOW⚡ | scripts/experimental/frida_launch_zh.py | 1643 | except Exception as exc: | CODE |
| LOW⚡ | scripts/experimental/frida_launch_zh.py | 1653 | except Exception: | CODE |
| LOW⚡ | scripts/experimental/frida_launch_zh.py | 1661 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 157 | except Exception as exc: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 500 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 544 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 555 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 599 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 626 | except Exception as exc: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 649 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 665 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 721 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 726 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 750 | except Exception as exc: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 814 | except Exception as exc: # pragma: no cover | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 845 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 872 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 907 | except Exception as exc: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 939 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 969 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 991 | except Exception as exc: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 1025 | except Exception as exc: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 1079 | except Exception as exc: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 1247 | except Exception as exc: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 1250 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 1271 | except Exception as exc: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 1308 | except Exception as exc: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 1360 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 1372 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 1387 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 1410 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 1622 | except Exception as exc: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 1682 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 1693 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 1858 | except Exception as exc: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 1882 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 1900 | except Exception: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 1931 | except Exception as exc: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 1987 | except Exception as exc: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 2022 | except Exception as exc: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 2199 | except Exception as exc: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 2232 | except Exception as exc: | CODE |
| LOW | scripts/experimental/typing_shim_sitecustomize.py | 30 | except Exception: | CODE |
| LOW | scripts/experimental/typing_shim_sitecustomize.py | 32 | except Exception: | CODE |
| 23 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/test_dom_translation_guards.py | 95 | this.parentElement = null; | CODE |
| HIGH | tests/test_dom_translation_guards.py | 106 | this.parentElement = null; | CODE |
| HIGH | tests/test_dom_translation_guards.py | 113 | this.children.push(child); | CODE |
| HIGH | tests/test_dom_translation_guards.py | 126 | return null; | CODE |
| HIGH | tests/test_dom_translation_guards.py | 138 | return null; | CODE |
| HIGH | tests/test_dom_translation_guards.py | 156 | : null; | CODE |
| HIGH | tests/test_dom_translation_guards.py | 176 | result.push(node); | CODE |
| HIGH | tests/test_dom_translation_guards.py | 234 | globalThis.localStorage = {setItem() {}, getItem() { return null; }}; | CODE |
| HIGH | tests/test_dom_translation_guards.py | 249 | if (!filter || filter.acceptNode(node) === NodeFilter.FILTER_ACCEPT) { | CODE |
| HIGH | tests/test_dom_translation_guards.py | 253 | return null; | CODE |
| HIGH | tests/test_dom_translation_guards.py | 288 | protectedAnchorHidden: protectedAnchor.style.visibility || null, | CODE |
| HIGH | tests/test_dom_translation_guards.py | 288 | protectedAnchorHidden: protectedAnchor.style.visibility || null, | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_dom_translation_guards.py | 47 | def extract_windows_dom_template() -> str: | CODE |
| LOW | tests/test_dom_translation_guards.py | 55 | def materialize_windows_dom_script(template: str) -> str: | CODE |
| LOW | tests/test_dom_translation_guards.py | 319 | def assert_common_guard_contract(self, script: str): | STRING |
| LOW | tests/test_dom_translation_guards.py | 349 | def assert_original_translation_paths(self, script: str): | STRING |
| LOW | tests/test_dom_translation_guards.py | 365 | def test_python_generator_guards_every_existing_write_path(self): | STRING |
| LOW | tests/test_dom_translation_guards.py | 375 | def test_windows_generator_matches_the_content_safety_contract(self): | STRING |
| LOW | tests/test_dom_translation_guards.py | 400 | def test_python_generated_script_preserves_protected_dom_content(self): | STRING |
| LOW | tests/test_dom_translation_guards.py | 403 | def test_windows_generated_script_preserves_protected_dom_content(self): | STRING |
| LOW⚡ | scripts/patch_claude_zh_cn.py | 241 | def is_plain_ui_text_replacement(source: str) -> bool: | CODE |
| LOW⚡ | scripts/patch_claude_zh_cn.py | 246 | def is_structural_js_literal_context(text: str, literal_start: int) -> bool: | CODE |
| LOW⚡ | scripts/patch_claude_zh_cn.py | 251 | def replace_frontend_hardcoded_text(text: str, source: str, target: str) -> tuple[str, int]: | CODE |
| LOW⚡ | scripts/patch_claude_zh_cn.py | 496 | def strip_online_locale_injection(text: str) -> tuple[str, bool]: | CODE |
| LOW⚡ | scripts/patch_claude_zh_cn.py | 505 | def remove_online_locale_preload(content: bytes) -> tuple[bytes, bool]: | CODE |
| LOW⚡ | scripts/patch_claude_zh_cn.py | 511 | def patch_online_locale_preload(app: Path, lang_code: str) -> None: | CODE |
| LOW⚡ | scripts/patch_claude_zh_cn.py | 2304 | def load_json_object_or_backup(path: Path, dry_run: bool = False) -> dict[str, Any]: | CODE |
| LOW⚡ | scripts/patch_claude_zh_cn.py | 2321 | def ensure_config_library_entry(meta: dict[str, Any], config_id: str) -> None: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 156 | def require_virtualization_entitlement(app: Path) -> None: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 204 | def patch_language_display_names(app: Path) -> None: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 221 | def load_frontend_hardcoded_replacements(lang_code: str) -> list[tuple[str, str]]: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 275 | def patch_hardcoded_frontend_strings(app: Path, lang_code: str) -> None: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 359 | def encode_asar_header_dynamic(header_string: str) -> bytes: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 459 | def replace_asar_file_content(app: Path, file_path: str, patched_content: bytes) -> bool: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 540 | def is_online_dom_translation_entry(source: str, target: str) -> bool: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 549 | def build_online_translation_map(app: Path, lang_code: str) -> dict[str, str]: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 573 | def build_online_dom_translation_script(lang_code: str, mapping: dict[str, str]) -> str: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 711 | def build_online_locale_main_process_script( | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 739 | def strip_online_locale_main_process_patch(text: str) -> tuple[str, bool]: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 761 | def strip_online_locale_lock_patch(text: str) -> tuple[str, bool]: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 807 | def find_online_locale_lock_asar_target( | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 847 | def patch_online_locale_lock_in_asar(app: Path, lang_code: str) -> str: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 866 | def find_main_view_dom_ready_handler(text: str) -> re.Match[str] | None: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 894 | def find_main_process_asar_target( | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 939 | def patch_online_locale_main_process(app: Path, lang_code: str) -> None: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1059 | def update_electron_asar_integrity(app: Path, header_string: str) -> None: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1157 | def get_model_picker_replacements(lang_code: str) -> dict[str, str]: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1199 | def patch_model_picker_strings(app: Path, lang_code: str) -> None: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1230 | def get_main_process_menu_replacements(lang_code: str) -> dict[str, str]: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1416 | def get_main_process_menu_intl_replacements(lang_code: str) -> dict[str, str]: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1563 | def get_main_process_menu_role_replacements(lang_code: str) -> dict[str, str]: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1665 | def replace_menu_intl_message_by_id(text: str, message_id: str, target: str) -> tuple[str, int]: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1702 | def replace_menu_literal_length_preserving(text: str, source: str, target: str) -> tuple[str, int]: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1722 | def patch_length_preserving_main_process_menu_labels(app: Path, lang_code: str) -> None: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1767 | def patch_hardcoded_main_process_menu_labels(app: Path, lang_code: str) -> None: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 2044 | def _codesign_team_and_signature(path: Path) -> tuple[str, str]: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 2070 | def verify_frida_resign_consistent(app: Path) -> None: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 2221 | def install_locale_resources_in_place( | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 2333 | def get_existing_third_party_config(user_home: Path, dry_run: bool = False) -> tuple[Path, Path, dict[str, Any]] | None: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 2352 | def set_third_party_config_auto_updates(user_home: Path, enabled: bool, dry_run: bool = False) -> bool: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 2376 | def managed_preferences_user_name(user_home: Path) -> str: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 2383 | def set_macos_managed_auto_updates(user_home: Path, enabled: bool, dry_run: bool = False) -> bool: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 2479 | def discover_cc_switch_skills(skills_dir: Path) -> list[dict[str, Any]]: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 2504 | def find_claude_desktop_skills_plugin_root(user_home: Path) -> Path: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 2745 | def verify_electron_asar_integrity(app: Path) -> None: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 2767 | def verify_online_locale_patch(app: Path, lang_code: str) -> None: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 264 | def build_runtime_replacements(app: Path) -> list[dict[str, str]]: | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 566 | def make_frida_message_handler( | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 888 | def ensure_user_locale_if_wrong( | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 1293 | def install_native_menu_hooks( | CODE |
| LOW | scripts/experimental/frida_launch_zh.py | 1786 | def refresh_payload_if_needed(*, force: bool = False, reason: str = "change") -> bool: | CODE |
| LOW | scripts/experimental/frida_launch_zh_win.py | 126 | def replace_asar_file_content_in_file(asar_path: Path, file_path: str, patched_content: bytes) -> bool: | CODE |
| 5 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/patch_claude_zh_cn.py | 1010 | CODE | |
| LOW | scripts/patch_claude_zh_cn.py | 1079 | CODE | |
| LOW | scripts/patch_claude_zh_cn.py | 2044 | CODE | |
| LOW | scripts/patch_claude_zh_cn.py | 2070 | CODE | |
| LOW | scripts/patch_claude_zh_cn.py | 2181 | CODE | |
| LOW | scripts/experimental/frida_launch_zh.py | 98 | CODE | |
| LOW | scripts/experimental/frida_launch_zh.py | 1570 | CODE | |
| LOW | scripts/experimental/frida_launch_zh.py | 1705 | CODE | |
| LOW | scripts/experimental/frida_launch_zh.py | 2015 | CODE | |
| LOW | scripts/experimental/frida_launch_zh.py | 1673 | CODE | |
| LOW | scripts/experimental/frida_launch_zh_win.py | 980 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/patch_claude_zh_cn.py | 17 | CODE | |
| LOW | scripts/experimental/frida_launch_zh.py | 29 | CODE | |
| LOW | scripts/experimental/frida_launch_zh.py | 62 | CODE | |
| LOW | scripts/experimental/frida_launch_zh_win.py | 14 | CODE | |
| LOW | scripts/experimental/frida_launch_zh_win.py | 51 | CODE | |
| LOW | scripts/experimental/cdp_launch_zh.py | 12 | CODE | |
| LOW | scripts/experimental/cdp_launch_zh.py | 18 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/patch_claude_zh_cn.py | 440 | def set_asar_offset(entry: dict[str, Any], offset: int) -> None: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1059 | def update_electron_asar_integrity(app: Path, header_string: str) -> None: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 2181 | def set_user_locale(user_home: Path, lang_code: str) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/patch_claude_zh_cn.py | 682 | '["aria-label","title","placeholder","value"].forEach(a=>{' | CODE |
| LOW | scripts/experimental/frida_launch_zh_win.py | 622 | for(const a of ["aria-label","title","placeholder","value"]){ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/experimental/frida-zh-resident-ctl.sh | 3 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/experimental/requirements-frida.txt | 1 | # Frida runtime Chinese launcher dependencies (macOS + Windows experimental). | COMMENT |