Bash's powerful command line editing in cmd.exe
This report presents the forensic synthetic code analysis of chrisant996/clink, a C++ project with 5,376 GitHub stars. SynthScan v2.0 examined 250,459 lines of code across 608 source files, recording 686 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 686 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 | clink/core/warning.h | 1 | #pragma warning( 1: 5038 ) // data member 'member1' will be initialized after data member 'member2' | COMMENT |
| LOW | clink/core/test/wstr.cpp | 1 | // Copyright (c) 2015 Martin Ridgers | COMMENT |
| LOW | clink/core/include/core/bldopts.h | 1 | // Copyright (c) 2022 Christopher Antos | COMMENT |
| LOW | clink/core/include/core/bldopts.h | 21 | #endif | COMMENT |
| LOW | clink/core/include/core/bldopts.h | 41 | //------------------------------------------------------------------------------ | COMMENT |
| LOW | clink/core/include/core/bldopts.h | 61 | // array of scripts that have been loaded during the session. | COMMENT |
| LOW | clink/core/include/core/bldopts.h | 81 | // terminal supports them. Maybe once Windows Terminal supports returning the | COMMENT |
| LOW | clink/core/include/core/debugheap.h | 1 | // Copyright (c) 2022 Christopher Antos | COMMENT |
| LOW | clink/core/include/core/debugheap.h | 81 | #define memcalloc dbgcalloc | COMMENT |
| LOW | clink/core/include/core/debugheap.h | 121 | // Caller is responsible for lifetime of label pointer. | COMMENT |
| LOW | clink/core/include/core/debugheap.h | 161 | #define dbg_snapshot_heap(var) const size_t var = dbggetallocnumber() | COMMENT |
| LOW | clink/core/include/core/debugheap.h | 181 | #define dbg_ignore_scope(var, label) ((void)0) | COMMENT |
| LOW | clink/core/include/core/callstack.h | 1 | // Copyright (c) 2022 Christopher Antos | COMMENT |
| LOW | clink/core/include/core/callstack.h | 21 | // Formats buffer (capacity is size of buffer) with up to total_frames, skipping | COMMENT |
| LOW | clink/core/include/core/assert_improved.h | 1 | // Copyright (c) 2022 Christopher Antos | COMMENT |
| LOW | clink/core/include/core/assert_improved.h | 21 | void dbgtracef(const char* fmt, ...); | COMMENT |
| LOW | clink/core/include/core/os.h | 1 | // Copyright (c) 2015 Martin Ridgers | COMMENT |
| LOW | clink/core/include/core/embedded_scripts.h | 1 | // Copyright (c) 2020 Christopher Antos | COMMENT |
| LOW | clink/core/include/core/log.h | 1 | // Copyright (c) 2015 Martin Ridgers | COMMENT |
| LOW | clink/core/include/core/base.h | 1 | // Copyright (c) 2015 Martin Ridgers | COMMENT |
| LOW | clink/core/include/core/base.h | 21 | #if defined(_MSC_VER) && _MSC_VER < 1900 | COMMENT |
| LOW | clink/core/include/core/base.h | 41 | #elif defined(_M_ARM64) || defined(__aarch64__) | COMMENT |
| LOW | clink/core/include/core/base.h | 61 | #include <cstdint> | COMMENT |
| LOW | clink/core/include/core/base.h | 81 | #else | COMMENT |
| LOW | clink/core/src/pch.h | 1 | // Copyright (c) 2015 Martin Ridgers | COMMENT |
| LOW | clink/core/src/os.cpp | 1 | // Copyright (c) 2015 Martin Ridgers | COMMENT |
| LOW | clink/core/src/os.cpp | 21 | #include <vector> | COMMENT |
| LOW | clink/core/src/os.cpp | 441 | //------------------------------------------------------------------------------ | COMMENT |
| LOW | clink/core/src/os.cpp | 461 | // | COMMENT |
| LOW | clink/core/src/os.cpp | 961 | // affected. Because the `set` command in CMD.EXE looks at a snapshot of | COMMENT |
| LOW | clink/core/src/debugheap.cpp | 1 | // Copyright (c) 2022 Christopher Antos | COMMENT |
| LOW | clink/core/src/callstack.cpp | 1 | // Copyright (c) 2022 Christopher Antos | COMMENT |
| LOW | clink/core/src/pch.cpp | 1 | // Copyright (c) 2015 Martin Ridgers | COMMENT |
| LOW | clink/core/src/path.cpp | 1 | // Copyright (c) 2015 Martin Ridgers | COMMENT |
| LOW | clink/core/src/settings.cpp | 1 | // Copyright (c) 2012 Martin Ridgers | COMMENT |
| LOW | clink/app/test/doskey.cpp | 1 | // Copyright (c) 2016 Martin Ridgers | COMMENT |
| LOW | clink/app/test/history.cpp | 1 | // Copyright (c) 2016 Martin Ridgers | COMMENT |
| LOW | clink/app/test/coroutines.cpp | 1 | // Copyright (c) 2021 Christopher Antos | COMMENT |
| LOW | clink/app/test/set.cpp | 1 | // Copyright (c) 2016 Martin Ridgers | COMMENT |
| LOW | clink/app/test/exec.cpp | 1 | // Copyright (c) 2015 Martin Ridgers | COMMENT |
| LOW | clink/app/test/redir.cpp | 1 | // Copyright (c) 2021 Christopher Antos | COMMENT |
| LOW | clink/app/test/dir.cpp | 1 | // Copyright (c) 2016 Martin Ridgers | COMMENT |
| LOW | clink/app/test/env_vars.cpp | 1 | // Copyright (c) 2012 Martin Ridgers | COMMENT |
| LOW | clink/app/src/pch.h | 1 | // Copyright (c) 2012 Martin Ridgers | COMMENT |
| LOW | clink/app/src/pch.h | 21 | #ifdef _MSC_VER | COMMENT |
| LOW | clink/app/src/version.h | 1 | // Copyright (c) 2016 Martin Ridgers | COMMENT |
| LOW | clink/app/src/version.h | 41 | AS_STR(CLINK_BRANCH) | COMMENT |
| LOW | clink/app/src/pch.cpp | 1 | // Copyright (c) 2012 Martin Ridgers | COMMENT |
| LOW | clink/app/src/host/host.h | 1 | // Copyright (c) 2013 Martin Ridgers | COMMENT |
| LOW | clink/app/src/host/host_lua.h | 1 | // Copyright (c) 2016 Martin Ridgers | COMMENT |
| LOW | clink/app/src/host/host_cmd.cpp | 1 | // Copyright (c) 2013 Martin Ridgers | COMMENT |
| LOW | clink/app/src/host/host_cmd.cpp | 21 | #include <core/callstack.h> | COMMENT |
| LOW | clink/app/src/host/host_cmd.cpp | 701 | chars[0] = '\0'; | COMMENT |
| LOW | clink/app/src/host/host_lua.cpp | 1 | // Copyright (c) 2016 Martin Ridgers | COMMENT |
| LOW | clink/app/src/host/host_lua.cpp | 241 | // It's simple enough to filter the results for exact matches, but | COMMENT |
| LOW | clink/app/src/host/host.cpp | 1 | // Copyright (c) 2016 Martin Ridgers | COMMENT |
| LOW | clink/app/src/host/host.cpp | 21 | #include <lib/match_generator.h> | COMMENT |
| LOW | clink/app/src/host/host.cpp | 1161 | // 1. "@echo off" prevents echoing the commands to stdout. | COMMENT |
| LOW | clink/app/src/utils/hook_setter.cpp | 1 | // Copyright (c) 2012 Martin Ridgers | COMMENT |
| LOW | clink/app/src/utils/usage.cpp | 1 | // Copyright (c) 2012 Martin Ridgers | COMMENT |
| 620 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | clink/lua/src/line_state_lua.cpp | 695 | // Definitely need to make a copy: either the word needs to be marked as | COMMENT |
| MEDIUM | readline/readline/display.c | 589 | // REVIEW: It's trying to backtrack, but it would be more robust to remember the preceding position. | COMMENT |
| MEDIUM | readline/readline/support/install.sh | 15 | # publicity pertaining to distribution of the software without specific, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/subset.py | 48 | print(f"Error {e.returncode} making a subset of the font file.\n {e.stderr}") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/prompts/jonathan.html | 1 | <DIV STYLE="display:inline-block;white-space:pre;background-color:#000000;font-family:promptFont,Cascadia Code,monospace | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | clink/terminal/src/win_terminal_in.cpp | 825 | // Example usage: | COMMENT |