Repository Analysis

magic-wormhole/magic-wormhole

get things from one computer to another, safely

9.2 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of magic-wormhole/magic-wormhole, a Python project with 22,710 GitHub stars. SynthScan v2.0 examined 29,573 lines of code across 115 source files, recording 238 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 9.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).

9.2
Adjusted Score
9.2
Raw Score
100%
Time Factor
2026-07-10
Last Push
22.7K
Stars
Python
Language
29.6K
Lines of Code
115
Files
238
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

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 1HIGH 0MEDIUM 11LOW 226

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 238 distinct pattern matches across 11 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 Identifiers133 hits · 138 pts
SeverityFileLineSnippetContext
LOWversioneer.py691def git_versions_from_keywords(CODE
LOWversioneer.py1222def git_versions_from_keywords(STRING
LOWmisc/demo-journal.py217 def wormhole_dispatch_got_code(self, code, iid):CODE
LOWmisc/demo-journal.py225 def wormhole_dispatch_got_verifier(self, verifier, iid):CODE
LOWmisc/demo-journal.py228 def wormhole_dispatch_verified(self, _, iid):CODE
LOWmisc/demo-journal.py231 def wormhole_dispatch_got_data(self, data, iid):CODE
LOWsrc/wormhole/_rlcompleter.py67 def _commit_and_build_completions(self, text):CODE
LOWsrc/wormhole/_rlcompleter.py153def _input_code_with_completion(prompt, input_helper, reactor):CODE
LOWsrc/wormhole/transit.py83def build_sided_relay_handshake(key, side):CODE
LOWsrc/wormhole/_version.py184def git_versions_from_keywords(CODE
LOWsrc/wormhole/_nameplate.py164 def send_status_code_allocated(self):CODE
LOWsrc/wormhole/_nameplate.py170 def send_status_code_consumed(self):CODE
LOWsrc/wormhole/_interfaces.py59 def wormhole_got_unverified_key(key: bytes) -> None: # XXX definitely bytes?CODE
LOWsrc/wormhole/_interfaces.py416 def get_nameplate_completions(prefix):CODE
LOWsrc/wormhole/_interfaces.py451 def when_wordlist_is_available():CODE
LOWsrc/wormhole/_rendezvous.py178 def _initial_connection_failed(self, f):CODE
LOWsrc/wormhole/_rendezvous.py287 def _response_handle_allocated(self, msg):CODE
LOWsrc/wormhole/_rendezvous.py292 def _response_handle_nameplates(self, msg):CODE
LOWsrc/wormhole/_rendezvous.py332 def _response_handle_released(self, msg):CODE
LOWsrc/wormhole/_key.py120 def deliver_code_and_stashed_pake(self, code):CODE
LOWsrc/wormhole/_boss.py402 def send_status_confirmed_key(self, plaintext):CODE
LOWsrc/wormhole/_input.py46 def when_wordlist_is_available(self):CODE
LOWsrc/wormhole/_input.py94 def get_nameplate_completions(self, prefix):CODE
LOWsrc/wormhole/_input.py129 def _get_nameplate_completions(self, prefix):CODE
LOWsrc/wormhole/_input.py316 def get_nameplate_completions(self, prefix):CODE
LOWsrc/wormhole/_input.py326 def when_wordlist_is_available(self):CODE
LOWsrc/wormhole/test/test_machines.py822def test_close_while_idle_nameplate():CODE
LOWsrc/wormhole/test/test_machines.py828def test_close_while_idle_connected():CODE
LOWsrc/wormhole/test/test_machines.py836def test_close_while_unclaimed():CODE
LOWsrc/wormhole/test/test_machines.py842def test_close_while_claiming():CODE
LOWsrc/wormhole/test/test_machines.py1185def test_close_while_idle_but_connected():CODE
LOWsrc/wormhole/test/test_machines.py1191def test_close_while_mailbox_disconnected():CODE
LOWsrc/wormhole/test/test_machines.py1197def test_close_while_reconnecting():CODE
LOWsrc/wormhole/test/test_machines.py504def test_connect_first_lister():CODE
LOWsrc/wormhole/test/test_machines.py531def test_connect_first_ask_twice():CODE
LOWsrc/wormhole/test/test_machines.py627def test_connect_first_allocator():CODE
LOWsrc/wormhole/test/test_machines.py700def test_connect_first_nameplate():CODE
LOWsrc/wormhole/test/test_machines.py726def test_reconnect_while_claiming():CODE
LOWsrc/wormhole/test/test_machines.py740def test_reconnect_while_claimed():CODE
LOWsrc/wormhole/test/test_machines.py763def test_reconnect_while_releasing():CODE
LOWsrc/wormhole/test/test_machines.py790def test_reconnect_while_done():CODE
LOWsrc/wormhole/test/test_machines.py857def test_close_while_claiming_but_disconnected():CODE
LOWsrc/wormhole/test/test_machines.py901def test_close_while_claimed_but_disconnected():CODE
LOWsrc/wormhole/test/test_machines.py928def test_close_while_releasing():CODE
LOWsrc/wormhole/test/test_machines.py954def test_close_while_releasing_but_disconnecteda():CODE
LOWsrc/wormhole/test/test_machines.py1017def test_close_while_done_but_disconnected():CODE
LOWsrc/wormhole/test/test_machines.py1069def test_connect_first_mailbox(): # connect before got_mailboxCODE
LOWsrc/wormhole/test/test_transit.py39async def test_there_might_also_be_none():CODE
LOWsrc/wormhole/test/test_transit.py74async def test_cancel_after_one_failure():CODE
LOWsrc/wormhole/test/test_transit.py124async def test_not_forever_cancel_early(forever):CODE
LOWsrc/wormhole/test/test_transit.py152def test_allocate_port_no_reuseaddr():CODE
LOWsrc/wormhole/test/test_transit.py204async def test_ignore_localhost_hint_orig():CODE
LOWsrc/wormhole/test/test_transit.py219async def test_ignore_localhost_hint():CODE
LOWsrc/wormhole/test/test_transit.py234async def test_keep_only_localhost_hint():CODE
LOWsrc/wormhole/test/test_transit.py270async def test_transit_key_already_set():CODE
LOWsrc/wormhole/test/test_transit.py464async def test_one_fail_one_success():CODE
LOWsrc/wormhole/test/test_transit.py669async def test_handshake_other_error():CODE
LOWsrc/wormhole/test/test_transit.py812async def test_receiver_rejected_politely():CODE
LOWsrc/wormhole/test/test_transit.py844async def test_receiver_rejected_rudely():CODE
LOWsrc/wormhole/test/test_transit.py875async def test_cancel_during_negotiation():CODE
73 more matches not shown…
Over-Commented Block38 hits · 38 pts
SeverityFileLineSnippetContext
LOW.appveyor.yml41after_test:COMMENT
LOWversioneer.py1881 # this fixes the "python setup.py develop" case (also 'install' andCOMMENT
LOWversioneer.py1921 #COMMENT
LOWmisc/demo-journal.py201 return b"ok"COMMENT
LOWmisc/web/timeline.js101 // [id], details={} }COMMENT
LOWdocs/conf.py1COMMENT
LOWdocs/conf.py141 # The paper size ('letterpaper' or 'a4paper').COMMENT
LOWsrc/wormhole/_rlcompleter.py101 if not self._committed_nameplate:COMMENT
LOWsrc/wormhole/_rlcompleter.py181 # user into satisfying the blocking read so we can exit.COMMENT
LOWsrc/wormhole/transit.py41COMMENT
LOWsrc/wormhole/transit.py281COMMENT
LOWsrc/wormhole/transit.py921# how should the Listener be managed? we want to shut it down when theCOMMENT
LOWsrc/wormhole/_rendezvous.py241 # CLOSE_STATUS_CODE_ABNORMAL_CLOSE, and delivers onClose() withoutCOMMENT
LOWsrc/wormhole/_boss.py201COMMENT
LOWsrc/wormhole/wormhole.py21COMMENT
LOWsrc/wormhole/wormhole.py301 client_version = ("python", v)COMMENT
LOWsrc/wormhole/test/test_machines.py1701# #TerminatorCOMMENT
LOWsrc/wormhole/test/test_cli.py241 f.write(b"fail")COMMENT
LOWsrc/wormhole/test/test_cli.py321 return pytest.skip(COMMENT
LOWsrc/wormhole/test/dilate/test_record.py141 assert n.mock_calls == [mock.call.start_handshake(),COMMENT
LOWsrc/wormhole/test/dilate/test_record.py161 # | 3 | | write_message | handshake | |COMMENT
LOWsrc/wormhole/cli/cmd_receive.py81 tor=self._tor,COMMENT
LOWsrc/wormhole/cli/cmd_send.py181 notify.cancel()COMMENT
LOWsrc/wormhole/cli/cmd_send.py301 # os.path.joined with the unicode args.what .COMMENT
LOWsrc/wormhole/cli/cmd_send.py321 # * we're running on windowsCOMMENT
LOWsrc/wormhole/_dilation/inbound.py141COMMENT
LOWsrc/wormhole/_dilation/connection.py21# The next object up knows whether it's expecting a Handshake or a message. ItCOMMENT
LOWsrc/wormhole/_dilation/connection.py61# * send "sided relay handshake": "please relay TOKEN for side SIDE\n"COMMENT
LOWsrc/wormhole/_dilation/outbound.py21# to reestablish a new one), registered subchannels will be paused, butCOMMENT
LOWsrc/wormhole/_dilation/outbound.py41# unusual because we have multiple Subchannels that get merged into theCOMMENT
LOWsrc/wormhole/_dilation/outbound.py61# Producers will be paused, and others will be resumedCOMMENT
LOWsrc/wormhole/_dilation/outbound.py81# queues some data on the TCP connection (and then might callCOMMENT
LOWsrc/wormhole/_dilation/outbound.py101#COMMENT
LOWsrc/wormhole/_dilation/outbound.py121# * keep a set of IPushProducers which are paused, a second set ofCOMMENT
LOWsrc/wormhole/_dilation/outbound.py141#COMMENT
LOWsrc/wormhole/_dilation/subchannel.py21# length prefix itself), so the padded message must be less than 2**32 bytesCOMMENT
LOWsrc/wormhole/_dilation/connector.py341 made_direct = TrueCOMMENT
LOWsrc/wormhole/_dilation/manager.py141# in WANTING, then we process all previously-queued inbound DILATE-nCOMMENT
Excessive Try-Catch Wrapping18 hits · 22 pts
SeverityFileLineSnippetContext
LOWsrc/wormhole/_rlcompleter.py43 except Exception as e:CODE
MEDIUMsrc/wormhole/_rlcompleter.py40def completer(self, text, state):CODE
LOWsrc/wormhole/transit.py138 except Exception as e:CODE
MEDIUMsrc/wormhole/transit.py135def dataReceived(self, data):CODE
LOWsrc/wormhole/_rendezvous.py32 except Exception:CODE
LOWsrc/wormhole/_rendezvous.py204 except Exception as e:CODE
LOWsrc/wormhole/_rendezvous.py231 except Exception as e:CODE
LOWsrc/wormhole/tor_manager.py107 except Exception:CODE
LOWsrc/wormhole/eventual.py32 except Exception:CODE
LOWsrc/wormhole/ipaddrs.py60 except Exception:CODE
LOWsrc/wormhole/cli/cmd_receive.py114 except Exception:CODE
MEDIUMsrc/wormhole/cli/cmd_receive.py111def _bad(f):CODE
LOWsrc/wormhole/cli/cmd_ssh.py52 except Exception:CODE
LOWsrc/wormhole/cli/cmd_send.py94 except Exception:CODE
MEDIUMsrc/wormhole/cli/cmd_send.py91def _bad(f):CODE
LOWsrc/wormhole/cli/cli.py179 except Exception as e:CODE
LOWsrc/wormhole/_dilation/outbound.py353 except Exception:CODE
LOWsrc/wormhole/_dilation/outbound.py360 except Exception:CODE
Deep Nesting18 hits · 18 pts
SeverityFileLineSnippetContext
LOWversioneer.py1194CODE
LOWversioneer.py1427CODE
LOWversioneer.py1752CODE
LOWversioneer.py2172CODE
LOWsrc/wormhole/transit.py681CODE
LOWsrc/wormhole/_version.py156CODE
LOWsrc/wormhole/_version.py602CODE
LOWsrc/wormhole/tor_manager.py32CODE
LOWsrc/wormhole/test/test_ssh.py44CODE
LOWsrc/wormhole/test/test_cli.py416CODE
LOWsrc/wormhole/test/test_cli.py808CODE
LOWsrc/wormhole/cli/cmd_receive.py406CODE
LOWsrc/wormhole/cli/cmd_ssh.py15CODE
LOWsrc/wormhole/cli/cmd_send.py273CODE
LOWsrc/wormhole/_dilation/connection.py213CODE
LOWsrc/wormhole/_dilation/connection.py635CODE
LOWsrc/wormhole/_dilation/manager.py460CODE
LOWsrc/wormhole/_dilation/manager.py583CODE
AI Slop Vocabulary7 hits · 15 pts
SeverityFileLineSnippetContext
LOWversioneer.py533 # each be defined on a line of their own. _version.py will just callCOMMENT
LOWsrc/wormhole/transit.py483 # close-on-exec because we close it right away. So just add SO_REUSEADDR.COMMENT
MEDIUMsrc/wormhole/_status.py108# note that the tests (e.g. test_api.py) leverage the order of theseCOMMENT
LOWsrc/wormhole/_version.py26 # each be defined on a line of their own. _version.py will just callCOMMENT
MEDIUMsrc/wormhole/test/dilate/test_record.py302 # structures can be set up and paired properly. EssentiallyCOMMENT
MEDIUMsrc/wormhole/_dilation/manager.py29# note that these are strings, not numbers, to facilitateCOMMENT
LOWsrc/wormhole/_dilation/manager.py975 # invoked; upstream calls are basically just call-through -- soCOMMENT
Unused Imports12 hits · 12 pts
SeverityFileLineSnippetContext
LOWversioneer.py318CODE
LOWversioneer.py318CODE
LOWversioneer.py318CODE
LOWmisc/dump-timing.py5CODE
LOWmisc/dump-timing.py5CODE
LOWsrc/wormhole/__init__.py1CODE
LOWsrc/wormhole/__init__.py2CODE
LOWsrc/wormhole/__init__.py3CODE
LOWsrc/wormhole/__init__.py3CODE
LOWsrc/wormhole/__init__.py4CODE
LOWsrc/wormhole/_dilation/_noise.py5CODE
LOWsrc/wormhole/_dilation/_noise.py11CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALsrc/wormhole/test/test_wormhole.py715 w1._boss._RC._ws.transport.loseConnection()CODE
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMversioneer.py514# This file is released into the public domain.COMMENT
MEDIUMdocs/conf.py5# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMsrc/wormhole/_version.py7# This file is released into the public domain.COMMENT
AI Structural Patterns5 hits · 5 pts
SeverityFileLineSnippetContext
LOWmisc/demo-journal.py114CODE
LOWsrc/wormhole/_key.py46CODE
LOWsrc/wormhole/wormhole.py266CODE
LOWsrc/wormhole/test/test_ipaddrs.py111CODE
LOWsrc/wormhole/test/test_cli.py416CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsrc/wormhole/_dilation/connection.py560 # when we move to the sans-io event-driven scheme, this queueCOMMENT
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/wormhole/__init__.py9__all__ = [CODE
LOWsrc/wormhole/_key.py17__all__ = ["derive_key", "derive_phase_key", "CryptoError", "Key"]CODE