@jacob-z/opencode-session-recap
v2.1.1
Published
OpenCode TUI plugin showing a session recap in the sidebar
Downloads
568
Maintainers
Readme
@jacob-z/opencode-session-recap
OpenCode TUI plugin — shows a concise session recap (Done / Next) in the sidebar.
Features
- Listens to
session.idle, debounces (default 3000 ms), generates a recap via a throwaway LLM session. - Message-hash cache to avoid duplicate calls.
- Reuses the current session's latest assistant model by default; configurable
providerID+modelID. - Chinese wenyan-full concise output by default (
done/next, ≤ 30 chars each). - Manual
↻regenerate button in the panel header. mock: trueoption for offline UI testing.
Install
opencode plugin @jacob-z/opencode-session-recapConfig (opencode.json)
{
"plugin": [
["@jacob-z/opencode-session-recap", {
"enabled": true,
"debounceMs": 3000,
"contextMessages": 10
}]
]
}Options
| option | type | default | description |
| ----------------- | ------- | ------- | -------------------------------------------------- |
| enabled | boolean | true | Enable the plugin. |
| providerID | string | — | Override LLM provider (must pair with modelID). |
| modelID | string | — | Override LLM model (must pair with providerID). |
| debounceMs | number | 3000 | Idle debounce before generating. |
| contextMessages | number | 10 | Number of recent messages used as context. |
| mock | boolean | false | Use a mock generator (no LLM call) for UI testing. |
License
MIT
