Native macOS menu bar app for tracking Claude AI usage limits in real-time. Built with Swift/SwiftUI.
This report summarizes scanner evidence for hamed-elfayome/Claude-Usage-Tracker, a Swift project with 3,723 GitHub stars. SynthScan examined 44,787 lines of code across 176 source files, recording 75 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 2.8 (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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 66 finding(s).
Are imports declared and package/API names verified? 3 finding(s).
Are wrappers, guards, and repeated structures necessary? 6 finding(s).
Which changes need focused human review? 75 finding(s).
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.
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.
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.
The scanner identified 75 distinct pattern matches across 8 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Claude Usage/Shared/Models/ProviderDescriptor.swift | 1 | // | COMMENT |
| LOW | Claude Usage/Shared/Models/ProviderDescriptor.swift | 41 | /// hide/no-op the feature (never throw). | COMMENT |
| LOW | Claude Usage/Shared/Models/Profile.swift | 1 | // | COMMENT |
| LOW | Claude Usage/Shared/Models/Profile.swift | 41 | /// which is what Claude Code rotates during normal use. Lets users with multiple | COMMENT |
| LOW | …aude Usage/Shared/Models/StatuslineElementColors.swift | 1 | // | COMMENT |
| LOW | …sage/Shared/Extensions/NSWindow+FullScreenSpaces.swift | 1 | // | COMMENT |
| LOW | Claude Usage/Shared/Utilities/PaceStatus.swift | 1 | // | COMMENT |
| LOW | …age/Shared/Protocols/NotificationServiceProtocol.swift | 1 | // | COMMENT |
| LOW | …aude Usage/Shared/Protocols/UsageProviderService.swift | 1 | // | COMMENT |
| LOW | …ude Usage/Shared/Services/SupportReminderService.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/TerminalLauncherService.swift | 1 | // | COMMENT |
| LOW | …de Usage/Shared/Services/TerminalLauncherService.swift | 21 | /// so the FIRST launcher session needs a one-time `/login`; after that the app | COMMENT |
| LOW | Claude Usage/Shared/Services/KeychainService.swift | 261 | func deleteAllProfileSecrets(profileId: UUID) { | COMMENT |
| LOW | Claude Usage/Shared/Services/KeychainService.swift | 281 | // check the data-protection store first and fall through to the file-based | 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 | …Usage/Shared/Services/Providers/ProviderRegistry.swift | 1 | // | COMMENT |
| LOW | …/Shared/Services/Providers/Codex/CodexAPIService.swift | 1 | // | COMMENT |
| LOW | …Shared/Services/Providers/Codex/CodexAuthService.swift | 1 | // | COMMENT |
| LOW | …d/Services/Providers/Codex/CodexAPIService+Types.swift | 1 | // | COMMENT |
| LOW | …vices/Providers/Anthropic/AnthropicUsageProvider.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 | Claude Usage/MenuBar/StatusBarUIManager.swift | 133 | // Step 1: Remove items that are no longer needed | COMMENT |
| LOW | Claude Usage/MenuBar/StatusBarUIManager.swift | 148 | // Step 2: Add items that are new | COMMENT |
| LOW | Claude Usage/MenuBar/StatusBarUIManager.swift | 173 | // Step 3: Items that already exist don't need recreation, just keep them | COMMENT |
| LOW | Claude Usage/MenuBar/StatusBarUIManager.swift | 286 | // Step 1: Remove items that are no longer needed | COMMENT |
| LOW | Claude Usage/MenuBar/StatusBarUIManager.swift | 301 | // 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 | 133 | // Step 1: Remove items that are no longer needed | COMMENT |
| LOW | Claude Usage/MenuBar/StatusBarUIManager.swift | 148 | // Step 2: Add items that are new | COMMENT |
| LOW | Claude Usage/MenuBar/StatusBarUIManager.swift | 173 | // Step 3: Items that already exist don't need recreation, just keep them | COMMENT |
| LOW | Claude Usage/MenuBar/StatusBarUIManager.swift | 286 | // Step 1: Remove items that are no longer needed | COMMENT |
| LOW | Claude Usage/MenuBar/StatusBarUIManager.swift | 301 | // 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 |
|---|---|---|---|---|
| HIGH | …de Usage/Shared/Services/TerminalLauncherService.swift | 123 | # Generated by Claude Usage for profile "\(profile.name)". | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/validate_localizations.sh | 18 | # Check if en.lproj exists | COMMENT |
| LOW | .github/workflows/release.yml | 244 | # 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 |