opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat(tui): session scratchpad `<leader>w` to store notes, todos, system prompt extensions etc...

Open spoons-and-mirrors opened this issue 5 months ago • 2 comments

Summary

This feature allows users to maintain session-specific notes, todos, or system prompt extensions that persist in the session and are visible to the agent at all time. It improves workflow organization and enables richer, context-aware agent interactions.

Features

  • Integrates a modal scratchpad editor in the TUI, accessible via a new keybinding (<leader>w).
  • Scratchpad content is shared with the agent as a system message for each session.
image

spoons-and-mirrors avatar Aug 16 '25 15:08 spoons-and-mirrors

interesting idea, need to think about this a bit; visually, is it easy to remove the indentation and second border?

adamdotdevin avatar Aug 18 '25 14:08 adamdotdevin

Is this what you have in mind @adamdotdevin ?

image

spoons-and-mirrors avatar Aug 18 '25 15:08 spoons-and-mirrors