---
title: "做了一个让 prompt cache 整天保持温热的 Claude Code mod。缓存过期前 5 分钟提醒聊天，并在 status line 显示倒计时。"
url: "https://claudemods.dev/zh-cn/builds/built-a-claude-code-mod-that-keeps-my-prompt-cache-warm-thro-8b1469"
source: "https://x.com/i/status/2106788388938334403"
source_type: "x"
author: "Robert Lora"
author_handle: "RJLora88"
stars: 0
category: "用量与成本"
categories: ["cost"]
tags: ["claude-code", "cost-optimization", "hooks", "prompt-cache", "status-line"]
permission_level: null
scan_complete: false
added: "2026-10-05T00:52:59.315Z"
updated: "2026-10-04T16:47:48.000Z"
locale: "zh-cn"
content_locale: "zh-cn"
---

# 做了一个让 prompt cache 整天保持温热的 Claude Code mod。缓存过期前 5 分钟提醒聊天，并在 status line 显示倒计时。

做了一个让 prompt cache 整天保持温热的 Claude Code mod。缓存过期前 5 分钟提醒聊天，并在 status line 显示倒计时。只在工作时间运行，并限制提醒次数。

## Description

做了一个让 prompt cache 整天保持温热的 Claude Code mod。缓存过期前 5 分钟提醒聊天，并在 status line 显示倒计时。它只在工作时间运行，并限制提醒次数。

## Original README

Built a Claude Code mod that keeps my prompt cache warm through the day. Pings chats 5 min before the 1h cache expires and shows a countdown in the status line. Does it through work hours and a limited number of pings. 

Ran it on a week of my logs, and through all of my cold rebuilds and approximations of my weekly usage against API prices, the mod saves... ~1.3% lol

Anyone else experimenting with this though?
