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

ccache

$ ccache Community Low Risk
ccache · Code & DevOps · GPL-3.0-or-later · macos / linux / windows

Compiler cache wrapper for C, C++, Objective-C, and CUDA compilers (gcc, clang). Transparently caches object compilations by preprocessed hash to speed up branch switches and CI runs, with --show-stats, --print-stats, and --show-config inspection.

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

Local compiler wrapper binary invoked transparently by CMake/Make or directly for cache inspection.

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

Fully non-interactive with --print-stats machine-readable output and --show-config, though it lacks --json formatting.

  • --print-stats emits stable tab-delimited key-value stats
  • Zero interactive prompts
Trust & Safety 22 / 25

Safe local cache wrapper; only destructive operation is explicit cache clearing (ccache -C).

  • Read-only --show-stats / --show-config diagnostics
Setup & Portability 14 / 15

Small, fast C++ binary packaged across Homebrew, Linux distros, and Windows releases.

  • Cross-platform static/system packages
Utility & Efficiency 12 / 15

Dramatically reduces C/C++ rebuild latency across branches; primarily used transparently via CMAKE_C_COMPILER_LAUNCHER=ccache.

  • Transparent integration with CMake, Meson, and Make
Maintenance & Lineage 8 / 10

Actively maintained open-source project (ccache/ccache) with modern remote storage support.

  • Active ccache/ccache repository
Docs & Verifiability 7 / 10

Thorough single-page manual and clear --help.

  • Official manual at ccache.dev/manual

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

Local disk caching requires no credentials; optional Redis/HTTP remote storage reads URLs/tokens from ccache.conf.

Side Effects
Read-Only Local Write
Cost & Quotas

GPL-3.0-or-later open-source tool; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# ccache Agent Rules
- Use `ccache --print-stats` and `ccache --show-config` for non-destructive inspection.
- Never run `ccache -C` (`--clear`) unless the user explicitly asks to wipe the shared compiler cache.

Agent-Ready Command Recipes

Safe Read-Only Queries

Print machine-parseable cache statistics
ccache --print-stats

Emits tab-separated key-value cache hit/miss counters for scripting without mutating state.

Inspect resolved ccache configuration
ccache --show-config

Displays all active cache directory, max size, and compression settings with their origin.

Controlled Writes & Previews

Wrap a compiler invocation through ccache
ccache clang -c main.c -o build/main.o

Compiles main.c into build/main.o while storing/reusing cached object output.

Strengths for Agents

  • + --print-stats and --show-config make cache hit rate and configuration verification effortless.
  • + Speeds up repetitive agent edit-compile cycles on C/C++ repos with minimal setup.

Caveats & Pitfalls

  • ! No --json output mode (uses tab-separated key-value pairs in --print-stats).
  • ! Cache directory writes require writable storage (or CCACHE_DISABLE=1 in read-only sandboxes).

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI