opencode-new-thread
v1.1.1
Published
OpenCode plugin that adds a new_thread tool for forking parallel sessions
Maintainers
Readme
opencode-new-thread
An opencode plugin that lets the AI fork off parallel sessions from a conversation. Registers a new_thread tool that creates a new session via the SDK client, sends a prompt, inherits the model from the current session, and supports a custom working directory.
Install
bun install -g opencode-new-thread
opencode-new-threadUsage
Once loaded, the AI can call new_thread with:
| Parameter | Type | Required | Description |
|-------------|--------|----------|-------------|
| title | string | no | Label for the new thread |
| prompt | string | yes | Initial prompt to send |
| model | string | no | Model override (e.g. "opencode/deepseek-v4-flash-free") |
| directory | string | no | Working directory for the new thread |
Requirements
License
Apache 2.0, see LICENSE
