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

c8

$ c8 Community Low Risk
bcoe · Code & DevOps · ISC · macos / linux / windows

c8 collects native V8 code coverage via NODE_V8_COVERAGE without Babel/Istanbul AST instrumentation overhead and formats reports using Istanbul reporters (--reporter=json, --reporter=json-summary, --reporter=text). Includes --check-coverage for CI threshold gates.

FCRS-1.0 Score
81 /100
Good
Medium Confidence
Zero-Friction Install
npm install -D c8
CLI vs MCP Decision CLI Only

Local Node.js V8 coverage wrapper around node or test commands like mocha and node --test.

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 21 / 25

Non-interactive wrapper with --reporter=json, --reporter=json-summary, and --check-coverage exit codes.

  • Native --reporter=json and --reporter=json-summary
  • --check-coverage returns non-zero on threshold failure
Trust & Safety 20 / 25

Local execution with no auth; wraps arbitrary test commands and writes under coverage/ (configurable via --reports-dir).

  • Bounded local file writes under coverage/
Setup & Portability 13 / 15

Lightweight npm / npx package working across macOS, Linux, and Windows on Node.js 12+.

  • Zero native compiler bindings; pure Node.js wrapper
Utility & Efficiency 12 / 15

Fast zero-instrumentation V8 coverage for node --test, mocha, ava, and CLI scripts.

  • Leverages Node.js built-in V8 profiler without code transforms
Maintenance & Lineage 7 / 10

Maintained by Benjamin Coe (bcoe/c8) under ISC license, widely used alongside node --test and mocha.

  • Standard V8 coverage CLI in the Node.js ecosystem
Docs & Verifiability 8 / 10

Concise README and --help output documenting flags and .c8rc.json config.

  • Clear flag reference in --help and README

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No credentials required; stores temporary V8 coverage JSON files locally in coverage/.

Side Effects
Read-Only Local Write
Cost & Quotas

ISC open-source Node.js CLI; free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# c8 Agent Rules
- Combine `--reporter=json-summary` with `--reporter=text` for compact machine-readable totals.
- Use `--clean` (default) or `c8 report` when inspecting existing V8 coverage output.
- Pass `--all` only when uncovered files should count toward project totals.

Agent-Ready Command Recipes

Safe Read-Only Queries

Re-report existing V8 coverage as JSON summary
npx c8 report --reporter=json-summary

Reads already collected V8 coverage data and writes a compact coverage-summary.json without re-running tests.

Controlled Writes & Previews

Run tests with V8 coverage and threshold check
npx c8 --reporter=text --reporter=json-summary --check-coverage --lines 80 node --test

Executes Node's built-in test runner under V8 coverage, writes coverage/coverage-summary.json, and fails below 80% lines.

Strengths for Agents

  • + Fast native V8 coverage with zero AST/Babel instrumentation overhead.
  • + --reporter=json-summary produces small JSON totals ideal for agent threshold checks.
  • + --check-coverage enforces line/branch/function percentages directly.

Caveats & Pitfalls

  • ! JSON reporters write files under coverage/ rather than printing raw JSON to stdout.
  • ! Source-map accuracy depends on Node.js --enable-source-maps or bundler-emitted maps.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI