Collections are lines you already run: a shell line, an @endpoint call, or an @tool call. Collections in the jump list, or Cmd+Shift+B (Ctrl+Shift+B on Windows and Linux), opens the shelf in the terminal column and hides the prompt. Press the shortcut again, or Esc, to return.

The Collections shelf with Billing smoke open: a favourite endpoint line with a capture, an endpoint line, and a shell line
Collections, with three shelves on the left. Favourites stay at the top; each line has Copy, Run, and ×.

Create one

+ New collection asks for a name and one of seven colours (the first seven tab colours). Save or Enter keeps it. Cancel or Esc puts the form away.

Naming a collection and picking a colour
New collection. The name starts as the next free Collection number. The swatches are the first seven tab colours.

Edit, beside the name, opens the name field again. The swatches change the colour straight away.

The shelf holds up to 50 collections and 200 lines. Lines live in collections.json in the app data folder. An older localStorage key ai-terminal-collections is moved there once.

Add a line

Collect on a command in the scrollback, or on an endpoint row or a tool row, adds that line to a named collection. A line can sit in more than one collection. The same line is not stored twice in one collection. A stored line can include text you typed. A masked secret stays masked.

On each line

Each saved line shows its name. When the command differs from that name, the command sits to the right in a lighter tone.

ControlWhat it does
StarFavourite on this shelf. Favourites stay at the top. This star does not change an endpoint or tool favourite
GripDrag to reorder within a group
×Remove the line from this collection only, after Remove? Yes / No. Focus starts on No. Esc, or about 4 seconds, backs out
CopyPut the exact line on the clipboard. The prompt is left as it is
RunRun that line the same way Enter does, then return to the terminal. A line that contains a masked secret is placed in the prompt instead

Delete collection asks once (Delete / Cancel), then removes that shelf. A toast offers Undo.

A line that names an endpoint or tool that no longer exists is flagged.

From the prompt

? at the start of the line opens these saved lines in the prompt block, the same way @ opens commands and / opens skills. It still opens while Ask is on. A line that still starts with ? is not sent to the shell or to the model.

Favourites from every collection come first, then the other lines in shelf order. One row is one saved line. The same line in two collections is two rows, because the star and the colour belong to that membership. Each row shows the name, a star when that line is a favourite, and a pill with the collection name in that collection’s colour (the same seven colours as the shelf). When the command differs from the name, the command is shown under the name.

Collections list in the prompt with no saved lines
The browser build at localhost:1420. ? opens the list in the prompt block. invoke fails here, so the shelf is empty and no colour pill is shown. The installed app lists saved lines, favourites first, each with its collection name in that collection’s colour.

Type to narrow the list. The line name matches first: an exact name, then a name that starts with the text, then a name that contains it. The collection name is the next place that text can match. A favourite stays above the other lines even when one of those matches more closely. Cmd+Shift+F (Ctrl+Shift+F on Windows and Linux) matches letters in order. The line name wins when the scores tie. The matching letters are underlined on the name or on the pill, whichever matched. The fuzzy match turns off when the list closes.

↑ and ↓ move the highlight. The row does not follow the pointer. Enter, or a click, runs the saved line as it is stored. Esc closes the list and keeps what you typed.

Tab edits values that are already written on that line, one flag at a time. An endpoint asks for each --query and --set (including role:=1, which keeps role:= and edits 1). A tool asks for each --parameter that already has a value, including --instruction when it has one. A --query or --set without =, a path parameter such as --id, --body, a flag that is not stored, and a boolean tool flag stay as they were saved. A shell line, or a line with none of these values, is placed in the prompt. Tab does not run it.

The saved value shows as ghost text after the flag. Tab again keeps that saved value and moves to the next flag, even if you have started typing. The first character you type replaces the ghost. Enter keeps what you typed and moves on. When you have typed nothing, Enter keeps the saved value. The flag itself stays put (--query status=, --set role=, --limit ). Shift+Tab goes back one flag. When the value you kept is the saved one, the ghost returns. When it differs, that text stays in the prompt. On the first flag, Shift+Tab returns to the list with the same filter and the same highlight. After the last flag, the finished line stays in the prompt so you can read it. The Enter that finishes the last value does not run the line. The next Enter runs it.

While a value is being edited, the list closes. One line under the prompt reads: Tab keeps the saved value, Enter uses what you type, Shift+Tab previous. ↑ and ↓ do not walk command history during that edit.

?pay

That filter lists saved lines whose name or collection matches pay, favourites first. Enter runs the highlighted line. Tab on an endpoint line such as @endpoint List users --id 5 --query status=open asks only for the value after status=. --id 5 stays as it was saved.