🚀 Beautiful highly customizable statusline for Claude Code CLI with powerline support, themes, and more.
This report presents the forensic synthetic code analysis of sirmalloc/ccstatusline, a TypeScript project with 11,726 GitHub stars. SynthScan v2.0 examined 58,921 lines of code across 343 source files, recording 158 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 3.0 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 158 distinct pattern matches across 5 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 | remotion/tuiDemo.tsx | 1225 | function getLineTwoPreviewSegments(phase: Phase): string[] { | CODE |
| LOW | remotion/tuiDemo.tsx | 1564 | function getFreshInstallWidgetColor(segment: string): string { | CODE |
| LOW | remotion/tuiDemo.tsx | 1808 | function getUsagePercentKeybindsText(mode: UsageDisplayMode): string { | CODE |
| LOW | src/ccstatusline.ts | 51 | function hasSessionDurationInStatusJson(data: StatusJSON): boolean { | CODE |
| LOW | src/tui/App.tsx | 274 | function getGlobalUninstallCommand(packageManager: GlobalPackageManager): string { | CODE |
| LOW | src/tui/App.tsx | 280 | function buildUninstallConfirmMessage(selection: UninstallSelection): string { | CODE |
| LOW | src/tui/App.tsx | 292 | function clearInstallationMetadata(settings: Settings | null): Settings | null { | CODE |
| LOW | src/tui/App.tsx | 332 | function getPinnedGlobalRelaunchCommand(packageManager: GlobalPackageManager): string { | CODE |
| LOW | src/tui/App.tsx | 376 | export function getPathInferredInstallation( | CODE |
| LOW | src/tui/App.tsx | 406 | export function clearInstallMenuSelection(menuSelections: Record<string, number>): Record<string, number> { | CODE |
| LOW | src/tui/App.tsx | 425 | export function buildInvalidConfigSaveConfirm( | CODE |
| LOW | src/tui/claude-status.ts | 11 | export async function loadClaudeStatusLineState(): Promise<ClaudeStatusLineState> { | CODE |
| LOW | src/tui/components/StatusLinePreview.tsx | 62 | export function preparePreviewLineForTerminal(line: string, terminalWidth: number): string { | CODE |
| LOW | src/tui/components/PowerlineThemeSelector.tsx | 42 | export function applyCustomPowerlineTheme( | CODE |
| LOW | src/tui/components/TerminalWidthMenu.tsx | 19 | export function getTerminalWidthSelectionIndex(selectedOption: FlexMode): number { | CODE |
| LOW | src/tui/components/TerminalWidthMenu.tsx | 25 | export function validateCompactThresholdInput(value: string): string | null { | CODE |
| LOW | src/tui/components/ManageInstallationMenu.tsx | 76 | export function buildManageInstallationItems(): ListEntry<ManageInstallationAction>[] { | CODE |
| LOW | src/tui/components/ItemsEditor.tsx | 45 | function isMergedIntoPreviousWidget(widgets: WidgetItem[], index: number): boolean { | CODE |
| LOW | src/tui/components/PowerlineSetup.tsx | 105 | export function buildPowerlineSetupMenuItems( | CODE |
| LOW | src/tui/components/TerminalOptionsMenu.tsx | 27 | export function shouldWarnOnColorLevelChange( | CODE |
| LOW | src/tui/components/TerminalOptionsMenu.tsx | 37 | export function buildTerminalOptionsItems( | CODE |
| LOW | src/tui/components/RefreshIntervalMenu.tsx | 21 | function getRefreshIntervalSublabel(interval: number | null, supported: boolean): string { | CODE |
| LOW | src/tui/components/RefreshIntervalMenu.tsx | 39 | export function buildConfigureStatusLineItems( | CODE |
| LOW | src/tui/components/RefreshIntervalMenu.tsx | 63 | export function validateRefreshIntervalInput(value: string): string | null { | CODE |
| LOW | src/tui/components/MainMenu.tsx | 167 | export function getMainMenuSelectionIndex(items: MainMenuEntry[], option: MainMenuOption): number { | CODE |
| LOW | src/tui/components/MainMenu.tsx | 187 | export function getMainMenuInstallSelectionIndex( | CODE |
| LOW | src/tui/components/color-menu/mutations.ts | 97 | function getDefaultForegroundColor(widget: WidgetItem): string { | CODE |
| LOW | src/utils/colors.ts | 293 | export function getAvailableBackgroundColorsForUI(): { name: string; value: string }[] { | CODE |
| LOW | src/utils/colors.ts | 303 | export function getBackgroundColorsForPowerline(): string[] { | CODE |
| LOW | src/utils/timezones.ts | 24 | function getSupportedTimezoneValues(): string[] { | CODE |
| LOW | src/utils/timezones.ts | 52 | function createLocalTimezoneOption(): TimezoneOption { | CODE |
| LOW | src/utils/powerline-theme-index.ts | 32 | export function advanceGlobalPowerlineThemeIndex(currentIndex: number, entries: PowerlineThemeSlotEntry[]): number { | CODE |
| LOW | src/utils/global-package-manager.ts | 92 | function getFilesystemPathVariants(filePath: string): string[] { | CODE |
| LOW | src/utils/global-package-manager.ts | 179 | function getNpmGlobalPackageVersion(platform: NodeJS.Platform): string | null { | CODE |
| LOW | src/utils/global-package-manager.ts | 207 | function getBunGlobalPackageVersion(binDir: string | null): string | null { | CODE |
| LOW | src/utils/global-package-manager.ts | 297 | function getActiveResolutionWarning( | CODE |
| LOW | src/utils/global-package-manager.ts | 317 | export function inspectActiveGlobalCommand({ | CODE |
| LOW | src/utils/global-package-manager.ts | 343 | export function inspectGlobalPackageInstallations({ | CODE |
| LOW | src/utils/global-package-manager.ts | 354 | export function runGlobalPackageUninstall( | CODE |
| LOW | src/utils/speed-window.ts | 23 | export function getWidgetSpeedWindowSeconds(item: WidgetItem): number { | CODE |
| LOW | src/utils/speed-window.ts | 37 | export function isWidgetSpeedWindowEnabled(item: WidgetItem): boolean { | CODE |
| LOW | src/utils/speed-window.ts | 41 | export function withWidgetSpeedWindowSeconds(item: WidgetItem, seconds: number): WidgetItem { | CODE |
| LOW | src/utils/update-checker.ts | 124 | function getAutoUpdateLaunchCommand(installation: ResolvedInstallationMetadata): string | undefined { | CODE |
| LOW | src/utils/context-percentage.ts | 19 | export function calculateContextPercentageMetrics(context: Pick<RenderContext, 'data' | 'tokenMetrics'>): ContextPercent | CODE |
| LOW | src/utils/context-percentage.ts | 44 | export function calculateContextPercentage(context: RenderContext): number { | CODE |
| LOW | src/utils/usage-prefetch.ts | 84 | function getUsageFieldRequirements(lines: WidgetItem[][]): UsageFieldRequirement[] { | CODE |
| LOW | src/utils/usage-prefetch.ts | 105 | function isUsageRequirementSatisfied(data: UsageData | null, requirement: UsageFieldRequirement): boolean { | CODE |
| LOW | src/utils/usage-prefetch.ts | 113 | function getMissingFetchRequirements( | CODE |
| LOW | src/utils/usage-prefetch.ts | 172 | export function extractUsageDataFromRateLimits(rateLimits: StatusJSON['rate_limits']): UsageData | null { | CODE |
| LOW | src/utils/usage-prefetch.ts | 202 | export async function prefetchUsageDataIfNeeded(lines: WidgetItem[][], data?: StatusJSON): Promise<UsageData | null> { | CODE |
| LOW | src/utils/ansi.ts | 43 | function createUnicodePropertyRegex(pattern: string): RegExp | null { | CODE |
| LOW | src/utils/ansi.ts | 129 | function isZeroWidthStandaloneCluster(cluster: string): boolean { | CODE |
| LOW | src/utils/ansi.ts | 145 | function shouldTreatClusterAsNarrowTextPictograph(cluster: string): boolean { | CODE |
| LOW | src/utils/color-sanitize.ts | 29 | function resetWidgetForegroundToDefault(widget: WidgetItem, nextWidget: WidgetItem): WidgetItem { | CODE |
| LOW | src/utils/color-sanitize.ts | 49 | export function sanitizeLinesForColorLevel(lines: WidgetItem[][], nextLevel: 0 | 1 | 2 | 3): WidgetItem[][] { | CODE |
| LOW | src/utils/locales.ts | 102 | function createConfiguredLocaleOption(locale: string): LocaleOption { | CODE |
| LOW | src/utils/claude-settings.ts | 259 | export function getPackageCommandAvailability(): PackageCommandAvailability { | CODE |
| LOW | src/utils/claude-settings.ts | 284 | export function isClaudeCodeVersionAtLeast(minVersion: string): boolean { | CODE |
| LOW | src/utils/claude-settings.ts | 333 | function isLocalDevelopmentCommand(command: string): boolean { | CODE |
| LOW | src/utils/claude-settings.ts | 381 | async function loadSavedSettingsForHookSync(): Promise<Settings | null> { | CODE |
| 84 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | src/utils/jsonl-blocks.ts | 42 | // Step 1: Find all JSONL files with their modification times | COMMENT |
| LOW⚡ | src/utils/jsonl-blocks.ts | 53 | // Step 2: Get file stats and sort by modification time (most recent first) | COMMENT |
| LOW⚡ | src/utils/jsonl-blocks.ts | 61 | // Step 3: Progressive lookback - start small and expand if needed | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | src/utils/jsonl-blocks.ts | 42 | // Step 1: Find all JSONL files with their modification times | COMMENT |
| LOW⚡ | src/utils/jsonl-blocks.ts | 53 | // Step 2: Get file stats and sort by modification time (most recent first) | COMMENT |
| LOW⚡ | src/utils/jsonl-blocks.ts | 61 | // Step 3: Progressive lookback - start small and expand if needed | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/utils/gradient.ts | 321 | } | COMMENT |
| LOW | src/utils/gradient.ts | 341 | // function assigns a separate gradient step to each code point in the cluster | COMMENT |
| LOW | src/utils/renderer.ts | 561 | // Powerline separator coloring: | COMMENT |
| LOW | src/utils/renderer.ts | 1241 | // AFTER truncation, not before: truncateStyledText cuts from the right and | COMMENT |
| LOW | src/utils/__tests__/renderer-separator-collapse.test.ts | 121 | // Without the fix, the SEP between B and C would emit (its walkback | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/widgets/__tests__/ClaudeAccountEmail.test.ts | 83 | fs.writeFileSync(claudeJsonPath, JSON.stringify({ oauthAccount: { emailAddress: 'user@example.com' } }), 'utf-8' | CODE |
| LOW | src/widgets/__tests__/ClaudeAccountEmail.test.ts | 94 | fs.writeFileSync(claudeJsonPath, JSON.stringify({ oauthAccount: { emailAddress: 'user@example.com' } }), 'utf-8' | CODE |
| LOW | src/widgets/__tests__/ClaudeAccountEmail.test.ts | 96 | expect(render({ rawValue: true })).toBe('user@example.com'); | CODE |