跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    中文English
    npv12

    Recap

    v0.3.0界面与主题
    @npv12/opencode-recap

    OpenCode TUI sidebar plugin for session recap generation

    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"]
    }

    opencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。

    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