AI Slop Code Risk Monitor

argmaxinc/argmax-oss-swift

SlopCodeMonitor badge for argmaxinc/argmax-oss-swift Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

On-device Speech AI for Apple Silicon

4.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for argmaxinc/argmax-oss-swift, a Swift project with 6,437 GitHub stars. SynthScan examined 63,806 lines of code across 219 source files, recording 235 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 4.1 (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.

4.1
Adjusted Signal
4.1
Raw Pattern Score
100%
Time Factor
2026-10-27
Last Push
6.4K
Stars
Swift
Language
63.8K
Lines of Code
219
Files
235
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 14.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.7/100 · LOW

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

Agent Over-Engineering Ratio 4.1/100 · LOW

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

PR Review Velocity Impact 20.1/100 · LOW

Which changes need focused human review? 235 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 26LOW 209

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 235 distinct pattern matches across 9 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.

Over-Commented Block170 hits · 170 pts
SeverityFileLineSnippetContext
LOWPackage@swift-6.2.swift161 // These reduce false-positive concurrency diagnostics by making theCOMMENT
LOW…ts/ArgmaxCoreTests/External/Tokenizers/TrieTests.swift1// Originally from: https://github.com/huggingface/swift-transformersCOMMENT
LOW…ArgmaxCoreTests/External/Tokenizers/DecoderTests.swift1// Originally from: https://github.com/huggingface/swift-transformersCOMMENT
LOW…ArgmaxCoreTests/External/Tokenizers/FactoryTests.swift1// Originally from: https://github.com/huggingface/swift-transformersCOMMENT
LOW…gmaxCoreTests/External/Tokenizers/TokenizerTests.swift1// Originally from: https://github.com/huggingface/swift-transformersCOMMENT
LOW…xCoreTests/External/Tokenizers/PreTokenizerTests.swift1// Originally from: https://github.com/huggingface/swift-transformersCOMMENT
LOWTests/ArgmaxCoreTests/External/Hub/ConfigTests.swift1// Originally from: https://github.com/huggingface/swift-transformersCOMMENT
LOWTests/ArgmaxCoreTests/External/Hub/ConfigTests.swift121 #expect(cfgArray.array() == [1, 2, 3, 4])COMMENT
LOWTests/ArgmaxCoreTests/External/Hub/ConfigTests.swift141 #expect(cfgStrings.get() == ["a", "b", "c"])COMMENT
LOWTests/ArgmaxCoreTests/External/Hub/ConfigTests.swift201 #expect(got["dict_of_bools"]["key4"] == false)COMMENT
LOWTests/ArgmaxCoreTests/External/Hub/ConfigTests.swift221 @Test("Equatable: string, integer, float, boolean, token, dictionary")COMMENT
LOW…sts/ArgmaxCoreTests/External/Hub/DownloaderTests.swift1// Originally from: https://github.com/huggingface/swift-transformersCOMMENT
LOWTests/WhisperKitTests/UnitTests.swift3021// WordTiming(word: " country", tokens: [1941], start: 5.92, end: 6.38, probability: 0.64),COMMENT
LOWTests/WhisperKitTests/Evaluate/NormalizeEn.swift661 #"\bimma\b"#: "i am going to",COMMENT
LOWTests/WhisperKitTests/Evaluate/NormalizeEn.swift681 #"\basst\b"#: "assistant ",COMMENT
LOW…t/Sources/WhisperKitSwiftClient/Generated/Client.swift1// Generated by swift-openapi-generator, do not modify.COMMENT
LOW…t/Sources/WhisperKitSwiftClient/Generated/Client.swift21/// To regenerate this file:COMMENT
LOW…ft/Sources/WhisperKitSwiftClient/Generated/Types.swift1// Generated by swift-openapi-generator, do not modify.COMMENT
LOW…ft/Sources/WhisperKitSwiftClient/Generated/Types.swift161 /// - Remark: Generated from `#/components/schemas/CreateTranscriptionRequest/stream`.COMMENT
LOW…ft/Sources/WhisperKitSwiftClient/Generated/Types.swift181 public var text: Swift.StringCOMMENT
LOW…ft/Sources/WhisperKitSwiftClient/Generated/Types.swift221 public typealias logprobsPayload = [Components.Schemas.CreateTranscriptionResponseJson.logprobsPayloadPayloaCOMMENT
LOW…ft/Sources/WhisperKitSwiftClient/Generated/Types.swift301 }COMMENT
LOW…ft/Sources/WhisperKitSwiftClient/Generated/Types.swift321 /// - Remark: Generated from `#/components/schemas/CreateTranscriptionResponseVerboseJson/words`.COMMENT
LOW…ft/Sources/WhisperKitSwiftClient/Generated/Types.swift461 public struct CreateTranslationResponseVerboseJson: Codable, Hashable, Sendable {COMMENT
LOW…ft/Sources/WhisperKitSwiftClient/Generated/Types.swift521 /// - Remark: Generated from `#/components/schemas/TranscriptTextDeltaEvent/type`.COMMENT
LOW…ft/Sources/WhisperKitSwiftClient/Generated/Types.swift541 public var token: Swift.String?COMMENT
LOW…ft/Sources/WhisperKitSwiftClient/Generated/Types.swift601 case logprobsCOMMENT
LOW…ft/Sources/WhisperKitSwiftClient/Generated/Types.swift621 ///COMMENT
LOW…ft/Sources/WhisperKitSwiftClient/Generated/Types.swift661 }COMMENT
LOW…ft/Sources/WhisperKitSwiftClient/Generated/Types.swift701 ///COMMENT
LOW…ft/Sources/WhisperKitSwiftClient/Generated/Types.swift721 ///COMMENT
LOW…ft/Sources/WhisperKitSwiftClient/Generated/Types.swift741 ///COMMENT
LOW…ft/Sources/WhisperKitSwiftClient/Generated/Types.swift1301 }COMMENT
LOW…les/TTS/TTSKitExample/TTSKitExample/WaveformView.swift1// For licensing see accompanying LICENSE.md file.COMMENT
LOW…mples/TTS/TTSKitExample/TTSKitExample/DetailView.swift201// .overlay(alignment: .topTrailing) {COMMENT
LOW…es/TTS/TTSKitExample/TTSKitExample/FileUtilities.swift1// For licensing see accompanying LICENSE.md file.COMMENT
LOW…es/TTS/TTSKitExample/TTSKitExample/AudioMetadata.swift61COMMENT
LOWSources/TTSKit/Models.swift1// For licensing see accompanying LICENSE.md file.COMMENT
LOWSources/TTSKit/Models.swift81/// ```swiftCOMMENT
LOWSources/TTSKit/Models.swift101 /// - voice: Voice/speaker identifier. `nil` uses the model's default voice.COMMENT
LOWSources/TTSKit/Models.swift141/// pipeline (MultiCodeDecoder + SpeechDecoder + CodeDecoder) before any audioCOMMENT
LOWSources/TTSKit/Models.swift161COMMENT
LOWSources/TTSKit/Models.swift181 /// Compute the required pre-buffer duration (seconds) given a measured step time.COMMENT
LOWSources/TTSKit/Models.swift241COMMENT
LOWSources/TTSKit/Protocols.swift121 /// model's `key_cache` input shape after `loadModel`.COMMENT
LOWSources/TTSKit/TTSKit.swift1// For licensing see accompanying LICENSE.md file.COMMENT
LOWSources/TTSKit/TTSKit.swift21/// tts.codeDecoder = MyOptimisedCodeDecoder()COMMENT
LOWSources/TTSKit/TTSKit.swift241 /// Fetch all available model variants from the HuggingFace Hub.COMMENT
LOWSources/TTSKit/TTSKit.swift281 /// Mirrors `WhisperKit.download(variant:downloadBase:from:token:progressCallback:)`.COMMENT
LOWSources/TTSKit/TTSKit.swift361 /// Mirrors `WhisperKit.setupModels(model:downloadBase:modelRepo:...)`. PopulatesCOMMENT
LOWSources/TTSKit/TTSKit.swift541COMMENT
LOWSources/TTSKit/TTSKit.swift621 // MARK: - Prompt cache managementCOMMENT
LOWSources/TTSKit/TTSKit.swift781 ///COMMENT
LOWSources/TTSKit/TTSKit.swift1001COMMENT
LOWSources/TTSKit/TTSKit.swift1141 try await generate(COMMENT
LOWSources/TTSKit/Configurations.swift1// For licensing see accompanying LICENSE.md file.COMMENT
LOWSources/TTSKit/Generating.swift1// For licensing see accompanying LICENSE.md file.COMMENT
LOWSources/TTSKit/Generating.swift41 /// - Parameters:COMMENT
LOWSources/TTSKit/Qwen3TTS/Qwen3SpeechDecoder.swift1// For licensing see accompanying LICENSE.md file.COMMENT
LOWSources/TTSKit/Qwen3TTS/Qwen3SpeechDecoder.swift21/// rank-2 `kv_cache_update_mask` instead of the multifunction rank-3 mask.COMMENT
110 more matches not shown…
Excessive Try-Catch Wrapping32 hits · 52 pts
SeverityFileLineSnippetContext
MEDIUMTests/WhisperKitTests/RegressionTestUtils.swift383 print("Error retrieving file system attributes: \(error)")CODE
MEDIUMTests/WhisperKitTests/RegressionTestUtils.swift404 print("Error retrieving file system attributes: \(error)")CODE
MEDIUMTests/WhisperKitTests/Evaluate/NormalizeEn.swift25 print("Error while creating regex: \(error)")CODE
MEDIUMTests/WhisperKitTests/Evaluate/NormalizeEn.swift599 print("Error in regex: \(error)")CODE
MEDIUMTests/WhisperKitTests/Evaluate/NormalizeEn.swift611 print("Error in regex: \(error)")CODE
MEDIUMExamples/WhisperAX/WhisperAX/Views/ContentView.swift1315 print("Error enumerating files at \(modelPath): \(error.localizedDescription)")CODE
MEDIUMExamples/WhisperAX/WhisperAX/Views/ContentView.swift1409 print("Error prewarming models, retrying: \(error.localizedDescription)")STRING
MEDIUMExamples/WhisperAX/WhisperAX/Views/ContentView.swift1492 print("Error deleting model: \(error)")STRING
MEDIUMExamples/WhisperAX/WhisperAX/Views/ContentView.swift1642 print("Error: \(error.localizedDescription)")STRING
MEDIUMExamples/WhisperAX/WhisperAX/Views/ContentView.swift1886 print("Error: \(error.localizedDescription)")STRING
MEDIUM…WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift309 print("Error enumerating files at \(modelPath): \(error.localizedDescription)")CODE
MEDIUM…WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift389 print("Error prewarming models, retrying: \(error.localizedDescription)")CODE
MEDIUM…WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift553 print("Error: \(error.localizedDescription)")CODE
MEDIUMExamples/ServeCLIClient/Python/test_transcribe.py29 print(f"Error: Test resources directory not found: {resources_dir}")CODE
LOWExamples/ServeCLIClient/Python/test_transcribe.py68 except Exception as e:CODE
MEDIUMExamples/ServeCLIClient/Python/test_transcribe.py69 print(f"Error transcribing {audio_file_path.name}: {e}")CODE
MEDIUMExamples/ServeCLIClient/Python/test_transcribe.py131 print(f"Error: Test file '{args.file}' not found")CODE
MEDIUMExamples/ServeCLIClient/Python/test_translate.py29 print(f"Error: Test resources directory not found: {resources_dir}")CODE
LOWExamples/ServeCLIClient/Python/test_translate.py65 except Exception as e:CODE
MEDIUMExamples/ServeCLIClient/Python/test_translate.py66 print(f"Error translating {audio_file_path.name}: {e}")CODE
MEDIUMExamples/ServeCLIClient/Python/test_translate.py126 print(f"Error: Test file '{args.file}' not found")CODE
LOWExamples/ServeCLIClient/Python/whisperkit_client.py40 except Exception as e:CODE
LOWExamples/ServeCLIClient/Python/whisperkit_client.py52 except Exception as e:CODE
LOWExamples/ServeCLIClient/Python/whisperkit_client.py141 except Exception as e:CODE
LOWExamples/ServeCLIClient/Python/whisperkit_client.py226 except Exception as e:CODE
LOWExamples/ServeCLIClient/Python/whisperkit_client.py299 except Exception as e:CODE
LOWExamples/ServeCLIClient/Python/whisperkit_client.py430 except Exception as e:CODE
MEDIUMscripts/generate_local_server_openapi.py52 print(f"Error fetching latest spec: {e}")CODE
MEDIUMscripts/generate_local_server_openapi.py312 print(f"Error: {input_file} not found")CODE
MEDIUMSources/ArgmaxCLI/TranscribeCLI.swift290 print("Error when transcribing \(audioPath): \(error)")CODE
MEDIUMSources/ArgmaxCLI/TranscribeCLI.swift300 print("Error during diarization for \(audioPath): \(error)")CODE
MEDIUMSources/ArgmaxCLI/TranscribeCLI.swift444 print("Error: \(error.localizedDescription)")CODE
Deep Nesting12 hits · 12 pts
SeverityFileLineSnippetContext
LOWExamples/ServeCLIClient/Python/test_transcribe.py73CODE
LOWExamples/ServeCLIClient/Python/test_translate.py70CODE
LOWExamples/ServeCLIClient/Python/whisperkit_client.py435CODE
LOWExamples/ServeCLIClient/Python/whisperkit_client.py56CODE
LOWExamples/ServeCLIClient/Python/whisperkit_client.py145CODE
LOWExamples/ServeCLIClient/Python/whisperkit_client.py241CODE
LOWExamples/ServeCLIClient/Python/whisperkit_client.py370CODE
LOWscripts/generate_local_server_openapi.py73CODE
LOWscripts/generate_local_server_openapi.py213CODE
LOWscripts/generate_local_server_openapi.py114CODE
LOWscripts/generate_local_server_openapi.py128CODE
LOWscripts/generate_local_server_openapi.py193CODE
Redundant / Tautological Comments5 hits · 8 pts
SeverityFileLineSnippetContext
LOWExamples/ServeCLIClient/Curl/transcribe.sh95# Check if audio file is providedCOMMENT
LOWExamples/ServeCLIClient/Curl/transcribe.sh102# Check if audio file existsCOMMENT
LOWExamples/ServeCLIClient/Curl/translate.sh105# Check if audio file is providedCOMMENT
LOWExamples/ServeCLIClient/Curl/translate.sh112# Check if audio file existsCOMMENT
LOWExamples/ServeCLIClient/Curl/test.sh32# Check if server is runningCOMMENT
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMSources/ArgmaxCore/External/Hub/Downloader.swift17/// A robust file downloader with support for resumable downloads and progress reporting.COMMENT
MEDIUMSources/ArgmaxCore/External/Hub/HubApi.swift66/// background downloads, and automatic retry mechanisms for robust file transfers.COMMENT
Unused Imports5 hits · 5 pts
SeverityFileLineSnippetContext
LOWExamples/ServeCLIClient/Python/test_transcribe.py11CODE
LOWExamples/ServeCLIClient/Python/test_translate.py11CODE
LOWExamples/ServeCLIClient/Python/whisperkit_client.py10CODE
LOWExamples/ServeCLIClient/Python/whisperkit_client.py12CODE
LOWExamples/ServeCLIClient/Python/whisperkit_client.py13CODE
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWTests/ArgmaxCoreTests/External/Hub/ConfigTests.swift124 #expect(cfgArray["fake_key"].isNull())COMMENT
LOWExamples/ServeCLIClient/Python/test_transcribe.py111 api_key="dummy-key"CODE
LOWExamples/ServeCLIClient/Python/test_translate.py109 api_key="dummy-key"CODE
LOWExamples/ServeCLIClient/Python/whisperkit_client.py25 api_key="dummy-key" # Not used by local serverCODE
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOWSources/WhisperKit/Core/TextDecoder.swift821 let noSpeechProb: Float = 0 // TODO: implement no speech probCODE
LOWSources/WhisperKit/Core/Models.swift52 // TODO: implement config.json and generation_config.json parsing for modelsCOMMENT
LOWSources/WhisperKit/Core/Configurations.swift240 self.suppressTokens = suppressTokens ?? [] // nonSpeechTokens() // TODO: implement these as defaultCODE
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippetContext
LOWExamples/ServeCLIClient/Python/whisperkit_client.py145 def _transcribe_non_streaming(self, audio_path: str, language: str = "", model: str = "tiny",CODE
LOWscripts/generate_local_server_openapi.py39def fetch_latest_openapi_spec():CODE