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

sccache

$ sccache Official Low Risk
Mozilla · Code & DevOps · Apache-2.0 · macos / linux / windows

Mozilla's ccache-like compiler cache supporting Rust (rustc), C/C++, and CUDA with local disk or remote S3, GCS, Azure, and Redis backends. Emits structured JSON metrics via sccache --show-stats --stats-format json.

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
brew install sccache
CLI vs MCP Decision CLI Only

Local/distributed compiler wrapper configured via RUSTC_WRAPPER=sccache or CMake launchers.

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

Supports --show-stats --stats-format json and zero interactive prompts, transparently wrapping rustc and C/C++ compilers.

  • Native --stats-format json stats output
  • Non-interactive daemon and CLI commands
Trust & Safety 22 / 25

Safe compilation caching; remote storage writes are scoped to configured cache buckets and read via standard env vars.

  • No destructive source mutations; read-only stats inspection
Setup & Portability 14 / 15

Single Rust static binary distributed via Homebrew, Cargo, and GitHub releases across macOS, Linux, and Windows.

  • Prebuilt binaries on all three major OSes
Utility & Efficiency 13 / 15

Unlocks shared Rust + C++ compilation caching across CI runners and developer machines.

  • Supports RUSTC_WRAPPER=sccache plus S3/GCS/Redis/GHA backends
Maintenance & Lineage 8 / 10

Originating from Mozilla (mozilla/sccache) and actively maintained under Apache-2.0.

  • Active mozilla/sccache repository
Docs & Verifiability 8 / 10

Clear markdown docs covering backends, env vars, and CLI flags.

  • Backend and CLI documentation in repository docs/

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key Config File
Credential Storage

Local caching needs no auth; remote backends read SCCACHE_* environment variables (e.g., AWS/GCS/Redis credentials) or ~/.config/sccache/config.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

Apache-2.0 open-source CLI; remote cloud storage costs depend on your S3/GCS/Redis provider.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# sccache Agent Rules
- Always pass `--stats-format json` with `sccache --show-stats` for structured cache inspection.
- Avoid printing `env` or config files when `SCCACHE_S3_KEY` or Redis credentials are configured.

Agent-Ready Command Recipes

Safe Read-Only Queries

Read compilation cache metrics as JSON
sccache --show-stats --stats-format json

Prints cache hits, misses, and backend error counts in structured JSON.

Verify sccache version and supported features
sccache --version

Reports the installed sccache binary version without starting the background server.

Controlled Writes & Previews

Reset session cache statistics
sccache --zero-stats

Zeroes hit/miss counters on the running daemon before measuring a clean build.

Strengths for Agents

  • + sccache --show-stats --stats-format json gives agents exact JSON hit/miss telemetry.
  • + Caches both rustc and C/C++/CUDA compilations with optional shared remote backends.

Caveats & Pitfalls

  • ! Starts a local background daemon process on first invocation unless managed with --stop-server.
  • ! Misconfigured remote storage env vars can slow or fail builds unless SCCACHE_IDLE_TIMEOUT and fallback settings are tuned.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI