Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

scc

$ scc Community Low Risk
Ben Boyter (OSS) · Files & Search · MIT / Unlicense · macos / linux / windows

scc (Sloc, Cloc and Code) measures lines of code, comments, blanks, and estimated cyclomatic complexity across repositories while honoring .gitignore. Its --format json and --by-file flags help agents pinpoint complex hotspot files quickly.

FCRS-1.0 Score
92 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install scc
CLI vs MCP Decision CLI Preferred vs MCP

Single-binary local scc --format json gives instant complexity and LOC metrics without an MCP service.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
✓ Read-Only Mode
✓ NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 24 / 25

Supports --format json (plus csv, html, cloc-yaml), deterministic sorting (-s), and non-interactive stdout.

  • Native --format json and --by-file reporting
Trust & Safety 25 / 25

Purely read-only local analyzer with zero network traffic and automatic .gitignore handling.

  • Read-only Go binary; no credentials or external requests
Setup & Portability 14 / 15

Single static Go binary available on brew, go install, choco, snap, and releases.

  • Zero-dependency binary across macOS, Linux, and Windows
Utility & Efficiency 13 / 15

Adds per-language and per-file complexity heuristics beyond raw line counts.

  • Fast parallel counting plus complexity estimates
Maintenance & Lineage 8 / 10

Actively maintained by Ben Boyter with strong performance benchmarks.

  • Regular releases under boyter/scc
Docs & Verifiability 8 / 10

Clear README and --help covering formats, exclusions, and complexity scoring.

  • Comprehensive README and CLI help flags

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; operates purely on local readable files.

Side Effects
Read-Only
Cost & Quotas

100% free, offline, and open-source (MIT / Unlicense).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# scc Agent Rules
- Pass `--format json` (and `--no-cocomo` unless cost estimates are requested) for clean structured metrics.
- Avoid `--by-file` without filtering on large monorepos to keep stdout bounded.

Agent-Ready Command Recipes

Safe Read-Only Queries

Summarize codebase LOC and complexity in JSON
scc --format json --no-cocomo .

Outputs language totals with complexity scores while omitting project cost estimates.

Rank highest-complexity files in a directory
scc --by-file -s complexity --format json src/

Breaks down LOC and complexity per file to highlight refactoring targets.

Strengths for Agents

  • + Combines fast LOC counting with cyclomatic complexity hotspots in --format json.
  • + Respects .gitignore automatically and distributes as a single Go binary.

Caveats & Pitfalls

  • ! COCOMO cost estimates are heuristic and noisy—pass --no-cocomo when agents only need code metrics.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI