OpenCode TUI sidebar plugin that generates a short Markdown session recap on demand.
- Auto-generates a recap every 5 messages
- Recap is discarded after 5 more messages (10-message cycle)
- Click Recap in the sidebar to manually trigger generation
- Stays in the sidebar (does not pollute the chat thread)
- Uses the most recent 10 messages as recap context
- Creates a short-lived throwaway session for generation
opencode plugin add @npv12/opencode-recapOr add to your opencode.json:
{
"plugins": {
"@npv12/opencode-recap": {}
}
}By default, recap uses opencode/deepseek-v4-flash-free.
You can override it by setting both providerID and modelID:
{
"plugins": {
"@npv12/opencode-recap": {
"providerID": "github-copilot",
"modelID": "gemini-3-flash-preview"
}
}
}This plugin is adapted from streetturtle's recap plugin in the opencode-better-sidebar repository.
MIT