# anthropics/claude-code SLOC report

> As of 2026-09-19 (commit bf7d404e26a5), anthropics/claude-code contains 64,158 total lines: 21,507 code, 33,395 comments, 9,256 blank, across 902 files in 10 languages (top: TypeScript 46.8%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

anthropics/claude-code has 21,507 source lines of code out of 64,158 total lines across 902 files, counted from the main ref at commit bf7d404e26a5 by the OctoCounts tokei engine on 2026-09-19. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving anthropics/claude-code to commit bf7d404e26a5, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a medium-sized codebase by counted code lines. Code represents 33.5% of all lines, comments represent 52.1%, and the repository averages 24 code lines per file. TypeScript accounts for 46.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| TypeScript | 702 | 23,902 | 10,074 | 11,942 | 1,886 |
| Python | 21 | 7,575 | 5,651 | 1,182 | 742 |
| Shell | 20 | 3,393 | 2,352 | 671 | 370 |
| XML | 1 | 1,161 | 1,161 | 0 | 0 |
| HCL | 8 | 1,387 | 1,013 | 212 | 162 |
| TSX | 21 | 1,210 | 800 | 278 | 132 |
| JSON | 17 | 320 | 320 | 0 | 0 |
| PowerShell | 2 | 180 | 111 | 49 | 20 |
| Dockerfile | 2 | 102 | 25 | 64 | 13 |
| Markdown | 108 | 24,928 | 0 | 18,997 | 5,931 |

Top language (TypeScript 46.8%). Generated at 2026-09-19T07:18:45.492779232+00:00. Canonical report: https://octocounts.com/github/anthropics/claude-code

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/anthropics/claude-code/commit/bf7d404e26a5fb6167d21b46c93a2bf6c22ab274?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does anthropics/claude-code have?

anthropics/claude-code has 64,158 total lines, including 21,507 code lines, 33,395 comment lines, and 9,256 blank lines.

### How was the anthropics/claude-code line count measured?

OctoCounts resolved the public GitHub repository to commit bf7d404e26a5, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for anthropics/claude-code?

This OctoCounts report was generated from main at commit bf7d404e26a5 on 2026-09-19T07:18:45.492779232+00:00.

## Similar repository reports

- [tickernelz/opencode-mem](https://octocounts.com/github/tickernelz/opencode-mem) — TypeScript, 21,842 code lines
- [monid-ai/monid](https://octocounts.com/github/monid-ai/monid) — TypeScript, 22,011 code lines
- [lossless-claude/lcm](https://octocounts.com/github/lossless-claude/lcm) — TypeScript, 22,389 code lines
- [DucPhamNgoc08/CodeVisualizer](https://octocounts.com/github/DucPhamNgoc08/CodeVisualizer) — TypeScript, 22,407 code lines
- [tw93/Pake](https://octocounts.com/github/tw93/Pake) — TypeScript, 22,558 code lines
- [rivet-dev/secure-exec](https://octocounts.com/github/rivet-dev/secure-exec) — TypeScript, 22,640 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Next.js vs Vite](https://octocounts.com/compare/nextjs-vs-vite)
- [Angular vs Vue](https://octocounts.com/compare/angular-vs-vue)
- [Svelte vs Vue](https://octocounts.com/compare/svelte-vs-vue)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
