+4
Daily
8,877
stars
364
forks
35
watchers
450
prs
348
issues
45
releases
README
Sloc Cloc and Code (scc) !SCC illustration scc powers searchcode.com — structured code intelligence over any repo, built for AI agents. A tool similar to cloc, sloccount and tokei. For counting the lines of code, blank lines, comment lines, and physical lines of source code in many programming languages. Goal is to be the fastest code counter possible, but also perform COCOMO calculation like sloccount, LOCOMO estimation for LLM-based development costs, estimate code complexity similar to cyclomatic complexity calculators and produce unique lines of code or DRYness metrics. In short one tool to rule them all. Also it has a very short name which is easy to type scc. If you don't like sloc cloc and code feel free to use the name Succinct Code Counter. !Scc count downloads Licensed under MIT licence. Table of Contents - Install - Background - Pitch - Usage - Configuration Files - Complexity Estimates - Unique Lines of Code (ULOC) - COCOMO - LOCOMO - Git Insight Reports - HTML Report - Output Formats - Performance - Development - MCP Server Mode - Adding/Modifying Languages - Issues - Badges - Language Support - Citation scc for Teams & Enterprise While scc will always be a free and open tool for individual developers, companies and businesses, we are exploring an enhanced version designed for teams and businesses. scc Enterprise will build on the core scc engine to provide historical analysis, team-level dashboards, and policy enforcement to help engineering leaders track code health, manage technical debt, and forecast project costs. We are currently gathering interest for a private beta. If you want to visualize your codebase's evolution, integrate quality gates into your CI/CD pipeline, and get a big-picture view across all your projects, sign up for the early access list here Install Go Install You can install scc by using the standard go toolchain. To install the latest stable version of scc: go install github.com/boyter/scc/v4@latest To install a development version: go install github.com/boyter/scc/v4@master Note that scc needs go version = 1.25. Snap A snap install exists thanks to Ricardo. $ sudo snap install scc NB Snap installed applications cannot run outside of /home so you may encounter issues if you use snap and attempt to run outside this directory. Homebrew Or if you have Homebrew installed $ brew install scc Fedora Fedora Linux users can use a COPR repository: $ sudo dnf copr enable lihaohong/scc && sudo dnf install scc MacPorts On macOS, you can also install via MacPorts $ sudo port install scc Scoop Or if you are using Scoop on Windows $ scoop install scc Chocolatey Or if you are using Chocolatey on Windows $ choco install scc WinGet Or if you are using WinGet on Windows winget install --id benboyter.scc --source winget FreeBSD On FreeBSD, scc is available as a package $ pkg install scc Or, if you prefer to build from source, you can use the ports tree $ cd /usr/
Top issues
#225Proposal: add a --by-dir option14 comments · 2021-02-06#769SCC's representation and involvement in LineJudge11 comments · 2026-09-03#560Code Complexity + Lines & DRYness8 comments · 2024-11-16#352.gitattributes linguist-language (language detection override) isn't taken into account8 comments · 2022-10-07#346[feature] Add color/icons?7 comments · 2022-08-20#698Compare two projects?6 comments · 2026-04-13#653Is the source code of the PR Insights GitHub App actually available?6 comments · 2025-10-23#199Suggestion: add badges to shields.io4 comments · 2020-09-09
Discussions
#718Codeberg badge provider1 comments · 2026-06-21#597Using SCC as library1 comments · 2025-03-26#461Does SCC count historical lines as well?1 comments · 2024-05-18#456Add WGSL Support6 comments · 2024-05-10#435When will the total lines badges be updated?3 comments · 2024-03-01#417Show lines in SI format1 comments · 2023-11-29#398Add support for ReScript language1 comments · 2023-07-21#397SCC assiduously refuses to recognize my Cocoa xib files0 comments · 2023-07-10
Latest release
v4.1.0 v4.1.0 2026-09-07Changelog 9f95cd6e06de134c1d5274f0595a69b18190edc6 Issue 762 (763) eb6ac4cb889beabbfb2cb40841c1c07ff6adc25c fix(asp.net): correct the server side comment terminator (772) 300b452169dc4e2199f7d651910e7d3449f0b02e fix(php): correct the double quoted string delimiter (759) a1620695ce7a8700e3dd73c9c1b47b4470696ee5 fix: count Rust byte character literals (764) d96feb79278f82020f31286d2952937c053ce38c fix: normalise negative zero in report SVG coordinates (767) (768) de6aac04440809ad6d53c055a6984edd27b5166a fix: resolve HEAD in git worktrees (765) (766) 74aeb15421b5cc80d796b8092cf40452567897