2 views

agent-substrate/substrate

Agent Substrate: the core system

Go★ 3,570+558 that day#6 on trending

Analyzed September 24, 2026 at 31a5e0b (main) with jscpd 5.4.0 in 1.0s. Code duplication went from 3.12% on Sep 23 to 3.2% on Sep 24.

D48/100
Project health232,284 lines of code (L)
Duplication50
8.6% in go, bash, python, perl, sql, c
Dead coden/a
the languages dead code reads are under 5% of the code
Complexity47
55.6%

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

3.2%duplicated code · 2,973 of 93,039 lines
267clones in code
484code files of 1,189 scanned
9.58%duplicated over all files · 1,852 clones

The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 43 generated files: cmd/ateapi/internal/controlapi/zz_generated.validation.go, internal/proto/ateletpb/atelet_grpc.pb.go, internal/proto/ateletpb/atelet.pb.go, internal/proto/ateompb/ateom_grpc.pb.go, internal/proto/ateompb/ateom.pb.go, internal/proto/glutton/glutton_grpc.pb.go, internal/proto/glutton/glutton.pb.go, internal/proto/grpcechopb/grpcecho_grpc.pb.go, internal/proto/grpcechopb/grpcecho.pb.go, pkg/api/v1alpha1/zz_generated.deepcopy.go, pkg/client/clientset/versioned/clientset.go, pkg/client/clientset/versioned/fake/clientset_generated.go, pkg/client/clientset/versioned/fake/doc.go, pkg/client/clientset/versioned/fake/register.go, pkg/client/clientset/versioned/scheme/doc.go, pkg/client/clientset/versioned/scheme/register.go, pkg/client/clientset/versioned/typed/api/v1alpha1/api_client.go, pkg/client/clientset/versioned/typed/api/v1alpha1/csidriverconfig.go, pkg/client/clientset/versioned/typed/api/v1alpha1/doc.go, pkg/client/clientset/versioned/typed/api/v1alpha1/fake/doc.go and 23 more.

Largest clones in the code

7 more
Largest clones over all files, tests and data included
By format, code only
FormatFilesLinesClonesDuplicated linesDuplication
go39882,9852622,8853.48%
bash545,3344681.27%
python314,5461200.44%
perl1174000%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
go841220,5631,71619,6818.92%
yaml6712,107671,32610.95%
txt334,239303,92992.69%
markup42,3951266627.81%
python435,787113135.41%
markdown7915,884101210.76%
bash856,4624681.05%
json71,3472423.12%
protobuf73,450000%
text15292000%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
Sep 24, 2026#63,570 (+558)1,189272,9731,8529.58%3.2%D 4831a5e0b
Sep 23, 2026#23,083 (+245)1,173271,7801,8489.62%3.12%D 49.3d277088

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