Cachebell
Native sound and desktop reminders before an OpenCode prompt cache window ends
0
0
20.0
生态多维模型
20 小时前
2026-09-11
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-cachebell@0.2.0"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-cachebell@0.2.0"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-cachebellOpenCode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
Get a reminder before your OpenCode prompt cache expires. Continuing the conversation while the cache is available means paying less for repeated input.
CacheBell plays a short sound and shows a desktop notification about two minutes beforehand, while the agent is idle.
Install
Add to plugin in ~/.config/opencode/opencode.json, keeping your other entries:
{
"plugin": ["opencode-cachebell@0.2.0"]
}
Restart OpenCode. It installs the package automatically.
Supports macOS and WSL, with best-effort native Windows and Linux desktop support.
Sounds
Three original sounds are included:
| Sound | Style |
|---|---|
| Pulse (default) | Short, rising electronic signal |
| Chime | Two warm bell notes |
| Knock | Soft, woody double-tap |
To choose a sound, replace the plugin entry with:
{
"plugin": [["opencode-cachebell@0.2.0", { "sound": "chime" }]]
}
Use "pulse", "chime", "knock", or false for silence. Restart after changes.
Timing
Defaults: 5 minutes for Claude, 30 minutes for GPT-5.6+. The clock starts with the model request, not when its answer finishes. Other models and custom cache durations need an override. These are estimates, not guaranteed cache hits.
Configuration and troubleshooting | npm | MIT
同类生态推荐
Smart Notify
opencode-smart-notify
Desktop notifications for OpenCode that stay quiet when auto-approve handles the request
Notification
opencode-notification
OpenCode plugin for simple system notifications when permissions are needed, generation completes, or errors occur
Sfx
opencode-sfx
OpenCode plugin that plays Warcraft-style sound effects for session events