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

tokei

$ tokei Community Low Risk
XAMPPRocky (OSS) · Files & Search · MIT / Apache-2.0 · macos / linux / windows

tokei counts files, code lines, comments, and blanks across 150+ languages in milliseconds while honoring .gitignore. Its --output json mode gives agents an immediate quantitative map of a repository before deeper code inspection.

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

Running tokei --output json locally finishes in milliseconds with zero RPC or MCP overhead.

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 --output json (and yaml/cbor), clean non-TTY stdout, and deterministic zero-prompt execution.

  • Native --output json structured statistics
Trust & Safety 25 / 25

Purely read-only local Rust binary with zero network access and automatic .gitignore skipping.

  • Zero write, network, or credential side effects
Setup & Portability 14 / 15

Single static Rust binary available via brew, cargo, and OS package managers.

  • Cross-platform static binary for macOS, Linux, and Windows
Utility & Efficiency 14 / 15

Gives agents instant codebase sizing and language mix in under 100ms.

  • Parallel language-aware line counting across 150+ languages
Maintenance & Lineage 9 / 10

Widely adopted OSS standard (XAMPPRocky/tokei) under dual MIT/Apache-2.0 license.

  • Established OSS tool with broad CI and developer adoption
Docs & Verifiability 8 / 10

Concise --help and README covering output formats and sorting flags.

  • Clear README and --help reference

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; reads local source files only.

Side Effects
Read-Only
Cost & Quotas

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

Copyable Guardrail for CLAUDE.md / AGENTS.md
# tokei Agent Rules
- Use `tokei --output json` (optionally piped through `jq`) when first sizing an unfamiliar repo.
- Pass `-e` to exclude generated vendor directories if they are committed outside `.gitignore`.

Agent-Ready Command Recipes

Safe Read-Only Queries

Get repository language breakdown as JSON
tokei --output json .

Outputs per-language file counts, code lines, comments, and blanks in JSON.

Show top languages sorted by code lines
tokei -s code src/

Prints a compact summary table sorted by lines of code.

Strengths for Agents

  • + Strictly read-only with native --output json for instant repository profiling.
  • + Automatically respects .gitignore and counts 150+ languages accurately.

Caveats & Pitfalls

  • ! Full --output json payload includes per-file entries by default—pipe to jq or omit --files on giant monorepos.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI