A simple server monitor tool.
This report presents the forensic synthetic code analysis of komari-monitor/komari, a Go project with 5,354 GitHub stars. SynthScan v2.0 examined 41,332 lines of code across 246 source files, recording 93 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 2.7 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 93 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 | cmd/app.go | 41 | // cleanupFunc 是一个关闭阶段执行的清理函数。 | COMMENT |
| LOW | database/metricstore/migration_store.go | 81 | return fmt.Errorf("store-to-store metrics migration failed: %w", err) | COMMENT |
| LOW | database/metricstore/store_migration.go | 21 | // 与启动迁移(RunStartupMigration)的区别: | COMMENT |
| LOW | database/metricstore/migration.go | 21 | dsn := strings.TrimSpace(cfg.DSN) | COMMENT |
| LOW | database/dbcore/dbcore.go | 201 | COMMENT | |
| LOW | database/dbcore/dbcore.go | 381 | // SQLite 连接 | COMMENT |
| LOW | web/api/admin/theme.go | 421 | // 支持的格式: | COMMENT |
| LOW | web/api/admin/theme.go | 521 | isGitHub, owner, repo := isGitHubRepoURL(themeInfo.URL) | COMMENT |
| LOW | web/api/admin/theme.go | 621 | // 解压ZIP文件并验证 | COMMENT |
| LOW | utils/renewal/renewal.go | 121 | // for _, clientInfo := range renewedClients { | COMMENT |
| LOW | pkg/rpc/principal.go | 21 | // Principal 调用主体,携带身份信息和能力。 | COMMENT |
| LOW | pkg/metric/config.go | 21 | // | COMMENT |
| LOW | pkg/metric/config.go | 41 | // | COMMENT |
| LOW | pkg/metric/config.go | 61 | // | COMMENT |
| LOW | pkg/metric/config.go | 81 | PerformanceProfile SQLitePerformanceProfile | COMMENT |
| LOW | pkg/metric/config.go | 101 | MMapSizeBytes int64 | COMMENT |
| LOW | pkg/metric/config.go | 121 | // | COMMENT |
| LOW | pkg/metric/aggregate.go | 241 | // here via linear interpolation over the sorted values. The fixed | COMMENT |
| LOW | pkg/metric/rollup.go | 1 | package metric | COMMENT |
| LOW | pkg/metric/rollup.go | 21 | // | COMMENT |
| LOW | pkg/metric/rollup.go | 41 | // RollupPolicy 描述完整保留阶梯:原始点保留多久,以及后续逐级变粗的 | COMMENT |
| LOW | pkg/metric/rollup.go | 161 | // 有界误差在降采样后保留下来。 | COMMENT |
| LOW | pkg/metric/rollup.go | 181 | // max 是该桶代表的最大值。 | COMMENT |
| LOW | pkg/metric/store.go | 21 | // Store is the main metric storage handle. | COMMENT |
| LOW | pkg/metric/store.go | 41 | // ownedReadDB reports whether Store should close readDB. | COMMENT |
| LOW | pkg/metric/store.go | 661 | } | COMMENT |
| LOW | pkg/metric/types.go | 21 | // | COMMENT |
| LOW | pkg/metric/types.go | 41 | // | COMMENT |
| LOW | pkg/metric/types.go | 61 | // | COMMENT |
| LOW | pkg/metric/types.go | 81 | // | COMMENT |
| LOW | pkg/metric/types.go | 101 | // | COMMENT |
| LOW | pkg/metric/types.go | 121 | // | COMMENT |
| LOW | pkg/metric/types.go | 141 | Type MetricType `json:"type"` | COMMENT |
| LOW | pkg/metric/types.go | 201 | // MetricName 表示该采样所属的指标名称。 | COMMENT |
| LOW | pkg/metric/types.go | 261 | type Query struct { | COMMENT |
| LOW | pkg/metric/types.go | 281 | Tags map[string]string `json:"tags,omitempty"` | COMMENT |
| LOW | pkg/metric/types.go | 341 | // | COMMENT |
| LOW | pkg/metric/types.go | 361 | // backend and aggregation type. The embedded Query.Limit/Query.Offset are | COMMENT |
| LOW | pkg/metric/types.go | 401 | COMMENT | |
| LOW | pkg/metric/types.go | 421 | Value float64 `json:"value"` | COMMENT |
| LOW | pkg/metric/types.go | 441 | // | COMMENT |
| LOW | pkg/metric/types.go | 461 | // | COMMENT |
| LOW | pkg/metric/types.go | 481 | // | COMMENT |
| LOW | pkg/metric/rollup_boundary_test.go | 1 | package metric | COMMENT |
| LOW | pkg/metric/rollup_boundary_test.go | 101 | if res[0].Value != 1 || res[1].Value != 2 { | COMMENT |
| LOW | pkg/metric/dialect.go | 21 | // jsonb 列。SQLite 和 MySQL 将 JSON 存为文本或原生类型,不需要转换。 | COMMENT |
| LOW | pkg/metric/dialect.go | 41 | // upsertRollupSQL builds a single-row upsert for one rollup bucket cell. | COMMENT |
| LOW | pkg/metric/dialect.go | 61 | type tables struct { | COMMENT |
| LOW | pkg/metric/dialect.go | 101 | // | COMMENT |
| LOW | pkg/metric/dialect.go | 161 | COMMENT | |
| LOW | pkg/metric/dialect.go | 201 | created_at = VALUES(created_at)`) | COMMENT |
| LOW | pkg/metric/dialect.go | 321 | } | COMMENT |
| LOW | pkg/metric/dialect.go | 341 | // 1. JSON path string escaping inside the double quotes: backslash and double | COMMENT |
| LOW | pkg/metric/dialect.go | 361 | // | COMMENT |
| LOW | pkg/metric/dialect.go | 381 | return fmt.Sprintf("%s->>'%s' = %s", column, sqlSingleQuote(key), placeholder) | COMMENT |
| LOW | pkg/metric/dialect.go | 401 | // 以及该聚合是否能下推到该后端。需要有序原始序列的聚合(first/last/rate) | COMMENT |
| LOW | pkg/metric/tdigest.go | 1 | package metric | COMMENT |
| LOW | pkg/metric/tdigest.go | 21 | // accuracy matters), giving relative error that is small at the extremes — the | COMMENT |
| LOW | pkg/metric/tdigest.go | 41 | centroids []centroid | COMMENT |
| LOW | pkg/metric/tdigest.go | 61 | COMMENT | |
| 22 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | install-komari.sh | 40 | # ========================================================== | COMMENT |
| MEDIUM | install-komari.sh | 42 | # ========================================================== | COMMENT |
| MEDIUM⚡ | install-komari.sh | 192 | # ========================================================== | COMMENT |
| MEDIUM⚡ | install-komari.sh | 194 | # ========================================================== | COMMENT |
| MEDIUM | install-komari.sh | 290 | # ========================================================== | COMMENT |
| MEDIUM | install-komari.sh | 292 | # ========================================================== | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | install-komari.sh | 196 | # Check if running as root | COMMENT |
| LOW | install-komari.sh | 236 | # Check if Komari is already installed | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/release.yml | 114 | # Define the binary name for upload | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/generate-release-notes.yml | 254 | function appendCommitsToGeneratedNotes(generatedNotes, baseRef, tag, comparison) { | CODE |
| LOW | .github/workflows/generate-release-notes.yml | 459 | async function buildReleaseSummarySection({ tag, release, comparisonBase, whatsChangedSection, comparison, w | CODE |