# boyter/scc

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

Repository: https://github.com/boyter/scc
Canonical: https://ross.abutalabs.com/products/scc
Language: Go
License: MIT
License Family: permissive
Topics: sloccount, cloc, complexity, tokei, windows, linux, macos, cli, statistics, code, golang, sloc, scc
Last push: 2026-08-24T23:55:56+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 75, longevity 100
- inputs: {"age_days": 3107, "days_push": 9, "days_rel": 10, "gap_med": 156.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8663, forks 340 (observed 2026-08-28T04:10:24.070126+00:00)

## What it is
scc is a very fast, accurate lines-of-code counter written in pure Go that also computes code complexity estimates, COCOMO/LOCOMO effort estimates, and unique-lines (DRYness) metrics across many programming languages. It supports multiple output formats, HTML reports, and an MCP server mode for AI agents.

## Use cases
- count lines of code in a repository
- measure code complexity across a codebase
- estimate software project cost with COCOMO
- compare code statistics between languages
- generate code statistics reports in CI
- find duplicate or non-DRY code via unique line counts
- feed codebase metrics to AI agents via MCP

## When to choose
- you need a fast, accurate alternative to cloc, sloccount, or tokei
- you want code counting plus complexity and effort estimates in one tool
- you need cross-platform support without runtime dependencies
- you want machine-readable output (JSON, CSV) for pipelines

## When to avoid
- you need deep static analysis or linting rather than line counting
- you need historical/team dashboards, which are only planned for a paid enterprise version
- you require per-function cyclomatic complexity from a full parser

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, developer-tools, analytics, benchmarking
- domain: developer-tools, analytics, programming-languages
- platform: windows, cli, go, cross-platform
- tags: sloc, code-counter, cocomo, complexity-analysis, code-metrics, cloc-alternative, tokei-alternative, mcp-server, command-line, linux, macos

## Member repositories
- boyter/scc (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:24.070126+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:25:39.508053+00:00, confidence not recorded.
  - readme: https://github.com/boyter/scc (fetched 2026-08-28T04:10:24.070126+00:00, sha c117feeacbd3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
