Native macOS menu bar app for tracking Claude AI usage limits in real-time. Built with Swift/SwiftUI.
This report presents the forensic synthetic code analysis of hamed-elfayome/Claude-Usage-Tracker, a Swift project with 3,032 GitHub stars. SynthScan v2.0 examined 41,191 lines of code across 157 source files, recording 60 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 2.5 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).
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 60 distinct pattern matches across 7 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 | Claude Usage/MenuBar/StatusBarUIManager.swift | 136 | // Step 1: Remove items that are no longer needed | COMMENT |
| LOW | Claude Usage/MenuBar/StatusBarUIManager.swift | 151 | // Step 2: Add items that are new | COMMENT |
| LOW | Claude Usage/MenuBar/StatusBarUIManager.swift | 176 | // Step 3: Items that already exist don't need recreation, just keep them | COMMENT |
| LOW | Claude Usage/MenuBar/StatusBarUIManager.swift | 355 | // Step 1: Remove items that are no longer needed | COMMENT |
| LOW | Claude Usage/MenuBar/StatusBarUIManager.swift | 370 | // Step 2: Add items that are new | COMMENT |
| LOW⚡ | Claude Usage/Shared/Utilities/SessionKeyValidator.swift | 104 | // Step 1: Trim whitespace | COMMENT |
| LOW⚡ | Claude Usage/Shared/Utilities/SessionKeyValidator.swift | 107 | // Step 2: Check if empty | COMMENT |
| LOW⚡ | Claude Usage/Shared/Utilities/SessionKeyValidator.swift | 112 | // Step 3: Check for internal whitespace | COMMENT |
| LOW⚡ | Claude Usage/Shared/Utilities/SessionKeyValidator.swift | 117 | // Step 4: Check length constraints | COMMENT |
| LOW⚡ | Claude Usage/Shared/Utilities/SessionKeyValidator.swift | 132 | // Step 5: Check prefix | COMMENT |
| LOW⚡ | Claude Usage/Shared/Utilities/SessionKeyValidator.swift | 137 | // Step 6: Security checks (strict mode) - CHECK BEFORE character validation | COMMENT |
| LOW⚡ | Claude Usage/Shared/Utilities/SessionKeyValidator.swift | 143 | // Step 7: Validate character set | COMMENT |
| LOW | Claude Usage/Shared/Utilities/SessionKeyValidator.swift | 155 | // Step 8: Format validation | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Claude Usage/MenuBar/StatusBarUIManager.swift | 136 | // Step 1: Remove items that are no longer needed | COMMENT |
| LOW | Claude Usage/MenuBar/StatusBarUIManager.swift | 151 | // Step 2: Add items that are new | COMMENT |
| LOW | Claude Usage/MenuBar/StatusBarUIManager.swift | 176 | // Step 3: Items that already exist don't need recreation, just keep them | COMMENT |
| LOW | Claude Usage/MenuBar/StatusBarUIManager.swift | 355 | // Step 1: Remove items that are no longer needed | COMMENT |
| LOW | Claude Usage/MenuBar/StatusBarUIManager.swift | 370 | // Step 2: Add items that are new | COMMENT |
| LOW⚡ | Claude Usage/Shared/Utilities/SessionKeyValidator.swift | 104 | // Step 1: Trim whitespace | COMMENT |
| LOW⚡ | Claude Usage/Shared/Utilities/SessionKeyValidator.swift | 107 | // Step 2: Check if empty | COMMENT |
| LOW⚡ | Claude Usage/Shared/Utilities/SessionKeyValidator.swift | 112 | // Step 3: Check for internal whitespace | COMMENT |
| LOW⚡ | Claude Usage/Shared/Utilities/SessionKeyValidator.swift | 117 | // Step 4: Check length constraints | COMMENT |
| LOW⚡ | Claude Usage/Shared/Utilities/SessionKeyValidator.swift | 132 | // Step 5: Check prefix | COMMENT |
| LOW⚡ | Claude Usage/Shared/Utilities/SessionKeyValidator.swift | 137 | // Step 6: Security checks (strict mode) - CHECK BEFORE character validation | COMMENT |
| LOW⚡ | Claude Usage/Shared/Utilities/SessionKeyValidator.swift | 143 | // Step 7: Validate character set | COMMENT |
| LOW | Claude Usage/Shared/Utilities/SessionKeyValidator.swift | 155 | // Step 8: Format validation | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | Claude Usage/Views/FeedbackPromptView.swift | 12 | // ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | Claude Usage/Views/FeedbackPromptView.swift | 14 | // ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | Claude Usage/Views/FeedbackPromptView.swift | 24 | // ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | Claude Usage/Views/Settings/App/MobileAppView.swift | 12 | // ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | Claude Usage/Views/Settings/App/MobileAppView.swift | 14 | // ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | Claude Usage/Views/Settings/App/MobileAppView.swift | 28 | // ───────────────────────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Claude Usage/MenuBar/MenuBarIconRenderer.swift | 721 | fullText.draw(at: NSPoint(x: 2, y: textY), withAttributes: attributes) | COMMENT |
| LOW | Claude Usage/Shared/Models/Profile.swift | 21 | var apiSessionKeyExpiry: Date? | COMMENT |
| LOW | …aude Usage/Shared/Models/StatuslineElementColors.swift | 1 | // | COMMENT |
| LOW | Claude Usage/Shared/Utilities/PaceStatus.swift | 1 | // | COMMENT |
| LOW | …age/Shared/Protocols/NotificationServiceProtocol.swift | 1 | // | COMMENT |
| LOW | …aude Usage/Shared/Services/ClaudeCodeSyncService.swift | 281 | /// Resolves the correct keychain service name for Claude Code credentials. | COMMENT |
| LOW | …aude Usage/Shared/Services/ClaudeCodeSyncService.swift | 441 | serviceName: serviceName, | COMMENT |
| LOW | …aude Usage/Shared/Services/ClaudeCodeSyncService.swift | 501 | return String(hex.prefix(length)) | COMMENT |
| LOW | …aude Usage/Shared/Services/ClaudeCodeSyncService.swift | 981 | throw ClaudeCodeError.refreshFailed(status: -1, body: "No HTTP response") | COMMENT |
| LOW | …de Usage/Shared/Services/NotchHUD/HookHTTPParser.swift | 1 | // | COMMENT |
| LOW | …sage/Shared/Services/NotchHUD/NotchHookInstaller.swift | 1 | // | COMMENT |
| LOW | …e Usage/Shared/Services/NotchHUD/NotchHookServer.swift | 1 | // | COMMENT |
| LOW | Claude Usage/Views/FeedbackPromptView.swift | 1 | // | COMMENT |
| LOW | …ude Usage/Views/Settings/DesignSystem/Typography.swift | 1 | // | COMMENT |
| LOW | …Usage/Views/Settings/DesignSystem/SettingsColors.swift | 1 | // | COMMENT |
| LOW | Claude Usage/Views/Settings/DesignSystem/Spacing.swift | 1 | // | COMMENT |
| LOW | …Views/Settings/DesignSystem/SettingsDesignSystem.swift | 1 | // | COMMENT |
| LOW | Claude Usage/Views/Settings/App/MobileAppView.swift | 1 | // | COMMENT |
| LOW | .github/workflows/codeql.yml | 1 | # For most projects, this workflow file will not need changing; you simply need | COMMENT |
| LOW | .github/workflows/codeql.yml | 41 | - language: swift | COMMENT |
| LOW | .github/workflows/codeql.yml | 61 | # Initializes the CodeQL tools for scanning. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/validate_localizations.sh | 18 | # Check if en.lproj exists | COMMENT |
| LOW | .github/workflows/release.yml | 243 | # Check if we got content | COMMENT |
| LOW | .github/workflows/generate-appcast.yml | 178 | # Check if there are changes to commit | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/codeql.yml | 49 | # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | Claude UsageTests/ClaudeUsageTests.swift | 253 | emailAddress: "user@example.com", | STRING |
| LOW⚡ | Claude UsageTests/ClaudeUsageTests.swift | 263 | emailAddress: "user@example.com", | STRING |
| LOW⚡ | Claude UsageTests/ClaudeUsageTests.swift | 273 | emailAddress: "user@example.com", | STRING |