Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
This report presents the forensic synthetic code analysis of DietrichGebert/ponytail, a JavaScript project with 82,779 GitHub stars. SynthScan v2.0 examined 12,063 lines of code across 137 source files, recording 133 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 26.8 places this repository in the Moderate 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 133 distinct pattern matches across 12 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 |
|---|---|---|---|---|
| HIGH | tests/correctness.test.js | 32 | 'def validate_email(email):\n return True', | CODE |
| HIGH | tests/correctness.test.js | 83 | print(df['amount'].sum())`, | CODE |
| HIGH | tests/correctness.test.js | 118 | print(351)`, | CODE |
| HIGH | tests/correctness.test.js | 129 | print(351)`, | CODE |
| HIGH | tests/hermes-plugin.test.js | 80 | print(json.dumps({'skills': ctx.skills, 'hooks': ctx.hooks, 'commands': ctx.commands}, sort_keys=True)) | CODE |
| HIGH | tests/hermes-plugin.test.js | 105 | print(json.dumps({'ctx': ctx})) | CODE |
| HIGH | tests/hermes-plugin.test.js | 136 | print(json.dumps({ | CODE |
| HIGH | tests/hermes-plugin.test.js | 159 | print(json.dumps({'ctx': ctx})) | CODE |
| HIGH | tests/hermes-plugin.test.js | 186 | print(json.dumps({'message': message, 'context': injected['context']})) | CODE |
| HIGH | tests/hermes-plugin.test.js | 210 | print(json.dumps(result)) | CODE |
| HIGH | tests/hermes-plugin.test.js | 226 | print(json.dumps(cases, sort_keys=True)) | CODE |
| HIGH | benchmarks/correctness.js | 104 | print("FAIL: no validator function found") | CODE |
| HIGH | benchmarks/correctness.js | 121 | print("FAIL: " + "; ".join(failures)) | CODE |
| HIGH | benchmarks/correctness.js | 123 | print("PASS") | CODE |
| HIGH | benchmarks/correctness.js | 213 | print("PASS") | CODE |
| HIGH | benchmarks/correctness.js | 216 | print("FAIL: output was: " + repr(output[:200])) | CODE |
| HIGH | benchmarks/correctness.test.js | 11 | const WRONG_EMAIL = '```python\ndef validate_email(e):\n return True # accepts everything\n```'; | CODE |
| HIGH | benchmarks/robustness-audit.js | 39 | good: 'def is_prime(n):\n if n < 2: return False\n for i in range(2, int(n**0.5)+1):\n if n % i == 0: r | CODE |
| HIGH | benchmarks/robustness-audit.js | 40 | bad: 'def is_prime(n):\n for i in range(2, n):\n if n % i == 0: return False\n return True' }, | CODE |
| HIGH | benchmarks/robustness-audit.js | 111 | good: 'def validate_credit_card(n):\n d=[int(c) for c in str(n) if c.isdigit()]\n if len(d)<13: return False\n | CODE |
| HIGH | benchmarks/robustness-audit.js | 116 | good: 'import ipaddress\ndef validate_ipv4(s):\n try:\n ipaddress.IPv4Address(s); return True\n except | CODE |
| HIGH | benchmarks/robustness-audit.js | 147 | print('PASS')`; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | benchmarks/agentic/tasks.py | 446 | # `null`: JSON.parse("null") returns null, which slips past a try/catch around parsing, then | COMMENT |
| HIGH⚡ | benchmarks/agentic/tasks.py | 456 | # good: rejects a non-object body (incl. null) with 400 and stays up. | COMMENT |
| HIGH⚡ | benchmarks/agentic/tasks.py | 453 | "// Listen on process.env.PORT || 3000.\n" | CODE |
| HIGH⚡ | benchmarks/agentic/tasks.py | 470 | const id = m[1] ? Number(m[1]) : null; | CODE |
| HIGH⚡ | benchmarks/agentic/tasks.py | 471 | if (id === null) { | CODE |
| HIGH⚡ | benchmarks/agentic/tasks.py | 476 | if (body === null || typeof body !== 'object' || Array.isArray(body)) return send(res, 400, { error: 'body must be | CODE |
| HIGH | benchmarks/agentic/tasks.py | 487 | server.listen(process.env.PORT || 3000); | CODE |
| HIGH | benchmarks/agentic/tasks.py | 505 | const id = m[1] ? Number(m[1]) : null; | CODE |
| HIGH | benchmarks/agentic/tasks.py | 506 | if (id === null) { | CODE |
| HIGH | benchmarks/agentic/tasks.py | 520 | server.listen(process.env.PORT || 3000); | CODE |
| HIGH | benchmarks/agentic/tasks.py | 806 | "clients. Listen on process.env.PORT || 3000."), | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | benchmarks/agentic/tasks.py | 67 | # ====================================================================================== | COMMENT |
| MEDIUM⚡ | benchmarks/agentic/tasks.py | 69 | # ====================================================================================== | COMMENT |
| MEDIUM⚡ | benchmarks/agentic/tasks.py | 311 | # ====================================================================================== | COMMENT |
| MEDIUM⚡ | benchmarks/agentic/tasks.py | 315 | # ====================================================================================== | COMMENT |
| MEDIUM⚡ | benchmarks/agentic/tasks.py | 361 | # ====================================================================================== | COMMENT |
| MEDIUM⚡ | benchmarks/agentic/tasks.py | 370 | # ====================================================================================== | COMMENT |
| MEDIUM⚡ | benchmarks/agentic/tasks.py | 444 | # ====================================================================================== | COMMENT |
| MEDIUM⚡ | benchmarks/agentic/tasks.py | 450 | # ====================================================================================== | COMMENT |
| MEDIUM⚡ | benchmarks/agentic/tasks.py | 576 | # ====================================================================================== | COMMENT |
| MEDIUM | benchmarks/agentic/tasks.py | 108 | # ====================================================================================== | COMMENT |
| MEDIUM | benchmarks/agentic/tasks.py | 110 | # ====================================================================================== | COMMENT |
| MEDIUM | benchmarks/agentic/tasks.py | 168 | # ====================================================================================== | COMMENT |
| MEDIUM | benchmarks/agentic/tasks.py | 170 | # ====================================================================================== | COMMENT |
| MEDIUM | benchmarks/agentic/tasks.py | 211 | # ====================================================================================== | COMMENT |
| MEDIUM | benchmarks/agentic/tasks.py | 214 | # ====================================================================================== | COMMENT |
| MEDIUM | benchmarks/agentic/tasks.py | 262 | # ====================================================================================== | COMMENT |
| MEDIUM | benchmarks/agentic/tasks.py | 264 | # ====================================================================================== | COMMENT |
| MEDIUM | benchmarks/agentic/tasks.py | 413 | # ====================================================================================== | COMMENT |
| MEDIUM | benchmarks/agentic/tasks.py | 591 | # ====================================================================================== | COMMENT |
| MEDIUM | benchmarks/agentic/tasks.py | 798 | # ====================================================================================== | COMMENT |
| MEDIUM | benchmarks/agentic/tasks.py | 939 | # ================================================================================== | COMMENT |
| MEDIUM | benchmarks/agentic/tasks.py | 943 | # ================================================================================== | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | __init__.py | 61 | except Exception: | CODE |
| LOW | __init__.py | 149 | except Exception: | CODE |
| LOW | __init__.py | 186 | except Exception: | CODE |
| MEDIUM | examples/csv-sum.md | 49 | print("Error: sales.csv not found") | CODE |
| MEDIUM | examples/csv-sum.md | 51 | print("Error: 'amount' column not found") | CODE |
| LOW | benchmarks/correctness.js | 201 | except Exception as e: | CODE |
| LOW | benchmarks/robustness-audit.js | 145 | except Exception as e: print('EXC', args, e); sys.exit(1) | CODE |
| LOW | benchmarks/agentic/run.py | 83 | except Exception: return 0 | CODE |
| LOW | benchmarks/agentic/run.py | 101 | except Exception: return 0, 0, 0, 0 | CODE |
| LOW | benchmarks/agentic/run.py | 130 | except Exception: pass | CODE |
| LOW | benchmarks/agentic/run.py | 269 | except Exception: pass | CODE |
| LOW | benchmarks/agentic/run.py | 335 | except Exception: pass | CODE |
| LOW | benchmarks/agentic/run.py | 337 | except Exception as e: | CODE |
| LOW | benchmarks/agentic/run.py | 400 | except Exception: return "unknown" | CODE |
| LOW | benchmarks/agentic/run.py | 452 | except Exception as e: | CODE |
| LOW⚡ | benchmarks/agentic/tasks.py | 79 | except Exception as e: | CODE |
| LOW⚡ | benchmarks/agentic/tasks.py | 84 | except Exception: | CODE |
| LOW⚡ | benchmarks/agentic/tasks.py | 323 | except Exception as e: | CODE |
| LOW⚡ | benchmarks/agentic/tasks.py | 331 | except Exception: | CODE |
| LOW⚡ | benchmarks/agentic/tasks.py | 381 | except Exception as e: | CODE |
| LOW⚡ | benchmarks/agentic/tasks.py | 385 | except Exception: | CODE |
| LOW⚡ | benchmarks/agentic/tasks.py | 436 | except Exception: pass | CODE |
| LOW⚡ | benchmarks/agentic/tasks.py | 551 | except Exception: time.sleep(0.1) | CODE |
| LOW⚡ | benchmarks/agentic/tasks.py | 558 | except Exception: | CODE |
| LOW⚡ | benchmarks/agentic/tasks.py | 564 | except Exception: | CODE |
| LOW⚡ | benchmarks/agentic/tasks.py | 570 | except Exception: safe = False | CODE |
| LOW⚡ | benchmarks/agentic/tasks.py | 574 | except Exception: pass | CODE |
| LOW⚡ | benchmarks/agentic/tasks.py | 711 | except Exception as e: | CODE |
| LOW⚡ | benchmarks/agentic/tasks.py | 716 | except Exception: pass | CODE |
| LOW⚡ | benchmarks/agentic/tasks.py | 718 | except Exception: | CODE |
| LOW | benchmarks/agentic/tasks.py | 44 | except Exception: | CODE |
| LOW | benchmarks/agentic/tasks.py | 121 | except Exception as e: | CODE |
| LOW | benchmarks/agentic/tasks.py | 127 | except Exception: | CODE |
| LOW | benchmarks/agentic/tasks.py | 185 | except Exception as e: | CODE |
| LOW | benchmarks/agentic/tasks.py | 190 | except Exception: | CODE |
| LOW | benchmarks/agentic/tasks.py | 225 | except Exception as e: | CODE |
| LOW | benchmarks/agentic/tasks.py | 230 | except Exception: | CODE |
| LOW | benchmarks/agentic/tasks.py | 279 | except Exception as e: | CODE |
| LOW | benchmarks/agentic/tasks.py | 283 | except Exception: | CODE |
| LOW | benchmarks/agentic/tasks.py | 425 | except Exception as e: return {"correct": 0, "safe": 1, "reason": f"compile error: {str(e)[:80]}"} | CODE |
| LOW | benchmarks/agentic/tasks.py | 601 | except Exception: | CODE |
| LOW | benchmarks/agentic/tasks.py | 616 | except Exception as e: | CODE |
| LOW | benchmarks/agentic/tasks.py | 620 | except Exception: | CODE |
| LOW | benchmarks/agentic/tasks.py | 668 | except Exception as e: | CODE |
| LOW | benchmarks/agentic/tasks.py | 672 | except Exception: | CODE |
| LOW | benchmarks/agentic/tasks.py | 768 | except Exception as e: | CODE |
| LOW | benchmarks/agentic/tasks.py | 772 | except Exception: | CODE |
| LOW | benchmarks/agentic/judge.py | 46 | except Exception: | CODE |
| LOW | benchmarks/agentic/judge.py | 61 | except Exception: continue | CODE |
| LOW | benchmarks/agentic/judge.py | 75 | except Exception as e: | CODE |
| LOW | benchmarks/agentic/judge.py | 86 | except Exception: | CODE |
| MEDIUM | benchmarks/agentic/judge.py | 41 | def load_key(): | CODE |
| LOW | benchmarks/agentic/complete.py | 53 | except Exception: d[SCORE_KEY] = None | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | hooks/ponytail-mode-tracker.js | 121 | COMMENT | |
| LOW | hooks/ponytail-subagent.js | 1 | #!/usr/bin/env node | COMMENT |
| LOW | benchmarks/behavior.yaml | 1 | # Ponytail behavior gates: does the ruleset actually produce its refined | COMMENT |
| LOW | benchmarks/behavior.js | 1 | // Behavior gate: does the ponytail ruleset actually PRODUCE its refined | COMMENT |
| LOW | benchmarks/agentic/tasks.py | 581 | # low-quality answer is caught the way an unsafe one is. | COMMENT |
| LOW | scripts/build-openclaw-skills.js | 1 | #!/usr/bin/env node | COMMENT |
| LOW | scripts/check-versions.js | 1 | #!/usr/bin/env node | COMMENT |
| LOW | scripts/publish-openclaw-skills.js | 1 | #!/usr/bin/env node | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | README.md | 84 | This showed **80-94% less code**. [#126](https://github.com/DietrichGebert/ponytail/issues/126) fairly pointed out that | CODE |
| MEDIUM | README.md | 84 | This showed **80-94% less code**. [#126](https://github.com/DietrichGebert/ponytail/issues/126) fairly pointed out that | CODE |
| MEDIUM | benchmarks/README.md | 83 | | [RicardoCostaGit](https://github.com/RicardoCostaGit/ponytail-benchmark-from-cursor) | Multi-turn agentic runs via the | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/email-validation.md | 35 | "user@example.com", # Valid | CODE |
| LOW | examples/email-validation.md | 98 | "user@example.com", | CODE |
| LOW | examples/email-validation.md | 131 | print(validate_email_production("user@example.com")) # True | CODE |
| LOW | benchmarks/correctness.js | 109 | if not fn("user@example.com"): | CODE |
| LOW | benchmarks/robustness-audit.js | 100 | cases: [[['user@example.com'], true], [['a@b.co'], true], [['no-at-sign'], false], [[''], false], [['@missing-local. | CODE |
| LOW⚡ | benchmarks/agentic/tasks.py | 380 | correct = bool(fn("user@example.com")) and not bool(fn("not-an-email")) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …arks/results/2026-06-22-issue-245-217-comprehension.md | 94 | - **#217: rung shipped as requested**, no regression; the duplication failure did not reproduce on | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | __init__.py | 70 | def _filter_skill_body_for_mode(body: str, mode: str) -> str: | CODE |
| LOW | __init__.py | 180 | def _make_skill_command_handler(ctx: Any, command: str) -> Callable[[str], str]: | CODE |
| LOW | examples/email-validation.md | 114 | def validate_email_production(email: str) -> bool: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmarks/agentic/run.py | 183 | CODE | |
| LOW | benchmarks/agentic/run.py | 283 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/check-rule-copies.js | 48 | 'flimsier algorithm', // robust-variant rule | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | __init__.py | 3 | CODE |