A TUI plugin for OpenCode that displays a live countdown timer until the prompt-cache expires, letting you know when your cache is hot, warning, cold, or busy-cold. It provides one-click buttons to refresh the cache (keeps it hot) or fork a new session (when cache is cold), reducing costly cold-write operations. Version 1.2.0, actively maintained. Differentiators: pre-emptive cache saving, smart cost-based button logic, minimal configuration.
npm install cache-timerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure and enable the cache-timer plugin in an OpenCode config file, showing all options with defaults.
Update your config: replace `cacheTimerPlugin` with `cacheTimerPlugin({ ... })`.Ensure you're running OpenCode with TUI enabled (opencode --tui).
Set refreshMargin to 0 (default) and rely on manual refresh to avoid accidental cold writes.
Leave summarizeContext disabled unless you have tested its impact on your workflows.
Ensure the model from the source session is still supported before forking.
Run `npm install cache-timer --save-dev` in your OpenCode plugin directory.
Use `import cacheTimerPlugin from 'cache-timer'` in an ESM context.
Start OpenCode with `opencode --tui` or without the --cli flag.