Repository Analysis

charmbracelet/lipgloss

Style definitions for nice terminal layouts 👄

7.3 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of charmbracelet/lipgloss, a Go project with 11,559 GitHub stars. SynthScan v2.0 examined 17,410 lines of code across 98 source files, recording 88 pattern matches distributed across 4 syntactic categories. The overall adjusted score of 7.3 places this repository in the Low AI signal 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).

7.3
Adjusted Score
7.3
Raw Score
100%
Time Factor
2026-07-13
Last Push
11.6K
Stars
Go
Language
17.4K
Lines of Code
98
Files
88
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 11LOW 77

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 88 distinct pattern matches across 4 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.

Over-Commented Block59 hits · 58 pts
SeverityFileLineSnippetContext
LOWquery.go61 if bg, err = backgroundColor(f, f); err == nil {COMMENT
LOWcolor.go41)COMMENT
LOWcolor.go161type ANSIColor = ansi.IndexedColorCOMMENT
LOWcolor.go181// myHotColor := lightDark(red, blue)COMMENT
LOWcolor.go201// hasDarkBG := lipgloss.HasDarkBackground(os.Stdin, os.Stdout)COMMENT
LOWcolor.go241// complete := lipgloss.Complete(p)COMMENT
LOWjoin.go1package lipglossCOMMENT
LOWjoin.go101// the right.COMMENT
LOWwriter.go21// str := NewStyle().COMMENT
LOWwriter.go41 return fmt.Fprintf(Writer, format, v...) //nolint:wrapcheckCOMMENT
LOWwriter.go61//COMMENT
LOWwriter.go81func Fprintln(w io.Writer, v ...any) (int, error) {COMMENT
LOWwriter.go141// Sprintf returns a formatted string for stdout, automatically downsamplingCOMMENT
LOWset.go321// AlignVertical sets a vertical text alignment rule.COMMENT
LOWset.go401// Margin is a shorthand method for setting margins on all sides at once.COMMENT
LOWset.go461// rendering blocks with a specific character, such as a space or a dot.COMMENT
LOWset.go501 s.set(borderTopKey, top)COMMENT
LOWset.go601 s.set(borderBottomForegroundKey, c)COMMENT
LOWset.go641COMMENT
LOWset.go661// background colors of the borders at once. The arguments work as follows:COMMENT
LOWset.go721// only to font rendering and don't want it to change any physical dimensions.COMMENT
LOWset.go741//COMMENT
LOWset.go801// Transform applies a given function to a string at render time, allowing forCOMMENT
LOWblending.go81 }COMMENT
LOWblending.go101// Background(gradient[index]).COMMENT
LOWtree/example_test.go141 // ├── BarCOMMENT
LOWtree/tree.go1// Package tree allows you to build trees, as simple or complicated as you need.COMMENT
LOWtree/tree.go241// EnumeratorStyleFunc sets the enumeration style function. Use this functionCOMMENT
LOWtree/tree.go261// Use IndenterStyleFunc to conditionally set styles based on the tree node.COMMENT
LOWtree/tree.go301// ItemStyleFunc sets the item style function. Use this for conditional styling.COMMENT
LOWtree/tree.go321// for a classic or rounded tree. For example, you can have a rounded tree:COMMENT
LOWtree/tree.go341//COMMENT
LOWtree/enumerator.go1package treeCOMMENT
LOWtree/enumerator.go41}COMMENT
LOWtree/enumerator.go61// ├── FooCOMMENT
LOWcompat/doc.go1// Package compat is a compatibility layer for Lip Gloss that provides a way toCOMMENT
LOWtable/table_test.go1481 Width(80).COMMENT
LOWtable/table_test.go1501 // │ regione │ 給災レホチ権 │ الأوروبيّون, │ 健必権次覧編 │ 조직·직무범위 │COMMENT
LOWtable/table_test.go1521 // │ liberavisse. │ ぐドらづ市居 │ دأبوا إحكام │ 省載嗅闘額端 │ │COMMENT
LOWtable/table_test.go1541 // │ │ う点目ヲウ止 │ │ │ │COMMENT
LOWtable/resizing.go21// to the total width.COMMENT
LOWtable/table.go21//COMMENT
LOWexamples/compat/standalone/main.go61 // isn't a TTY (i.e. we're logging to a file) colors will be strippedCOMMENT
LOWexamples/color/standalone/main.go61COMMENT
LOWlist/list.go1// Package list allows you to build lists, as simple or complicated as you need.COMMENT
LOWlist/list.go21//COMMENT
LOWlist/list.go41// "C",COMMENT
LOWlist/list.go61//COMMENT
LOWlist/list.go121//COMMENT
LOWlist/list.go161// Use this to conditionally set different styles based on the current items,COMMENT
LOWlist/list.go181// the tree is indented. The default indentor places a border connecting siblingCOMMENT
LOWlist/list.go221// Use this to conditionally set different styles based on the current items,COMMENT
LOWlist/list.go261 for _, item := range items {COMMENT
LOWlist/list.go281//COMMENT
LOWlist/enumerator.go1package listCOMMENT
LOWlist/enumerator.go21// - BulletCOMMENT
LOWlist/enumerator.go61const abcLen = 26COMMENT
LOWlist/enumerator.go101// • BarCOMMENT
LOWlist/enumerator.go121// Example:COMMENT
Decorative Section Separators11 hits · 45 pts
SeverityFileLineSnippetContext
MEDIUMset.go648// ┌──────────┐COMMENT
MEDIUMset.go653// └──────────┘COMMENT
MEDIUMtable/table_test.go1490 // ┌──────────────┬───────────────┬───────────────┬───────────────┬───────────────┐COMMENT
MEDIUMtable/table_test.go1492 // ├──────────────┼───────────────┼───────────────┼───────────────┼───────────────┤COMMENT
MEDIUMtable/table_test.go1494 // └──────────────┴───────────────┴───────────────┴───────────────┴───────────────┘COMMENT
MEDIUMtable/table_test.go1495 // ┌──────────────┬───────────────┬───────────────┬───────────────┬───────────────┐COMMENT
MEDIUMtable/table_test.go1497 // ├──────────────┼───────────────┼───────────────┼───────────────┼───────────────┤COMMENT
MEDIUMtable/table_test.go1554 // └──────────────┴───────────────┴───────────────┴───────────────┴───────────────┘COMMENT
MEDIUMtable/resizing.go32// ┌──────┬───────────────┬──────────┐COMMENT
MEDIUMtable/resizing.go34// ├──────┼───────────────┼──────────┤COMMENT
MEDIUMtable/resizing.go38// └──────┴───────────────┴──────────┘COMMENT
Fake / Example Data12 hits · 14 pts
SeverityFileLineSnippetContext
LOWtable/table_test.go1493 // │ Lorem ipsum… │ 耐許ヱヨカハ… │ شيء قد للحكو… │ 版応道潟部中… │ 각급 선거관… │COMMENT
LOWtable/table_test.go1498 // │ Lorem ipsum │ 耐許ヱヨカハ │ شيء قد │ 版応道潟部中 │ 각급 │COMMENT
LOWtable/table_test.go901 "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit neCODE
LOWtable/table_test.go901 "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit neCODE
LOWtable/table_test.go1020 "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit neCODE
LOWtable/table_test.go1020 "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit neCODE
LOWtable/table_test.go1113 "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit neCODE
LOWtable/table_test.go1113 "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit neCODE
LOWtable/table_test.go1172 "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit neceCODE
LOWtable/table_test.go1172 "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit neceCODE
LOWtable/table_test.go1468 "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit neceCODE
LOWtable/table_test.go1468 "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit neceCODE
Example Usage Blocks6 hits · 9 pts
SeverityFileLineSnippetContext
LOWcolor.go49// Example usage:COMMENT
LOWcolor.go157// Example usage:COMMENT
LOWcolor.go217// Example usage:COMMENT
LOWcolor.go238// Example usage:COMMENT
LOWcolor.go255// Example usage:COMMENT
LOWcompat/color.go23// Example usage:COMMENT