Repository Analysis

caddyserver/caddy

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

5.0 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of caddyserver/caddy, a Go project with 74,006 GitHub stars. SynthScan v2.0 examined 109,563 lines of code across 391 source files, recording 526 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 5.0 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).

5.0
Adjusted Score
5.0
Raw Score
100%
Time Factor
2026-07-12
Last Push
74.0K
Stars
Go
Language
109.6K
Lines of Code
391
Files
526
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 515

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 526 distinct pattern matches across 9 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 Block503 hits · 503 pts
SeverityFileLineSnippetContext
LOWusagepool.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWusagepool.go21)COMMENT
LOWusagepool.go41// their lifespan. This is helpful, for example, whenCOMMENT
LOWlisteners.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWlisteners.go41// NetworkAddress represents one or more network addresses.COMMENT
LOWlisteners.go101}COMMENT
LOWlisteners.go121// listeners, be sure to Close() them when you are done.COMMENT
LOWlisteners.go701// ListenerFunc is a function that can return a listener given a network and address.COMMENT
LOWlisteners.go721COMMENT
LOWlogging.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWlogging.go41// Logging facilitates logging within Caddy. The default log isCOMMENT
LOWlogging.go61// servers.COMMENT
LOWlogging.go461COMMENT
LOWcaddy_test.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWsigtrap.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWservice_windows.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWreplacer_fuzz.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWfilesystem.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWadmin_test.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWlogging_test.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWlisteners_fuzz.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWcontext_test.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWstorage.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWstorage.go101}COMMENT
LOWmodules_test.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWfilepath_windows.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWadmin.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWadmin.go61 // The environment variable may be used by packagers to changeCOMMENT
LOWadmin.go81 // Default: the value of the `CADDY_ADMIN` environment variable,COMMENT
LOWadmin.go101 // set, the listener address will be the default value. If set butCOMMENT
LOWadmin.go121 // EXPERIMENTAL: This feature is subject to change.COMMENT
LOWadmin.go141COMMENT
LOWadmin.go161 Identifiers []string `json:"identifiers,omitempty"`COMMENT
LOWadmin.go181type RemoteAdmin struct {COMMENT
LOWadmin.go301 uniqueOrigins := make(map[string]struct{})COMMENT
LOWadmin.go321 // so, because:COMMENT
LOWadmin.go361 }COMMENT
LOWcontext.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWcontext.go141// pointer and returns the loaded module(s). The struct pointer and its field name asCOMMENT
LOWcontext.go161// in the "http.handlers" namespace, you'd put: `namespace=http.handlers` in theCOMMENT
LOWcontext.go461 }COMMENT
LOWcontext.go561// Originally, this method's signature was `Logger(mod Module)`,COMMENT
LOWlisten_unix.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWlisten_reuseUnixSocket_windows.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWreplacer.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWreplacer_test.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWsigtrap_nonposix.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWcaddy.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWcaddy.go41COMMENT
LOWcaddy.go61// have good, documented default values. If a parameter is required, the docsCOMMENT
LOWcaddy.go141 return errCOMMENT
LOWcaddy.go401COMMENT
LOWcaddy.go481// If `newCfg` is nil a new empty configuration will be created.COMMENT
LOWcaddy.go941}COMMENT
LOWcaddy.go961// of "caddy".COMMENT
LOWcaddy.go981//COMMENT
LOWcaddy.go1101COMMENT
LOWcaddy.go1201}COMMENT
LOWduration_fuzz.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
LOWlisteners_test.go1// Copyright 2015 Matthew Holt and The Caddy AuthorsCOMMENT
443 more matches not shown…
AI Slop Vocabulary11 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMlisteners.go395 // port to take advantage of standard library's robust parser, thenCOMMENT
MEDIUMcaddyconfig/httpcaddyfile/addresses.go192// Identical entries are deleted from the addrToServerBlocks map. Essentially, each pairing (eachCOMMENT
MEDIUMmodules/caddyhttp/app.go41// App is a robust, production-ready HTTP server.COMMENT
MEDIUM…ddyhttp/encode/testdata/caddy_config_http_servers.json1{"status_code":200,"result":{"structure":{"type":"map","map_keys":{"type":"string"},"elems":{"type":"struct","type_name"CODE
MEDIUM…ddyhttp/encode/testdata/caddy_config_http_servers.json1{"status_code":200,"result":{"structure":{"type":"map","map_keys":{"type":"string"},"elems":{"type":"struct","type_name"CODE
MEDIUM…ddyhttp/encode/testdata/caddy_config_http_servers.json1{"status_code":200,"result":{"structure":{"type":"map","map_keys":{"type":"string"},"elems":{"type":"struct","type_name"CODE
LOW…ddyhttp/encode/testdata/caddy_config_http_servers.json1{"status_code":200,"result":{"structure":{"type":"map","map_keys":{"type":"string"},"elems":{"type":"struct","type_name"CODE
MEDIUM…ddyhttp/encode/testdata/caddy_config_http_servers.json1{"status_code":200,"result":{"structure":{"type":"map","map_keys":{"type":"string"},"elems":{"type":"struct","type_name"CODE
LOWmodules/caddyhttp/headers/headers.go320 // see issue #4330 for why we don't simply use hdr[fieldName]COMMENT
MEDIUMmodules/caddytls/ech.go412 // TODO: Potentially utilize the timestamp (map value) for recent-enough publication, instead of just checking for COMMENT
MEDIUMmodules/caddytls/tls.go497 // It's a bit nuanced: managed certs can sometimes be different enough that we have toCOMMENT
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
LOWmodules/caddyhttp/encode/testdata/caddy_home.html1311 <div title="Don't forget to sign our guestbook!"><img alt="0" title="Hit counter" src="data:image/png;base64,iVBORw0KCODE
MEDIUM…ddyhttp/encode/testdata/caddy_config_http_servers.json1{"status_code":200,"result":{"structure":{"type":"map","map_keys":{"type":"string"},"elems":{"type":"struct","type_name"CODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOW.github/workflows/release.yml238 # Check if commits match (if proposal had a target commit)COMMENT
LOW.github/workflows/release-proposal.yml61 # Check if commit existsCOMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/release-proposal.yml135 # Create a new branch for the release proposalCOMMENT
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWmodules/caddyhttp/reverseproxy/fastcgi/client.go132 // keepAlive bool // TODO: implementCOMMENT
LOWmodules/caddypki/maintain.go71 // TODO: implement root renewal (use same key)COMMENT
Structural Annotation Overuse2 hits · 3 pts
SeverityFileLineSnippetContext
LOWmodules/caddyhttp/templates/tplcontext.go516// NOTE: This function is EXPERIMENTAL and subject to change or removal.COMMENT
LOWmodules/caddyhttp/templates/templates.go368// NOTE: This function is EXPERIMENTAL and subject to change or removal.COMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWreplacer_test.go510 name: "placeholder",CODE
LOWmodules/caddyhttp/templates/tplcontext.go90 "placeholder": c.funcPlaceholder,CODE
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWmodules/caddyhttp/rewrite/rewrite.go218 // before continuing, we need to check if a query stringCOMMENT