# microsoft/agent-governance-toolkit SLOC report

> microsoft/agent-governance-toolkit: 480,331 code lines at commit 5bcf1daa98f1, counted with tokei-15.0.0 on 2026-11-16. Saved result 8b50d778286c213b42066ddeb1aa19eca88d7569eb7f41f707de457e91dfa4c7.

microsoft/agent-governance-toolkit has 480,331 source lines of code out of 621,229 total lines across 3,081 files, counted with tokei from the main ref at commit 5bcf1daa98f1 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving microsoft/agent-governance-toolkit to commit 5bcf1daa98f1, 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.

## Counting rules and retention

microsoft/agent-governance-toolkit: 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.

## Repository size insights

This is a large codebase by counted code lines. Code represents 77.3% of all lines, comments represent 10.5%, and the repository averages 156 code lines per file. Python accounts for 54.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 1,201 | 322,872 | 261,970 | 16,985 | 43,917 |
| JSON | 191 | 57,369 | 57,369 | 0 | 0 |
| TypeScript | 211 | 52,813 | 42,562 | 5,607 | 4,644 |
| Rust | 89 | 34,393 | 30,750 | 711 | 2,932 |
| C# | 97 | 23,581 | 17,067 | 3,506 | 3,008 |
| JavaScript | 64 | 17,438 | 15,046 | 686 | 1,706 |
| Go | 65 | 16,215 | 13,409 | 1,088 | 1,718 |
| YAML | 275 | 16,272 | 13,406 | 1,841 | 1,025 |
| Open Policy Agent | 131 | 14,515 | 10,606 | 1,601 | 2,308 |
| TOML | 76 | 4,086 | 3,356 | 323 | 407 |
| TSX | 49 | 4,187 | 3,249 | 557 | 381 |
| Jupyter Notebooks | 18 | 3,470 | 2,053 | 852 | 565 |
| Kotlin | 13 | 2,559 | 1,900 | 305 | 354 |
| Shell | 26 | 2,389 | 1,875 | 267 | 247 |
| HCL | 6 | 1,340 | 1,055 | 77 | 208 |
| PowerShell | 11 | 1,121 | 900 | 118 | 103 |
| CSS | 3 | 745 | 611 | 24 | 110 |
| MSBuild | 21 | 505 | 446 | 8 | 51 |
| Dockerfile | 19 | 832 | 383 | 255 | 194 |
| SVG | 6 | 489 | 365 | 66 | 58 |
| Protocol Buffers | 2 | 785 | 360 | 247 | 178 |
| Bicep | 3 | 455 | 339 | 73 | 43 |
| XML | 4 | 484 | 329 | 105 | 50 |
| Visual Studio Solution | 2 | 301 | 299 | 0 | 2 |
| Pan | 4 | 230 | 209 | 0 | 21 |
| HTML | 5 | 227 | 203 | 7 | 17 |
| BASH | 1 | 204 | 154 | 18 | 32 |
| Autoconf | 4 | 45 | 38 | 4 | 3 |
| Batch | 4 | 25 | 22 | 0 | 3 |
| Markdown | 406 | 40,696 | 0 | 29,630 | 11,066 |
| Plain Text | 74 | 586 | 0 | 514 | 72 |

Top language: Python 54.5%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/microsoft/agent-governance-toolkit/commit/5bcf1daa98f1ff1d44c57e9e969b7ded0546f0b2?reportId=8b50d778286c213b42066ddeb1aa19eca88d7569eb7f41f707de457e91dfa4c7&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/microsoft/agent-governance-toolkit/commit/5bcf1daa98f1ff1d44c57e9e969b7ded0546f0b2?reportId=8b50d778286c213b42066ddeb1aa19eca88d7569eb7f41f707de457e91dfa4c7&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does microsoft/agent-governance-toolkit have?

microsoft/agent-governance-toolkit has 480,331 lines of code, plus 65,475 comment lines and 75,423 blank lines, for 621,229 total lines at commit 5bcf1daa98f1 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the microsoft/agent-governance-toolkit line count measured?

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

### What commit was counted for microsoft/agent-governance-toolkit?

This OctoCounts report was generated from main at commit 5bcf1daa98f1 on November 16, 2026.

## Similar repository reports

- [DetachHead/basedpyright](https://octocounts.com/github/DetachHead/basedpyright) — Python, 471,952 code lines
- [microsoft/pyright](https://octocounts.com/github/microsoft/pyright) — Python, 494,143 code lines
- [volcengine/veadk-python](https://octocounts.com/github/volcengine/veadk-python) — Python, 461,693 code lines
- [sefcom/oxidizer](https://octocounts.com/github/sefcom/oxidizer) — Python, 457,905 code lines
- [odysseus-dev/odysseus](https://octocounts.com/github/odysseus-dev/odysseus) — Python, 503,876 code lines
- [numpy/numpy](https://octocounts.com/github/numpy/numpy) — Python, 455,829 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)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
