11
近 30 天 +5
63
近 7 天 15
44.4
生态多维模型
16 天前
2026-09-18
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@kitlangton/opencode-session-recap@0.1.2"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@kitlangton/opencode-session-recap@0.1.2"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D @kitlangton/opencode-session-recapOpenCode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
Plugins for the OpenCode V2 TUI.
Plugins
@kitlangton/opencode-pr-tracker
Shows pull requests created by a session or its subagents in the sidebar, with live GitHub and CI state. The current branch's pull request also appears in the prompt footer.
{
"plugins": ["@kitlangton/opencode-pr-tracker"]
}
@kitlangton/opencode-session-recap
Shows a one-sentence recap of your session above the composer, so you can remember where you left off after stepping away.
/recapor the command palette generates one on demand.- After three user turns, leaving the terminal unfocused for three minutes generates one automatically.
- New input dismisses it. Generation is read-only and never touches session history.
// opencode.jsonc
{
"plugins": ["@kitlangton/opencode-session-recap"],
}
Release
Add a changeset, push to main, then merge the release PR that CI opens:
bun run changeset
git push
Publishing runs in GitHub Actions through npm trusted publishing (OIDC). No tokens, no OTP.
Local development
Point the TUI plugin list at a package's source file to keep OpenCode hot reload:
{
"plugins": [
"/path/to/opencode-plugins/packages/pr-tracker/src/index.tsx",
"/path/to/opencode-plugins/packages/session-recap/src/tui.tsx"
]
}
Published packages use transformed bundles from dist; local development
continues to use src directly.
同类生态推荐
Quotes Tui
opencode-quotes-tui
OpenCode TUI plugin that replaces the home screen tips with a random quote
Aside
opencode-aside
Claude Code's /btw side chat for opencode - ask a one-shot question in an overlay, with no tools and nothing added to the transcript
Smart Questions
opencode-smart-questions
Language-neutral auto-selection of recommended OpenCode question options with user-interaction cancellation and separate V1/V2 adapters