scc

CLI

Sloc cloc and code: fast and accurate code statistics.

Fastest code counter — lines, blank lines, comments by language

3 curated recipes · not yet executed by the harness#sloc#count#statistics#go

Recipes

Curated from documentation and usage. Percentages are estimates, not measurements.

Count lines in current project

~99% est.
scc .

Export as JSON

~99% est.
scc --format json . > stats.json

Exclude directories

~98% est.
scc . --exclude-dir node_modules,dist

Install

Homebrewbrew install scc

Agent 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.

Homepage ↗MIT OR Unlicense0 views