Repository Analysis

Ataraxy-Labs/sem

Semantic version control => entity-level diffs, blame, and impact analysis on top of git. 28 languages via tree-sitter. Built for coding agents.

3.7 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of Ataraxy-Labs/sem, a Rust project with 3,186 GitHub stars. SynthScan v2.0 examined 88,359 lines of code across 167 source files, recording 154 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 3.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).

3.7
Adjusted Score
3.7
Raw Score
100%
Time Factor
2026-07-10
Last Push
3.2K
Stars
Rust
Language
88.4K
Lines of Code
167
Files
154
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 85LOW 69

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 154 distinct pattern matches across 13 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.

Decorative Section Separators78 hits · 231 pts
SeverityFileLineSnippetContext
MEDIUMbench/agent-accuracy.py28# ── Config ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMbench/agent-accuracy.py65# ── Helpers ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMbench/agent-accuracy.py130# ── Scoring ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMbench/agent-accuracy.py183# ── API ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMbench/agent-accuracy.py237# ── Main ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMbench/agent-accuracy.py320 # ── Summary ──────────────────────────────────────────────────────────────COMMENT
MEDIUMbench/agent-accuracy.py357 # ── Write results ────────────────────────────────────────────────────────COMMENT
MEDIUMbench/agent-accuracy.py373 # ── Update HTML ──────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cloud-client/src/lib.rs23// ─── Credentials ──────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cloud-client/src/lib.rs67// ─── Cloud API Response Types ────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cloud-client/src/lib.rs224// ─── Repo Cache ──────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cloud-client/src/lib.rs329// ─── URL Normalization ───────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cloud-client/src/lib.rs380// ─── CloudClient ─────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/cloud.rs26// ─── Credentials ──────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/cloud.rs70// ─── Cloud conversion nudge ─────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/cloud.rs148// ─── sem login ────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/cloud.rs212// ─── sem login --github ──────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/cloud.rs365// ─── sem logout ──────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/cloud.rs413// ─── sem whoami ──────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/cloud.rs470// ─── Cloud API Response Types ────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/cloud.rs604// ─── Repo Cache ──────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/cloud.rs669// ─── URL Normalization ───────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/cloud.rs738// ─── CloudClient ─────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/cloud.rs1171// ─── try_cloud_* helpers ─────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/cloud.rs1660// ─── Helper to convert CloudEntityBrief to JSON ─────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/update.rs22// ─── Update notification ─────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/update.rs154// ─── sem update ──────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/consent.rs22// ─── Consent state ─────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/consent.rs108// ─── Public consent queries (used by the cloud routing path) ────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/consent.rs146// ─── Outbound request ledger ────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/consent.rs174// ─── Helpers ────────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/consent.rs228// ─── sem cloud enable ───────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/consent.rs319// ─── sem cloud share ────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/consent.rs404// ─── sem cloud list ───────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/consent.rs470// ─── sem cloud status ───────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/consent.rs524// ─── sem cloud preview ──────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/consent.rs583// ─── sem cloud log ──────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/consent.rs623// ─── sem cloud never ────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/consent.rs645// ─── sem cloud forget ───────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/consent.rs688// ─── Passive discovery tip ──────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/repos.rs53// ─── Cloud section ───────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/repos.rs127// ─── Local section ───────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-cli/src/commands/repos.rs257// ─── Output helpers ──────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-core/tests/scope_resolve_bench.rs1493// ═══════════════════════════════════════════════════════════════════COMMENT
MEDIUMcrates/sem-core/tests/scope_resolve_bench.rs1495// ═══════════════════════════════════════════════════════════════════COMMENT
MEDIUMcrates/sem-core/tests/scope_resolve_bench.rs1837// ═══════════════════════════════════════════════════════════════════COMMENT
MEDIUMcrates/sem-core/tests/scope_resolve_bench.rs1839// ═══════════════════════════════════════════════════════════════════COMMENT
MEDIUMcrates/sem-core/src/parser/test_detect.rs84 // ── Built-in directory patterns ──────────────────────────────────────COMMENT
MEDIUMcrates/sem-core/src/parser/test_detect.rs126 // ── File-name patterns ───────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-core/src/parser/test_detect.rs136 // ── Negative cases ───────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-core/src/parser/test_detect.rs149 // ── Custom directories ───────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-core/src/parser/graph.rs8930 // ── is_test_entity / filter_test_entities tests ─────────────────────COMMENT
MEDIUMcrates/sem-core/src/parser/plugins/json.rs767 // ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-core/src/parser/plugins/json.rs769 // ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-core/src/parser/plugins/json.rs799 // ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-core/src/parser/plugins/json.rs801 // ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-core/src/parser/plugins/json.rs875 // ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-core/src/parser/plugins/json.rs877 // ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-core/src/parser/plugins/json.rs932 // ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/sem-core/src/parser/plugins/json.rs934 // ─────────────────────────────────────────────────────────────────────────COMMENT
18 more matches not shown…
Excessive Try-Catch Wrapping24 hits · 30 pts
SeverityFileLineSnippetContext
LOWagent-skill/guard/sem-guard.py66 except Exception:CODE
LOWagent-skill/guard/sem-guard.py76 except Exception:CODE
LOWagent-skill/guard/sem-guard.py187 except Exception:CODE
LOWagent-skill/guard/sem-guard.py245 except Exception:CODE
MEDIUMagent-skill/guard/sem-guard.py62def load_state():CODE
MEDIUMagent-skill/guard/sem-guard.py70def save_state(s):CODE
LOWagent-skill/badge/statusline-sem.py49 except Exception:CODE
LOWagent-skill/badge/statusline-sem.py70 except Exception:CODE
LOWagent-skill/badge/statusline-sem.py85 except Exception:CODE
MEDIUMagent-skill/badge/statusline-sem.py46def read_lifetime():CODE
MEDIUMagent-skill/badge/statusline-sem.py67def main():CODE
LOWagent-skill/badge/sem-activity.py39 except Exception:CODE
LOWagent-skill/badge/sem-activity.py62 except Exception:CODE
LOWagent-skill/badge/sem-activity.py108 except Exception:CODE
LOWagent-skill/badge/sem-activity.py126 except Exception:CODE
LOWagent-skill/badge/sem-activity.py133 except Exception:CODE
MEDIUMagent-skill/badge/sem-activity.py36def main():CODE
LOWagent-skill/badge/sem-live.py59 except Exception:CODE
LOWagent-skill/badge/sem-live.py116 except Exception:CODE
LOWagent-skill/badge/sem-live.py138 except Exception:CODE
LOWagent-skill/badge/sem-live.py261 except Exception:CODE
LOWagent-skill/badge/sem-live.py297 except Exception:CODE
MEDIUMagent-skill/badge/sem-live.py258def term_width():CODE
LOW.claude/hooks/sem-first.sh20except Exception:CODE
Over-Commented Block20 hits · 20 pts
SeverityFileLineSnippetContext
LOWcrates/sem-plugin/src/bindings.rs981 pub use alloc_crate::alloc;COMMENT
LOWcrates/sem-mcp/src/cache.rs301// ── Semantic commit index (storage engine layer 2) ──COMMENT
LOWcrates/sem-mcp/src/cloud.rs1//! Cloud routing for the MCP tools.COMMENT
LOWcrates/sem-mcp/src/sidecar.rs1//! Unix-socket sidecar: sub-10ms entity lookups from the resident graph.COMMENT
LOWcrates/sem-mcp/src/watch.rs1//! Filesystem watcher that keeps the MCP server's in-memory entity graph hot.COMMENT
LOWcrates/sem-cli/src/telemetry.rs1//! Anonymous command-usage telemetry — three modes, local by default.COMMENT
LOWcrates/sem-cli/src/cache.rs21const META_GIT_BUILT_CLEAN: &str = "git_built_clean";COMMENT
LOWcrates/sem-cli/src/hyperlinks.rs1//! Optional OSC8 terminal hyperlinks for entity references.COMMENT
LOWcrates/sem-cli/src/main.rs41 /// Show semantic diff of changes (supports git diff syntax). Untracked files are excluded, matching git behavior.COMMENT
LOWcrates/sem-cli/src/main.rs161 /// Include files and directories excluded by default (generated, fixtures, vendor, benchmarks)COMMENT
LOWcrates/sem-cli/src/main.rs201 /// Output as JSON (shorthand for --format json)COMMENT
LOWcrates/sem-cli/src/main.rs261 /// Kinds are language-dependent; an unknown kind reports the kinds found.COMMENT
LOWcrates/sem-cli/src/main.rs321 Mcp {COMMENT
LOWcrates/sem-cli/src/main.rs361 },COMMENT
LOWcrates/sem-cli/src/commands/cloud.rs61}COMMENT
LOWcrates/sem-cli/src/commands/sidecar.rs1//! CLI fast path over the resident server's unix socket.COMMENT
LOWcrates/sem-cli/src/commands/repos.rs1//! `sem repos` — where your code is stored, locally and on the cloud account.COMMENT
LOWcrates/sem-core/src/parser/scope_resolve.rs1//! Scope-aware reference resolver using tree-sitter ASTs.COMMENT
LOWcrates/sem-core/src/parser/scope_resolve.rs6381 // Go package-qualified call: package.Function()COMMENT
LOWcrates/sem-core/src/git/bridge.rs2041 }COMMENT
Structural Annotation Overuse10 hits · 17 pts
SeverityFileLineSnippetContext
LOWCONTRIBUTING.md34### Step 1: Add the tree-sitter dependencyCOMMENT
LOWCONTRIBUTING.md45### Step 2: Add a getter functionCOMMENT
LOWCONTRIBUTING.md61### Step 3: Define the language configCOMMENT
LOWCONTRIBUTING.md85### Step 4: Register the configCOMMENT
LOWCONTRIBUTING.md96### Step 5: Register the extensionsCOMMENT
LOWCONTRIBUTING.md107### Step 6: Add a testCOMMENT
LOWCONTRIBUTING.md140### Step 7: Run testsCOMMENT
LOWbenchmarks/dependency-accuracy/run_benchmark.py188 # Step 1: Index the project (may already be indexed, that's fine)COMMENT
LOWbenchmarks/dependency-accuracy/run_benchmark.py194 # Step 2: Parse all files to build entity map and call sitesCOMMENT
LOWbenchmarks/dependency-accuracy/run_benchmark.py213 # Step 3: For each call site, query stack-graphs and resolveCOMMENT
Deep Nesting8 hits · 8 pts
SeverityFileLineSnippetContext
LOWagent-skill/guard/sem-guard.py173CODE
LOWagent-skill/badge/statusline-sem.py67CODE
LOWagent-skill/badge/sem-activity.py36CODE
LOWagent-skill/badge/sem-live.py51CODE
LOWbenchmarks/dependency-accuracy/run_benchmark.py186CODE
LOWbenchmarks/dependency-accuracy/run_benchmark.py236CODE
LOWbenchmarks/dependency-accuracy/run_benchmark.py275CODE
LOWbenchmarks/dependency-accuracy/run_benchmark.py343CODE
Verbosity Indicators3 hits · 7 pts
SeverityFileLineSnippetContext
LOWbenchmarks/dependency-accuracy/run_benchmark.py188 # Step 1: Index the project (may already be indexed, that's fine)COMMENT
LOWbenchmarks/dependency-accuracy/run_benchmark.py194 # Step 2: Parse all files to build entity map and call sitesCOMMENT
LOWbenchmarks/dependency-accuracy/run_benchmark.py213 # Step 3: For each call site, query stack-graphs and resolveCOMMENT
Redundant / Tautological Comments2 hits · 4 pts
SeverityFileLineSnippetContext
LOWbenchmarks/dependency-accuracy/run_benchmark.py220 # Check if definition points to an import bindingCOMMENT
LOWbenchmarks/dependency-accuracy/run_benchmark.py286 # Check if this is a top-level function (not inside a class)COMMENT
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOWcrates/sem-core/tests/graph_accuracy.rs30 .args(["config", "user.email", "test@test.com"])CODE
LOWcrates/sem-core/tests/graph_accuracy.rs125 .args(["config", "user.email", "test@test.com"])CODE
LOWcrates/sem-core/tests/scope_resolve_bench.rs28 .args(["config", "user.email", "test@test.com"])CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdocs/attention-architecture.md1# The context window is a cache. Treat it like one.COMMENT
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWbenchmarks/dependency-accuracy/project/compat.py3CODE
LOWbenchmarks/dependency-accuracy/project/noise.py11CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWinstall.sh6# Usage:COMMENT
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWbenchmarks/dependency-accuracy/run_benchmark.py442def pycg_normalize_constructors(edges, truth_edges):CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWbenchmarks/dependency-accuracy/project/api.py12def handle_request(request):CODE