GitHub 星标
0
月装机量
46
近 7 天 8
综合评分SCORE
28.3
生态多维模型
最近提交
1 个月前
2026-07-09
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@npv12/opencode-recap@0.3.0"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@npv12/opencode-recap@0.3.0"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D @npv12/opencode-recapopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
README.md
查看原始文件→OpenCode TUI sidebar plugin that generates a short Markdown session recap on demand.
Features
- 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
Installation
opencode plugin add @npv12/opencode-recap
Or add to your opencode.json:
{
"plugins": {
"@npv12/opencode-recap": {}
}
}
Model Selection
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"
}
}
}
Attribution
This plugin is adapted from streetturtle's recap plugin in the opencode-better-sidebar repository.
License
MIT