headroomlabs-ai/headroom

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

Python★ 76,359+310 that day#3 on trending

Analyzed October 20, 2026 at fbf7bc3 (main) with jscpd v5 in 4.6s.

C65.2/100
Project health749,472 lines of code (L)
Duplication68
4.8% in python, rust, typescript, javascript, bash, powershell, tsx, sql, c, perl, hcl
Dead code94
0.7%
Complexity46
56.5%

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

2.78%duplicated code · 10,188 of 366,407 lines
764clones in code
830code files of 2,476 scanned
4.85%duplicated over all files · 2,922 clones

The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 4 generated files: headroom/dashboard/static/alpine.min.js, headroom/dashboard/static/tailwind.min.js, headroom/transforms/dense_line_elider.py, tests/test_content_router_compact_json.py.

Largest clones in the code

7 more
Largest clones over all files, tests and data included
By format, code only
FormatFilesLinesClonesDuplicated linesDuplication
python604266,2633935,2731.98%
rust15472,2682262,5383.51%
javascript714,7791261,99113.47%
typescript366,783101402.06%
powershell22,0008884.4%
sql4461115834.27%
bash203,179000%
tsx1336000%
c1170000%
perl1168000%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
python1,680620,9111,90625,4464.1%
rust21689,9935936,9137.68%
json21211,2701282,73224.24%
javascript714,7791261,99113.47%
typescript9518,998981,0955.76%
yaml395,560252815.05%
markdown9326,699182080.78%
powershell62,0508884.29%
text249337262.79%
markup74,3995621.41%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
Oct 20, 2026#376,359 (+310)2,476805,9892,9224.85%2.78%C 65.2fbf7bc3

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