Using a page

Using a Leaf page

An agent hands the user a page about its work. The user reads it, comments on exact passages, makes the choices it asks for, and follows what the agent is doing, by keyboard, pointer or touch.

This guide is for the person working on a page: the floating panel, On Me, threads, and the keys and touch routes. How it works explains the mechanism behind it, and Extending covers writing pages and packages. Leaf is experimental software. Browser support gaps lists what is known to differ in Chrome, Edge, Firefox and Safari and their mobile versions.

In this topic

Panel, rail and thread cards

Leaf adds three quiet surfaces around the authored page without moving its content: the floating panel at the foot (comment field plus the leaf button with your On Me count), the rail of comment markers in the right margin, and thread cards beside them. Press . to fold the panel to its leaf, or g H to hide markers and highlights.

Rail Comment field
Panel and rail The panel's row floats over the foot of the window and takes no room from the page. On a column page, the rail sits in the margin beside the column and takes no width from it.
Threads, On or All pages Comment field
A view above the row Threads, the On view and All pages open one at a time above the panel's row. The page keeps its width underneath.
Thread card Comment field
A thread card It opens in the margin and overlaps the edge of the text only where the margin is too narrow. Nothing below it moves.
Which tab the leaf opens, unread dots, and rail breakpoints

The leaf and its view. Coloured by agent state, the leaf carries a dot for unread replies (green when a thread waits on you, blue otherwise). Pressing it opens the On view above the row: on the menu if there is an unseen error or active mode, else On Me when items wait on you, else Threads when there is news or a draft, otherwise the menu. Escape or a click on the page closes it.

Rail and pins. The right rail appears around 960px on a column page and 1920px on a sidebar page. On narrower windows and inside scrolling panes, markers become pins placed clear of text; thread cards overlap the text edge only when the margin is narrower than the card. See Phones and touch screens for touch behavior.

What the panel's line says

While empty, the comment field shows one status line at a time—the first matching item below.

Reading Example
Page-level error (until next input) Couldn't load v3
Destination while caret is in the field Comment…, Reply…
Selected words ready to comment (c) “the queue fills”
Temporary notice, empty Go-to filter, or walk position TimingStands for 4 seconds—and until the next input for an undo or a notice answering your own action with a press. Updated to v4, No visible threads, Thread 2 of 5
Page status (and version when not on latest) running the browser suite, v1 of 2 · running the browser suite
Open threads, active modes, and end-of-line shortcuts

Open thread. The field becomes that thread’s reply box, showing whose turn it is beside the leaf and Reply… (or Reopen on a resolved thread) with its shortcut when available; touchscreens show Reply… or Reply to reopen… inside the field.

Active mode. Modes such as Draw take over the row with their name and a ✕ exit. esc exits a mode entered from a thread before closing the thread (and closes a thread opened inside a mode first).

End-of-line action. Offers the single timely shortcut when its key applies: Close esc in a mode, Open latest on an older version, Next On Me m, Next thread t after Resolve, Show changes g V v, or Comment… c. Hidden while typing or on touchscreens.

Voice, truncation, folded panel, and screen readers

Middle dots join separate facts (v1 of 2 · Thread 2 of 5); dashes attach detail. Words the agent wrote sit upright; Leaf’s own observations sit in italic. Hovering or holding a finger on a truncated line shows it whole; the leaf’s menu holds the full sentence; a folded panel shows notices beside the leaf; screen readers still hear notices while you type.

On Me

The leaf at the end of the panel's row counts what waits on the user: each choice a widget asks them to make, each question the agent asks them in a thread, and each update of theirs that failed to send. Pressing the leaf, or o, opens the list, and ← / → turn to the agent's list, Threads and the menu beside it; m walks the items in the order the list shows them, landing on each where it is answered.

The user answers an item where it asks: with the widget's own pick, or with a reply in its thread, in words or a reaction such as 👍. Leaf adds no control of its own to end one. The tab named for the agent holds what it still owes: answers to the user's updates, and its open to-dos. Done holds each list's finished items. The On lists in How it works says exactly what belongs on each.

Notices

Notices stand in the panel’s line for four seconds (or until your next input for an undo or action response) and announce to screen readers; simultaneous news combines into one line.

