Agent-Threat-Rule/agent-threat-rules has 3,064,877 source lines of code out of 4,233,615 total lines across 24,190 files, counted with tokei from the main ref at commit 9257cf0f4a54 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-16 (commit 9257cf0f4a54), Agent-Threat-Rule/agent-threat-rules contains 4,233,615 total lines: 3,064,877 code, 794,629 comments, 374,109 blank, across 24,190 files in 16 languages (top programming language: TypeScript 2.9%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving Agent-Threat-Rule/agent-threat-rules to commit 9257cf0f4a54, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.
This is a very large codebase by counted code lines. Code represents 72.4% of all lines, comments represent 18.8%, and the repository averages 127 code lines per file. TypeScript is the largest programming language at 2.9% of counted code; data and prose formats such as JSON or YAML hold a larger share.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| YAML | 19205 | 2024096 | 1529864 | 307226 | 187006 |
| JSON | 489 | 1415324 | 1415323 | 0 | 1 |
| TypeScript | 375 | 118369 | 87964 | 21997 | 8408 |
| TSX | 98 | 20037 | 18508 | 500 | 1029 |
| Python | 48 | 10858 | 8966 | 529 | 1363 |
| JavaScript | 24 | 3251 | 2323 | 671 | 257 |
| Shell | 9 | 1047 | 663 | 254 | 130 |
| CSS | 1 | 804 | 638 | 90 | 76 |
| XML | 1 | 424 | 402 | 0 | 22 |
| TOML | 4 | 157 | 126 | 12 | 19 |
| SVG | 9 | 48 | 48 | 0 | 0 |
| HTML | 1 | 56 | 42 | 14 | 0 |
Top programming language: TypeScript 2.9%. Generated on .
Agent-Threat-Rule/agent-threat-rules: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
Agent-Threat-Rule/agent-threat-rules has 3,064,877 lines of code, plus 794,629 comment lines and 374,109 blank lines, for 4,233,615 total lines at commit 9257cf0f4a54 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 9257cf0f4a54, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from main at commit 9257cf0f4a54 on November 16, 2026.
Play the growth animation for Agent-Threat-Rule/agent-threat-rules on this page — 3,064,877 code lines across 16 languages, counted by tokei.