Semantic version control => entity-level diffs, blame, and impact analysis on top of git. 28 languages via tree-sitter. Built for coding agents.
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).
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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | bench/agent-accuracy.py | 28 | # ── Config ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | bench/agent-accuracy.py | 65 | # ── Helpers ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | bench/agent-accuracy.py | 130 | # ── Scoring ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | bench/agent-accuracy.py | 183 | # ── API ────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | bench/agent-accuracy.py | 237 | # ── Main ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | bench/agent-accuracy.py | 320 | # ── Summary ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | bench/agent-accuracy.py | 357 | # ── Write results ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | bench/agent-accuracy.py | 373 | # ── Update HTML ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cloud-client/src/lib.rs | 23 | // ─── Credentials ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cloud-client/src/lib.rs | 67 | // ─── Cloud API Response Types ──────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cloud-client/src/lib.rs | 224 | // ─── Repo Cache ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cloud-client/src/lib.rs | 329 | // ─── URL Normalization ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cloud-client/src/lib.rs | 380 | // ─── CloudClient ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/cloud.rs | 26 | // ─── Credentials ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/cloud.rs | 70 | // ─── Cloud conversion nudge ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/cloud.rs | 148 | // ─── sem login ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/cloud.rs | 212 | // ─── sem login --github ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/cloud.rs | 365 | // ─── sem logout ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/cloud.rs | 413 | // ─── sem whoami ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/cloud.rs | 470 | // ─── Cloud API Response Types ──────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/cloud.rs | 604 | // ─── Repo Cache ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/cloud.rs | 669 | // ─── URL Normalization ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/cloud.rs | 738 | // ─── CloudClient ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/cloud.rs | 1171 | // ─── try_cloud_* helpers ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/cloud.rs | 1660 | // ─── Helper to convert CloudEntityBrief to JSON ───────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/update.rs | 22 | // ─── Update notification ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/update.rs | 154 | // ─── sem update ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/consent.rs | 22 | // ─── Consent state ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/consent.rs | 108 | // ─── Public consent queries (used by the cloud routing path) ──────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/consent.rs | 146 | // ─── Outbound request ledger ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/consent.rs | 174 | // ─── Helpers ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/consent.rs | 228 | // ─── sem cloud enable ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/consent.rs | 319 | // ─── sem cloud share ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/consent.rs | 404 | // ─── sem cloud list ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/consent.rs | 470 | // ─── sem cloud status ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/consent.rs | 524 | // ─── sem cloud preview ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/consent.rs | 583 | // ─── sem cloud log ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/consent.rs | 623 | // ─── sem cloud never ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/consent.rs | 645 | // ─── sem cloud forget ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/consent.rs | 688 | // ─── Passive discovery tip ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/repos.rs | 53 | // ─── Cloud section ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/repos.rs | 127 | // ─── Local section ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-cli/src/commands/repos.rs | 257 | // ─── Output helpers ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-core/tests/scope_resolve_bench.rs | 1493 | // ═══════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | crates/sem-core/tests/scope_resolve_bench.rs | 1495 | // ═══════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | crates/sem-core/tests/scope_resolve_bench.rs | 1837 | // ═══════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | crates/sem-core/tests/scope_resolve_bench.rs | 1839 | // ═══════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | crates/sem-core/src/parser/test_detect.rs | 84 | // ── Built-in directory patterns ────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-core/src/parser/test_detect.rs | 126 | // ── File-name patterns ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-core/src/parser/test_detect.rs | 136 | // ── Negative cases ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-core/src/parser/test_detect.rs | 149 | // ── Custom directories ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-core/src/parser/graph.rs | 8930 | // ── is_test_entity / filter_test_entities tests ───────────────────── | COMMENT |
| MEDIUM | crates/sem-core/src/parser/plugins/json.rs | 767 | // ───────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-core/src/parser/plugins/json.rs | 769 | // ───────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-core/src/parser/plugins/json.rs | 799 | // ───────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-core/src/parser/plugins/json.rs | 801 | // ───────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-core/src/parser/plugins/json.rs | 875 | // ───────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-core/src/parser/plugins/json.rs | 877 | // ───────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-core/src/parser/plugins/json.rs | 932 | // ───────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/sem-core/src/parser/plugins/json.rs | 934 | // ───────────────────────────────────────────────────────────────────────── | COMMENT |
| 18 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | agent-skill/guard/sem-guard.py | 66 | except Exception: | CODE |
| LOW | agent-skill/guard/sem-guard.py | 76 | except Exception: | CODE |
| LOW | agent-skill/guard/sem-guard.py | 187 | except Exception: | CODE |
| LOW | agent-skill/guard/sem-guard.py | 245 | except Exception: | CODE |
| MEDIUM | agent-skill/guard/sem-guard.py | 62 | def load_state(): | CODE |
| MEDIUM | agent-skill/guard/sem-guard.py | 70 | def save_state(s): | CODE |
| LOW | agent-skill/badge/statusline-sem.py | 49 | except Exception: | CODE |
| LOW | agent-skill/badge/statusline-sem.py | 70 | except Exception: | CODE |
| LOW | agent-skill/badge/statusline-sem.py | 85 | except Exception: | CODE |
| MEDIUM | agent-skill/badge/statusline-sem.py | 46 | def read_lifetime(): | CODE |
| MEDIUM | agent-skill/badge/statusline-sem.py | 67 | def main(): | CODE |
| LOW | agent-skill/badge/sem-activity.py | 39 | except Exception: | CODE |
| LOW | agent-skill/badge/sem-activity.py | 62 | except Exception: | CODE |
| LOW | agent-skill/badge/sem-activity.py | 108 | except Exception: | CODE |
| LOW | agent-skill/badge/sem-activity.py | 126 | except Exception: | CODE |
| LOW | agent-skill/badge/sem-activity.py | 133 | except Exception: | CODE |
| MEDIUM | agent-skill/badge/sem-activity.py | 36 | def main(): | CODE |
| LOW | agent-skill/badge/sem-live.py | 59 | except Exception: | CODE |
| LOW | agent-skill/badge/sem-live.py | 116 | except Exception: | CODE |
| LOW | agent-skill/badge/sem-live.py | 138 | except Exception: | CODE |
| LOW | agent-skill/badge/sem-live.py | 261 | except Exception: | CODE |
| LOW | agent-skill/badge/sem-live.py | 297 | except Exception: | CODE |
| MEDIUM | agent-skill/badge/sem-live.py | 258 | def term_width(): | CODE |
| LOW | .claude/hooks/sem-first.sh | 20 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/sem-plugin/src/bindings.rs | 981 | pub use alloc_crate::alloc; | COMMENT |
| LOW | crates/sem-mcp/src/cache.rs | 301 | // ── Semantic commit index (storage engine layer 2) ── | COMMENT |
| LOW | crates/sem-mcp/src/cloud.rs | 1 | //! Cloud routing for the MCP tools. | COMMENT |
| LOW | crates/sem-mcp/src/sidecar.rs | 1 | //! Unix-socket sidecar: sub-10ms entity lookups from the resident graph. | COMMENT |
| LOW | crates/sem-mcp/src/watch.rs | 1 | //! Filesystem watcher that keeps the MCP server's in-memory entity graph hot. | COMMENT |
| LOW | crates/sem-cli/src/telemetry.rs | 1 | //! Anonymous command-usage telemetry — three modes, local by default. | COMMENT |
| LOW | crates/sem-cli/src/cache.rs | 21 | const META_GIT_BUILT_CLEAN: &str = "git_built_clean"; | COMMENT |
| LOW | crates/sem-cli/src/hyperlinks.rs | 1 | //! Optional OSC8 terminal hyperlinks for entity references. | COMMENT |
| LOW | crates/sem-cli/src/main.rs | 41 | /// Show semantic diff of changes (supports git diff syntax). Untracked files are excluded, matching git behavior. | COMMENT |
| LOW | crates/sem-cli/src/main.rs | 161 | /// Include files and directories excluded by default (generated, fixtures, vendor, benchmarks) | COMMENT |
| LOW | crates/sem-cli/src/main.rs | 201 | /// Output as JSON (shorthand for --format json) | COMMENT |
| LOW | crates/sem-cli/src/main.rs | 261 | /// Kinds are language-dependent; an unknown kind reports the kinds found. | COMMENT |
| LOW | crates/sem-cli/src/main.rs | 321 | Mcp { | COMMENT |
| LOW | crates/sem-cli/src/main.rs | 361 | }, | COMMENT |
| LOW | crates/sem-cli/src/commands/cloud.rs | 61 | } | COMMENT |
| LOW | crates/sem-cli/src/commands/sidecar.rs | 1 | //! CLI fast path over the resident server's unix socket. | COMMENT |
| LOW | crates/sem-cli/src/commands/repos.rs | 1 | //! `sem repos` — where your code is stored, locally and on the cloud account. | COMMENT |
| LOW | crates/sem-core/src/parser/scope_resolve.rs | 1 | //! Scope-aware reference resolver using tree-sitter ASTs. | COMMENT |
| LOW | crates/sem-core/src/parser/scope_resolve.rs | 6381 | // Go package-qualified call: package.Function() | COMMENT |
| LOW | crates/sem-core/src/git/bridge.rs | 2041 | } | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CONTRIBUTING.md | 34 | ### Step 1: Add the tree-sitter dependency | COMMENT |
| LOW | CONTRIBUTING.md | 45 | ### Step 2: Add a getter function | COMMENT |
| LOW | CONTRIBUTING.md | 61 | ### Step 3: Define the language config | COMMENT |
| LOW | CONTRIBUTING.md | 85 | ### Step 4: Register the config | COMMENT |
| LOW | CONTRIBUTING.md | 96 | ### Step 5: Register the extensions | COMMENT |
| LOW | CONTRIBUTING.md | 107 | ### Step 6: Add a test | COMMENT |
| LOW | CONTRIBUTING.md | 140 | ### Step 7: Run tests | COMMENT |
| LOW⚡ | benchmarks/dependency-accuracy/run_benchmark.py | 188 | # Step 1: Index the project (may already be indexed, that's fine) | COMMENT |
| LOW⚡ | benchmarks/dependency-accuracy/run_benchmark.py | 194 | # Step 2: Parse all files to build entity map and call sites | COMMENT |
| LOW⚡ | benchmarks/dependency-accuracy/run_benchmark.py | 213 | # Step 3: For each call site, query stack-graphs and resolve | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | agent-skill/guard/sem-guard.py | 173 | CODE | |
| LOW | agent-skill/badge/statusline-sem.py | 67 | CODE | |
| LOW | agent-skill/badge/sem-activity.py | 36 | CODE | |
| LOW | agent-skill/badge/sem-live.py | 51 | CODE | |
| LOW | benchmarks/dependency-accuracy/run_benchmark.py | 186 | CODE | |
| LOW | benchmarks/dependency-accuracy/run_benchmark.py | 236 | CODE | |
| LOW | benchmarks/dependency-accuracy/run_benchmark.py | 275 | CODE | |
| LOW | benchmarks/dependency-accuracy/run_benchmark.py | 343 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | benchmarks/dependency-accuracy/run_benchmark.py | 188 | # Step 1: Index the project (may already be indexed, that's fine) | COMMENT |
| LOW⚡ | benchmarks/dependency-accuracy/run_benchmark.py | 194 | # Step 2: Parse all files to build entity map and call sites | COMMENT |
| LOW⚡ | benchmarks/dependency-accuracy/run_benchmark.py | 213 | # Step 3: For each call site, query stack-graphs and resolve | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | benchmarks/dependency-accuracy/run_benchmark.py | 220 | # Check if definition points to an import binding | COMMENT |
| LOW | benchmarks/dependency-accuracy/run_benchmark.py | 286 | # Check if this is a top-level function (not inside a class) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/sem-core/tests/graph_accuracy.rs | 30 | .args(["config", "user.email", "test@test.com"]) | CODE |
| LOW | crates/sem-core/tests/graph_accuracy.rs | 125 | .args(["config", "user.email", "test@test.com"]) | CODE |
| LOW | crates/sem-core/tests/scope_resolve_bench.rs | 28 | .args(["config", "user.email", "test@test.com"]) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/attention-architecture.md | 1 | # The context window is a cache. Treat it like one. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmarks/dependency-accuracy/project/compat.py | 3 | CODE | |
| LOW | benchmarks/dependency-accuracy/project/noise.py | 11 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install.sh | 6 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmarks/dependency-accuracy/run_benchmark.py | 442 | def pycg_normalize_constructors(edges, truth_edges): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmarks/dependency-accuracy/project/api.py | 12 | def handle_request(request): | CODE |