scc
A fast command-line tool that counts the lines of code in a project and estimates its complexity and cost.
- Your data
- Stays on your device
- Coding needed
- Developers only
- Cost
- Free
- Runs on
- Mac, Windows, Linux
- Computer
- An ordinary computer is fine
A fast command-line tool that counts the lines of code in a project and estimates its complexity and cost.
scc (Sloc, Cloc and Code) looks through a folder of software and counts lines of code, comment lines and blank lines, broken down by programming language. Its makers say the goal is to be the fastest code counter possible.
It also gives a rough complexity score for each file, counts unique lines, and estimates how much effort a project would take to build using COCOMO, a long-standing cost model. An experimental estimate called LOCOMO guesses what it would cost to have an AI model write the same code again; its makers say to treat it as a rough ballpark only.
With git history it can point out "hotspots", files that are both complex and often changed, and files that tend to change together. Results can be shown as tables, JSON or an HTML report.
scc can run as an MCP server (a standard plug that lets AI assistants use other software), so a connected assistant can ask it to count and analyse a project's code, rank hotspot files and show which files usually change together.
Developers and engineering leads who want a quick picture of how big and complex a codebase is.
Developers only. It is a command-line tool, so you type commands in a terminal to use it. New to this? Start here.
Before you download
Plain-AyI is an independent guide: we link to each project's official pages, but we don't host, review or endorse the software, and we can't accept responsibility for how it works on your device. Please download and install at your own discretion.
Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?