hot-cache

A command set for viewing and managing a fast-access cache of stored memories.

In plain words
What is it for?
Use it to check cache status, promote or demote memories, and pin or unpin memories to control automatic removal.
Why use it?
It helps control which memories are readily available and which can be removed from fast access without deleting them.

Command for Claude Code

Part of the memory-mcp plugin — 3 skills, 14 commands, 1 agent, 1 MCP server shipped together

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.

agentmods
npx agentmods add commands/michael-denyer/memory-mcp/hot-cache
Clone the repo
git clone --depth 1 https://github.com/michael-denyer/memory-mcp

Made for: Claude Code.

Or install memory-mcp, the plugin that ships this one along with the rest of its 3 skills, 14 commands, 1 agent, 1 MCP server.

Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 231 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00006 $0.00231
Opus 5 $0.00003 $0.00115
Sonnet 5 $0.00001 $0.00046
Haiku 4.5 $0.00001 $0.00023

Measured 3d ago against content hash 70e7c35b1bfb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hot-cache 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 3d 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.

.claude-plugin/commands/hot-cache.md · 26 lines

What it actually says

Manage the hot cache for instant memory recall.

Subcommands:

  • No args: Show current hot cache status
  • promote <id>: Add memory to hot cache
  • demote <id>: Remove memory from hot cache (keeps in cold storage)
  • pin <id>: Pin memory to prevent auto-eviction
  • unpin <id>: Allow memory to be auto-evicted

Use appropriate MCP tools:

  • mcp__memory__hot_cache_status for status
  • mcp__memory__promote to add to hot cache
  • mcp__memory__demote to remove from hot cache
  • mcp__memory__pin to pin
  • mcp__memory__unpin to unpin

When showing status, explain:

  • Items sorted by hot_score (highest first)
  • Pinned items won't be evicted
  • Hit rate and effectiveness metrics
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. 3d ago First seen · 26 lines · 0 tokens per session scan A 70e7c35b1bfb

Subscribe to this mod's changes

hot-cache is a command published in the GitHub repository michael-denyer/memory-mcp (7 stars, last pushed 14d ago), licensed MIT. It adds 6 tokens to every session and 231 once invoked, about $0.0000 per session on Opus 5. 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-08-31.