opencode-worktrunk-workspaces
v0.1.0
Published
Worktrunk-backed workspace adaptor for OpenCode
Downloads
123
Maintainers
Readme
opencode-worktrunk-workspaces
An OpenCode plugin that adds a Worktrunk-backed workspace adaptor.
It registers a new workspace type:
- adaptor type:
worktrunk - UI label:
wt
Under the hood it uses:
wt switch --create --format jsonwt remove --format jsonwt list --format json
What this is for
Use this plugin if you want OpenCode's experimental workspaces feature to create and manage workspaces through Worktrunk instead of only the built-in git worktree flow.
Requirements
- OpenCode with experimental workspaces enabled
wt/ Worktrunk installed and available onPATH
Installation
Install the package from npm:
bun add opencode-worktrunk-workspacesThen add it to your OpenCode config:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-worktrunk-workspaces"]
}Usage
Start OpenCode with workspaces enabled:
OPENCODE_EXPERIMENTAL_WORKSPACES=true opencodeIn TUI:
- Open
/sessions - Press
Ctrl+W - Select
wt
OpenCode should then create the workspace through Worktrunk.
Notes
- The registered workspace type is
worktrunk - The visible label is
wt - The plugin resolves the created workspace directory by asking Worktrunk for JSON output
Development
bun install
bun run typecheck
bun run build