claude-hub 支持显示缓存倒计时(半自动)

claude-hub 的仓库已经合并了该功能 github.com/jarrodwatts/claude-hud feat(cache): add prompt cache countdown (#477) main ← codex/issue-400-prompt-cache-countdown ...
claude-hub 支持显示缓存倒计时(半自动)
claude-hub 支持显示缓存倒计时(半自动)

claude-hub 的仓库已经合并了该功能

github.com/jarrodwatts/claude-hud feat(cache): add prompt cache countdown (#477) maincodex/issue-400-prompt-cache-countdown 已合并 01:55PM - 20 Apr 26 UTC jarrodwatts +333 -9

## Summary - add an opt-in prompt cache countdown element with a configurable TTL - record the last assistant response timestamp from the transcript cache path - render the countdown in both expanded and compact layouts without changing the default HUD ## Testing - npm test Closes #400

Readme 也更新了介绍文字,但作者迟迟不发布新版,所以手动更新:

  1. ~\.claude\plugins\marketplaces\claude-hud执行 git pull
  2. ~\.claude\plugins\claude-hud\config.jsondisplay中增加
    showSessionTokens": true
    
    默认 ttl 是 5min,如果是 max 可以修改 display.promptCacheTtlSeconds=3600
  3. cc 中执行 /reload-plugins

因为 hub 是事件驱动的,倒计时不会自动数秒,需要手动输入/触发刷新。
效果如下:

image

似乎稍稍缓解了下 cache 焦虑 :laughing:
听说 deepseek 的 cache ttl 长达两小时 :distorted_face:

2 个帖子 - 2 位参与者

阅读完整话题

来源: linux.do查看原文