# khoj-ai/khoj SLOC report

> As of 2026-09-11 (commit 9258f57dceab), khoj-ai/khoj contains 92,323 total lines: 77,459 code, 5,997 comments, 8,867 blank, across 454 files in 19 languages (top: Python 36.2%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

khoj-ai/khoj has 77,459 source lines of code out of 92,323 total lines across 454 files, counted from the 9258f57dceab19d52a1a0bdac54eb38576c29187 ref at commit 9258f57dceab by the OctoCounts tokei engine on 2026-09-11. 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 khoj-ai/khoj to commit 9258f57dceab, 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 83.9% of all lines, comments represent 6.5%, and the repository averages 171 code lines per file. Python accounts for 36.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 224 | 34,726 | 28,059 | 1,905 | 4,762 |
| TSX | 81 | 19,225 | 17,515 | 227 | 1,483 |
| JavaScript | 16 | 13,371 | 10,720 | 2,056 | 595 |
| TypeScript | 22 | 7,973 | 6,693 | 631 | 649 |
| SVG | 31 | 5,838 | 5,819 | 16 | 3 |
| CSS | 25 | 6,072 | 4,977 | 269 | 826 |
| Emacs Lisp | 1 | 1,386 | 1,027 | 208 | 151 |
| HTML | 13 | 956 | 909 | 15 | 32 |
| JSON | 13 | 680 | 680 | 0 | 0 |
| Shell | 3 | 646 | 370 | 193 | 83 |
| Dockerfile | 4 | 273 | 205 | 47 | 21 |
| TOML | 1 | 188 | 174 | 0 | 14 |

Top language (Python 36.2%). Generated at 2026-09-11T18:16:35.511900310+00:00. Canonical report: https://octocounts.com/github/khoj-ai/khoj

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/khoj-ai/khoj/commit/9258f57dceab19d52a1a0bdac54eb38576c29187?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 khoj-ai/khoj have?

khoj-ai/khoj has 92,323 total lines, including 77,459 code lines, 5,997 comment lines, and 8,867 blank lines.

### How was the khoj-ai/khoj line count measured?

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

### What commit was counted for khoj-ai/khoj?

This OctoCounts report was generated from 9258f57dceab19d52a1a0bdac54eb38576c29187 at commit 9258f57dceab on 2026-09-11T18:16:35.511900310+00:00.

## Similar repository reports

- [Alishahryar1/free-claude-code](https://octocounts.com/github/Alishahryar1/free-claude-code) — Python, 76,599 code lines
- [HUST-AI-HYZ/MemoryAgentBench](https://octocounts.com/github/HUST-AI-HYZ/MemoryAgentBench) — Python, 78,449 code lines
- [calesthio/OpenMontage](https://octocounts.com/github/calesthio/OpenMontage) — Python, 76,147 code lines
- [langchain-ai/langgraph](https://octocounts.com/github/langchain-ai/langgraph) — Python, 79,317 code lines
- [Light0305/Light-skills](https://octocounts.com/github/Light0305/Light-skills) — Python, 75,452 code lines
- [factorysemantics/factorysemantics-mes](https://octocounts.com/github/factorysemantics/factorysemantics-mes) — Python, 75,438 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)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [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)
