decentralized mesh chat
This report presents the forensic synthetic code analysis of permissionlesstech/bitchat-android, a Kotlin project with 7,240 GitHub stars. SynthScan v2.0 examined 144,230 lines of code across 597 source files, recording 349 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 23.7 places this repository in the Moderate 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).
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 349 distinct pattern matches across 10 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 |
|---|---|---|---|---|
| CRITICAL | …rc/test/java/com/bitchat/android/ui/ChatUIUtilsTest.kt | 180 | private fun androidx.compose.ui.graphics.Color.isSpecified() = | CODE |
| CRITICAL⚡ | app/src/main/java/com/bitchat/android/MainActivity.kt | 115 | com.bitchat.android.service.AppShutdownCoordinator.cancelPendingShutdown() | CODE |
| CRITICAL⚡ | app/src/main/java/com/bitchat/android/MainActivity.kt | 124 | meshService = com.bitchat.android.service.MeshServiceHolder.getOrCreate(applicationContext) | CODE |
| CRITICAL⚡ | app/src/main/java/com/bitchat/android/MainActivity.kt | 125 | unifiedMeshService = com.bitchat.android.service.MeshServiceHolder.getUnifiedOrCreate(applicationContext) | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/MainActivity.kt | 397 | val bleRequired = try { com.bitchat.android.ui.debug.DebugPreferenceManager.getBleEnabled(true) } catch (_: Exce | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/MainActivity.kt | 436 | !com.bitchat.android.onboarding.BackgroundLocationPreferenceManager.isSkipped(this@MainActivity) | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/MainActivity.kt | 499 | com.bitchat.android.wifiaware.WifiAwareController.startIfPossible() | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/MainActivity.kt | 564 | val bleRequired2 = try { com.bitchat.android.ui.debug.DebugPreferenceManager.getBleEnabled(true) } catch (_: Exc | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/MainActivity.kt | 606 | com.bitchat.android.service.MeshForegroundService.start(applicationContext) | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/MainActivity.kt | 690 | com.bitchat.android.nostr.LocationNotesInitializer.initialize(this@MainActivity) | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/MainActivity.kt | 731 | com.bitchat.android.service.AppShutdownCoordinator.cancelPendingShutdown() | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/MainActivity.kt | 759 | val bleRequired = try { com.bitchat.android.ui.debug.DebugPreferenceManager.getBleEnabled(true) } catch (_: | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/MainActivity.kt | 777 | com.bitchat.android.wifiaware.WifiAwareController.startIfPossible() | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/MainActivity.kt | 838 | val channelId = com.bitchat.android.geohash.ChannelID.Location(geohashChannel) | CODE |
| CRITICAL | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 17 | com.bitchat.android.mesh.PowerManager.getInstance(this).start() | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 29 | try { com.bitchat.android.nostr.LocationNotesInitializer.initialize(this) } catch (_: Exception) { } | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 33 | com.bitchat.android.favorites.FavoritesPersistenceService.initialize(this) | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 40 | com.bitchat.android.services.AppStateStore.initializeConversationPersistence(this) | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 45 | com.bitchat.android.nostr.NostrIdentityBridge.getCurrentNostrIdentity(this) | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 52 | com.bitchat.android.ui.theme.ChatUiModeManager.init(this) | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 55 | try { com.bitchat.android.ui.debug.DebugPreferenceManager.init(this) } catch (_: Exception) { } | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 59 | val enabled = com.bitchat.android.ui.debug.DebugPreferenceManager.getWifiAwareEnabled(false) | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 60 | com.bitchat.android.wifiaware.WifiAwareController.initialize(this, enabled) | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 65 | com.bitchat.android.nostr.GeohashAliasRegistry.initialize(this) | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 66 | com.bitchat.android.nostr.GeohashConversationRegistry.initialize(this) | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 71 | try { com.bitchat.android.nostr.NostrBackgroundRuntime.initialize(this) } catch (_: Exception) { } | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 74 | try { com.bitchat.android.service.MeshServicePreferences.init(this) } catch (_: Exception) { } | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 77 | try { com.bitchat.android.service.MeshForegroundService.start(this) } catch (_: Exception) { } | CODE |
| CRITICAL | …/main/java/com/bitchat/android/mesh/PacketProcessor.kt | 19 | private val debugManager by lazy { try { com.bitchat.android.ui.debug.DebugSettingsManager.getInstance() } catch (e: | CODE |
| CRITICAL | …com/bitchat/android/mesh/BluetoothPacketBroadcaster.kt | 85 | val manager = com.bitchat.android.ui.debug.DebugSettingsManager.getInstance() | CODE |
| CRITICAL⚡ | …com/bitchat/android/mesh/BluetoothGattServerManager.kt | 57 | com.bitchat.android.ui.debug.DebugSettingsManager.getInstance().bleEnabled.value | CODE |
| CRITICAL⚡ | …com/bitchat/android/mesh/BluetoothGattServerManager.kt | 59 | try { com.bitchat.android.ui.debug.DebugPreferenceManager.getBleEnabled(true) } catch (_: Exception) { true | CODE |
| CRITICAL⚡ | …com/bitchat/android/mesh/BluetoothGattServerManager.kt | 65 | (try { com.bitchat.android.ui.debug.DebugSettingsManager.getInstance().gattServerEnabled.value } catch (_: E | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 219 | try { com.bitchat.android.services.AppStateStore.setTransportPeers(transport.id, peerIDs) } catch (_: Ex | CODE |
| CRITICAL⚡ | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 415 | com.bitchat.android.services.AppStateStore.updatePrivateMessageStatus( | CODE |
| CRITICAL⚡ | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 417 | com.bitchat.android.model.DeliveryStatus.Delivered(peerID, java.util.Date()) | CODE |
| CRITICAL⚡ | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 425 | com.bitchat.android.services.AppStateStore.updatePrivateMessageStatus( | CODE |
| CRITICAL⚡ | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 427 | com.bitchat.android.model.DeliveryStatus.Read(peerID, java.util.Date()) | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 787 | data = com.bitchat.android.services.VerificationService.buildVerifyChallenge(noiseKeyHex, nonceA) | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 793 | val tlv = com.bitchat.android.services.VerificationService.buildVerifyResponse(noiseKeyHex, nonceA) ?: return | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 875 | tlvPayload += com.bitchat.android.services.meshgraph.GossipTLV.encodeNeighbors(directPeersForGossip) | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 877 | com.bitchat.android.services.meshgraph.MeshGraphService.getInstance() | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 891 | try { com.bitchat.android.services.AppStateStore.setTransportDirectPeers(transport.id, localDirect) } catch | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 893 | com.bitchat.android.services.AppStateStore.getDirectPeers().ifEmpty { localDirect } | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 1049 | val path = com.bitchat.android.services.meshgraph.RoutePlanner.shortestPath( | CODE |
| CRITICAL | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 84 | val noisePayload = com.bitchat.android.model.NoisePayload.decode(decryptedData) | CODE |
| CRITICAL | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 93 | val privateMessage = com.bitchat.android.model.PrivateMessagePacket.decode(noisePayload.data) | CODE |
| CRITICAL⚡ | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 128 | val file = com.bitchat.android.model.BitchatFilePacket.decode(noisePayload.data) | CODE |
| CRITICAL⚡ | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 132 | val savedPath = com.bitchat.android.features.file.FileUtils.saveIncomingFile(appContext, file) | CODE |
| CRITICAL⚡ | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 137 | type = com.bitchat.android.features.file.FileUtils.messageTypeForMime(file.mimeType), | CODE |
| CRITICAL | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 353 | val neighborsOrNull = com.bitchat.android.services.meshgraph.GossipTLV.decodeNeighborsFromAnnouncementPayloa | CODE |
| CRITICAL | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 354 | com.bitchat.android.services.meshgraph.MeshGraphService.getInstance() | CODE |
| CRITICAL⚡ | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 466 | val isFileTransfer = com.bitchat.android.protocol.MessageType.fromValue(packet.type) == com.bitchat.android. | CODE |
| CRITICAL⚡ | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 467 | val file = com.bitchat.android.model.BitchatFilePacket.decode(packet.payload) | CODE |
| CRITICAL⚡ | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 470 | val savedPath = com.bitchat.android.features.file.FileUtils.saveIncomingFile(appContext, file) | CODE |
| CRITICAL⚡ | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 475 | type = com.bitchat.android.features.file.FileUtils.messageTypeForMime(file.mimeType), | CODE |
| CRITICAL | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 506 | val isFileTransfer = com.bitchat.android.protocol.MessageType.fromValue(packet.type) == | CODE |
| CRITICAL⚡ | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 526 | val file = com.bitchat.android.model.BitchatFilePacket.decode(packet.payload) | CODE |
| CRITICAL⚡ | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 529 | val savedPath = com.bitchat.android.features.file.FileUtils.saveIncomingFile(appContext, file) | CODE |
| CRITICAL⚡ | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 534 | type = com.bitchat.android.features.file.FileUtils.messageTypeForMime(file.mimeType), | CODE |
| 229 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/release_gate/test_release_gate.py | 102 | def test_manifest_covers_every_release_category(self): | CODE |
| LOW⚡ | tools/release_gate/test_release_gate.py | 116 | def test_documented_matrix_template_is_schema_valid_but_not_runnable(self): | CODE |
| LOW⚡ | tools/release_gate/test_release_gate.py | 122 | def test_matrix_enforces_distinct_api_manufacturer_and_counterpart_clients(self): | CODE |
| LOW⚡ | tools/release_gate/test_release_gate.py | 132 | def test_privacy_policy_rejects_identifiers_paths_addresses_and_long_ids(self): | CODE |
| LOW | tools/release_gate/test_release_gate.py | 146 | def test_initialize_creates_disposable_fixtures_and_pending_results(self): | CODE |
| LOW | tools/release_gate/test_release_gate.py | 174 | def test_record_requires_structured_evidence_and_rejects_pii(self): | CODE |
| LOW | tools/release_gate/test_release_gate.py | 206 | def test_complete_run_requires_all_evidence_traces_and_endurance_bounds(self): | CODE |
| LOW | tools/release_gate/test_release_gate.py | 258 | def test_manifest_tampering_after_initialization_is_detected(self): | CODE |
| LOW | tools/release_gate/test_release_gate.py | 268 | def test_trace_accepts_only_aggregate_metrics(self): | CODE |
| LOW | tools/release_gate/test_release_gate.py | 283 | def test_evidence_parser_is_typed_and_privacy_checked(self): | CODE |
| LOW | tools/release_gate/test_release_gate.py | 292 | def test_adb_device_count_never_returns_selectors(self, _find_adb): | CODE |
| LOW | tools/release_gate/test_release_gate.py | 303 | def test_adb_probe_emits_only_logical_device_metadata(self, run_adb): | CODE |
| LOW | tools/release_gate/test_release_gate.py | 316 | def test_disposable_cleanup_targets_the_real_application_id(self, run_adb): | CODE |
| LOW | tools/release_gate/test_release_gate.py | 336 | def test_resource_snapshot_returns_only_aggregate_metrics(self, run_adb): | CODE |
| LOW | tools/release_gate/mesh_lab.py | 320 | def make_private_media_fixtures(directory: Path, seed: int = 7331) -> dict[str, dict]: | CODE |
| LOW | tools/release_gate/mesh_lab.py | 384 | def wait_for_mutual_discovery(a: Device, b: Device) -> None: | CODE |
| LOW | tools/release_gate/mesh_lab.py | 427 | def scenario_favorite_verification(a: Device, b: Device) -> dict: | CODE |
| LOW | tools/release_gate/mesh_lab.py | 764 | def scenario_session_recovery(a: Device, b: Device) -> dict: | CODE |
| LOW | tools/release_gate/android_lab.py | 109 | def prepare_disposable_device(serial: str, confirmed: bool) -> None: | CODE |
| LOW | tools/release_gate/android_lab.py | 118 | def collect_resource_snapshot(serial: str) -> dict[str, int | bool]: | CODE |
| LOW | app/src/main/java/com/bitchat/android/ui/DataManager.kt | 13 | class DataManager(private val context: Context) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tools/arti-build/build-arti.sh | 22 | # ============================================================================== | COMMENT |
| MEDIUM⚡ | tools/arti-build/build-arti.sh | 24 | # ============================================================================== | COMMENT |
| MEDIUM | tools/arti-build/build-arti.sh | 138 | # ============================================================================== | COMMENT |
| MEDIUM | tools/arti-build/build-arti.sh | 140 | # ============================================================================== | COMMENT |
| MEDIUM | tools/arti-build/build-arti.sh | 606 | # ============================================================================== | COMMENT |
| MEDIUM | tools/arti-build/build-arti.sh | 608 | # ============================================================================== | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/arti-build/build-arti.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | app/src/test/kotlin/com/bitchat/FileTransferTest.kt | 321 | // Additional assertions would test different file types | COMMENT |
| LOW | …com/bitchat/android/mesh/BluetoothConnectionManager.kt | 241 | // try { | COMMENT |
| LOW | …itchat/android/noise/southernstorm/crypto/NewHope.java | 721 | 1036095,929607,995151,962391,896859,1027935,946023,1011567, | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 1 | //package com.bitchat.android.services | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 21 | // companion object { | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 41 | // retentionDir.mkdirs() | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 61 | // prefs.edit().putStringSet(KEY_FAVORITE_CHANNELS, currentFavorites).apply() | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 81 | // | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 101 | // return@withContext | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 121 | // if (!isChannelBookmarked(channel)) { | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 141 | // channelFile.delete() | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 161 | // | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 181 | // } | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 201 | // | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …in/java/com/bitchat/android/ui/MessageSpecialParser.kt | 62 | // 1) Use Android's WEB_URL for robust detection of http(s) and www.* | COMMENT |
| MEDIUM | …in/java/com/bitchat/android/protocol/BinaryProtocol.kt | 349 | // Try decode as-is first (robust when padding wasn't applied) - iOS fix | COMMENT |
| MEDIUM | …in/java/com/bitchat/android/nostr/NostrRelayManager.kt | 97 | // Persistent subscription tracking for robust reconnection | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/release_gate/mesh_lab.py | 20 | CODE | |
| LOW | tools/release_gate/release_gate.py | 10 | CODE | |
| LOW | tools/release_gate/android_lab.py | 8 | CODE | |
| LOW | …reenshot-studio/scripts/validate_readme_screenshots.py | 4 | CODE | |
| LOW | …-ui-visual-review/scripts/validate_capture_manifest.py | 4 | CODE | |
| LOW | …s/android-ui-visual-review/scripts/upload_pr_images.py | 4 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …in/java/com/bitchat/android/model/BitchatFilePacket.kt | 63 | val contentLenFieldLen = 4 // UInt32 for CONTENT TLV as requested | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/release_gate/mesh_lab.py | 912 | CODE | |
| LOW | tools/release_gate/mesh_lab.py | 985 | CODE | |
| LOW | tools/release_gate/release_gate.py | 685 | CODE | |
| LOW | tools/release_gate/android_lab.py | 178 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/release_gate/mesh_lab.py | 143 | except Exception: | CODE |
| LOW | tools/release_gate/mesh_lab.py | 241 | except Exception as error: | CODE |
| LOW | tools/release_gate/mesh_lab.py | 252 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tools/arti-build/build-arti.sh | 14 | # Usage: | COMMENT |