Session Slim
OpenCode TUI plugin to slim a session: check which Q&A turns to keep, then delete the rest (V1) or revert them from the model context (V2 — the platform reverts a contiguous tail and never touches files)
0
774
近 7 天 774
37.7
生态多维模型
4 天前
2026-10-16
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-session-slim@2.0.0"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-session-slim@2.0.0"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-session-slimOpenCode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
该插件暂未提供 README 文档
缺少文档通常代表该项目仍在开发初期。建议前往其源码仓库查看详细实现。
同类生态推荐
Session Diff
opencode-session-diff
OpenCode sidebar panel listing the current session's file changes (±line counts)
Quotes Tui
opencode-quotes-tui
OpenCode TUI plugin that replaces the home screen tips with a random quote
Session Recap
@kitlangton/opencode-session-recap
Transient session recaps for the OpenCode V2 TUI