Repository Analysis

chrisant996/clink

Bash's powerful command line editing in cmd.exe

2.7 Likely human-written View on GitHub

Analysis Overview

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).

2.7
Adjusted Score
2.7
Raw Score
100%
Time Factor
2026-07-13
Last Push
5.4K
Stars
C++
Language
250.5K
Lines of Code
608
Files
686
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

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.

No multi-scan history yet — run the scanner again to build trend data.

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 5LOW 681

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 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.

Over-Commented Block680 hits · 660 pts
SeverityFileLineSnippetContext
LOWclink/core/warning.h1#pragma warning( 1: 5038 ) // data member 'member1' will be initialized after data member 'member2'COMMENT
LOWclink/core/test/wstr.cpp1// Copyright (c) 2015 Martin RidgersCOMMENT
LOWclink/core/include/core/bldopts.h1// Copyright (c) 2022 Christopher AntosCOMMENT
LOWclink/core/include/core/bldopts.h21#endifCOMMENT
LOWclink/core/include/core/bldopts.h41//------------------------------------------------------------------------------COMMENT
LOWclink/core/include/core/bldopts.h61// array of scripts that have been loaded during the session.COMMENT
LOWclink/core/include/core/bldopts.h81// terminal supports them. Maybe once Windows Terminal supports returning theCOMMENT
LOWclink/core/include/core/debugheap.h1// Copyright (c) 2022 Christopher AntosCOMMENT
LOWclink/core/include/core/debugheap.h81#define memcalloc dbgcallocCOMMENT
LOWclink/core/include/core/debugheap.h121// Caller is responsible for lifetime of label pointer.COMMENT
LOWclink/core/include/core/debugheap.h161#define dbg_snapshot_heap(var) const size_t var = dbggetallocnumber()COMMENT
LOWclink/core/include/core/debugheap.h181#define dbg_ignore_scope(var, label) ((void)0)COMMENT
LOWclink/core/include/core/callstack.h1// Copyright (c) 2022 Christopher AntosCOMMENT
LOWclink/core/include/core/callstack.h21// Formats buffer (capacity is size of buffer) with up to total_frames, skippingCOMMENT
LOWclink/core/include/core/assert_improved.h1// Copyright (c) 2022 Christopher AntosCOMMENT
LOWclink/core/include/core/assert_improved.h21void dbgtracef(const char* fmt, ...);COMMENT
LOWclink/core/include/core/os.h1// Copyright (c) 2015 Martin RidgersCOMMENT
LOWclink/core/include/core/embedded_scripts.h1// Copyright (c) 2020 Christopher AntosCOMMENT
LOWclink/core/include/core/log.h1// Copyright (c) 2015 Martin RidgersCOMMENT
LOWclink/core/include/core/base.h1// Copyright (c) 2015 Martin RidgersCOMMENT
LOWclink/core/include/core/base.h21#if defined(_MSC_VER) && _MSC_VER < 1900COMMENT
LOWclink/core/include/core/base.h41#elif defined(_M_ARM64) || defined(__aarch64__)COMMENT
LOWclink/core/include/core/base.h61#include <cstdint>COMMENT
LOWclink/core/include/core/base.h81#elseCOMMENT
LOWclink/core/src/pch.h1// Copyright (c) 2015 Martin RidgersCOMMENT
LOWclink/core/src/os.cpp1// Copyright (c) 2015 Martin RidgersCOMMENT
LOWclink/core/src/os.cpp21#include <vector>COMMENT
LOWclink/core/src/os.cpp441//------------------------------------------------------------------------------COMMENT
LOWclink/core/src/os.cpp461//COMMENT
LOWclink/core/src/os.cpp961 // affected. Because the `set` command in CMD.EXE looks at a snapshot ofCOMMENT
LOWclink/core/src/debugheap.cpp1// Copyright (c) 2022 Christopher AntosCOMMENT
LOWclink/core/src/callstack.cpp1// Copyright (c) 2022 Christopher AntosCOMMENT
LOWclink/core/src/pch.cpp1// Copyright (c) 2015 Martin RidgersCOMMENT
LOWclink/core/src/path.cpp1// Copyright (c) 2015 Martin RidgersCOMMENT
LOWclink/core/src/settings.cpp1// Copyright (c) 2012 Martin RidgersCOMMENT
LOWclink/app/test/doskey.cpp1// Copyright (c) 2016 Martin RidgersCOMMENT
LOWclink/app/test/history.cpp1// Copyright (c) 2016 Martin RidgersCOMMENT
LOWclink/app/test/coroutines.cpp1// Copyright (c) 2021 Christopher AntosCOMMENT
LOWclink/app/test/set.cpp1// Copyright (c) 2016 Martin RidgersCOMMENT
LOWclink/app/test/exec.cpp1// Copyright (c) 2015 Martin RidgersCOMMENT
LOWclink/app/test/redir.cpp1// Copyright (c) 2021 Christopher AntosCOMMENT
LOWclink/app/test/dir.cpp1// Copyright (c) 2016 Martin RidgersCOMMENT
LOWclink/app/test/env_vars.cpp1// Copyright (c) 2012 Martin RidgersCOMMENT
LOWclink/app/src/pch.h1// Copyright (c) 2012 Martin RidgersCOMMENT
LOWclink/app/src/pch.h21#ifdef _MSC_VERCOMMENT
LOWclink/app/src/version.h1// Copyright (c) 2016 Martin RidgersCOMMENT
LOWclink/app/src/version.h41 AS_STR(CLINK_BRANCH)COMMENT
LOWclink/app/src/pch.cpp1// Copyright (c) 2012 Martin RidgersCOMMENT
LOWclink/app/src/host/host.h1// Copyright (c) 2013 Martin RidgersCOMMENT
LOWclink/app/src/host/host_lua.h1// Copyright (c) 2016 Martin RidgersCOMMENT
LOWclink/app/src/host/host_cmd.cpp1// Copyright (c) 2013 Martin RidgersCOMMENT
LOWclink/app/src/host/host_cmd.cpp21#include <core/callstack.h>COMMENT
LOWclink/app/src/host/host_cmd.cpp701 chars[0] = '\0';COMMENT
LOWclink/app/src/host/host_lua.cpp1// Copyright (c) 2016 Martin RidgersCOMMENT
LOWclink/app/src/host/host_lua.cpp241 // It's simple enough to filter the results for exact matches, butCOMMENT
LOWclink/app/src/host/host.cpp1// Copyright (c) 2016 Martin RidgersCOMMENT
LOWclink/app/src/host/host.cpp21#include <lib/match_generator.h>COMMENT
LOWclink/app/src/host/host.cpp1161 // 1. "@echo off" prevents echoing the commands to stdout.COMMENT
LOWclink/app/src/utils/hook_setter.cpp1// Copyright (c) 2012 Martin RidgersCOMMENT
LOWclink/app/src/utils/usage.cpp1// Copyright (c) 2012 Martin RidgersCOMMENT
620 more matches not shown…
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMclink/lua/src/line_state_lua.cpp695 // Definitely need to make a copy: either the word needs to be marked asCOMMENT
MEDIUMreadline/readline/display.c589// REVIEW: It's trying to backtrack, but it would be more robust to remember the preceding position.COMMENT
MEDIUMreadline/readline/support/install.sh15# publicity pertaining to distribution of the software without specific,COMMENT
Excessive Try-Catch Wrapping1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMdocs/subset.py48 print(f"Error {e.returncode} making a subset of the font file.\n {e.stderr}")CODE
Decorative Section Separators1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMdocs/prompts/jonathan.html1<DIV STYLE="display:inline-block;white-space:pre;background-color:#000000;font-family:promptFont,Cascadia Code,monospaceCODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWclink/terminal/src/win_terminal_in.cpp825// Example usage:COMMENT