boyter /scc

Sloc, Cloc and Code: scc is a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go

★ 8,877⑂ 364👁 35⑃ 450● 348▤ 45
GoMITCreated 2018-03-01
Download: v4.1.0v4.1.0 ↓4.1.02026-09-07
+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

Discussions

Latest release

v4.1.0 v4.1.0 2026-09-07
Changelog
 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

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON