跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    hamidi-dev

    Cachebell

    opencode-cachebell·v0.2.0·通知与集成

    Native sound and desktop reminders before an OpenCode prompt cache window ends

    GitHub 星标

    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"]
    }

    OpenCode 启动时会通过内嵌运行时自动加载 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

    同类生态推荐