External Tabs
OpenCode TUI plugin that opens sessions created by other clients, such as the SDK or tools, as background tabs.
21
近 30 天 +12
21
近 7 天 21
46.1
生态多维模型
1 天前
2026-10-19
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-external-tabs@0.2.0"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-external-tabs@0.2.0"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-external-tabsOpenCode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
My personal plugins for OpenCode V2 (beta).
Packages
opencode-postgres: adds a Postgres Query tool for running SQL against a configured Postgres database.opencode-mysql: adds a MySQL Query tool for running SQL against a configured MySQL 8+ database.opencode-blindfold: lets agents use secrets you provide without seeing their values.opencode-exit-plan: switches from the plan mode to a build agent when you say phrases like "go ahead".opencode-hide-variants: hides unwanted model variants globally or per model.opencode-keep-going: sends a continue prompt when you press Enter on an empty input.opencode-quick-links: searches and opens links from the active conversation.opencode-pr-link: opens the current session's pull request in the browser.opencode-quick-quote: quotes paragraphs from the last reply with inline autocomplete.opencode-external-tabs: opens sessions created by other clients as background tabs.opencode-bubble-tabs: moves tabs to the front when a session finishes or needs your input.opencode-idle-compaction: compacts large idle sessions before their prompt cache expires.opencode-auto-model: adds an auto model that picks a model and variant on each session's first prompt.opencode-agent-meetup: lets your agent message a coworker's agent over an OpenTunnel link.opencode-fallback-model: switches a session to fallback models when its model fails.opencode-supervisor: has a supervisor model stop the run when the agent breaks your instructions.
Development
Use Bun 1.4.0.
bun install
bun run build
bun run typecheck
bun run test
bun run test:packages
bun run smoke
bun run pack:dry-run
Tests live in each package's test/*.test.ts files and use bun:test. Build first;
tests and their typechecks use the package's compiled exports. bun run test:packages runs
the same suites against tarballs installed in an isolated directory.
Run scripts for one plugin with --filter:
bun run --filter opencode-postgres build
bun run --filter opencode-postgres typecheck
bun run --filter opencode-postgres test
Releases use Changesets and npm trusted publishing. The release workflow installs Node.js and the npm CLI for publishing; dependency installation and tests use Bun.
Start local databases for the Postgres and MySQL plugins:
docker compose up -d --wait
The local Postgres wrapper connects on port 5432. The local MySQL wrapper connects on port 3307 so it can coexist with other MySQL services using the default port.
License
MIT
同类生态推荐
Bubble Tabs
opencode-bubble-tabs
OpenCode TUI plugin that moves session tabs to the front when they finish or need your input, like iMessage.
Session Elapsed
opencode-session-elapsed
OpenCode TUI plugin that shows session elapsed, cumulative work, and response timers in the prompt line.
2 Todo
opencode2-todo
Restore the V2-removed todowrite tool and a TUI sidebar list for OpenCode sessions