Repository Analysis

sirmalloc/ccstatusline

🚀 Beautiful highly customizable statusline for Claude Code CLI with powerline support, themes, and more.

3.0 Likely human-written View on GitHub

Analysis Overview

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).

3.0
Adjusted Score
3.0
Raw Score
100%
Time Factor
2026-07-13
Last Push
11.7K
Stars
TypeScript
Language
58.9K
Lines of Code
343
Files
158
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 0MEDIUM 0LOW 158

Directory Score Breakdown

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.

Pattern Findings

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.

Hyper-Verbose Identifiers144 hits · 153 pts
SeverityFileLineSnippetContext
LOWremotion/tuiDemo.tsx1225function getLineTwoPreviewSegments(phase: Phase): string[] {CODE
LOWremotion/tuiDemo.tsx1564function getFreshInstallWidgetColor(segment: string): string {CODE
LOWremotion/tuiDemo.tsx1808function getUsagePercentKeybindsText(mode: UsageDisplayMode): string {CODE
LOWsrc/ccstatusline.ts51function hasSessionDurationInStatusJson(data: StatusJSON): boolean {CODE
LOWsrc/tui/App.tsx274function getGlobalUninstallCommand(packageManager: GlobalPackageManager): string {CODE
LOWsrc/tui/App.tsx280function buildUninstallConfirmMessage(selection: UninstallSelection): string {CODE
LOWsrc/tui/App.tsx292function clearInstallationMetadata(settings: Settings | null): Settings | null {CODE
LOWsrc/tui/App.tsx332function getPinnedGlobalRelaunchCommand(packageManager: GlobalPackageManager): string {CODE
LOWsrc/tui/App.tsx376export function getPathInferredInstallation(CODE
LOWsrc/tui/App.tsx406export function clearInstallMenuSelection(menuSelections: Record<string, number>): Record<string, number> {CODE
LOWsrc/tui/App.tsx425export function buildInvalidConfigSaveConfirm(CODE
LOWsrc/tui/claude-status.ts11export async function loadClaudeStatusLineState(): Promise<ClaudeStatusLineState> {CODE
LOWsrc/tui/components/StatusLinePreview.tsx62export function preparePreviewLineForTerminal(line: string, terminalWidth: number): string {CODE
LOWsrc/tui/components/PowerlineThemeSelector.tsx42export function applyCustomPowerlineTheme(CODE
LOWsrc/tui/components/TerminalWidthMenu.tsx19export function getTerminalWidthSelectionIndex(selectedOption: FlexMode): number {CODE
LOWsrc/tui/components/TerminalWidthMenu.tsx25export function validateCompactThresholdInput(value: string): string | null {CODE
LOWsrc/tui/components/ManageInstallationMenu.tsx76export function buildManageInstallationItems(): ListEntry<ManageInstallationAction>[] {CODE
LOWsrc/tui/components/ItemsEditor.tsx45function isMergedIntoPreviousWidget(widgets: WidgetItem[], index: number): boolean {CODE
LOWsrc/tui/components/PowerlineSetup.tsx105export function buildPowerlineSetupMenuItems(CODE
LOWsrc/tui/components/TerminalOptionsMenu.tsx27export function shouldWarnOnColorLevelChange(CODE
LOWsrc/tui/components/TerminalOptionsMenu.tsx37export function buildTerminalOptionsItems(CODE
LOWsrc/tui/components/RefreshIntervalMenu.tsx21function getRefreshIntervalSublabel(interval: number | null, supported: boolean): string {CODE
LOWsrc/tui/components/RefreshIntervalMenu.tsx39export function buildConfigureStatusLineItems(CODE
LOWsrc/tui/components/RefreshIntervalMenu.tsx63export function validateRefreshIntervalInput(value: string): string | null {CODE
LOWsrc/tui/components/MainMenu.tsx167export function getMainMenuSelectionIndex(items: MainMenuEntry[], option: MainMenuOption): number {CODE
LOWsrc/tui/components/MainMenu.tsx187export function getMainMenuInstallSelectionIndex(CODE
LOWsrc/tui/components/color-menu/mutations.ts97function getDefaultForegroundColor(widget: WidgetItem): string {CODE
LOWsrc/utils/colors.ts293export function getAvailableBackgroundColorsForUI(): { name: string; value: string }[] {CODE
LOWsrc/utils/colors.ts303export function getBackgroundColorsForPowerline(): string[] {CODE
LOWsrc/utils/timezones.ts24function getSupportedTimezoneValues(): string[] {CODE
LOWsrc/utils/timezones.ts52function createLocalTimezoneOption(): TimezoneOption {CODE
LOWsrc/utils/powerline-theme-index.ts32export function advanceGlobalPowerlineThemeIndex(currentIndex: number, entries: PowerlineThemeSlotEntry[]): number {CODE
LOWsrc/utils/global-package-manager.ts92function getFilesystemPathVariants(filePath: string): string[] {CODE
LOWsrc/utils/global-package-manager.ts179function getNpmGlobalPackageVersion(platform: NodeJS.Platform): string | null {CODE
LOWsrc/utils/global-package-manager.ts207function getBunGlobalPackageVersion(binDir: string | null): string | null {CODE
LOWsrc/utils/global-package-manager.ts297function getActiveResolutionWarning(CODE
LOWsrc/utils/global-package-manager.ts317export function inspectActiveGlobalCommand({CODE
LOWsrc/utils/global-package-manager.ts343export function inspectGlobalPackageInstallations({CODE
LOWsrc/utils/global-package-manager.ts354export function runGlobalPackageUninstall(CODE
LOWsrc/utils/speed-window.ts23export function getWidgetSpeedWindowSeconds(item: WidgetItem): number {CODE
LOWsrc/utils/speed-window.ts37export function isWidgetSpeedWindowEnabled(item: WidgetItem): boolean {CODE
LOWsrc/utils/speed-window.ts41export function withWidgetSpeedWindowSeconds(item: WidgetItem, seconds: number): WidgetItem {CODE
LOWsrc/utils/update-checker.ts124function getAutoUpdateLaunchCommand(installation: ResolvedInstallationMetadata): string | undefined {CODE
LOWsrc/utils/context-percentage.ts19export function calculateContextPercentageMetrics(context: Pick<RenderContext, 'data' | 'tokenMetrics'>): ContextPercentCODE
LOWsrc/utils/context-percentage.ts44export function calculateContextPercentage(context: RenderContext): number {CODE
LOWsrc/utils/usage-prefetch.ts84function getUsageFieldRequirements(lines: WidgetItem[][]): UsageFieldRequirement[] {CODE
LOWsrc/utils/usage-prefetch.ts105function isUsageRequirementSatisfied(data: UsageData | null, requirement: UsageFieldRequirement): boolean {CODE
LOWsrc/utils/usage-prefetch.ts113function getMissingFetchRequirements(CODE
LOWsrc/utils/usage-prefetch.ts172export function extractUsageDataFromRateLimits(rateLimits: StatusJSON['rate_limits']): UsageData | null {CODE
LOWsrc/utils/usage-prefetch.ts202export async function prefetchUsageDataIfNeeded(lines: WidgetItem[][], data?: StatusJSON): Promise<UsageData | null> {CODE
LOWsrc/utils/ansi.ts43function createUnicodePropertyRegex(pattern: string): RegExp | null {CODE
LOWsrc/utils/ansi.ts129function isZeroWidthStandaloneCluster(cluster: string): boolean {CODE
LOWsrc/utils/ansi.ts145function shouldTreatClusterAsNarrowTextPictograph(cluster: string): boolean {CODE
LOWsrc/utils/color-sanitize.ts29function resetWidgetForegroundToDefault(widget: WidgetItem, nextWidget: WidgetItem): WidgetItem {CODE
LOWsrc/utils/color-sanitize.ts49export function sanitizeLinesForColorLevel(lines: WidgetItem[][], nextLevel: 0 | 1 | 2 | 3): WidgetItem[][] {CODE
LOWsrc/utils/locales.ts102function createConfiguredLocaleOption(locale: string): LocaleOption {CODE
LOWsrc/utils/claude-settings.ts259export function getPackageCommandAvailability(): PackageCommandAvailability {CODE
LOWsrc/utils/claude-settings.ts284export function isClaudeCodeVersionAtLeast(minVersion: string): boolean {CODE
LOWsrc/utils/claude-settings.ts333function isLocalDevelopmentCommand(command: string): boolean {CODE
LOWsrc/utils/claude-settings.ts381async function loadSavedSettingsForHookSync(): Promise<Settings | null> {CODE
84 more matches not shown…
Verbosity Indicators3 hits · 7 pts
SeverityFileLineSnippetContext
LOWsrc/utils/jsonl-blocks.ts42 // Step 1: Find all JSONL files with their modification timesCOMMENT
LOWsrc/utils/jsonl-blocks.ts53 // Step 2: Get file stats and sort by modification time (most recent first)COMMENT
LOWsrc/utils/jsonl-blocks.ts61 // Step 3: Progressive lookback - start small and expand if neededCOMMENT
Structural Annotation Overuse3 hits · 7 pts
SeverityFileLineSnippetContext
LOWsrc/utils/jsonl-blocks.ts42 // Step 1: Find all JSONL files with their modification timesCOMMENT
LOWsrc/utils/jsonl-blocks.ts53 // Step 2: Get file stats and sort by modification time (most recent first)COMMENT
LOWsrc/utils/jsonl-blocks.ts61 // Step 3: Progressive lookback - start small and expand if neededCOMMENT
Over-Commented Block5 hits · 5 pts
SeverityFileLineSnippetContext
LOWsrc/utils/gradient.ts321 }COMMENT
LOWsrc/utils/gradient.ts341// function assigns a separate gradient step to each code point in the clusterCOMMENT
LOWsrc/utils/renderer.ts561 // Powerline separator coloring:COMMENT
LOWsrc/utils/renderer.ts1241 // AFTER truncation, not before: truncateStyledText cuts from the right andCOMMENT
LOWsrc/utils/__tests__/renderer-separator-collapse.test.ts121 // Without the fix, the SEP between B and C would emit (its walkbackCOMMENT
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOWsrc/widgets/__tests__/ClaudeAccountEmail.test.ts83 fs.writeFileSync(claudeJsonPath, JSON.stringify({ oauthAccount: { emailAddress: 'user@example.com' } }), 'utf-8'CODE
LOWsrc/widgets/__tests__/ClaudeAccountEmail.test.ts94 fs.writeFileSync(claudeJsonPath, JSON.stringify({ oauthAccount: { emailAddress: 'user@example.com' } }), 'utf-8'CODE
LOWsrc/widgets/__tests__/ClaudeAccountEmail.test.ts96 expect(render({ rawValue: true })).toBe('user@example.com');CODE