Filters

Each free-text word has to appear as typed in the name, title, session id, directory, branch, model, or harness. Letters with gaps do not match, and the transcript is not searched. With no sort: token, a match in the name ranks above a match in the path. sort:recent keeps the newest sessions first. Quote a phrase to keep it together: "auth bug". Tokens and free text combine. A leading ~ expands to the home directory.

ai9s search 'harness:claude dir:my-repo date:<7d "auth bug"'
TokenMeaning
harness:claudeHarness id, or a substring of the id or the program name. harness:clau matches while you type, and harness:build matches Grok Build. Also agent: and a:. An empty harness: is ignored.
dir:repoWorking directory contains the text. Also cwd: and directory:. dir:~/repo expands ~.
branch:mainGit branch contains the text.
model:sonnetModel name contains the text.
date:<7dUpdated in the last 7 days. Units: m, h, d, w.
date:>30dUpdated more than 30 days ago.
date:2026-03-02That calendar day. date:2026-03 is the whole month.
mark:yesBookmarked sessions. mark:no hides them. Also bookmark:, fav:, and favorite:. In the UI, 6 and :bookmarks open that list.
sort:messagesrecent (default), oldest, messages, title, or cost. title follows the NAME column. cost follows the recorded USD amount.

In the UI

A search that matches a subagent keeps that parent on screen and opens that branch. / edits the search. The list updates as you type. Enter on a harness, directory, branch, or model keeps that choice while the search stays inside it. Up and down move through the matches while the field stays focused. ⌘↑ and ⌘↓ move a page of rows. ⌘← and ⌘→ move a page of columns. Plain left and right stay in the field. Esc from describe returns to the list and leaves the search. Esc on sessions inside a group clears the search first and stays there. A second Esc returns to that group. On a group, or on the sessions list itself, Esc clears the text and stays there. Esc in the manual or command mode leaves the filter alone. : opens command mode, where the same tokens are listed. Up and down select one, and Enter writes it into the filter. Setting a token replaces the previous value of that token. A value with a space is quoted.

The header shows the token names as a hint: harness: dir: branch: model: date:<7d sort:recent 6 :bookmarks.

Opening ai9s in a project directory lists sessions whose working directory is that directory or a subdirectory. Opening it in your home directory lists every session. A dir: token narrows the list further. Esc clears the token and leaves the starting directory in place. ai9s search still searches the whole index.

Metadata

The preview and ai9s show print a context line and a token line when the session file has them: latest prompt size, context window, input, output, cache read, cache write, reasoning tokens, cost, premium requests, and reasoning effort. The CTX column is the latest context size, or used/window when both are known. The COST column is the recorded USD amount, or a dash when the file has none. A star in the first column is a bookmark.

Claude records per-turn usage and cost. Codex records token totals and, when present, the context window. Copilot CLI records the latest prompt size, cache, reasoning effort, and premium requests. OpenCode records session token totals, cost, and the latest prompt size. Grok records the latest context and window, token totals, cache, reasoning, cost, and reasoning effort. Hermes records token totals, cost, and the latest prompt size, and does not record a window. Cursor records the latest context and window when composer data has them, and does not record a session token total. Antigravity records the latest context and window and sums per-generation input, output, cache read, and reasoning. OpenClaw records the context window separately from the estimated prompt size, and an estimated cost when the file has one. Goose and Cline record token totals and cost. Gemini, Junie, Jules, Aider, Kiro, and Mistral leave the token lines empty. Kiro's database does not store those numbers. Qwen records the latest prompt size, the context window, and the sum of assistant output tokens. MiniMax records token totals and cost. Kimi records the latest measured token count as context and does not record a session total. Pi and OMP record per-turn usage and cost. Kilo records session token totals, cost, and the latest prompt size, the same way OpenCode does. Qoder records per-turn usage and does not record a USD cost. Droid records token totals from the session settings and does not record a USD cost. Maki records the latest token totals and cost from the session meta record. Devin records usage when a message includes it. Letta, MastraCode, and Amp leave the token lines empty.