claude-cache

claude-cache is a Claude Code mod by the-cybersapien that compacts an idle Claude Code session while its prompt cache is warm, with an AFK mode, a handoff note, and a cache TTL countdown in the status line and above the prompt.

Updated 2026-10-07

What is claude-cache?

claude-cache is a Claude Code mod by the-cybersapien that compacts an idle Claude Code session while its prompt cache is warm, with an AFK mode, a handoff note, and a cache TTL countdown in the status line and above the prompt. It is listed under Cost & usage and has no public popularity data yet.

TypeClaude code mod
Authorthe-cybersapien
Repositorythe-cybersapien/claude-cache
Popularityno public popularity data yet
CategoryCost & usage
SecurityHigh risk (25/100)
Rank#4,801 of 5,272 Claude Code mods; #951 in Cost & usage
LicenseApache-2.0
Last commit2026-10-07
Hooks11 events
Seesclassic hooks, compaction, every prompt, mcp__claude-cache__afk calls
Draws onAbovePrompt

Is claude-cache safe to install?

claude-cache scores 25/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; reads environment variables; watches every prompt or event; validator reported problems. It passed 3 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Reads environment variablesReview
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Validator reported problemsFlag
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.every
$.clock.now
$.command.register
$.env.getreads env vars
$.model.forkdrives Claude
$.process.runruns processes
$.session.compactdrives Claude
$.session.id
$.session.root
$.session.usage
$.settings.readreads settings
$.state.get
$.state.set
$.store.deletekeeps its own state
$.store.getkeeps its own state
$.store.setkeeps its own state
$.tool.registerdrives Claude
$.ui.resolvedraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install claude-cache?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/the-cybersapien/claude-cache
    claude plugin validate ./claude-cache/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    git clone https://github.com/the-cybersapien/claude-cache && claude --plugin-dir ./claude-cache/.

Or ask Claude to set it up

Paste this into Claude Code and it installs claude-cache for you:

Install the "claude-cache" Claude Code mod from https://github.com/the-cybersapien/claude-cache. Run claude plugin validate on it first and show me what it can access before you enable it.