A Zsh theme
This report presents the forensic synthetic code analysis of romkatv/powerlevel10k, a Shell project with 54,712 GitHub stars. SynthScan v2.0 examined 27,935 lines of code across 49 source files, recording 350 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 11.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).
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 350 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 |
|---|---|---|---|---|
| LOW | config/p10k-robbyrussell.zsh | 1 | # Config file for Powerlevel10k with the style of robbyrussell theme from Oh My Zsh. | COMMENT |
| LOW | config/p10k-robbyrussell.zsh | 81 | # Grey Git status when loading. | COMMENT |
| LOW | config/p10k-lean.zsh | 101 | # cpu_arch # CPU architecture | COMMENT |
| LOW | config/p10k-lean.zsh | 121 | typeset -g POWERLEVEL9K_BACKGROUND= # transparent background | COMMENT |
| LOW | config/p10k-lean.zsh | 161 | typeset -g POWERLEVEL9K_RULER_FOREGROUND=240 | COMMENT |
| LOW | config/p10k-lean.zsh | 181 | fi | COMMENT |
| LOW | config/p10k-lean.zsh | 261 | # Don't shorten this many last directory segments. They are anchors. | COMMENT |
| LOW | config/p10k-lean.zsh | 281 | # Enable special styling for non-writable and non-existent directories. See POWERLEVEL9K_LOCK_ICON | COMMENT |
| LOW | config/p10k-lean.zsh | 301 | # | COMMENT |
| LOW | config/p10k-lean.zsh | 321 | # | COMMENT |
| LOW | config/p10k-lean.zsh | 341 | # typeset -g POWERLEVEL9K_DIR_PREFIX='%fin ' | COMMENT |
| LOW | config/p10k-lean.zsh | 441 | (( VCS_STATUS_STASHES )) && res+=" ${clean}*${VCS_STATUS_STASHES}" | COMMENT |
| LOW | config/p10k-lean.zsh | 461 | typeset -g my_git_format=$res | COMMENT |
| LOW | config/p10k-lean.zsh | 481 | # Install our own Git status formatter. | COMMENT |
| LOW | config/p10k-lean.zsh | 541 | COMMENT | |
| LOW | config/p10k-lean.zsh | 561 | # Custom icon. | COMMENT |
| LOW | config/p10k-lean.zsh | 581 | # POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW. Consider the effect of the following commands: | COMMENT |
| LOW | config/p10k-lean.zsh | 601 | # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SOURCES. | COMMENT |
| LOW | config/p10k-lean.zsh | 621 | # Note: SHOW_ON_UPGLOB isn't specific to asdf. It works with all prompt segments. | COMMENT |
| LOW | config/p10k-lean.zsh | 641 | typeset -g POWERLEVEL9K_ASDF_GOLANG_FOREGROUND=37 | COMMENT |
| LOW | config/p10k-lean.zsh | 661 | typeset -g POWERLEVEL9K_ASDF_FLUTTER_FOREGROUND=38 | COMMENT |
| LOW | config/p10k-lean.zsh | 681 | typeset -g POWERLEVEL9K_ASDF_ERLANG_FOREGROUND=125 | COMMENT |
| LOW | config/p10k-lean.zsh | 701 | typeset -g POWERLEVEL9K_ASDF_HASKELL_FOREGROUND=172 | COMMENT |
| LOW | config/p10k-lean.zsh | 721 | typeset -g POWERLEVEL9K_RANGER_FOREGROUND=178 | COMMENT |
| LOW | config/p10k-lean.zsh | 741 | # typeset -g POWERLEVEL9K_LF_VISUAL_IDENTIFIER_EXPANSION='⭐' | COMMENT |
| LOW | config/p10k-lean.zsh | 761 | #[ nix_shell: nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html) ]## | COMMENT |
| LOW | config/p10k-lean.zsh | 781 | # Colors for different levels of disk usage. | COMMENT |
| LOW | config/p10k-lean.zsh | 801 | typeset -g POWERLEVEL9K_SWAP_FOREGROUND=96 | COMMENT |
| LOW | config/p10k-lean.zsh | 821 | typeset -g POWERLEVEL9K_TODO_HIDE_ZERO_TOTAL=true | COMMENT |
| LOW | config/p10k-lean.zsh | 841 | ###########[ timewarrior: timewarrior tracking status (https://timewarrior.net/) ]############ | COMMENT |
| LOW | config/p10k-lean.zsh | 861 | # | COMMENT |
| LOW | config/p10k-lean.zsh | 881 | COMMENT | |
| LOW | config/p10k-lean.zsh | 921 | ###[ virtualenv: python virtual environment (https://docs.python.org/3/library/venv.html) ]### | COMMENT |
| LOW | config/p10k-lean.zsh | 941 | # - CONDA_DEFAULT_ENV Name of the active Anaconda/Miniconda environment. | COMMENT |
| LOW | config/p10k-lean.zsh | 961 | # is empty. | COMMENT |
| LOW | config/p10k-lean.zsh | 981 | # - P9K_PYENV_PYTHON_VERSION Current python version (python --version). | COMMENT |
| LOW | config/p10k-lean.zsh | 1001 | # If set to false, hide go version if it's equal to "system". | COMMENT |
| LOW | config/p10k-lean.zsh | 1021 | typeset -g POWERLEVEL9K_NVM_FOREGROUND=70 | COMMENT |
| LOW | config/p10k-lean.zsh | 1041 | # Node version color. | COMMENT |
| LOW | config/p10k-lean.zsh | 1061 | # Custom icon. | COMMENT |
| LOW | config/p10k-lean.zsh | 1081 | # Laravel version color. | COMMENT |
| LOW | config/p10k-lean.zsh | 1101 | # - P9K_PACKAGE_NAME The value of `name` field in package.json. | COMMENT |
| LOW | config/p10k-lean.zsh | 1121 | #######################[ rvm: ruby version from rvm (https://rvm.io) ]######################## | COMMENT |
| LOW | config/p10k-lean.zsh | 1141 | typeset -g POWERLEVEL9K_LUAENV_SOURCES=(shell local global) | COMMENT |
| LOW | config/p10k-lean.zsh | 1161 | # typeset -g POWERLEVEL9K_JENV_VISUAL_IDENTIFIER_EXPANSION='⭐' | COMMENT |
| LOW | config/p10k-lean.zsh | 1181 | # Don't show "perl-" at the front. | COMMENT |
| LOW | config/p10k-lean.zsh | 1201 | typeset -g POWERLEVEL9K_SCALAENV_FOREGROUND=160 | COMMENT |
| LOW | config/p10k-lean.zsh | 1221 | # If set to false, hide haskell version if it's the same as in the implicit global project. | COMMENT |
| LOW | config/p10k-lean.zsh | 1241 | # | COMMENT |
| LOW | config/p10k-lean.zsh | 1261 | typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_FOREGROUND=134 | COMMENT |
| LOW | config/p10k-lean.zsh | 1281 | # | COMMENT |
| LOW | config/p10k-lean.zsh | 1301 | # - P9K_KUBECONTEXT_CLOUD_ACCOUNT=123456789012 | COMMENT |
| LOW | config/p10k-lean.zsh | 1321 | # POWERLEVEL9K_TERRAFORM_CLASSES defines the workspace class. Patterns are tried in order. The | COMMENT |
| LOW | config/p10k-lean.zsh | 1341 | # '*test*' TEST # to match your needs. Customize them as needed. | COMMENT |
| LOW | config/p10k-lean.zsh | 1361 | # you'll see this value in your prompt. The second element of each pair in | COMMENT |
| LOW | config/p10k-lean.zsh | 1381 | # '*prod*' PROD # These values are examples that are unlikely | COMMENT |
| LOW | config/p10k-lean.zsh | 1401 | # Tip: Remove the next line to always show azure. | COMMENT |
| LOW | config/p10k-lean.zsh | 1421 | # | COMMENT |
| LOW | config/p10k-lean.zsh | 1441 | # Google cloud color. | COMMENT |
| LOW | config/p10k-lean.zsh | 1461 | # set and gcloud prompt segment transitions to state COMPLETE. | COMMENT |
| 270 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | internal/parser.zsh | 111 | # --------------- | COMMENT |
| MEDIUM⚡ | internal/parser.zsh | 113 | # --------------- | COMMENT |
| MEDIUM⚡ | internal/parser.zsh | 115 | # --------------- | COMMENT |
| MEDIUM⚡ | internal/parser.zsh | 117 | # --------------- | COMMENT |
| MEDIUM⚡ | internal/parser.zsh | 119 | # --------------- | COMMENT |
| MEDIUM⚡ | internal/parser.zsh | 121 | # --------------- | COMMENT |
| MEDIUM⚡ | internal/parser.zsh | 123 | # --------------- | COMMENT |
| MEDIUM⚡ | internal/parser.zsh | 125 | # --------------- | COMMENT |
| MEDIUM⚡ | internal/parser.zsh | 127 | # --------------- | COMMENT |
| MEDIUM⚡ | internal/parser.zsh | 131 | # --------------- | COMMENT |
| MEDIUM⚡ | internal/parser.zsh | 137 | # --------------- | COMMENT |
| MEDIUM | gitstatus/gitstatus.plugin.zsh | 3 | # ------------------------------------------------------------------ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | internal/icons.zsh | 490 | # In this version of Nerd Fonts the Material icons are mapped to U+F0001-U+F19C3. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | config/p10k-lean.zsh | 1664 | # Usually, you should either not define instant_prompt_* or simply call prompt_* from it. If | COMMENT |
| LOW | config/p10k-rainbow.zsh | 1783 | # Usually, you should either not define instant_prompt_* or simply call prompt_* from it. If | COMMENT |
| LOW | config/p10k-lean-8colors.zsh | 1664 | # Usually, you should either not define instant_prompt_* or simply call prompt_* from it. If | COMMENT |
| LOW | config/p10k-classic.zsh | 1689 | # Usually, you should either not define instant_prompt_* or simply call prompt_* from it. If | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | internal/p10k.zsh | 8494 | # The following code is based on Pure: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | internal/icons.zsh | 334 | # don't forget to source the font maps in your startup script | COMMENT |
| LOW | internal/icons.zsh | 334 | # don't forget to source the font maps in your startup script | COMMENT |