opencode-cache-coach 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +11 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -13,7 +13,10 @@ The cache indicator and `/cache` details show where you stand. Tips and expiry m
13
13
  decide what to do next, such as compacting while the cache is warm or using a cheaper model when
14
14
  the context must be written again.
15
15
 
16
- Requires OpenCode 2.2 or later.
16
+ ![Cache Coach expiry notice estimating the cost of rewriting a large context and suggesting cheaper compaction.](https://raw.githubusercontent.com/pedropombeiro/opencode-plugins/main/packages/cache-coach/images/cache-expiry-notice.png)
17
+
18
+ Requires OpenCode 2.2 or later. See the [source repository](https://github.com/pedropombeiro/opencode-plugins/tree/main/packages/cache-coach)
19
+ for local builds and the [MIT license](https://github.com/pedropombeiro/opencode-plugins/blob/main/LICENSE).
17
20
 
18
21
  ## Installation
19
22
 
@@ -37,6 +40,8 @@ messages out of model requests.
37
40
 
38
41
  The prompt footer shows the cache state of the session on screen:
39
42
 
43
+ ![Animated Cache Coach footer showing the cache countdown and state indicators.](https://raw.githubusercontent.com/pedropombeiro/opencode-plugins/main/packages/cache-coach/images/cache-countdown.gif)
44
+
40
45
  | Footer | Meaning |
41
46
  | -------------------------------------- | ------------------------------------------------------------------------ |
42
47
  | `● cache 3:42` | Warm. The next message reads the context from the cache. |
@@ -81,6 +86,11 @@ A compaction after the cache expires writes the whole context again, so compacti
81
86
  model saves most of that cost. Set `compactionModel` to name the model. Without it, the message
82
87
  only says that a cheaper model costs less.
83
88
 
89
+ This recording shows the expiry advice and footer as the user switches to GPT-6.1 Sol and
90
+ starts compaction. The plugin suggests the change; it doesn't switch models or compact automatically.
91
+
92
+ ![Animated expiry notice and footer during a user-initiated model switch and compaction.](https://raw.githubusercontent.com/pedropombeiro/opencode-plugins/main/packages/cache-coach/images/compaction.gif)
93
+
84
94
  The message appears once each time the session goes idle, in top-level sessions whose last request
85
95
  the TUI saw finish, and only when the next message writes at least `minTokens` and costs at least
86
96
  `minCost`. The server part removes these messages from every model request, so the model never
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-cache-coach",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "OpenCode plugin that shows whether a session's prompt cache is still warm and suggests cheaper habits when a costly pattern shows up",
5
5
  "author": {
6
6
  "name": "Pedro Pombeiro",