6 views

anthropics/claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

TypeScript★ 152,755+167 that day#7 on trending

Analyzed October 20, 2026 at a6e289a (main) with jscpd v5 in 1.4s. Code duplication went from 1.43% on Sep 17 to 1.18% on Oct 20.

B72/100
Project health51,446 lines of code (M)
Duplication81
2.5% in typescript, python, bash, hcl, tsx, powershell, perl
Dead code93
0.7%
Complexity49
52.1%

The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.

1.18%duplicated code · 260 of 22,023 lines
14clones in code
292code files of 732 scanned
1.81%duplicated over all files · 127 clones

The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code.

Largest clones in the code

  • 28 lines in 2 placespython144 tokens
    4This script is called by Claude Code after a tool executes.
    5It reads .claude/hookify.*.local.md files and evaluates rules.
    6"""
    7
    8import os
    9import sys
    10import json
    11
    12# CRITICAL: Add plugin root to Python path for imports
    13PLUGIN_ROOT = os.environ.get('CLAUDE_PLUGIN_ROOT')
    

    First 10 of 28 lines.

  • 12 lines in 2 placespython129 tokens
    1391added = [ln[1:] for ln in diff_text.splitlines()
    1392         if ln.startswith("+") and not ln.startswith("+++")]
    1393removed = [ln[1:] for ln in diff_text.splitlines()
    1394           if ln.startswith("-") and not ln.startswith("---")]
    1395
    1396def _norm(s: str) -> str:
    1397    return " ".join(t for t in " ".join(s.split()).split() if len(t) > 2)
    1398
    1399added_norm = _norm("\n".join(added))
    1400removed_norm = _norm("\n".join(removed))
    
    306added = [
    307    ln[1:]
    308    for ln in diff_text.splitlines()
    309    if ln.startswith("+") and not ln.startswith("+++")
    310]
    311removed = [
    312    ln[1:]
    313    for ln in diff_text.splitlines()
    314    if ln.startswith("-") and not ln.startswith("---")
    315]
    

    First 10 of 12 lines, the second copy on the right.

  • 27 lines in 2 placespython128 tokens
    5It reads .claude/hookify.*.local.md files and evaluates rules.
    6"""
    7
    8import os
    9import sys
    10import json
    11
    12# CRITICAL: Add plugin root to Python path for imports
    13PLUGIN_ROOT = os.environ.get('CLAUDE_PLUGIN_ROOT')
    14if PLUGIN_ROOT:
    

    First 10 of 27 lines.

7 more
Largest clones over all files, tests and data included
By format, code only
FormatFilesLinesClonesDuplicated linesDuplication
python177,827112232.85%
typescript23010,2003370.36%
bash222,470000%
tsx211,206000%
perl1168000%
powershell1152000%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
typescript41636,470951,0282.82%
markdown10828,143132510.89%
python187,910112232.82%
yaml501,6823422.5%
hcl81,3873241.73%
bash475,597170.13%
text321,1451100.87%
json271,993000%
markup21,817000%
tsx211,206000%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
Oct 20, 2026#7152,755 (+167)73287,6981271.81%1.18%B 72a6e289a
Oct 18, 2026#5151,915 (+179)73397,0771271.63%1.18%B 72dd6bee3
Oct 4, 2026#7149,297 (+128)68991,928901.3%1.21%B 73.42bfb629
Sep 21, 2026#5147,243 (+419)64586,608671.07%1.26%B 73.67974a70
Sep 20, 2026#3146,789 (+483)59483,878571%1.37%B 72.6bf7d404
Sep 19, 2026#2146,390 (+444)59483,878571%1.37%B 72.6bf7d404
Sep 18, 2026#6145,943 (+538)56679,974530.95%1.43%—31a3b00
Sep 17, 2026#8145,628 (+165)56679,824530.95%1.43%—68ac8bb

Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.