🚀✨ Minimalistic, powerful and extremely customizable Zsh prompt
This report presents the forensic synthetic code analysis of spaceship-prompt/spaceship-prompt, a Shell project with 20,540 GitHub stars. SynthScan v2.0 examined 20,015 lines of code across 317 source files, recording 642 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 110.5 places this repository in the Strong 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).
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 642 distinct pattern matches across 6 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 |
|---|---|---|---|---|
| MEDIUM | spaceship.zsh | 36 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | spaceship.zsh | 39 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | spaceship.zsh | 126 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | spaceship.zsh | 129 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | spaceship.zsh | 154 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | spaceship.zsh | 157 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | spaceship.zsh | 174 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | spaceship.zsh | 177 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | spaceship.zsh | 220 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | spaceship.zsh | 223 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/ansible.zsh | 7 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/ansible.zsh | 9 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/ansible.zsh | 18 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/ansible.zsh | 20 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/swiftenv.zsh | 7 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/swiftenv.zsh | 9 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/swiftenv.zsh | 19 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/swiftenv.zsh | 21 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/swift.zsh | 9 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/swift.zsh | 11 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/swift.zsh | 20 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/swift.zsh | 22 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/swift.zsh | 27 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/swift.zsh | 29 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | sections/hg.zsh | 5 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | sections/hg.zsh | 7 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/hg.zsh | 19 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/hg.zsh | 21 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/hg.zsh | 29 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/hg.zsh | 31 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/xcenv.zsh | 7 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/xcenv.zsh | 9 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/xcenv.zsh | 19 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/xcenv.zsh | 21 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | sections/jobs.zsh | 5 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | sections/jobs.zsh | 7 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | sections/jobs.zsh | 18 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | sections/jobs.zsh | 20 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/golang.zsh | 8 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/golang.zsh | 10 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/golang.zsh | 19 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/golang.zsh | 21 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/vlang.zsh | 7 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/vlang.zsh | 9 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/vlang.zsh | 18 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/vlang.zsh | 20 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/haxe.zsh | 7 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/haxe.zsh | 9 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/haxe.zsh | 19 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/haxe.zsh | 21 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/node.zsh | 7 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/node.zsh | 9 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/node.zsh | 19 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/node.zsh | 21 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/deno.zsh | 7 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/deno.zsh | 9 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/deno.zsh | 19 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/deno.zsh | 21 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/crystal.zsh | 7 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | sections/crystal.zsh | 9 | # ------------------------------------------------------------------------------ | COMMENT |
| 495 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | async.zsh | 216 | # Check if a worker should perform unique jobs, unless | COMMENT |
| LOW | async.zsh | 219 | # Check if a previous job is still running, if yes, | COMMENT |
| LOW | async.zsh | 503 | # Check if the worker exists | COMMENT |
| LOW | async.zsh | 657 | # Check if zsh/zpty returns a file descriptor or not, | COMMENT |
| LOW⚡ | sections/ansible.zsh | 25 | # Check if ansible is installed | COMMENT |
| LOW⚡ | sections/haxe.zsh | 26 | # Check if haxe binary exists | COMMENT |
| LOW⚡ | sections/haxe.zsh | 36 | # Check if haxe_version is empty | COMMENT |
| LOW⚡ | sections/sudo.zsh | 27 | # Check if sudo command is available for execution | COMMENT |
| LOW⚡ | sections/sudo.zsh | 30 | # Check if the current shell has passwordless sudo available | COMMENT |
| LOW⚡ | sections/conda.zsh | 27 | # Check if running via conda virtualenv | COMMENT |
| LOW⚡ | sections/venv.zsh | 28 | # Check if the current directory running via Virtualenv | COMMENT |
| LOW⚡ | sections/zig.zsh | 26 | # Check if zig command is available for execution | COMMENT |
| LOW⚡ | sections/erlang.zsh | 26 | # Check if erl command is available for execution | COMMENT |
| LOW⚡ | sections/hg_status.zsh | 24 | # Check if current dir is a hg repo and show hg status as indicators | COMMENT |
| LOW⚡ | sections/purescript.zsh | 25 | # Check if PureScript binary is available | COMMENT |
| LOW⚡ | sections/rlang.zsh | 26 | # Check if R binary exists | COMMENT |
| LOW⚡ | sections/rlang.zsh | 36 | # Check if R_version is empty | COMMENT |
| LOW | sections/dir.zsh | 37 | # Check if the parent of the $git_root is "/" | COMMENT |
| LOW⚡ | sections/gcloud.zsh | 26 | # Check if the glcoud-cli is installed | COMMENT |
| LOW⚡ | sections/gcloud.zsh | 32 | # Check if there is an active config | COMMENT |
| LOW⚡ | sections/gcloud.zsh | 35 | # Check if there is an active config override | COMMENT |
| LOW⚡ | sections/java.zsh | 22 | # Check if java binary exists | COMMENT |
| LOW | sections/java.zsh | 33 | # Check if java version is not empty | COMMENT |
| LOW⚡ | lib/utils.zsh | 9 | # Check if command exists in $PATH | COMMENT |
| LOW⚡ | lib/utils.zsh | 16 | # Check if function is defined | COMMENT |
| LOW⚡ | lib/utils.zsh | 23 | # Check if array includes and item | COMMENT |
| LOW | lib/utils.zsh | 46 | # Check if the current directory is in a Git repository. | COMMENT |
| LOW | lib/utils.zsh | 54 | # Check if the current directory is in a Mercurial repository. | COMMENT |
| LOW | lib/utils.zsh | 93 | # Check if async is available and there is an async section | COMMENT |
| LOW | lib/utils.zsh | 100 | # Print message backward compatibility warning | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | spaceship.zsh | 1 | #!/usr/bin/env zsh | COMMENT |
| LOW | spaceship.zsh | 221 | # ENTRY POINT | COMMENT |
| LOW | async.zsh | 1 | #!/usr/bin/env zsh | COMMENT |
| LOW | async.zsh | 181 | while :; do | COMMENT |
| LOW | async.zsh | 261 | } | COMMENT |
| LOW | async.zsh | 481 | # | COMMENT |
| LOW | async.zsh | 521 | unset "ASYNC_PROCESS_BUFFER[$worker]" | COMMENT |
| LOW | sections/ansible.zsh | 1 | # | COMMENT |
| LOW | sections/golang.zsh | 1 | # | COMMENT |
| LOW | sections/vlang.zsh | 1 | # | COMMENT |
| LOW | sections/haxe.zsh | 1 | # | COMMENT |
| LOW | sections/crystal.zsh | 1 | # | COMMENT |
| LOW | sections/julia.zsh | 1 | # | COMMENT |
| LOW | sections/dart.zsh | 1 | # | COMMENT |
| LOW | sections/ocaml.zsh | 1 | # | COMMENT |
| LOW | sections/sudo.zsh | 1 | # | COMMENT |
| LOW | sections/terraform.zsh | 1 | # | COMMENT |
| LOW | sections/red.zsh | 1 | # | COMMENT |
| LOW | sections/kotlin.zsh | 1 | # | COMMENT |
| LOW | sections/azure.zsh | 1 | # | COMMENT |
| LOW | sections/dotnet.zsh | 1 | # | COMMENT |
| LOW | sections/php.zsh | 1 | # | COMMENT |
| LOW | sections/ibmcloud.zsh | 1 | # | COMMENT |
| LOW | sections/python.zsh | 1 | # | COMMENT |
| LOW | sections/package.zsh | 1 | # | COMMENT |
| LOW | sections/nix_shell.zsh | 1 | # | COMMENT |
| LOW | sections/ruby.zsh | 1 | # | COMMENT |
| LOW | sections/zig.zsh | 1 | # | COMMENT |
| LOW | sections/scala.zsh | 1 | # | COMMENT |
| LOW | sections/perl.zsh | 1 | # | COMMENT |
| LOW | sections/pulumi.zsh | 1 | # | COMMENT |
| LOW | sections/bun.zsh | 1 | # | COMMENT |
| LOW | sections/erlang.zsh | 1 | # | COMMENT |
| LOW | sections/battery.zsh | 1 | # | COMMENT |
| LOW | sections/kubectl_version.zsh | 1 | # | COMMENT |
| LOW | sections/user.zsh | 1 | # | COMMENT |
| LOW | sections/purescript.zsh | 1 | # | COMMENT |
| LOW | sections/elm.zsh | 1 | # | COMMENT |
| LOW | sections/gleam.zsh | 1 | # | COMMENT |
| LOW | sections/gnu_screen.zsh | 1 | # | COMMENT |
| LOW | sections/gcloud.zsh | 1 | # | COMMENT |
| LOW | sections/haskell.zsh | 1 | # | COMMENT |
| LOW | tests/pulumi.test.zsh | 81 | # ------------------------------------------------------------------------------ | COMMENT |
| LOW | tests/deno.test.zsh | 81 | # ------------------------------------------------------------------------------ | COMMENT |
| LOW | tests/user.test.zsh | 121 | # ------------------------------------------------------------------------------ | COMMENT |
| LOW | tests/gleam.test.zsh | 81 | # ------------------------------------------------------------------------------ | COMMENT |
| LOW | tests/dart.test.zsh | 141 | # ------------------------------------------------------------------------------ | COMMENT |
| LOW | tests/perl.test.zsh | 81 | # ------------------------------------------------------------------------------ | COMMENT |
| LOW | lib/utils.zsh | 1 | #!/usr/bin/env zsh | COMMENT |
| LOW | lib/hooks.zsh | 1 | #!/usr/bin/env zsh | COMMENT |
| LOW | lib/section.zsh | 1 | #!/usr/bin/env zsh | COMMENT |
| LOW | lib/cache.zsh | 1 | #!/usr/bin/env zsh | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | sections/zig.zsh | 4 | # Zig is a general-purpose programming language and toolchain for maintaining robust, optimal and reusable software. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/uk/api/utils.md | 191 | # "John Doe" | COMMENT |
| LOW | docs/api/utils.md | 191 | # "John Doe" | COMMENT |
| LOW | lib/extract.zsh | 72 | # > "John Doe" | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | lib/utils.zsh | 6 | # This file is used as a API for sections developers | COMMENT |