scc is a command-line code counter that analyzes lines of code, blank lines, comments, and physical lines across many programming languages.
The tool addresses the need to quickly and accurately measure code metrics across large codebases. It counts source lines of code similar to cloc and sloccount but adds several analytical layers: it calculates cyclomatic complexity estimates, produces COCOMO estimates for project cost forecasting, computes LOCOMO estimation for LLM-based development costs, and measures code uniqueness through DRYness metrics. The tool is written in pure Go and emphasizes speed as a core design goal. It supports configuration files, generates HTML reports, offers multiple output formats, and includes a Git insight mode for analyzing repository history. An MCP server mode is available for integration with other tools.
Developers should choose this tool if they need fast, multi-metric code analysis in a single command rather than chaining multiple specialized tools. It suits projects where understanding code complexity, estimating development costs, and tracking code duplication matter alongside basic line counts. The README positions it as an alternative to cloc, sloccount, and tokei, with the distinguishing factors being its speed, the breadth of metrics it produces simultaneously, and its ability to estimate both traditional COCOMO costs and modern LLM-based development expenses.
The project maintains active development with regular updates and improvements to language support. The tool has been adopted in production at searchcode.com for structured code intelligence analysis. The maintainer actively accepts contributions for adding or modifying language definitions, and the codebase includes comprehensive documentation for extending language support.