Repository navigation
v0.1.0
Initial release of opencode-scratchpad — a per-project scratchpad TUI plugin for OpenCode.
Install
npm install opencode-scratchpadRegister it in your OpenCode config:
{ "plugins": ["opencode-scratchpad"] }Features
- One private scratchpad per project, stored outside your repo at
$OPENCODE_DATA_DIR/scratchpad/<projectKey>.md. /scratch <text>appends a line and shows a confirmation toast./scratchopens a modal editor (Enteradds a line,Escsaves and closes).- A session sidebar row shows a collapsible, read-only preview that refreshes when the editor saves.
Compatibility
Verified against OpenCode v2.0.27; pins @opencode/plugin@2.0.27. The V2 TUI plugin API is beta — pin your versions.
License
MIT