cache-timer

cache-timer is a plugin for Claude Code from byheaven/byheaven-skills. Its token cost is not measured, scanned A, original, MIT.

A cache-timing tool that monitors a context cache and can compact the context before the cache expires. Context is the information an agent keeps available during a task, and compacting reduces its size.

In plain words
What is it for?
Use it to configure cache lifetime, minimum context size, and how early compaction should begin.
Why use it?
It helps avoid losing cache benefits when a long task reaches a cache-expiry point and lets you choose or infer a five-minute or one-hour cache lifetime.

Plugin for Claude Code

Written for Claude Code: a Claude Code plugin manifest. Also seen: mentions Claude Code.

Good fit Use it to configure cache lifetime, minimum context size, and how early compaction should begin.

Compare 6 plugins from other repositories ↓
Install in Claude Code
/plugin marketplace add byheaven/byheaven-skills
/plugin install cache-timer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/byheaven/byheaven-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cache-timer

README.md
[![agentmods](https://agentmods.dev/badge/plugins/byheaven/byheaven-skills/cache-timer/github.svg)](https://agentmods.dev/plugins/byheaven/byheaven-skills/cache-timer)
Your own site
<a href="https://agentmods.dev/plugins/byheaven/byheaven-skills/cache-timer"><img src="https://agentmods.dev/badge/plugins/byheaven/byheaven-skills/cache-timer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cache-timer

Your own site · 80×15
<a href="https://agentmods.dev/plugins/byheaven/byheaven-skills/cache-timer"><img src="https://agentmods.dev/badge/plugins/byheaven/byheaven-skills/cache-timer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

cache-timer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/cache-timer/.claude-plugin/plugin.json · 36 lines

What it actually says

{
  "name": "cache-timer",
  "description": "Claude Code mod that counts down the prompt cache, shows and sets Claude Code's own idle compaction, and can push a reminder to your phone.",
  "userConfig": {
    "threshold_k": {
      "type": "number",
      "title": "Idle-compaction threshold (k tokens)",
      "description": "Claude Code's own idle compaction compacts a conversation shortly before its 1-hour cache expires only when the context holds at least this many thousand tokens.",
      "default": 200
    },
    "notify": {
      "type": "boolean",
      "title": "Notify before expiry",
      "description": "Send a push notification shortly before a 1-hour cache expires.",
      "default": true
    },
    "notify_lead_minutes": {
      "type": "number",
      "title": "Notification lead time (minutes)",
      "description": "How many minutes before a 1-hour cache expires to send the notification.",
      "default": 10
    },
    "cache_ttl": {
      "type": "string",
      "title": "Cache lifetime",
      "description": "auto infers 5m or 1h from cache hits; 5m or 1h pins it.",
      "options": [
        "auto",
        "1h",
        "5m"
      ],
      "default": "auto"
    }
  }
}
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 15d ago Changed cce38a211bb6
  2. 1mo ago Changed · -18 lines 9de8beea9d71
  3. 1mo ago Changed · +19 lines c10fa0a2501f
  4. 2mo ago First seen · 35 lines scan A 42c9f8ae273e

Subscribe to this mod's changes

cache-timer is a plugin published in the GitHub repository byheaven/byheaven-skills (2 stars, last pushed today), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-03.

Related

cache-timer compared with plugins from other repositories

cache-timer next to 6 plugins from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cache-timerbyheaven/byheaven-skillsPlugin2todayMITA—Claude Code
mega-brainguhcostan/claude-mega-brainPlugin1285d agoMITA—Claude Code
recallraiyanyahya/recallPlugin7702mo agoMITA—Claude Code
bottleSimooo45/bottlePlugin913d agoMITA—Claude Code
axme-codeAxmeAI/axme-codePlugin141mo agoMITA—Claude Code
jarvis-osManceRayder42/jarvis-osPlugin513d agoMITA—Claude Code
captain-memokalinbogatzevski/captain-memoPlugin59d agoApache-2.0A—Claude Code