horizon-loop

Agent Cache Meter — Development skill for Claude Code

Development community

Prompt-cache meter for omp and Claude Code: hit rate, expiry countdown, and what /compact saves when the cache goes cold.

How to install Agent Cache Meter

This entry records only its repository, not the path inside it, so there is no exact command to give. Open horizon-loop/agent-cache-meter and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agent Cache Meter does

Prompt-cache meter for omp and Claude Code: hit rate, expiry countdown, and what /compact saves when the cache goes cold. Includes a Tern plugin.

Alternatives in Development

  • Agent Purge — One persona, many coding agents 924 ★
  • Harness Remote — Native-session control plane for Codex, Claude Code, OpenCode, OMP and PI 356 ★
  • Media — Understand an audio / video / image file — Antigravity (agy/Gemini) transcribes and analyzes it, returning a t 284 ★

README

Agent Cache Meter: know before your prompt cache goes cold. Hit rate, the countdown to expiry, and what /compact saves. A HorizonLoop project.

agent-cache-meter

A prompt-cache meter for [omp](https://github.com/can1357/oh-my-pi) and [Claude Code](https://code.claude.com). It shows how many tokens each request read from the cache, wrote to it and sent uncached, and counts down to the cache's expiry. When the cache goes cold it says what rebuilding it costs and whether `/compact` pays for itself. It also includes a plugin for Tern, Stencil's terminal, that shows every agent's cache in one place.

The meter above omp's composer on one line: 'cache' with a green 'warm' badge, read 96.2k · write 380 · uncached 14, then at the right end 'hit rate', the split bar, 99.6% | 4:33

Why it matters

Every request sends the whole conversation again. The prompt cache makes that cheap: tokens read from it cost a tenth of normal input. But the cache lives only an hour after the last request (five minutes on an API key), and in a long conversation both of its limits get expensive.

Bar chart of request costs in a 487k-token session: a row of small green bars at $0.12 each while working, a shaded hour where the cache stays warm, a dashed 'expired' line, and after 15 hours one tall red bar of $3.63 for the first request back, which rewrites 450k tokens, worth 30 warm requests

Related Skills