scc
CLISloc cloc and code: fast and accurate code statistics.
Fastest code counter — lines, blank lines, comments by language
Recipes
Curated from documentation and usage. Percentages are estimates, not measurements.
Count lines in current project
scc .Export as JSON
scc --format json . > stats.jsonExclude directories
scc . --exclude-dir node_modules,distInstall
Homebrew
brew install sccAgent notes
- When to use
- Getting accurate line counts across large codebases quickly
- Quick examples
scc .scc --format json .
Use from an agent
curl -s https://clihub.com/api/tools/scc | jq '.agentHints.provenRecipes[] | {task, command, verified}'Or call get_tool with slug scc on the MCP server at https://clihub.com/mcp.