diff options
| author | user <user@clank> | 2026-08-12 17:06:29 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-08-12 17:06:29 +0200 |
| commit | 82df0861b06529e881209e90a039dd86d1d7db20 (patch) | |
| tree | f8294a55d902748548902b4be069ece0c5ba6eee /README.md | |
| parent | sl0p: per-pane workspace hints (purpose=) (diff) | |
| download | sl0ppij-82df0861b06529e881209e90a039dd86d1d7db20.tar.gz sl0ppij-82df0861b06529e881209e90a039dd86d1d7db20.tar.xz sl0ppij-82df0861b06529e881209e90a039dd86d1d7db20.zip | |
sl0p: document workspace hints for consumers
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -332,6 +332,22 @@ printf '\033]5577;1;clear\033\\' # remove bo ╰ awaiting review ──────────────────────────[Approve]─[Reject]╯ ``` +### Workspace hints + +A pane can carry an opaque `purpose` an agent can discover, so a project's layout +also says what each pane is *for*: + +```kdl +pane name="server" purpose="dev-server" command="npm" { args "run" "dev"; } +``` + +It shows up in `zellij action list-panes --json`, survives resurrection, and can +also be declared in-band by the program in the pane +(`printf '\033]5577;1;purpose;agent:build\033\\'`) — though a layout-declared +purpose always wins, since in-band data is whatever the pane happens to be +showing. Zellij never interprets a purpose; the consuming agent owns the +vocabulary. See `sl0p/workspace-hints-handover.md`. + Buttons render as `[Approve]` by default, or `1:Approve` with `ui { pane_frames { status_bar_button_style "indexed" } }` — useful when something else binds those numbers to the same actions. |
