bluetooth mesh chat, IRC vibes
This report presents the forensic synthetic code analysis of permissionlesstech/bitchat, a Swift project with 26,109 GitHub stars. SynthScan v2.0 examined 124,164 lines of code across 511 source files, recording 281 pattern matches distributed across 4 syntactic categories. The overall adjusted score of 2.8 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 281 distinct pattern matches across 4 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 | .periphery.yml | 1 | # Periphery dead-code scan configuration (https://github.com/peripheryapp/periphery) | COMMENT |
| LOW | bitchat/ViewModels/ChatLiveVoiceCoordinator.swift | 61 | /// Where a live voice burst lives: a Noise DM or the public mesh timeline. | COMMENT |
| LOW | bitchat/ViewModels/ChatLiveVoiceCoordinator.swift | 141 | private var fileManager: FileManager { fileStore.fileManager } | COMMENT |
| LOW | bitchat/ViewModels/ChatOutgoingCoordinator.swift | 41 | /// coordinator never reads it.) | COMMENT |
| LOW | …at/ViewModels/ChatPrivateConversationCoordinator.swift | 1 | import BitFoundation | COMMENT |
| LOW | bitchat/ViewModels/ChatViewModel.swift | 1 | // | COMMENT |
| LOW | bitchat/ViewModels/ChatViewModel.swift | 21 | /// - Command processing | COMMENT |
| LOW | bitchat/ViewModels/ChatViewModel.swift | 41 | /// - Supports verified fingerprints for secure communication | COMMENT |
| LOW | bitchat/ViewModels/ChatViewModel.swift | 61 | /// - SwiftUI automatically optimizes UI updates | COMMENT |
| LOW | bitchat/ViewModels/ChatViewModel.swift | 121 | // MARK: - Published Properties | COMMENT |
| LOW | bitchat/ViewModels/ChatViewModel.swift | 181 | lazy var verificationCoordinator = ChatVerificationCoordinator(context: self) | COMMENT |
| LOW | bitchat/ViewModels/PublicMessagePipeline.swift | 1 | // | COMMENT |
| LOW | bitchat/ViewModels/GeoChannelCoordinator.swift | 1 | // | COMMENT |
| LOW | bitchat/ViewModels/ChatPeerIdentityCoordinator.swift | 1 | import BitFoundation | COMMENT |
| LOW | bitchat/ViewModels/ChatPeerIdentityCoordinator.swift | 101 | func sendFavoriteNotificationViaNostr(noisePublicKey: Data, isFavorite: Bool) | COMMENT |
| LOW | bitchat/ViewModels/ChatNostrCoordinator.swift | 21 | func sendGeohashDeliveryAck(for messageID: String, toRecipientHex recipientHex: String, from identity: NostrIdentity | COMMENT |
| LOW | …hat/ViewModels/ChatPublicConversationCoordinator.swift | 1 | import BitFoundation | COMMENT |
| LOW | …hat/ViewModels/ChatPublicConversationCoordinator.swift | 101 | COMMENT | |
| LOW | bitchat/ViewModels/ChatVerificationCoordinator.swift | 61 | func sendVerifyChallenge(to peerID: PeerID, noiseKeyHex: String, nonceA: Data) | COMMENT |
| LOW | bitchat/ViewModels/ChatViewModelBootstrapper.swift | 201 | } | COMMENT |
| LOW | bitchat/ViewModels/ChatDeliveryCoordinator.swift | 1 | import BitFoundation | COMMENT |
| LOW | bitchat/ViewModels/ChatPeerListCoordinator.swift | 1 | import BitFoundation | COMMENT |
| LOW | bitchat/App/NearbyNotesCounter.swift | 1 | // | COMMENT |
| LOW | bitchat/App/ConversationStore.swift | 1 | // | COMMENT |
| LOW | bitchat/App/ConversationStore.swift | 221 | COMMENT | |
| LOW | bitchat/App/ConversationStore.swift | 321 | COMMENT | |
| LOW | bitchat/App/ConversationStore.swift | 341 | /// in TWO direct conversations: step 2's raw per-peer keying mirrors a | COMMENT |
| LOW | bitchat/App/ConversationStore.swift | 641 | // MARK: Diagnostics | COMMENT |
| LOW | bitchat/Identity/SecureIdentityStateManager.swift | 1 | // | COMMENT |
| LOW | bitchat/Identity/SecureIdentityStateManager.swift | 21 | /// - Thread-safe access patterns | COMMENT |
| LOW | bitchat/Identity/SecureIdentityStateManager.swift | 41 | /// - No cloud sync or backup | COMMENT |
| LOW | bitchat/Identity/SecureIdentityStateManager.swift | 61 | /// | COMMENT |
| LOW | bitchat/Identity/SecureIdentityStateManager.swift | 81 | /// - Users can disable all persistence | COMMENT |
| LOW | bitchat/Identity/SecureIdentityStateManager.swift | 161 | // Pending-save coalescing flag. Reads/writes are serialized on `queue`. | COMMENT |
| LOW | bitchat/Identity/IdentityModels.swift | 1 | // | COMMENT |
| LOW | bitchat/Identity/IdentityModels.swift | 21 | /// This separation allows users to maintain stable cryptographic identities | COMMENT |
| LOW | bitchat/Identity/IdentityModels.swift | 41 | /// - Favorite/blocked status | COMMENT |
| LOW | bitchat/Identity/IdentityModels.swift | 61 | /// 2. System looks up social identity by fingerprint | COMMENT |
| LOW | bitchat/Identity/IdentityModels.swift | 121 | var isBlocked: Bool | COMMENT |
| LOW | bitchat/Features/voice/PTTBurstPlayer.swift | 1 | // | COMMENT |
| LOW | bitchat/Features/voice/PTTBurstPlayer.swift | 141 | } | COMMENT |
| LOW | bitchat/Features/voice/VoiceCaptureSession.swift | 1 | // | COMMENT |
| LOW | bitchat/Features/voice/PTTAudioFormat.swift | 1 | // | COMMENT |
| LOW | bitchat/Features/voice/AudioSessionCoordinator.swift | 1 | // | COMMENT |
| LOW | bitchat/Features/voice/AudioSessionCoordinator.swift | 21 | /// main thread. | COMMENT |
| LOW | bitchat/Features/voice/AudioSessionCoordinator.swift | 41 | /// not yank the route out from under live playback); | COMMENT |
| LOW | bitchat/Features/voice/AudioSessionCoordinator.swift | 241 | /// finalize any artifacts, and release — resuming means acquiring again. | COMMENT |
| LOW | bitchat/Features/voice/PTTCaptureEngine.swift | 1 | // | COMMENT |
| LOW | bitchat/Features/voice/PTTCaptureEngine.swift | 81 | /// Captures microphone audio for a live push-to-talk burst, producing both: | COMMENT |
| LOW | bitchat/Features/voice/PTTSettings.swift | 1 | // | COMMENT |
| LOW | bitchat/Utils/SystemSettings.swift | 1 | // | COMMENT |
| LOW | bitchat/Models/RequestSyncPacket.swift | 1 | import BitFoundation | COMMENT |
| LOW | bitchat/Models/CommandInfo.swift | 1 | // | COMMENT |
| LOW | bitchat/Noise/NoiseProtocol.swift | 1 | // | COMMENT |
| LOW | bitchat/Noise/NoiseProtocol.swift | 21 | /// - Protection against replay attacks | COMMENT |
| LOW | bitchat/Noise/NoiseProtocol.swift | 41 | /// --------- --------- | COMMENT |
| LOW | bitchat/Noise/NoiseProtocol.swift | 61 | /// pattern: .XX, | COMMENT |
| LOW | bitchat/Sync/GossipMessageArchive.swift | 1 | // | COMMENT |
| LOW | bitchat/Sync/RequestSyncManager.swift | 1 | // | COMMENT |
| LOW | bitchat/Sync/SyncTypeFlags.swift | 41 | // the bitfield little-endian with trailing zero bytes trimmed (bit 10 | COMMENT |
| 193 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | bitchat/Services/BLE/BLEAnnounceHandler.swift | 204 | // Persist cryptographic identity and signing key for robust offline | COMMENT |
| MEDIUM | …tFoundation/Sources/BitFoundation/BinaryProtocol.swift | 257 | // Try decode as-is first (robust when padding wasn't applied) | COMMENT |
| MEDIUM | bitchatTests/Services/BoardAlertsModelTests.swift | 81 | #expect(harness.lines.isEmpty) | COMMENT |
| MEDIUM⚡ | bitchatTests/Services/BoardAlertsModelTests.swift | 94 | #expect(harness.lines.isEmpty) | COMMENT |
| MEDIUM⚡ | bitchatTests/Services/BoardAlertsModelTests.swift | 103 | #expect(harness.lines.isEmpty) | COMMENT |
| MEDIUM⚡ | bitchatTests/Services/BoardAlertsModelTests.swift | 106 | #expect(harness.lines.count == 1) | COMMENT |
| MEDIUM⚡ | bitchatTests/Services/BoardAlertsModelTests.swift | 107 | #expect(harness.lines[0].geohash == "9q8yy") | COMMENT |
| MEDIUM⚡ | bitchatTests/Services/BoardAlertsModelTests.swift | 108 | #expect(harness.lines[0].content.contains("road closed")) | COMMENT |
| MEDIUM⚡ | bitchatTests/Services/BoardAlertsModelTests.swift | 109 | #expect(harness.lines[0].content.contains("@alice")) | COMMENT |
| MEDIUM | bitchatTests/Services/BoardAlertsModelTests.swift | 122 | #expect(harness.lines.isEmpty) | COMMENT |
| MEDIUM⚡ | bitchatTests/Services/BoardAlertsModelTests.swift | 135 | #expect(harness.lines.count == 1) | COMMENT |
| MEDIUM⚡ | bitchatTests/Services/BoardAlertsModelTests.swift | 136 | #expect(harness.lines[0].content.contains("3")) | COMMENT |
| MEDIUM⚡ | bitchatTests/Services/BoardAlertsModelTests.swift | 137 | #expect(harness.pendingFlushes.isEmpty) | COMMENT |
| MEDIUM | bitchatTests/Services/BoardAlertsModelTests.swift | 149 | #expect(harness.lines.count == 2) | COMMENT |
| MEDIUM | bitchatTests/Services/BoardAlertsModelTests.swift | 150 | #expect(Set(harness.lines.map(\.geohash)) == ["9q8yy", ""]) | COMMENT |
| MEDIUM | bitchatTests/Services/BoardAlertsModelTests.swift | 164 | #expect(harness.lines.count == 1) | COMMENT |
| MEDIUM | bitchatTests/Services/BoardAlertsModelTests.swift | 165 | #expect(!harness.lines[0].content.contains("2")) | COMMENT |
| MEDIUM | bitchatTests/Services/BoardAlertsModelTests.swift | 192 | #expect(harness.pendingFlushes.count == 1) | COMMENT |
| MEDIUM | bitchatTests/Services/BoardAlertsModelTests.swift | 198 | #expect(harness.lines.isEmpty) | COMMENT |
| MEDIUM⚡ | bitchatTests/Services/BoardAlertsModelTests.swift | 211 | #expect(harness.lines.count == 1) | COMMENT |
| MEDIUM⚡ | bitchatTests/Services/BoardAlertsModelTests.swift | 212 | #expect(harness.lines[0].content.count < 200) | COMMENT |
| MEDIUM⚡ | bitchatTests/Services/BoardAlertsModelTests.swift | 213 | #expect(harness.lines[0].content.contains("…")) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bitchat/_PreviewHelpers/BitchatMessage+Preview.swift | 16 | sender: "John Doe", | CODE |
| LOW | bitchat/_PreviewHelpers/BitchatMessage+Preview.swift | 22 | recipientNickname: "Jane Doe", | CODE |
| LOW | bitchat/Views/Components/DeliveryStatusView.swift | 131 | .delivered(to: "John Doe", at: Date()), | CODE |
| LOW | bitchat/Views/Components/DeliveryStatusView.swift | 132 | .read(by: "Jane Doe", at: Date()), | CODE |
| LOW | bitchatTests/ProtocolContractTests.swift | 115 | #expect(preview.sender == "John Doe") | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | bitchat/Services/VerificationService.swift | 118 | // MARK: - Noise payloads (scaffold only) | COMMENT |