Notice When
I shortened the lede., Edited: …, 3 replies in 2 threads Unread agent message arrives or is edited Announced onlyShown on screen by the leaf’s dot and margin marker rather than replacing the panel’s status line. Opening a page announces only unread agent messages.
New On Me, 2 new On Me Something new waits on you (a thread question or added choice).
Not answered The harness reports that a response failed.
Updated to v4 A new revision replaces the page in place.
Moved to Done, Undone: Moved to Done Your gesture was accepted or undone Announced onlyAcceptance is announced only because the widget already draws its result; undo also shows in the panel line.
In this topic

Comments and replies

Select a passage, then use the comment control or press c to write a comment. The thread keeps that passage as its anchor. Its marker opens the conversation beside the passage, where the agent's reply and the reply box appear. To comment on a whole element, such as a table or figure, ⌥-click (Alt-click) it or press s and choose it; w starts Draw mode, for drawing on the page.

The Threads tab of Leaf's On view, which the leaf opens, lists the threads above the panel's row. Select a thread to open it: a thread about a passage opens in its card beside the passage, and a thread about the whole page in the panel, where you read its messages and reply in the panel's comment field. A card's Open in panel (p) moves its thread into the panel, and the threads you open after it, by t, Threads or a press on their words, open there too, until the panel's Show on page (p) puts threads back beside their passages. A walk or a row of Threads brings the thread's passage into view above the panel. The choice lasts while the tab stays open. On a window too narrow for cards, every thread opens in the panel.

A reaction is a message of one emoji, put on a passage or an agent's reply. It reaches the agent as words do; the agent acts on a reaction that asks for a change, asks what you meant where it can't tell, and settles a 👍 on its answer quietly with no reply. The agent can answer with an emoji too.

Try a thread

This fictional exchange shows an agent's reply after revising the importer policy. Open the marker beside the sentence to read the exchange, or open Threads in the sample's top row. Select the sentence to try a comment. The sample has its own temporary log; no agent answers its practice comments. Reset restores the fictional exchange.

What a thread shows

A thread reads the same everywhere it appears—Threads, margin, Page Map, On Me, and activity feeds—so it never shows conflicting names or statuses.

Reading Where it shows
Name FallbackThread title, else opening message words, else Drawing. Threads, On Me, margin, Page Map, activity feed
Status LabelsYour turn, On it, Still to do, a to-do’s wait (Waiting on CI), Waiting, or the latest update stage. Threads and panel card header; margin and Page Map beside name
Delivery stage StagesQueued for Claude, Delivered, On it, Not answered, or Gone quiet. The message itself; margin and Page Map entries
Unread dot & count ColorsGreen when an unread thread waits on you; blue otherwise. Dots on leaf, Threads, margin, and thread; counts on summary lists
Unsent draft Its reply or comment box, wherever the thread is open

How a thread ends

Action How it works
Resolve & reopen Press r (or Resolve thread) to move a thread to Resolved and clear its marker; press R (or ⌘Z immediately) to reopen it.
Undo & delete Outside a text box, ⌘Z (Ctrl+Z off Mac) withdraws your latest action or message; click a reaction again to remove it.
Unsent drafts Saved per passage or thread across tabs and devices, shown as grey margin entries and under Threads’ Drafts.
When an agent reply reopens a resolved thread

Agents resolve threads only when asked or when review cannot change the outcome (reading “Resolved by agent”). Any new user message reopens a resolved thread, and an agent reply reopens a thread the agent resolved. On a thread you resolved, an agent reply stays resolved unless it asks a question or the agent explicitly reopens it. Reactions, progress lines, and failure notices never reopen a thread.

Deleting answered or older messages, and orphaned drafts

Answered or older messages. Undoing a message that has already been answered leaves a Deleted stub in place; to remove an older message, edit it to empty.

Orphaned and offline drafts. While drafts wait with no other news, the leaf wears a faint grey dot. If a new revision removes a draft’s passage, Resume writing (g i) opens it in the page comment box. Words typed offline stay in their tab until the server answers.

In this topic

Phones and touch screens

Every page command has a direct touch gesture or control in the leaf’s menu (narrow windows shows how page regions stack).

Task Touch route
Panel & tools Tap the leaf for the menuIncludes Search page and Page Map (Navigate), Undo, and Select mode, Draw mode, Design mode, and Hide annotations (Annotations)., On Me, and Threads; hold a finger on the status field to read truncated text whole.
Comment on words Select words to quote them in the panel, then tap the field.
Comment on an element Leaf’s menu → Annotations → Select mode, then tap the table, figure, or widget.
Threads & boards Tap a pin on a block to open its thread; on boards ≤ 640px wide, use each card’s Move to row instead of dragging.