Standard Interface
Single-page view · as markdown
The Standard Interface
CAF / Standard Interface
CAF SI, the Standard Interface, is how a chat with an agent should look and behave in any app built on CAF. CAF itself draws nothing: an app draws its chats from what CAF tells its viewers. These pages say what to draw, so every CAF app draws the same thing, and nobody has to invent it.
They're written to be followed exactly, by a person or by an agent building a
UI. To have an agent build a chat UI on CAF, point it at this section: every
page here is also published as plain Markdown, and the section as a whole is
one Markdown page too, which the site's llms.txt lists.
What it covers #
CAF SI standardises a single chat, and says nothing about how an app arranges its chats.
The test for any part is whether a user moving between two CAF apps would be confused or misled if it differed. If they would, it's standard. Everything inside a chat passes that test: what the agent is doing, what's waiting on the user, what went wrong and what to do about it.
How an app finds and arranges its chats doesn't. Every app already has its own way of navigating its things: a sidebar, tabs, clackatoo's panes and workspaces. Guidance there would only push an app into growing a second way, which is exactly the awkward integration CAF SI exists to prevent.
How firm each part is #
Every part on these pages is marked with how firm it is:
- Required. Everything inside a chat; how a chat is identified wherever it appears; the words and actions for what happens to a chat; the colour roles. Copy these.
- Suggested. Where the app should choose, such as how the usage page is laid out. Take the way shown, or another the page names; don't invent one.
- Up to the app. The app's own frame: where chats are listed, panes, windows, workspaces, projects (CAF's shelves), search, keyboard shortcuts beyond the composer's, empty lists. Use what the app already has.
- Later. Drawn for something CAF doesn't provide yet, so the design is ready when it does. Don't build it until CAF does.
Nothing is enforced: an app that ignores CAF SI still works. But an app that follows it looks and behaves like every other CAF app, which is the point.
The pages #
- The composer: where the user writes. Its settings menu, the context ring, waiting messages, and where questions and the agent banner attach.
- The transcript: turns as a summary line that opens into a timeline; failures and their remedies, questions, CAF's notes, a chat that lost its agent, and the agent's own history.
- Agents: installing and signing in; the agent banner and the agents panel.
- A chat's identity and lifecycle: how a chat is named and marked wherever it appears; restoring, archiving, deleting and starting chats.
- Usage: context, cost and account limits in the chat, and the usage page.
Each page links to its mock-up, live: an HTML page drawing every state, in dark and light, which you can click through. The pictures on these pages are taken from those mock-ups, in the dark theme. Where the words on a page and a picture differ, the words are right.
Colour roles #
Required. The mock-ups use clackatoo's colours. An app may use its own palette, but keeps these roles, and uses each colour only for its role:
| Role | Means | Used for |
|---|---|---|
| Accent | Act here, or happening now. | For example: the lit Send button, the caret, primary buttons, what's chosen (a tick's row, a lit switch, the slider, a filter's mark, a favourite's star, the focused search box), the edge of something waiting on the user (a question, the agent banner), and what's running now (a spinner, the Working mark). Kept to those kinds of thing, so it still means "here". |
| Warning | It went wrong, or can't go on. | Failed turns and steps; refusals, a step refused included; restores that can't happen; a limit that's out; context past 95%; an action that can't be undone, such as Delete. |
| Caution | Held, getting close, or needs the user soon. | A setting change waiting for the turn to end; context or limits filling up; a chat that lost its agent; a note that the agent remembers nothing; extra usage in use; the mark on an agent that still needs installing or signing in, in a list or the agents panel (the agent banner itself, waiting on the user, has its own tone). |
| Link | Something to follow. | Links that open a page. Never something to act on: Copy link and Learn them now are buttons. |
| CAF's voice | CAF is speaking. | The CAF badge on what CAF says in the transcript (its notes, failures, and questions it asks itself), so it never reads as the agent. A box that says what to do next, such as a lost chat's, is the app's own frame and carries none. |
| Muted | Matters less. | Times, counts, the agent's thinking, steps once they're done or cancelled (the user chose to stop them, so nothing went wrong), the agent's own history. |
Anything else is calm: the ordinary text colour, or muted, with no role. Buttons come in three looks: primary, filled with the accent, for the one thing to do; plain, raised but with no role colour; and quiet, text only, in the muted colour, for a secondary action or a way out, such as Not now. An agent's or an app's own colour, such as Claude's orange, is identity, not a role: it appears only in their marks and to tell them apart in charts, and never on text, controls or edges.
clackatoo's values, which the mock-ups use:
| Role | Dark | Light |
|---|---|---|
| Accent | #d9b24a | #d9b24a, and #8a6a12 for text |
| Warning | #e06c75 | #c0404b |
| Caution | #e89a3c | #b0660f |
| Link | #7cb7f5 | #2d6db5 |
| CAF's voice | #6fd3c9 | #1f9488 |
| Muted | #8a9099 | #666c75 |
Words #
Required.
- Users never see CAF's own words: shelf, loaded, put away, session, adapter. Use the app's words, or none.
- CAF's close is shown as Archive. Closing a tab or a pane never archives a chat: see A chat's identity and lifecycle for what it does.
- CAF speaks in its own voice: its notes, failures and questions are marked as CAF, and the agent's words are quoted as the agent's. Neither is ever presented as the other.
The Composer
CAF / Standard Interface
The composer is where the user writes to the agent. It sits at the foot of the chat, under the transcript, and it's also where anything waiting on the user appears: questions, and the agent banner when the agent isn't ready.
See the composer live, every state, in dark and light.

Required, all of it, but for favourites, which are the app's. The composer is inside the chat, and a user moving between CAF apps should find it the same in each.
Its parts #
One rounded box. The message is on top and the controls run along the bottom. Nothing sits above the text inside the box.
| Part | Where | What it is |
|---|---|---|
| The message | The top of the box | Plain text, as many lines as the user writes. |
| The settings control | Bottom left | The agent's mark and one control for all its settings: Opus 5.5 · High, with a bolt when fast mode is on. It opens the settings menu. |
| The context ring | Bottom right | How full the agent's context is, as a ring and a percent. It opens the usage popover. |
| The round button | Bottom right, after the ring | Send, or Stop while a turn runs or the chat opens, and the box is empty. |
| The tray | Above the box | Messages waiting to be sent, why a message couldn't be sent, or that the chat is archived. |
| What's attached | Between the tray and the box, joined to the box | A question waiting on the user, or the agent banner. Only one at a time. |
From the top, then: the tray, then what's attached, then the box.
One thing attaches at a time. If a question and the agent banner both apply, the question attaches, and the banner returns once it's answered. If several questions wait, the oldest attaches, and the next takes its place when it's answered.
The accent colour marks what to press and what's chosen, as the colour roles say: in the composer, the lit round button, the caret, the effort slider, the lit fast mode switch, the chosen row in the menu and its filter's mark, favourites' stars, the search box's underline, and the edge of a question from the agent. The agent banner's edge takes the banner's own tone, and a question CAF asks itself, such as whether to keep waiting for a chat to open, is calm.
Writing #

Empty. The chat is idle and the box is empty. The box says Message Claude, with the agent's name, and Send is unlit: pressing it does nothing.

Typing. As soon as there's text, Send lights up in the accent.

Couldn't send. When a message can't be sent, its text goes back in the box, untouched, and the tray says why, in the warning colour. The user's words are never lost. The words, by what happened:
| What happened | The tray says |
|---|---|
| The link to the app dropped before CAF answered | Couldn't send: the connection to the app dropped, so it may not have gone. Your message is still here: check the chat before sending it again. |
Too many messages are waiting (Refused::QueueFull; the app sets how many may, eight by default) | Couldn't send: 8 messages are already waiting. Send this once one has gone., with the number that waits |
The agent can't take the message (Refused::Unsupported) | Couldn't send: Claude can't take this message. |
The chat isn't open any more (Refused::NoSuchChat) | Couldn't send: this chat isn't open any more. |
A chat whose agent is gone or can't be run (Refused::NoSuchAgent,
Refused::OwnTools) shows Can't write instead, so
the user isn't invited to send at all. An archived chat isn't one: a
message to it is sent, and brings it back, as
Archived says.
Messages that wait #
A message sent while the agent can't take it yet waits, and goes as soon as it can (CAF queues it). Waiting messages sit on the tray, each with a clock, under a heading that says what they wait for and how many there are. Send stays available: more can wait.
| While | The tray's heading | The box says |
|---|---|---|
| A turn runs | Waiting for this turn · 2 | Message Claude: it waits for this turn |
| The chat is opening | Waiting for Claude to open · 1 | Message Claude: it waits for Claude to open |
| The chat waits for its agent | As Agents says | Message Claude: it waits until Claude is ready |
At the heading's other end, the tray says what drops them: Stop drops these too, or Stop drops it too for one, while a turn runs or the chat opens. While the chat waits for its agent, the round button stays Send, and the agent banner's Not now drops what waits, as Agents says.
While a turn runs #

Running. While the agent works and the box is empty, the round button is Stop, lit.

Running, and typing. Typing during a turn turns the round button back into Send, because the message will wait. Stop moves to a smaller button beside it, so it's still one click away. A note by the buttons says waits for this turn.
Messages waiting. The picture at the top of this page: two messages wait for the turn. Stop ends the turn and drops them too: they become turns that were stopped before they were sent, as the transcript shows.

Stopping. Once Stop is pressed, and until the agent confirms the turn has stopped, the round button spins and can't be pressed again. Its tooltip says Stopping….
While the chat opens #

Waiting to open. A message sent while the chat is still opening waits
for it. There's no turn yet, so the tray says Waiting for Claude to open.
The round button is Stop, as during a turn: it gives up opening, and
drops the message (Core::stop).
Settings #
The settings control shows what the agent uses now: the model, the effort, and a bolt when fast mode is on. It opens one menu that holds them all.

The menu. It's drawn as clackatoo's model menu:
- A rail down the left filters the list: favourites first, then the chat's agent. Fast mode is at its foot, lit in the accent when on, and gone when the model doesn't offer it. Its tooltip says Fast mode on: faster answers, may cost more, or off.
- Search, at the top: Search models….
- The models, as the agent names and orders them, each with its description. A choice that stands for whatever the agent would pick, such as Claude's Default (recommended), is listed as the agent names it. The one in use has a tick. Each has a star, to make it a favourite.
- Effort, as a slider, under the list, from the agent's lowest level to its highest, each level named.
Each setting appears only if the agent offers it. CAF says what the agent
offers in Setting.form: a list of Choices (models, effort levels) or a
Switch (fast mode). The menu is built from that, never from a list the app
keeps itself. See Choosing the model.

Favourites. Up to the app. The star filter shows only starred models. Favourites belong to the app, which keeps them as it likes; CAF knows nothing of them. An app without favourites leaves out the stars and the filter.
A change not applied yet #
A setting changed during a turn doesn't apply to it. CAF holds the change and sends it as the turn ends, so it applies from the next message. A change made while the chat opens, or while the agent hasn't answered it yet, waits the same way.
CAF tells the app: a chat's settings.chosen differs from what the agent
says is current until the change applies. A part is drawn as not applied
yet, in the caution colour with a clock, when the chat's settings.offered
holds that setting, its current is known, and the choice differs from it.
While a setting's current isn't known (the agent doesn't say), or the chat
has no offered yet, the control shows what's chosen, plainly. The tooltip
says From the next turn while a turn runs, and Not applied yet
otherwise.

Effort held. The control shows what will apply, Max, with the clock.

Model held. The same: the new model is in the caution colour with a clock until it applies. Effort and fast mode stay as they are, because what the new model offers isn't known until it applies.

The menu, while a model change is held. The current model keeps its tick, and the one picked says after this turn, or not applied yet, with a clock. Picking the current model again cancels the change. Effort and fast mode can't be changed until the new model applies: they're dimmed, and effort is headed Effort · Opus 5.5's: change it once Sonnet 5.5 applies. CAF checks a choice against what's offered now, so an effort level only the new model has can't be chosen before it applies.
After the model changes #

The model changed. Once the turn ends, the new model applies. The agent then says what that model offers, and the control follows: here, the new model has no fast mode, so the bolt goes.

A divider in the transcript marks where the model changed: the agent's
mark, the new model, and from the old one, muted. The app draws it wherever
a turn's model (Turn.model) differs from the turn before, so it needs
nothing more from CAF, appears in restored chats too, and sits exactly where
answers start coming from the new model.

The menu after the change shows the new model's effort levels, and the
fast mode switch is gone if the model doesn't offer it. If something the user
chose isn't offered any more, CAF falls back to what is, and puts a note in
the transcript (Note::NotOffered).
Before CAF knows the settings #
While a chat's settings.offered is empty, as it is until a chat first
opens, its settings are what CAF knows of the agent's:
AgentStatus.settings, which is Unknown, Learning, Known or
Failed. A new chat with an agent whose settings are Known shows the menu
as above, from those.

Not known yet (Unknown). The control says Settings not known yet, or
Settings where it's narrow, and nothing more.

Its menu says CAF doesn't know yet which models and settings Claude offers.
It finds out when the chat opens, or now, without sending a message., and
offers a Learn them now button, which has CAF find out
(Core::learn_settings). Only a viewer with the agents right sees the
button; for any other, the menu leaves out , or now, without sending a
message.

Learning (Learning). The control says Learning Claude's settings…
with a spinner, and can't be opened.

Couldn't learn them (Failed). The control says
Couldn't learn Claude's settings, or Settings where it's narrow.

Its menu says CAF couldn't learn which models and settings Claude offers.,
then why, in bold, then It tries again when the chat opens, or now., with
the same Learn them now button, and the same rule for a viewer without
the agents right. CAF says why as a LearnFailure, and the words are the
app's, with the agent's name in place of Claude:
Why (LearnFailure) | The menu says | Learn them now |
|---|---|---|
NotInstalled | Claude isn't installed. | Yes |
NotLookedYet | CAF hadn't checked yet whether Claude is installed. | Yes |
SigningIn | Claude was being signed in to. | Yes |
SignInNeeded | Claude wants you to sign in first. | Yes |
CouldNotStart | Claude couldn't be started., then what the system said | Yes |
Refused | Claude refused to open a chat., then what Claude said | Yes |
StartTimedOut | Claude didn't start in time. | Yes |
OpenTimedOut | Claude didn't open a chat in time. | Yes |
Unreadable | Claude's answer made no sense. | Yes |
Restarted | Claude was restarted. | Yes |
Stopped | Claude stopped. | Yes |
ShutDown | The app was closing. | No |
Incompatible | This version of Claude can't talk to this app. | No |
OwnTools | Claude can't be used: its own tools can't be turned off. | No |
Where the transcript words a chat
losing its agent for the same cause, the menu uses its sentence, so the
user meets one sentence for one cause: CouldNotStart, SignInNeeded,
Restarted, Stopped (its AgentStopped), Unreadable (its
BadAnswer) and Incompatible (its Protocol). Three are adapted, as
learning them opens no chat of the user's: Refused says a chat, not
this chat; ShutDown says the app was closing, not that it closed
while this chat was open; and OwnTools is the sentence for an agent CAF
won't run, as A chat's identity and lifecycle
has it. The others, which no chat meets, are the menu's own. A reason
newer than the app knows has no sentence: the menu says its first and
last sentences, with the button.
Where trying again can't help, the menu ends with why, and has no
button and no It tries again…: the app is closing (ShutDown), or CAF
can't use the agent at all (Incompatible, OwnTools), which nothing
the user does from the menu changes.

What the system or the agent said. CAF keeps their words apart from
why: what the system said when the agent couldn't be started
(CouldNotStart.error), and what the agent said refusing
(Refused.message), each cleaned and capped. The menu shows them under
why, as theirs, and never as CAF's: the system's in a monospace font,
muted, as a chat that can't be restored shows the store's; the agent's
introduced as Claude said:, in quotation marks, muted, with a rule down
its left, as a failed turn quotes it. They often say what to do, such as
that a file is missing, which no sentence of the app's could. Either may be
empty, and is then left out.


None offered. An agent that offers no settings shows only its mark and name, with nothing to open.
What the chat allows #

The agent isn't ready. While the chat's agent isn't installed, is being
signed in to, or is signed out and can be signed in, the agent banner
attaches to the box, as a question does, joined to it in the banner's own
tone. Messages wait only while the chat waits for its agent
(ChatState::WaitingForAgent): then the box says
Message Claude: it waits until Claude is ready, and the user can still
write. An agent that's only signed out holds nothing back: the banner offers
to sign in, and the box is as usual. Agents
says when the banner shows, and its words.

The context ring. The ring shows how much of the agent's context is
used, Usage.used of Usage.size, as a whole percent. Above 80% it turns to
the caution colour, and above 95% to the warning colour: strictly above,
so 80% is still calm. Its tooltip says Context: 86% used. A new chat,
before the agent has said, has no ring. Clicking the ring opens the usage
popover, and a dot on the ring warns of an account limit running low: see
Usage.

Archived. A chat stays archived (Chat.archived), restored or not,
until it's brought back. Sending a message brings it back: CAF unarchives
it and sends the message as to any other (Core::send). So the box stays
as usual, and the user can write and send. The tray says, calm, with an
archive box, This chat is archived. Sending a message brings it back.,
and offers Unarchive, plain, at its other end, which brings it back
without sending (Core::unarchive; a viewer's Unarchive, with the act
right). Either way the note goes at once, and the chat is an ordinary one,
its agent started when a message is sent, as for a restored chat.
A saved chat is put away as it's archived, so CAF no longer has it, and
refuses to send to it or unarchive it (Refused::NoSuchChat). An app that
still shows it restores it first (Core::restore), archived still, then
sends or unarchives: the user sees nothing of this, and never Couldn't
send: this chat isn't open any more. Right after it's archived, CAF may
still be writing it, and refuses to restore it (Refused::Loaded) until
it's done, which takes moments: the app tries again for a moment while it
does, as
Closing a tab says for any
chat just put away.
If restoring it fails, the message stays in the box, and the tray says Couldn't send: and why, in the words A chat's identity and lifecycle gives each reason a chat can't be restored, its heading made a clause, such as Couldn't send: this chat is open somewhere else. or Couldn't send: this chat's save is damaged. If Unarchive's restore fails, the tray says the same, with Couldn't unarchive:.
While it's archived, only its settings can't be chosen, as CAF refuses to
change them (Refused::Closed): the control shows the model and effort,
without the bolt or the chevron, and can't be opened, as when the user
can't write. They can be chosen again once it's back. A viewer without the
act right sees the note without Unarchive, and the box as
Can't write says.

Can't write. The box stays where it is, with a lock, and says why, by the first of these that holds:
| Why | The box says |
|---|---|
The viewer has no act right | You can follow this chat, but not write in it. |
| Its agent is gone, or CAF won't run it | As A chat's identity and lifecycle says |
| Its agent can never be installed on this machine | As Agents says |
It has no Send, Stop or settings menu. The control shows the model and
effort, without the bolt or the chevron, and can't be opened; the ring stays.
A question or the agent banner still shows, so the user knows the chat is
waiting. A question's answers show disabled for a viewer without the act
right. The banner's buttons follow their own rights, as
Agents says: a viewer is offered nothing
it can't do. For the others, the banner keeps Not now while a message
already waits, so the user can drop it.
Narrow #

In a narrow pane the composer keeps every part. The placeholder keeps only its first clause (Message Claude), the settings control may shorten (Settings), and the waits for this turn note by the buttons is left out.
Keys #
Enter sends. Shift+Enter starts a new line. While an input method is composing, Enter does nothing, so a user typing in Japanese, say, never sends half a word.
What CAF tells the app #
| What the composer shows | Where it comes from |
|---|---|
| What can be sent | Text only, Part::Text: there are no attachments yet. |
| A message waiting | A message sent during a turn, or while the chat opens or waits for its agent, is queued by CAF (TurnLife::Waiting), and goes when it can. Core::stop drops it. |
| Why a message couldn't be sent | The Refused CAF answers with, or the link to the app dropping. |
| The settings menu | Setting.form for each setting the agent offers: Choices or a Switch. Before a chat opens, AgentStatus.settings. |
| A change not applied yet | settings.chosen differing from current, when offered holds the setting and its current is known. |
| The model divider | Turn.model differing from the turn before. |
| The context ring | Usage.used and Usage.size. |
| Whether the user may write | The viewer's act right, and the chat's state. |
| Archived | Chat.archived, by Change::Archived; Refused::Closed for a setting chosen meanwhile. |
| Unarchive | Core::unarchive, or a viewer's Unarchive, with the act right: Chat.archived goes back to none. Core::send unarchives a chat too, then sends. |
| Why the settings couldn't be learned | AgentStatus.settings's Failed, a LearnFailure; the system's words in CouldNotStart.error, the agent's in Refused.message. |
| Learn them now | The viewer's agents right; Core::learn_settings. |
| The agent banner | The agent's status, as Agents describes. |
The Transcript
CAF / Standard Interface
The transcript is the chat itself: everything the user sent and everything the agent did, in order, above the composer. It's built from CAF's record of the chat, a list of turns, each a list of items (see Chats, turns, and items).
See the transcript live, every state, in dark and light.

Required, all of it, but for the time dividers, which are the app's, and what's marked Later. The transcript is inside the chat, and a user moving between CAF apps should find it the same in each.
Its parts #
A turn is drawn top to bottom, in one column:
| Part | Where | What it is |
|---|---|---|
| The message | Right, in a bubble | What the user sent. A turn the agent started by itself has none (see below). |
| The summary line | Under the message | What the work was, as a line of chips, led by how long it took. Clicking it opens the timeline. A turn with no steps has none. |
| The timeline | In place of the summary's chips, once opened | Every step in order, on a rail. |
| The answer | Under the summary | The agent's last words, in full. |
| What went wrong | Under the answer | A failure, in CAF's words, with its remedy. |
| The turn's line | At the foot of the turn | The model, how long the agent worked, when the message was sent, and how the turn ended if not finished. All muted. |
Between turns sit dividers (the time, a new model, history from the agent's own record) and what CAF says about the chat. Anything waiting on the user attaches to the top of the composer, not to the transcript.
Markdown in the agent's words is drawn as Markdown. A step's title and a question's are shown as plain text, as given.
Times. The time on a turn's line is when the user sent the message
(the start of Turn.window), so a message that waited for the turn before
it shows when it was sent. How long the agent worked counts from the start
of its first item from the agent (its words, thinking or a tool, never one
of CAF's notes) to the turn's end, so the wait isn't counted as work. A turn
with no items from the agent shows no time taken. Where the app doesn't keep
thinking (Host.shows.thinking), the time the agent spent thinking before
its first words or tool isn't counted.
Turns #
A finished turn is its message, one summary line and the answer, as in the picture at the top. The summary line is led by Worked 42s, then one chip for each kind of step, counted:
- Thought 8s for thinking. Each stretch of thinking is listed, not summed: Thought 8s + 2s.
- Read 1 file, Searched 1 time, Edited 2 files +7 −1, Fetched 1 page,
Deleted 1 file, Moved 1 file, by the tool's kind, with the plural as it
should be. The edit chip adds up its edits' diffs: +7 lines added and
−1 removed. A refused edit's diff never happened, so it isn't counted. A tool of kind
ThinkorOtheris counted as Used 1 tool. - A single command is named by its title, here cargo test -p caf-core config, with a tick, or a cross in the warning colour if it failed. Two or more are counted: Ran 2 commands.
- ? 1 item this app can't show, if the turn has any.
- Then Show steps, muted, with a chevron.
A chip with a step that failed or was refused is in the warning colour, so it's seen without opening the turn. A cancelled step isn't a failure: its chip stays calm. In history, where the times aren't known, the line is led by Work alone.
The answer is the turn's last words from the agent (ItemKind::Words),
once the turn has finished, if nothing but CAF's notes comes after them.
Anything else the agent said along the way is a step.

Opened. Clicking anywhere on the summary line opens the timeline in its place, and the line's last words become Hide steps. Clicking again folds it. Each step is one line on a rail, with its kind's icon:
- Thinking: Thought for 8s, muted and in italics. It opens to the thinking itself.
- A tool call: its title, exactly as given, such as Read crates/core/src/config.rs or cargo test -p caf-core config, with how long it ran on the right. CAF writes the title for its own tools, and the agent writes it for the rest; either way, the app draws the call's title and never rewords it. Only the icon comes from its kind. It opens to what the tool gave back (see A tool call, opened).
- What the agent said along the way, muted, in full.
An edit is open already, to its diff: an edit is what the user most often wants to check. Every other step opens when clicked.

Running. A running turn's timeline is always open, and can't be folded, so the user can always see what the agent is doing. The summary line says Working 31s, with a spinner in the accent, and has no chips; before the agent's first item it says Working, with no time. The step running now has a spinning dot in the accent. The turn's line says Opus 5.5 · 31s so far · 14:32 · Working. The composer's round button is Stop (see The composer).
A running command is open, and shows its output as it comes, with a caret in the accent at its end, so the user can watch a build or a test run without opening anything. Other steps show what they've given back so far, which for many tools is nothing until they end.
Once Stop is pressed, and until the agent confirms, the summary says Stopping… in place of Working (not pictured).

Stopped. A turn the user stopped folds like a finished one, and its line ends Stopped, muted. A step that failed makes its chip red: here, cargo build -p caf-core with a cross. Opened, a failed step shows its output. A step still waiting or running when the user stopped the turn is Cancelled, muted; one a turn ended under any other way, such as a failure or the app closing, is Failed.
A message that never went. Stop also stops the messages waiting for the turn, and a message that waited for an agent that wasn't installed is stopped too. Each stays in the transcript as a turn of its own: its message, no summary line, and a line of 14:32 · Stopped. CAF doesn't say whether a stopped turn reached the agent, so the app doesn't either.

The agent, on its own. An agent can start a turn by itself, such as when a command it left running finishes. It has no message: in its place is the agent's mark and Claude, on its own, muted. The rest is drawn as any turn. CAF doesn't say why the agent started it, so neither does the app. (A command left running by CAF's own Bash is different: CAF tells the agent when it ends, in a turn of CAF's own, as Background jobs says.) Such a turn never fails, so it never has a remedy: it ends finished, stopped, or cut off.
Cut off. A turn that ended before it finished, without failing or being
stopped, ends Cut off before it finished, muted (see the last picture on
this page). That happens when the app shuts down during it, when the chat is
put away during it (Core::put_away), or when the app stopped unexpectedly
and the chat was restored.
A message waiting to be sent (CAF queues it while a turn runs or the chat
opens) isn't drawn in the transcript: it sits on the composer's tray until it
goes. A turn CAF starts with a notice, such as of a background job's end,
is drawn as the Background jobs section says; one the
app starts with its own notice (Core::notify) is headed A notice from
the app, muted, with its words. Later: a turn sent by another chat's
agent.
Tool calls #
A tool call is a step on the timeline (see Tool calls for what CAF records of one). Its line is its kind's icon, its title, and on the right how long it ran or where it is.
Its title is drawn as given, never made up by the app. For CAF's own tools (see CAF's own tools) CAF writes it, the same for every agent, with a path inside the chat's folder relative to it, and any other in full:
| Tool | Its title |
|---|---|
| Read | Read src/config.rs |
| Edit | Edit src/config.rs |
| Write | Write docs/notes.md |
| Bash | The command's first line, as the agent wrote it: cargo test -p caf-core, with … after it if it has more |
| TaskStop | Stop task 2, its icon a square |
Where it is, by its status:
| Status | Its dot | On the right | Role |
|---|---|---|---|
Pending | Its kind's icon | Waiting to start | Calm |
Asking | Its kind's icon, in the accent | Waiting for you ↓ | Accent |
Running | A spinner, in the accent | How long so far | Accent |
Done | Its kind's icon, muted | How long it ran | Muted |
Failed | A cross, in the warning colour | How long it ran | Warning |
Refused | A cross, in the warning colour | Refused | Warning |
Cancelled | Its kind's icon, muted | Cancelled | Muted |
Cancelled is muted, not a warning: the user stopped it, or the agent did, so nothing went wrong. Refused is a warning, as a failure is: the agent wanted to do it and couldn't, which the user should see without looking for it, even when it was their own answer.

Who decided. A call that needed permission says, first thing when opened, who allowed or refused it, muted, in one line:
Decision | It says |
|---|---|
Allowed(User) | Allowed by you |
Allowed(Policy) | Allowed by the policy: reads inside the project are fine, with the policy's reason, or Allowed by the policy if it gave none |
Refused(User) | Refused by you |
Refused(Policy) | Refused by the policy: writes outside the project folder, or Refused by the policy |
NotAsked, Undecided, NotRecorded | Nothing |
You is whoever answered the question in this app. A refused call never ran: under that line is only what it would have done, such as the diff of an edit CAF worked out before asking, and why, if the agent said. It's headed What it would have done (never ran), muted, in place of nothing, so it's never read as something that happened.
A tool call, opened #
A call opens to what it gave back, in order, each piece drawn by its kind. Everything an agent sends is drawn as text: never as markup, never run.
- Text, such as a file read, in a monospace font. If CAF kept only its start, under it, muted: Kept 64 KB of 1.2 MB.
- A diff: the file's path, New file if there was none before, and +3 −1 on the right, the lines added and removed. Then its hunks, as CAF worked them out, each line with its numbers before and after, added lines marked + on a green tint and removed ones − on a red one, and a gap between hunks. If CAF kept only some hunks, after them, muted: and 2 more hunks. The app draws the hunks as they are, and never compares texts itself.
- A command's output: its lines in a monospace font, in the colours
the command gave them. Only its colours (text and background) and
bold, dim, italic, underline, strikethrough and inverse are drawn; any
other code a terminal would act on shows as it is, such as
^[[2K, never acted on. Text whose background is its own colour keeps the app's background, so it can't hide itself. If CAF kept only the last lines, above them, muted: 120 earlier lines not kept. While it runs, a caret in the accent ends it, and lines come and change as CAF sends them. Once it ends, under it: Exited with code 0, muted, or Exited with code 101, Killed by signal 9, in the warning colour; Ended, without saying how if the agent didn't say, muted. Suggested: an output of thousands of lines draws only its last 2,000, with Show 500 earlier lines above them, so the page keeps up as it grows. - An image, drawn, as wide as the column at most. One too big for CAF to keep says An image too big to keep (3.4 MB), muted, in its place. Only an image is drawn as one: anything else claiming to be, such as a page, is named by its type and never shown. One whose data can't be read as a picture says An image this app couldn't read.
- A link: a web address (
httporhttps) is a link, in the Link colour, by its name, which opens in a new tab, and beside it, muted, the address it goes to, as the browser reads it, so a name can't say one place and go to another. A host spelled in another script is shown as the browser goes to it (xn--pple-43d.com). A link with no name, or a name of only spaces, is shown by its address. Any other address, such as a file's, is shown as text, its name and then the address, and never followed. Nothing an agent sends ever becomes ajavascript:link. - A piece CAF couldn't read, a dashed box: Something Claude sent that this app can't show. If CAF kept only the start of it, that says so, muted: Kept 64 KB of 90 KB.
Suggested: under what it gave back, the files the call is about, as src/main.rs:42, each opening the file where the app can; and what the call was given (its input), folded away. When CAF kept only the start of the input, it says Kept 64 KB of 200 KB under it.
Background jobs #

A call to one of CAF's tools can go on after the agent was answered: a command the agent ran in the background, or one that ran past its timeout. CAF calls it a job, and numbers it in the chat: task 1, task 2. The agent got its answer, so the turn goes on, and may finish, while the job runs.
- Running, it's marked Background: a small chip in the accent after its title, as it's happening now. Its dot is a spinner and its output comes in, as any running step's. Its turn can be finished, stopped or far up the transcript: the step stays running there until the job ends, so the app never draws it as done because its turn is.
- Folded, its turn's summary line gives each job still running a chip of its own, in the accent: a spinner, its title and Background. A job that has ended is counted with the turn's other steps, as any is.
- Stop doesn't stop it. The user's Stop stops the turn, not the work it left in the background, as in Claude Code. A job ends by itself, or when the agent stops it with TaskStop, or when the chat is closed or deleted (Cancelled), or put away, or the app shuts down (Failed: a restored chat has no jobs).
- When it ends, it's drawn as any step that ended: Done, Failed or Cancelled, its output ended with its exit. The chip goes. Opened, the step may say, muted, that it ran in the background as task 2.

CAF tells the agent when a job ends, in a turn of its own, sent as a
message is: at once if nothing runs, or else once the running turn ends.
After the user's Stop, CAF holds them: none comes right after a Stop, and
each held one appears, as a turn of its own, just before the user's next
message (see Serving tools).
In place of a message, the turn starts with the CAF badge and what CAF
told the agent, in words: the notice's own summary, Told Claude:
Background command "cargo test --test integration" completed (exit code
0) (or failed), with &, < and >
read back as &, < and >. It's CAF's voice, not the agent's nor the user's, so it never
looks like something the user sent. The rest of the turn is the agent's
answer, drawn as any. The agent was given the path of a file holding the
job's whole output too; the app needn't show it.
TaskStop is a step. When the agent stops one of its jobs, its call is a step like any other, titled Stop task 1, and the job's own step, wherever it is, ends Cancelled. TaskStop never asks: it can only stop a job its own chat started. Folded, it's counted as Stopped 1 task.
Asking #

Asking permission. When the agent wants to do something that needs the user's say, the question attaches to the top of the composer, joined to it with an edge in the accent: the turn can't go on until it's answered.
Whose question it is depends on whose tool the call is:
- One of CAF's own tools (
Origin::Caf: Read, Edit, Write, Bash). CAF asks, in its own voice, with the CAF badge. It says what the agent wants to do in CAF's words, from what the call does (itsAction), then what it's about, as plain text, from the title CAF wrote for the call: for a file, the title without its Read, Edit or Write (the path, from the chat's folder when it's inside it); for a command, the title as it is (its first line, with … after it if it has more, capped). Never the whole title, whose verb would say it twice: Claude wants to run a command: rm -rf target, Claude wants to change a file: src/config.rs, Claude wants to read a file: /etc/hosts, Claude wants to write a file: notes.md. Its answers are CAF's own two, Allow and Refuse. Its edge stays in the accent, unlike CAF's question about a chat slow to open: like any permission question, it holds up the turn. - Any other tool. The agent asks: Claude asks permission: and then the agent's own title for what it wants to do, as plain text, with the agent's own answers.
Once CAF has seen the call it's about (Permission.tool), the question
shows what the user is being asked to allow, under its title: the command
it would run, in a monospace font, with the folder it runs in under it,
muted; or the change it would make, as a diff, drawn as an opened step
draws one. A question asked before CAF has seen its call shows its title
alone, and gains the rest when the call arrives (CAF's own questions always
have their call). Under that are the answers, labelled as their asker
labels them, Allow and Refuse for CAF's, or for the agent's, such as
Allow, Always allow and Reject, all alike: none is chosen or focused
beforehand, and Enter answers nothing. On the right, muted: Stop cancels this and stops the turn.
The step it's about stays in the timeline, its dot in the accent, and says
Waiting for you ↓ on the right (ToolStatus::Asking). The agent may ask
before CAF has seen the step, so the question never depends on it.
Answering it carries on the turn. Stop answers it as cancelled, and stops the turn.
Only one thing attaches to the composer at a time. If several questions wait, the oldest attaches, and the next takes its place once it's answered. A question comes before the agent banner: when both apply, the question attaches, and the banner returns once it's answered. Messages waiting on the tray sit above whatever is attached.
Failing #
A failed turn folds like any other, and under it is what went wrong, in a box in the warning colour: the CAF badge and CAF's sentence; what the agent said about it, if anything, quoted apart; and the remedy, if there is one. The turn's line ends Failed, in the warning colour.

What the agent said is introduced as Claude said:, in quotation marks, muted, with a rule down its left. It's the agent's words, never CAF's advice, and never presented as CAF's.
Send again (Remedy::SendAgain) is the accent button, with a circling
arrow. It sends the same message again, as a new turn.

Sign in (Remedy::SignIn) is the accent button. It signs in with CAF's
own command for the agent, never one the agent suggested, and doesn't send
the message again. So, as the one exception to offering only CAF's remedy,
Send again sits beside it, quiet, for once the user has signed in: CAF
never sends it again by itself.
CAF gives SignIn only where it can sign in to the agent now. When the
reason is SignInNeeded but the remedy isn't SignIn, the box says
Sign in to Claude, then send again. in place of the button, with any
remedy CAF gave instead.

A setting not applied. When a setting chosen for the chat can't be applied before a message goes, such as a model the agent no longer offers, CAF doesn't send the message. CAF's note above it says which choice was dropped, and the failure says the message wasn't sent, and that sending it again uses what applies now. Such a turn never reached the agent, so its line has no model and no time taken.
What CAF says for each reason, with the agent's name in place of Claude:
| Reason | CAF says |
|---|---|
TooLong | The answer hit the model's length limit. |
TooManySteps | Claude hit its limit of steps for one turn. |
Refused | The model refused. The message and everything after it are gone from Claude's memory. |
SignInNeeded | Claude wants you to sign in. |
AccessDenied | The account or its credentials can't be used: signing in again doesn't fix it. |
BadRequest | Claude's provider refused the request as it stood. Sending it again won't help. |
UsageLimit | Claude hit a usage limit. |
ProviderError | Claude's provider was overloaded or failed. |
AgentStopped | Claude stopped while working on it. |
DidNotStop | Claude didn't stop when asked, so CAF ended the turn and reconnected to Claude. |
BadAnswer | Claude's answer made no sense. |
SettingNotApplied | A setting chosen for this chat, such as a model, couldn't be applied, so CAF didn't send the message. The app's default, or else Claude's own, applies now: sending it again uses that. |
Other | Claude reported an error. |
A reason the app doesn't know yet (a later CAF may add one) is shown as
It failed, for a reason this app doesn't know. Apart from Send again
beside Sign in, an app offers only the remedy CAF gives, never one of its
own. Later: Start a new chat, for Remedy::NewChat.
Who may act #
A person watching a chat may not have every right (see Viewers). What they can't do is never offered only to be refused:
- Without the
actright: no Send again, and a question still attaches, so they can see what's waiting, but its answers are disabled, as are Keep waiting, Try again and Stop when a chat is slow to open. - Without the
agentsright: no Sign in. The box says Sign in to Claude, then send again. in its place, and Send again stays, givenact.
CAF and the chat #

CAF's notes. CAF speaks in its own voice, never as the agent's: a box with the CAF badge. Between turns, it says what happened to the chat; inside a turn, what happened during it. A note is never folded away: inside a folded turn it shows under the summary line, and in an opened one, in its place on the timeline.
A note that the agent remembers nothing from before is in the caution colour, with a warning sign, because the user's context is gone and they'll need to give it again. The others are calm, with an i, muted. The words, with the agent's name in place of Claude:
| Note | Tone | CAF says |
|---|---|---|
SessionGone | Caution | Claude no longer had this conversation, so a new one was started: it remembers nothing from before. |
CannotContinue | Caution | Claude can't carry on earlier conversations, so a new one was started: it remembers nothing from before. |
SessionStuck | Caution | Claude's conversation was stuck and couldn't be closed, so a new one was started: it remembers nothing from before. |
NotInstalled | Calm | Claude isn't installed, so the message that waited for it was stopped. |
InstallFailed | Calm | Claude's install failed, so the message that waited for it was stopped. |
SignedIn | Calm | You signed in to Claude: send the message again to try it now. |
AgentChanged | Calm | Claude changed by itself to the model Sonnet 5.5, and this chat follows it. |
NotOffered | Calm | Claude doesn't offer the model claude-opus-4-8, so that choice was dropped: the app's default, or else Claude's own, applies. |
NotApplied | Calm | Claude refused the model Opus 4.8, so that choice was dropped: the app's default, or else Claude's own, applies. |
A note about a setting names the choice by the agent's name for it, as the
agent last said it, which CAF keeps with the note (its name): the model
Sonnet 5.5. A choice the agent never named, such as a model it never
offered, has none, and is named by the agent's own id, in a monospace font,
as CAF keeps it: the model claude-opus-4-8. The name is kept with the
note, so it reads the same when the agent no longer offers the choice, and
in a restored chat. A switch that's on or off is named fast mode on or
fast mode off; one the agent doesn't offer is named fast mode alone:
Claude doesn't offer fast mode, so that choice was dropped…
When the agent changes a setting by itself, the composer follows it: after the note here, it shows Sonnet 5.5. The turn's line still shows the model it was sent on.

Lost. Whenever a chat loses its agent, between turns or during one (the turn then fails, and the chat is lost), a box in the caution colour at the foot of the transcript says why, in bold, and under it, muted, what the user's next message will do. Where the agent left its last lines of error output, they're under that, in a monospace font. The box goes once a message starts opening the chat again. It's the app's own frame for the chat's state, not something CAF says, so it has no CAF badge.
While the agent banner shows, it stands in for this box, which isn't drawn:
a chat lost after the user chose Not now in the banner
(Lost { reason: Stopped }) has what to do next in the banner, and why in
CAF's note (see Agents).
| Why | It says | Under it |
|---|---|---|
CouldNotStart | Claude couldn't be started. | Your next message tries to start it again. And what the system said. |
AgentStopped | Claude stopped. | Your next message starts it again, and carries on this chat where Claude can. And its last lines. |
Restarted | Claude was restarted. | Your next message carries on this chat where Claude can. |
SignInNeeded | Claude wants you to sign in first. | Sign in, then send a message to carry on. |
Refused | Claude refused to open this chat. | Your next message tries again. And what Claude said, quoted apart. |
Stopped | You stopped it opening. | Your next message tries again. |
InUse | Another chat already has this conversation open. | Your next message tries again. |
Incompatible | One of the sentences below. | Nothing, but for BadAnswer. |
ShutDown | The app closed while this chat was open. | Nothing. |
When Claude can't do what the chat needs (Lost::Incompatible), the box says
why:
Incompatible | It says | Under it |
|---|---|---|
Protocol | This version of Claude can't talk to this app. | Nothing. |
HttpMcp | Claude can't reach one of this chat's tools the way it's connected, so this chat can't run. | Nothing. |
BadAnswer | Claude's answer made no sense. | Your next message tries again. |
OwnTools | This isn't the Claude this app knows, so the app can't control its tools, and won't run it. | Nothing. |

While a chat opens, the transcript shows nothing new: the message waits on the composer's tray, and the round button is Stop.
Slow to open. If a chat takes long to open, CAF asks the user whether to keep waiting. It's CAF's own question, never framed as the agent's, so it attaches to the composer calm, with the CAF badge, not in the accent: Claude is taking a while to open this chat. It may be busy, or stuck. If the agent hasn't answered at all, it says Claude is taking a while to start: it hasn't answered at all yet. The answers are Keep waiting and Try again, as buttons, then Stop, quiet. Escape keeps waiting, as dismissing it does. Stop gives up, and the waiting message ends as stopped. The message waiting for the chat to open sits on the tray above it, headed Waiting for Claude to open · 1 and Stop drops it too; the box says Message Claude: it waits for Claude to open, and the round button is Stop, as the composer draws it.
History and dividers #

The agent's own history. A chat can carry on a conversation the agent already had, such as one started in the agent's own app. What the agent replays of it comes in as history CAF didn't see happen. It's headed by a muted divider, From Claude's own history, with a circling arrow, and its turns are muted too, with no times, no turn line and no model, since CAF doesn't know them. They fold and open as any turn. A chat CAF restores from its own save has its whole record already, and shows none of this.
What the app can't show. An item the agent sent that CAF couldn't read
is kept as it came, and drawn as a dashed box:
Something Claude sent that this app can't show. One of the app's own items
that this version of the app can't read shows the summary it had, if any,
or An item of the app's that this version can't read. The app draws its
own items (ItemKind::App) as it likes, in their place.
Later: compaction. Where the agent summarised its context to make room, a muted line inside the turn says Claude compacted its context: it has a summary of everything before this. CAF doesn't record compaction yet.

A new model. A divider marks where the model changed: the agent's mark, the new model, and from the old one, muted, as on the composer page. The app draws it wherever a turn's model differs from the turn before's.
Time. Up to the app. A divider with the time, such as Today 14:32, where a while has passed between turns. When, and how it's worded, is the app's.
Colour #
- Accent: what's happening now (the Working spinner, the running step's dot, the caret of a command's output as it runs, a job's Background chip), the edge of a question waiting on the user and the dot of the step it's about, and the remedy button.
- Warning: a failure's box, a failed or refused step's dot and chip, Failed on the turn's line, and a command that exited with an error or was killed.
- Caution: a lost chat, and a note that the agent remembers nothing.
- CAF's voice: the CAF badge, on notes, failures, CAF's own questions, permission questions about its own tools included, and its notice of a job's end.
- Link: a web link a call gave back.
- Muted: times, counts, thinking, what the agent said along the way, steps done or cancelled, who allowed a step, what was cut, the turn's line, the dividers, the icons of calm notes, and the agent's own history.
A step waiting to start is calm. A diff's added and removed lines are tinted green and red, and its counts drawn in those colours: they say what changed, not that anything went right or wrong, so they're no role's.
Everything else is calm.
What CAF tells the app #
| What the transcript shows | Where it comes from |
|---|---|
| The turns, in order | Chat.turns, each a Turn, in the order of the list. History and CAF's notes can be inserted before a waiting turn (Change::TurnInserted). |
| The message | Turn.starter: Starter::User holds the UserMessage. Starter::Agent is a turn the agent started by itself, and Starter::Caf one of CAF's notes. Starter::Notice holds a notice's text: CAF's own of a job's end is <task-notification>…</task-notification>, whose <summary> is what's shown; the app's is anything else. |
| How the turn ended | Turn.life: TurnLife::Running, Stopping, Finished, Stopped, Failed or CutOff. A Waiting one is on the composer's tray. |
| When it was sent | The start of Turn.window. |
| How long the agent worked | From the start of the first Words, Thinking or Tool item's Item.window to the end of Turn.window. |
| The turn's model | Turn.model, as the agent said when it was sent. |
| The steps | Turn.items: ItemKind::Words, Thinking, Tool, Note, App and Unknown. Thinking is kept only if the app asks for it (Host.shows.thinking). |
| A tool's line | ToolCall.title, as given; its kind (ToolKind) for the icon and the chip; its status (ToolStatus::Pending, Asking, Running, Done, Failed, Refused or Cancelled); and its Item.window. |
| Background | ToolCall.job, the job's number (JobId), set once the call went on after the agent was answered (ToolEvent::Detached). It's Background while status is Running. A TaskStop's action is Action::Stop, with the job. |
| Who decided | ToolCall.decision: Decision::Allowed or Refused, each with its DecidedBy (User, or Policy with its reason). |
| A tool, opened | ToolCall.result, a list of Pieces: Text (its cut, a Cut), Diff, Output, Image, Link and Unknown (its cut: if CAF kept only the start of its data, raw is the start of its JSON, as a string). Then ToolCall.locations (and locations_cut), and ToolCall.input (and input_cut). |
| An edit's diff and counts | A Piece::Diff: its path, new_file, added, removed, its hunks, each a list of DiffLines (change, old, new, text), and more, the hunks not kept. |
| A command's output | A Piece::Output: its lines, with their SGR codes; dropped, the lines before them not kept; and its ending (Ending::Exited, with an Exit, or Unknown), None while it runs. |
| A command's output as it runs | Change::OutputChanged: the lines from from on replaced by lines, then dropped more gone from the top. |
| Compaction | Later: ItemKind::Compacted. |
| A question | Chat.questions, oldest first: QuestionKind::Permission (its title, options and the tool it's about, the Item whose ToolCall it shows, once there is one; CAF's own question when that call's origin is Origin::Caf) or SlowToOpen (adapter_answered). Answered with Core::answer, or a viewer's FromViewer::Answer. |
| Stop | Core::stop, or FromViewer::Stop: it answers the agent's questions as cancelled, and stops the waiting messages. |
| A failure | TurnLife::Failed(Failure): its reason (FailureReason), agent_said, and remedy (Remedy::SendAgain or SignIn). |
| Send again | Sending the turn's message again: Core::send, or FromViewer::Send. |
| Sign in | Core::sign_in, or a viewer's FromViewer::Agent with AgentAction::SignIn. |
| Who may act | The viewer's Rights: act to send, stop and answer; agents to sign in. |
| A note | ItemKind::Note, a Note. A setting's (AgentChanged, NotOffered, NotApplied) holds the choice, and the agent's name for it, if it said one. |
| A lost chat | ChatState::Lost, with its Lost reason, and Incompatible's. |
| History | Turn.imported, from a chat opened with SessionChoice::Continue. |
| The model divider | Turn.model differing from the turn before's. |
Agents
CAF / Standard Interface
Before a chat can go on, its agent may need installing, or signing in to. The agent banner says so, in the chat, and offers what to do. The agents panel shows every agent at once, and is where the user signs out.
An agent's install and sign-in are the agent's, not a chat's: every chat with Claude shares one install and one sign-in. So every chat with Claude shows the same banner, and it changes in all of them at once.
See the agents live, every state, in dark and light.

Required: the banner, when it shows, its states, its words and its actions, since they're inside the chat; and what each row of the agents panel says and offers. Up to the app: where the agents panel is, and how it's opened.
Its parts #
The banner attaches to the top of the composer, as a question does, and the box is joined to it in the banner's tone. Whatever needs the user is then in one place, just above where they write. See the composer.
| Part | Where | What it is |
|---|---|---|
| The mark | Left of the first line | The agent's mark; a spinner, in the accent, while CAF finds something out (whether it's installed, the sign-in's link); a tick once it's signed in. |
| What's needed | The first line | What stands in the way, in one sentence. Its subject is bold: all of it when it's short (Claude isn't installed yet.), or the part before the colon (Couldn't install Claude: the disk is full.). |
| What happens | Under it, muted | What it costs, whether messages wait, and what to do next. |
| What CAF said | Under that, small and muted, in a monospace font | Only where CAF passes on words not its own, such as the installer's. |
| Progress | Under that, while installing | A bar in the accent, and how much is done. |
| The steps | Under that, while signing in | Numbered: the page to open, a code to type or paste, and that it ends by itself. |
| The actions | At the foot | In this order: at most one primary button, in the accent; Stop, plain; Not now, quiet. |
Its tone follows the state, and the box takes the same edge:
- Accent while it waits on the user: the agent isn't installed, it's signed out, or a sign-in waits for them.
- Calm, with no role colour, while CAF does the work (checking, installing, starting a sign-in), once it's done, and for a viewer that can do nothing about it.
- Warning when it went wrong, or can't go on: a failed install, or a machine that can't install the agent.
When it shows #
The banner follows the agent's status, not the chat's state. It shows in
every chat with the agent but an archived one (CAF's Closed), whether
the chat is open, idle or lost, while the first of these holds:
- The agent isn't installed. It's one CAF installs, and its install
(
AgentStatus.install) is anything butInstalled. (An agent the app starts itself isHost, and never needs installing.) - A sign-in to it is under way (
SignInState::SigningIn). - It's signed out (
SignInState::SignedOut), and CAF can sign in to it now (can_sign_in).
Once none holds, it goes, but for a moment after a sign-in, as Signed in says.
A question comes first. When a question waits on the user as well, the question attaches to the composer instead, and the banner comes back once it's answered. Only one thing attaches at a time.
Whether messages wait is the chat's, not the agent's: they wait while
the chat is ChatState::WaitingForAgent. CAF makes a chat wait for an
agent it installs until it's installed, and, while a sign-in that started
when the agent was signed out is under way, a chat that isn't running its
agent yet waits too. A chat in any other state sends as usual.
While the chat waits, the composer says Message Claude: it waits until Claude is ready, and a message sent waits on the composer's tray, headed Waiting for Claude · 1, with Not now drops it.
Not now is in the banner while the chat is ChatState::WaitingForAgent
with a message waiting, and the viewer may act. No turn can be running then,
so it drops this chat's waiting messages, and nothing else (Core::stop).
In any other state, such as a chat mid-turn while a sign-in to its agent is
under way, there's no Not now: a message queued behind the turn stays on
the tray as usual, with Stop drops it too. Stop stops the install or
the sign-in, for every chat with the agent.
The signed-out banner's Not now is the one exception: nothing waits there, and it only hides the banner, as Signing in says.
Installing #
These are for an agent CAF installs (AgentSpec::installed). Sizes are in
MB of 1,000,000 bytes, rounded, or GB with one decimal from 1,000 MB, as
627 MB.

Checking. Until CAF has looked at what's installed
(InstallState::Unknown), as just after the app starts, the banner is calm,
with a spinner: Checking whether Claude is installed…, and under it,
Messages wait until Claude is ready.
If CAF can't look, it stays Unknown, and nothing says so but CAF's log.
So after 10 seconds of checking, the banner adds Install, with no size (CAF
accepts it while it hasn't looked, and Unknown carries no size), and the
app calls Core::check_agents again, then every 30 seconds while it's
still Unknown.
Not installed. The main picture above. CAF has looked, and the agent
isn't installed (InstallState::Missing). The banner says
Claude isn't installed yet., then
Installing it takes about 627 MB of disk. Messages wait until it's installed.
The size is what the install takes on disk (Missing.size, the recipe's
size): installing is the user's choice, so they're told what it costs
before they agree. The action is Install · 627 MB, with a download
arrow.

After Not now. Not now dropped the message. The chat shows it as stopped, and CAF says why, in its own voice: Claude isn't installed, so the message that waited for it was stopped. The agent still isn't installed, so the banner stays, with Install.
CAF adds that note only while the agent isn't installed (Missing,
Installing or Cannot). Not now pressed while it's checking, or while a
sign-in holds the chat, stops the message silently: it shows as stopped,
with no note.
The chat is now lost, as one stopped while opening is
(Lost { reason: Stopped }). While the agent banner shows, it stands in
for the transcript's box for a lost chat, which isn't drawn: what to do
next is in the banner, and why in CAF's note. The next message sent waits
again.

Getting ready. Once Install is pressed, the banner is calm:
Installing Claude…, Messages wait until it's installed. Until any of it
is done (Installing.done is 0), the bar moves without filling, and says
Getting ready. The action is Stop.

Installing. As it goes, the bar fills, and says how much is done, of
about how much: 276 of about 627 MB (Installing.done and size). The
size is CAF's estimate, so done may pass it: the bar then stays full, and
says 640 MB so far. Don't guess how long is left.
When it's done, every chat waiting for the agent starts, its waiting messages go, and the banner goes.
Installs nobody pressed for. A later CAF may patch the version installed again. It makes the new install from the one that's there, without asking, as nothing is downloaded, and the agent shows Installing by itself, in every chat with it. If that fails, it reads as not installed, and installing it asks, as usual.
Install pressed before CAF has looked. For an agent CAF installs patched, as it does Claude, the install waits for CAF to look, showing Getting ready. It then goes on, or, if the machine can't install the agent at all, stops every message waiting for it, with the note Claude's install failed, so the message that waited for it was stopped., and shows why, as below. For any other agent, it downloads at once.
When an install fails #
An install that fails stops every message waiting for it, in every chat with the agent, and each chat that had one says so in CAF's voice: Claude's install failed, so the message that waited for it was stopped. The banner takes the warning colour, says why, and offers Try again, which installs it afresh. It says nothing of messages, since CAF's note already does, where one was stopped. A message sent afterwards waits again, with Not now.

Offline (InstallFailure::Offline):
Couldn't install Claude: the network was out of reach., then
Check the connection, then try again.

A damaged download (InstallFailure::Corrupt): a download didn't match
its checksum, so CAF threw it away.
Couldn't install Claude: what was downloaded wasn't what was expected, so it was thrown away.,
then Trying again usually works.

The disk is full (InstallFailure::NoSpace):
Couldn't install Claude: the disk is full., then
It takes about 627 MB. Free some space, then try again.

Not finished (InstallFailure::Patch): CAF installs some agents
patched, and the patch didn't fit, so CAF removed the install rather than
run it half-patched.
Couldn't install Claude: it couldn't be finished once downloaded, so it was removed.
Under it is what CAF said: which file, and which check stopped it. Then
Trying again downloads it afresh. If it fails the same way, this app needs updating.
Only a newer CAF fixes a patch that doesn't fit what was downloaded.

Anything else (InstallFailure::Other):
Couldn't install Claude. The installer said:, then what it said, as CAF
gives it (cleaned, and cut to 300 bytes).
Stopped (InstallFailure::Stopped): the installer reported it was
stopped, though CAF didn't stop it. (An install CAF stops, by the user's
Stop or as the app shuts down, just reads as not installed.)
Couldn't install Claude: the last try was stopped., with Try again.
When it can't be installed #
Some machines can't install an agent at all (InstallState::Cannot).
Trying again would fail the same way, and CAF refuses it
(Refused::NotInstallable), so there's no Try again. The banner takes the
warning colour.

Node (CannotInstall::Node):
Claude can't be installed here: it needs Node 22 or newer, and this machine has Node 18.,
or …and this machine has no Node. when it has none. Then
Install a newer Node, then check again. Messages wait until it's installed.
Check again has CAF look again (Core::check_agents, or a viewer's
CheckAgain); if the machine now has what's needed, the banner turns to
Install. It looks at what's installed and what the machine has for every
agent, not only this one. CAF never installs Node itself. Check again
needs the agents right: a viewer without it has none, and the app looks
again itself, such as when its window comes to the front, which any app
may do too.

npm (CannotInstall::Npm):
Claude can't be installed here: it needs npm, and this machine has none.,
then Install npm, then check again. Messages wait until it's installed.,
with Check again.

No build (CannotInstall::Platform). Later. Only an agent CAF
downloads can lack a build for the machine. Today Claude is CAF's only
built-in agent, and it comes from npm, so no app can show this yet. It's
here for a future agent CAF downloads; the example is Codex.
Codex can't be installed here: there's no build of it for this machine.,
then Start a new chat with another agent. Nothing on this machine will
change that, so no message could ever go: the composer is locked, as when
the user can't write, and says
Codex can't run on this machine, so this chat can't go on. CAF would
still take a message, and hold it for ever, so the app doesn't offer to
send one. A message already waiting keeps Not now.
No recipe (CannotInstall::NoRecipe): CAF doesn't know how to install
this agent. Every built-in profile has a recipe, so this happens only when
the app offers an agent CAF installs with the cautious profile. That
profile can't turn off the agent's own tools either, so CAF won't run it
(Refused::OwnTools), and what
A chat's identity and lifecycle says of an
agent CAF won't run wins: its lock and words, not a lock of this page's.
The banner says only my-agent can't be installed by this app., with no
actions.
Signing in #
CAF signs in with the agent's own sign-in, never one the agent suggests, and never sees a password. For Claude, that's a page on Claude's site, opened in the user's browser.

Signed out. When the agent is known to be signed out, and CAF can sign
in to it now (can_sign_in), the banner says Claude is signed out., then
Sign in with your Claude account to use it. Claude's sign-in page opens in your browser.
The actions are Sign in, with a key, and Not now.
Nothing waits here: CAF doesn't hold a chat back because its agent is
signed out, so the box says only Message Claude. A message sent now goes,
and fails asking for a sign-in, with Sign in as its remedy
(Remedy::SignIn), as the transcript
shows. Here, Not now only hides the banner in this chat, until the agent's
state changes; CAF isn't asked anything.
While can_sign_in is false there's no Sign in, and no signed-out banner.
For an agent CAF installs, it's false until it's installed. For one the app
starts itself, it's false until it has started once in this run, and for
ever if its sign-in needs a file only CAF's own install has, or the private
folder CAF gives only its own installs.

The link coming. Once Sign in is pressed, here, on a failed turn or in
the panel, the agent's sign-in starts. Until it gives its link
(SignInLink.url is None), the banner is calm, with a spinner:
Starting Claude's sign-in…, then
The page to sign in on will be here in a moment., and, where the chat
waits, Messages wait until you've signed in. The action is Stop.

Signing in. The banner says Sign in to Claude, in the accent, then, where the chat waits, Messages wait until you've signed in. It numbers the steps:
- Open the sign-in page on claude.ai, and sign in there., naming the link's own site, with Open the sign-in page. Under it is the link itself, muted and cut short, with a Copy link button, for a browser elsewhere.
- When the sign-in takes a code pasted back (
SignInLink.paste, as Claude's does): If the page gives you a code instead, paste it here:, a box and Send the code, then As it does when the browser is on another machine. - Muted: That's all: this goes on by itself once you've signed in.
Open the link in a new browser tab or window, cut off from the app, and only
if it's https. CAF has already checked it goes to a site the agent's
profile names, and stops a sign-in whose link goes anywhere else; that's the
app's own check besides.

A code to type. Later. Some agents' sign-ins show a code to type on
the site (SignInLink.code). Claude's doesn't, and it's CAF's only
built-in agent today, so this is for a future one; Gemini is here only as
an example.
Step 2 is then When it asks for a code, enter this one:, with the code,
large and spaced, and Copy. A sign-in may have both a code and a box to
paste into; each is a step of its own, in that order.
Stop stops the sign-in (Core::stop_sign_in), and the agent goes back
to how it was, as it does when a sign-in nobody finishes is stopped, after
10 minutes (Timers::sign_in), and when a sign-in fails: it ends badly, its
command can't run, or its link goes to a site the profile doesn't name. CAF
gives no reason for a failure, as it could be what the command printed, so
the banner just goes back to how it was, and the chats that waited go
ahead: their messages go, and fail asking for a sign-in if the agent is
still signed out. Don't show a countdown: CAF doesn't tell a viewer when it
will stop a sign-in.

Signed in. When the agent turns from SigningIn to SignedIn, every
chat that was showing the sign-in keeps its banner for 4 seconds more,
calm, with a tick, saying how, as the current SignedInAs has it:
Signed in to Claude with your account., …with an API key.,
…through a gateway., or Signed in to Claude. while it's Unknown. CAF
first says SignedIn(Unknown), and learns how a moment later, so the
banner may begin Signed in to Claude. and then say how. Under it, where a message waited,
Your message is on its way. CAF has no state for this: the app holds it.
A chat whose last message failed for want of signing in also gets a note
from CAF, saying the user signed in, and that the message can be sent
again (Note::SignedIn). CAF never sends it again by itself.
Agents CAF installs from one profile share one sign-in: signing in to one signs in to all of them, in every chat. Each agent the app starts itself has its own.
What the actions do #
| Action | What it does |
|---|---|
| Install · 627 MB | Installs the agent (Core::install). Pressing it while it's already installing does nothing more. |
| Try again | The same, after a failed install. It downloads afresh. |
| Stop (installing) | Stops the install, for every chat (Core::stop_install). The agent reads as not installed. Messages waiting for it are stopped, with the note Claude isn't installed, so the message that waited for it was stopped. |
| Check again | Has CAF look again at what's installed and what the machine has, for every agent (Core::check_agents, or a viewer's CheckAgain, with the agents right). |
| Not now | Drops this chat's waiting messages, as the composer's Stop would (Core::stop). Where nothing waits, on a signed-out agent, it only hides the banner. |
| Sign in | Starts the agent's sign-in (Core::sign_in). Pressed while one is under way, it does nothing more. |
| Send the code | Passes what was pasted to the sign-in (Core::paste), trimmed. Unlit while the box is empty. |
| Stop (signing in) | Stops the sign-in, for every chat (Core::stop_sign_in). |
| Sign out | Signs out with the agent's own command (Core::sign_out), stopping any sign-in first. Only in the agents panel. |
When CAF refuses #
If CAF refuses an action, the banner, or the panel's row, says why under its actions, in the warning colour, and stays as it was:
| CAF refuses | It says |
|---|---|
NotInstallable | Claude can't be installed here. |
AlreadyInstalled | Claude is installed already. |
CannotSignIn, signing in | Claude can't be signed in to from here now. |
CannotSignIn, signing out | Claude can't be signed out of from here. |
NotSigningIn | Claude isn't being signed in to any more. |
NothingToStop | There's nothing to stop now. |
Unsupported, pasting | That can't be sent as a code: paste one line, of at most 4 KB. CAF refuses a paste of more than one line, or longer than 4 KiB. |
NoSuchAgent | This app doesn't offer Claude any more. |
NoSuchChat, on Not now | This chat isn't open any more. |
Outcome::Gone, to a viewer | The app has closed, so nothing was done. |
Outcome::NotAllowed, to a viewer | You can't install agents or sign in to them here. |
A viewer without the agents right #
Installing agents and signing in to them is a right of its own
(Rights.agents). In caf-driver-tokio it's given by
ViewerRules::agents, which is off by default. Whoever opens the sign-in
link and approves it chooses whose account the agent signs in to, so a
viewer that may only watch never sees the link or the code: CAF doesn't send
them. Such a viewer is told what's happening, and offered nothing it can't
do. Its banner is calm, as what the agent needs is nothing this user can
act on. A viewer with the act right still gets Not now, quiet, as for
anyone: it drops only their own chat's message, so it doesn't make the
banner the user's to act on.

Not installed. Claude isn't installed yet., then You can't install agents here. Messages wait until it's installed. There's no Install.

Installing. As for anyone, but with no Stop.

Signing in. CAF sends the state, but no link or code, so the viewer can't tell whether the link has come. The banner has a spinner: Someone is signing in to Claude., then You can't sign in to agents here., and, where the chat waits, Messages wait until they've signed in.
Not now needs only the right to act (Rights.act), as it drops the
viewer's own chat's messages, so this viewer keeps it wherever a message
waits. A viewer without act can't write, so has no Not now, and its tray
has no note. The failure states show their words with no Try again or
Check again, and the signed-out banner isn't shown at all.
The agents panel #

Later, in part: today Claude is the only agent CAF installs, so the Codex, Cursor and OpenCode rows, which CAF would install, stand for future agents. An agent the app starts itself, as Gemini and my-agent are here, can sit beside Claude now.
The agents panel lists every agent the app offers, in the app's order
(Core::agents), one row each:
- Its mark and name, as in a chat, and its version as CAF installed it:
0.98.0+caf.1 (
Installed.version). An agent the app starts itself says started by this app instead. An agent the app has no mark for shows its initial, in a muted square. - Its install: Installed; Not installed · about 52 MB, in the caution colour; Installing · 31 of about 70 MB, with a spinner in the accent and a bar under the row; Couldn't install: or Can't be installed: and why, as the banner says it, in the warning colour. Checking… until CAF has looked.
- Its sign-in, once it's installed or started by the app: Signed in with your account (with an API key, through a gateway, or just Signed in), Signed out in the caution colour, Signing in, or nothing while CAF doesn't know.
- Its tools: Uses only this app's tools, when CAF can turn the agent's
own tools off (
own_tools_off), whether it's installed or not. When it can't, CAF won't run it, and the row says so, in the warning colour: Can't be used: its own tools can't be turned off. Chats with it are refused (Refused::OwnTools). - Its action, on the right. One at most, the first of these that applies:
| The agent | The action |
|---|---|
Not installed (Missing) | Install, primary |
Not known yet (Unknown), after 10 seconds | Install, primary, with no size |
| Installing | Stop |
Its last install failed (Cannot(Failed)) | Try again, primary |
Can't be installed for want of Node or npm (Cannot(Node), Cannot(Npm)) | Check again |
Can't be installed otherwise (Cannot) | None: why is in the row |
| Being signed in to | Stop, with the steps under the row |
Signed out or not known, and can_sign_in | Sign in, primary |
| Signed in | Sign out. CAF can refuse it, as for an agent whose profile has no way to sign out; the row then says Claude can't be signed out of from here. |
A sign-in shows its steps in the panel's row, as the banner draws them, unless a chat with that agent is shown beside the panel, which shows them already. CAF has no update action: a newer version of an agent comes with a newer CAF, which asks to install it when it's next used, or makes it without asking when it's only patched again, as above.

For a viewer without the agents right, the panel has no actions, and
says at its foot
You can see the agents here, but not install them or sign in to them.
What CAF tells the app #
| What the banner or panel shows | Where it comes from |
|---|---|
| Whether the banner shows | The agent's status: install neither Installed nor Host; SignInState::SigningIn; or SignInState::SignedOut with can_sign_in. In any chat but an archived one (Chat.archived). |
| Whether messages wait | The chat's ChatState::WaitingForAgent. |
| Every agent's status | Core::agents, and a viewer's ToViewer::Agents, again each time any of it changes. |
| The install states | AgentStatus.install: Host, Unknown, Missing { size }, Installing { done, size }, Installed { version }, Cannot(why). |
| Why it can't be installed | CannotInstall: Node { needs, has }, Npm, Platform, NoRecipe, or Failed(InstallFailure): Offline, Corrupt, NoSpace, Stopped, Patch(what), Other(what). |
| The sign-in states | AgentStatus.sign_in: Unknown, SignedOut, SigningIn(SignInLink), SignedIn(SignedInAs). |
| The sign-in's steps | SignInLink: url (checked against the profile's sites), code, paste. |
| Whether Sign in is offered | AgentStatus.can_sign_in. |
| Uses only this app's tools | AgentStatus.own_tools_off. |
| The notes in the chat | Note::NotInstalled, Note::InstallFailed, Note::SignedIn. |
| A refusal | Refused, or a viewer's Outcome::NotAllowed, as the table above gives them. |
| Who may do what | The viewer's agents right for installing, signing in and Check again, and its act right for Not now. |
See Installing and signing in for the calls, and Agents and profiles for what CAF does underneath.
A Chat's Identity and Lifecycle
CAF / Standard Interface
A chat appears in more places than its own pane: in a sidebar, on a tab, in a menu, on a workspace's badge. Wherever it appears, one component says which chat it is and whether it needs the user. And over its life a chat is restored, put out of sight, archived, deleted and started, which the chat itself shows the same way in every CAF app.
See it live: the identity at every size, and every state, in dark and light.

| Part | How firm |
|---|---|
| The identity component: its states, sizes and how each looks | Required |
| The lifecycle: every state below, its words, and what its actions do | Required |
| Where chats are listed, and where the component sits | Up to the app |
| Where actions live: buttons, context menus, keys | Up to the app. Only what they say and do is fixed. |
| Search, sorting, grouping, and empty states | Up to the app |
| Projects and workspaces (CAF's shelves) | Up to the app. They follow the app's own: there's no shelf picker. |
The identity #
One component says which chat this is and whether it needs the user. It has three sizes; use whichever fits where the app shows chats:
| Size | For | What it shows |
|---|---|---|
| Full | List rows | The agent's mark, the title, and on the right when it last changed or a dot. Under the title, a reason line: what's going on, or the number of turns. |
| Compact | Tabs and menus | One mark and the title. The mark is the agent's, or the state's dot or sign when there is one. |
| Minimal | Where there's room only for a mark, such as a pane header or a workspace's badge | The state's dot or sign alone, with the title as its tooltip. Nothing at all while the chat is idle or archived. |
The title #
The app's label for the chat, if it has one (AppData::label). Without
one, the first line of the first message the user sent, in quotes and
italics: "Why does the file store take a flock before the rename?". A
chat with neither, a new one before anything is sent, is New chat. Never its id. A title too long for its
place ends in an ellipsis.
The states #
| State | Full | Compact and minimal | When |
|---|---|---|---|
| Idle | Agent's mark; when it last changed; 12 turns | Agent's mark; minimal shows nothing | Nothing is going on. |
| Working | A pulsing dot in the accent; Working · 31s, in the accent | The pulsing dot | A turn is running, or stopping; the chat is starting its agent with a message waiting; or it waits for its agent while CAF does the work, such as installing it. |
| Waiting on you | A dot in the accent with a ring around it; what's waiting, such as Wants to run a command, in the accent | The ringed dot | A question is waiting, or the chat waits for its agent and the agent banner waits on the user, such as to install it or sign in. |
| Failed | A dot in the warning colour; why, such as Usage limit, in the warning colour | The dot in the warning colour | Its last turn failed. |
| Lost its agent | A hollow dot, a ring in the caution colour; why, such as Claude stopped., in the caution colour | The hollow dot | The chat lost its agent between turns. What the next message does depends on why, as the transcript's box for it says: for most reasons it tries again, but after Incompatible or ShutDown, nothing can help. |
| Restoring | A spinner; Restoring… | The spinner | Briefly, as a saved chat opens. |
| Archived | Title muted; on the right, when it was archived; 22 turns · and an Archived badge | Muted; minimal shows nothing | The user archived it. It can still be opened, and stays archived, open or not, until the user unarchives it or sends to it. |
| Can't restore | A badge in the warning colour: Can't restore: damaged, naming the reason | A warning sign in the warning colour | Its last restore failed. |
| Agent gone | A crossed-out plug and Gemini isn't available, muted | The crossed-out plug | The app no longer offers its agent. It can be read but not carried on. |
| Agent can't be used | A lock and Claude can't be used, muted | The lock | CAF won't run its agent, as it can't turn off the agent's own tools. It can be read but not carried on. The lock is the composer's, as An agent that's gone shows. |
The states and how each looks are fixed. Working's dot pulses, Waiting on you's is ringed, and Lost's is hollow, so they differ by shape at every size, not only by colour or movement. The reason line uses CAF's words for what's going on: the transcript's for a failure and for a lost agent, and the question's for what waits on the user.
Working counts from when its message was sent, so it includes any time the message waited. While Stop is under way, its reason line says Stopping…; while the chat starts its agent, Starting Claude….
A chat waiting for its agent follows the agent banner, and the reason line is the bold part of the banner's first line, without its full stop:
| The banner's tone | State | Reason line, for example |
|---|---|---|
| Accent: it waits on the user | Waiting on you | Claude isn't installed yet |
| Calm, as CAF does the work: checking, installing, or a sign-in's link on its way | Working, with no time | Installing Claude…, Checking whether Claude is installed… |
| Calm, only because this viewer can't act on it | No dot: the agent's mark, and the reason line muted | Claude isn't installed yet |
| Warning: it went wrong, or can't go on | Failed | Couldn't install Claude |
A viewer that can't act on the agent gets no dot: Waiting on you would ask it for something it can't do, and Working would say something is under way when nothing is. The muted line still says why the chat isn't going on.
That holds while the chat is WaitingForAgent, and while it's
Lost { reason: Stopped } with the banner showing, as after Not now: the
banner stands in for the lost chat's box then, so the identity follows the
banner, not the loss.
Which state. A chat is in the first of these that holds:
- Restoring or Can't restore, from how the chat is saved, while it isn't open; then Archived, while the chat is archived, open or not, saved or not.
- Agent gone, when the app no longer offers its agent, or Agent can't be used, when CAF won't run it.
- Waiting on you, while a question waits.
- The agent banner's state, as above, while the chat is
WaitingForAgent, orLost { reason: Stopped }with the banner showing. - Working, while its last turn is running or stopping, or the chat is
Openingwith a message waiting. - Failed, when its last turn failed.
- Lost its agent, while the chat is
Lost. - Idle: anything else. That covers a chat whose last turn finished,
was stopped or was cut off, and one
Openingwith no message waiting.
Its last turn is the last one the user or the agent started. A turn of CAF's own, which only carries CAF's notes, such as the one saying the user signed in, never counts: a chat that failed for want of signing in stays Failed until the next turn.
Hosting it #

Up to the app. Three apps, three ways of listing chats, the same component: full in a simple app's sidebar, compact on framewright's tabs, minimal on clackatoo's workspaces with compact in its pane headers. They show it fitting in; they're not layouts to copy. Put chats wherever the app already puts its things.
An archived chat in a list. Required. Wherever a list shows an archived chat, open or not, saved or not, it shows it in the identity's Archived state, at whatever size the list uses: the title muted, and at full size the Archived badge and when it was archived. It's never shown as idle, nor left out because it's still open: an archived chat the user has open is listed as archived until it's brought back, then as any other at once. Whether a list keeps archived chats apart, such as under an Archived heading, last, or behind a filter, is up to the app.
The rules #
Required.
- No CAF words. Users never see shelf, loaded, put away, session or adapter. A shelf takes the app's own word, such as project or workspace, or none.
- Opening a chat just opens it. If it was saved, CAF restores it, and that shows only as a brief Restoring. Users never manage what's in memory, so there's no "open" against "saved".
- Closing a tab or a pane never archives a chat. A saved chat is put away; one that isn't saved stays open, out of sight. Closing a tab says what happens to each.
- Archive is CAF's close: "I'm done with this one". It's a deliberate action, never a side effect of closing a tab or a pane. Archiving sticks: an archived chat stays archived, opened or not, until the user unarchives it or sends to it.
- Delete can't be undone, so it always asks first, naming the chat. Only a saved chat can be deleted.
- A new chat is an empty chat. There's no form: the agent is chosen in the composer's own settings menu, and sending starts the chat.
- When a chat can't be restored, say which of the six reasons it is, in the words below, with only the actions that can help.
Restoring #

Restoring. Opening a saved chat restores it: CAF reads it back, and it carries on as it was. Meanwhile the chat shows a spinner and Restoring…, and its title in the header. This is the only sign it was saved.
A restored chat starts no agent until a message is sent. What was under way when it was saved is tidied: a turn that was running is cut off, and a message that was waiting is stopped, never sent by itself. The transcript shows both.
When it can't be restored #
CAF gives one of six reasons, and leaves the chat's save exactly as it was, whatever the reason. The chat shows a box in the warning colour: a heading in bold, with a warning sign and no full stop, then a sentence or two under it. When CAF has the store's or the system's own words, they follow in a monospace font, muted. Under the box are only the actions that can help.

Damaged (Damaged).
- Heading: This chat's save is damaged
- Under it: It can't be read, so it can't be opened. The save is left exactly as it was.
- Then what the store said, such as chunk 3: zstd frame checksum mismatch.
Trying again can't help, so the one action is Delete…, which asks first, as Delete does.

In use (InUse). Another program has it open: another app, another
window of this one, or another copy of CAF.
- Heading: This chat is open somewhere else
- Under it: A chat is never open in two places at once. Close it there, then try again.
Try again restores it again.

Newer (Newer).
- Heading: Saved by a newer version
- Under it: A newer version of this app saved it, in a form this one can't read. It's left untouched until this app is updated.
Nothing helps but updating, so there are no actions.

The app's data (AppData).
- Heading: This app can't read its own data on this chat
- Under it: Another version of this app saved it, in a form this one can't read. The chat is left untouched, for a version that can.
- Then what the app's reader said, such as missing field
pinned.
There are no actions.

Couldn't read (Store).
- Heading: This chat couldn't be read
- Under it: Reading it failed, and nothing was changed. Try again in a moment.
- Then what the system said, such as Input/output error (os error 5).
Try again restores it again.

Gone (NotFound).
- Heading: This chat is gone
- Under it: Nothing is saved under it any more. It may have been deleted elsewhere.
Remove from list lists the saved chats again, and it drops out. Only the app can list them, so a viewer shows no action.
Try again is offered only after In use and Couldn't read: for the other four, trying again can't change the answer.
Closing a tab #
Closing a tab or a pane, or whatever the app uses to put a chat out of sight, never archives it.
-
A saved chat is put away: saved as it is, and let go of, so it takes nothing while it's closed. Opening it again restores it, as it was. When that happens depends on what the chat is doing:
- At once, unless a turn runs or is stopping, a message waits behind
one, a question waits, or the chat is
Openingwith a message waiting. - In those cases, once they're done, so closing a tab never stops the agent's work. A question keeps it open until it's answered, or until the app stops, which saves it anyway.
- A chat waiting for its agent is put away at once, and its waiting messages are stopped, since they may wait for ever. Unlike Not now, this brings no note from CAF: the transcript shows them as stopped, with no reason. The app may warn first, such as Closing this drops the message waiting for Claude.
Until it's put away, wherever the app lists it, it shows its state as usual, such as Working or Waiting on you. Opening it again before then just shows it: it's still open, and restoring it would be refused. Once it's put away, CAF may still be writing it for a moment, and refuses to restore it meanwhile (
Refused::Loaded): opening it again then, the app tries again for a moment, until it can. - At once, unless a turn runs or is stopping, a message waits behind
one, a question waits, or the chat is
-
A chat that isn't saved stays open, as it is, out of sight. The app can show it again, as it was, until the app stops; then it's gone.
Archiving #
Archive is CAF's close: the user is done with the chat. Its agent is let go, and a saved chat is saved, archived, and put away. Wherever it appears, it's muted, with an Archived badge, and the full identity shows on its right when it was archived, in place of when it last changed. A chat saved archived before CAF kept when shows when it last changed instead.

Opening an archived chat restores it, as any saved chat, and it's still archived: archiving sticks. The chat shows it as anywhere else, with its title and the Archived badge in the app's header for it, and its composer's tray says This chat is archived. Sending a message brings it back., with Unarchive, as The composer shows. It can be read, and written in; only its settings can't be changed meanwhile.
Bringing it back. A message sent to an archived chat brings it back: CAF unarchives it, then sends the message as to any other. Unarchive brings it back without sending. Either way it's an ordinary chat again at once: the badge and the tray's note go, and its agent starts when a message is sent, as for a restored chat. Wherever it's listed, it goes back to how its state shows it.
A saved chat is put away as it's archived, so the app no longer has it
open. To send to it or unarchive it, the app restores it first
(Core::restore), archived still, then sends or unarchives, as
The composer
says: the user sees nothing of this. Right after it's archived, the
restore is refused (Refused::Loaded) while CAF finishes writing it, for
moments: the app tries again for a moment meanwhile, as
Closing a tab says for any chat just put away. A chat
restored archived is ChatState::Closed until it's brought back, then
Idle.
A chat that isn't saved, once archived, stays in memory, archived, until the app stops, and is brought back the same way.
An agent that's gone #

Agent gone. A saved chat whose agent the app no longer offers still opens, with all it held, and can be read but not carried on. Its composer says why instead of offering to send: Gemini isn't available in this app any more. You can read this chat, but not carry it on., with a crossed-out plug, the agent's mark and name, and the context ring.
If the app renamed the agent, the chat isn't gone: when exactly one agent the app offers has the old one's built-in profile, CAF finds it by that, and the chat comes back with the agent under its new name. With none, or more than one, the agent is gone.

An agent CAF won't run. CAF never runs an agent whose own tools it can't turn off. A saved chat with such an agent still opens, and reads as an agent gone does, with a lock in place of the plug: Claude can't be used: its own tools can't be turned off. You can read this chat, but not carry it on. Agents says the same of the agent in its panel.
It happens in two ways, and the app knows both from the agent's status
(own_tools_off is false):
- The app gave the agent the cautious profile, which doesn't say how to
turn its tools off. CAF refuses to send to the chat (
Refused::OwnTools). - The agent isn't the one its profile is for, as when the program
started as Claude turns out to be another. CAF learns this only once it
has started the agent in this run. It doesn't refuse the message, but
the chat loses its agent each time it opens
(
Lost { reason: Incompatible(OwnTools) }), so no message could ever go. Locking the composer then is the app's rule, not CAF's refusal, so the user isn't asked to write what can't be sent. Until CAF has started the agent, the chat looks ordinary, and its first message ends with the transcript's box for the loss.
Starting a chat #

New chat. A new chat is an empty chat: its title is New chat, its body says New chat and Send a message to start. under the agent's mark, and its composer says Message Claude to start. There's no context yet, so no ring. Sending starts it, and the message is its first.

Choosing the agent. The agent is chosen in the composer's settings menu, as its model is in any chat. In a new chat, the menu's rail lists every agent the app offers, each with its models, and a dot in the caution colour on any that still needs installing or signing in. An agent whose settings CAF doesn't know yet shows Not known yet and Learn them now, as The composer shows.

Choosing the folder. Only if the app lets users choose where the agent works does the box have a second control, beside the settings: the folder, such as ~/projects/caf. An app that decides the folder itself has none.

An agent that isn't ready. Picking one that still needs installing shows, in place of its models, Codex isn't installed yet. Choose it, and this chat will offer to install it once you send. Its models show here once it's ready., and Use Codex. One that needs signing in says Codex needs you to sign in., and that the chat will offer to sign the user in. Once the message is sent, the chat waits for the agent, and the agent banner takes over on the box, as The composer shows.

Refused. The app decides each new chat, and may refuse one. When it does, the box says why, in the app's words and the warning colour, attached to the top of the box: Chats can't be started in /etc. Choose another folder. The message stays in the box.
Deleting #

Delete is wherever the app puts it, and always asks first: Delete "Usage ledger sketch"? It's gone for good: this can't be undone. To keep it but put it out of the way, archive it instead. The actions are Cancel, Archive, and Delete, in the warning colour. Deleting removes the chat for good, open or not.
Only a saved chat can be deleted: one that isn't saved is gone anyway when the app stops, and is archived instead. Only the app can delete a chat, so a viewer offers no Delete.
What CAF tells the app #
| What the chat shows | Where it comes from |
|---|---|
| The title | The app's label, AppData::label: in an open chat's ChatSummary.label and a saved one's Header.label. Else the first line of the first message the user sent: a saved chat's Header.first, or the first Starter::User turn's text. |
| The agent's mark | Chat.agent, ChatSummary.agent or Header.agent. |
| When it last changed; turns | A saved chat's Header.changed and Header.turns. A chat that isn't saved: the latest time in its turns' Turn.window, and how many Chat.turns it has. |
| Its last turn | The last of Chat.turns whose Turn.starter is User or Agent, never Caf. |
| Working | That turn's TurnLife::Running or Stopping, counted from its Turn.window.start; or ChatState::Opening with a turn TurnLife::Waiting. |
| Waiting on you | A question in Chat.questions; or ChatState::WaitingForAgent, or Lost { reason: Stopped } with the banner showing, while the banner's tone is accent. The banner's tone comes from the agent's AgentStatus, as Agents says. |
| Failed | That turn's TurnLife::Failed, with its Failure.reason. |
| Lost its agent | ChatState::Lost, with its Lost reason, in the transcript's words; but Lost { reason: Stopped } follows the banner while it shows. |
| Restoring | SavedState::Restoring, or Core::restoring. |
| Archived | Chat.archived, when it was archived, while it is: for a chat that's open, and kept in its save. In a viewer's list of open chats, ChatSummary.archived. For a saved chat that isn't open, Header.archived, or, for a chat saved before CAF kept when, Header.closed. A chat's Change::Archived says when it's archived or unarchived. |
| Can't restore | SavedState::Failed, with its CannotRestore reason: NotFound, InUse, Newer, Damaged, AppData or Store. Restoring answers with it too: Error::CannotRestore, or a viewer's Outcome::CannotRestore. |
| Agent gone | The chat's agent isn't among those the app offers (Core::agents, or a viewer's Welcome.agents): sending is refused with Refused::NoSuchAgent. A renamed agent is found by Header.profile. |
| Agent can't be used | Its AgentStatus.own_tools_off is false. With the cautious profile, sending is refused with Refused::OwnTools. With an agent that isn't the one its profile is for, sending isn't refused, but each open ends Lost { reason: Incompatible(OwnTools) }, and the lock is the app's own rule. |
| Opening a saved chat | Core::restore, or a viewer's Restore, which the app decides (ViewerRules::restore; by default it refuses). |
| Closing a tab | Core::put_away for a saved chat: at once, unless a turn is Running or Stopping, a turn is Waiting behind one, a question is in Chat.questions, or the chat is Opening with a turn Waiting; then once none is. A WaitingForAgent chat is put away at once, which stops its waiting turns with no Note. Until then it's loaded, and Core::restore would be refused, Refused::Loaded. One that isn't saved is refused, Refused::NotSaved, and is left open. Viewers can't put a chat away. |
| Archive | Core::close_chat, or a viewer's Close, with the act right: Chat.archived is set to now. |
| Unarchive | Core::unarchive, or a viewer's Unarchive, with the act right: Chat.archived is none again, and the chat is Idle. Core::send to an archived chat unarchives it first. While it's archived, CAF refuses to change its settings (Refused::Closed). |
| Remove from list | Core::list_saved on the chat's shelf again, which reads the store anew. Viewers can't list. |
| Delete | Core::delete, which takes the chat's shelf: only a saved chat. Viewers can't delete a chat. |
| A new chat | Core::open_chat with an OpenChat: the agent, the folder, and the settings chosen in the menu (OpenChat.settings). A viewer asks with an OpenRequest (an agent and a folder), and sets the settings with Set once it's Opened. |
| The new chat's menu | The agents CAF offers, each with its AgentStatus.settings, and whether it's installed and signed in. |
| A new chat refused | The app's own reason. A viewer gets Outcome::NotAllowed, or a Refused such as NoSuchAgent, RelativeFolder or OwnTools. Opening or restoring a chat is also refused when the app gave it MCP servers CAF can't serve beside its own: Refused::ReservedServer, An MCP server can't be named caf, nor anything the agent would write as caf_ or starting caf__, such as caf. or caf__tools, as its tools would look like CAF's own., or Refused::SameServerName, Two of the MCP servers have names the agent would write alike, so their tools couldn't be told apart. Both are the app's own mistake, not the user's. |
Only a loaded chat's summary comes to a viewer unasked: ChatSummary has its
id, agent, folder, label and shelf, and when it was archived, if it is.
Whether it's working, waiting on the user or failed, and its first message,
come from watching it.
Usage
CAF / Standard Interface
Usage is shown in two places. In the chat, the context ring by Send opens a popover with what this chat has used and spent, and how much of the agent's account limits is left; a dot on the ring says when one runs low. On the usage page, the user sees how much every CAF app on the computer has used over a period, by agent, app, model and day, and each agent's limits in full.
See usage live, every state, in dark and light.

How firm each part is:
- In the chat: Required. The ring, its popover, the dot and their words. They're inside the chat, so a user moving between CAF apps finds them the same in each.
- The usage page's layout: Suggested. Its parts, what they mean, their words and colours are as below. Take the layout shown, or the one other way this page names: where there's no room for two columns, the same parts in one column, in the same order.
- Where the usage page lives: Up to the app. A panel over the window, as pictured, a tab, a pane: whatever the app already uses for a page of its own. So is any way to open it besides Open usage.
- Later: only the extra agents in the pictures. The pictures show Codex and Gemini beside Claude, to show a page with several agents. CAF runs only Claude today, and hears limits only from Claude. The layout stands as it is: shares, stacks and columns per agent work with one agent too.
Where the numbers come from #
Three things, and they reach a viewer in three ways:
| What | Whose | How a viewer gets it |
|---|---|---|
| The context, and what the chat has spent | The chat's | With the chat, to any viewer watching it. |
| The account limits | The agent's account: every chat with the agent shares them | With the agent's status, to every viewer. |
| Usage over a period, and prices | Every CAF app on the computer, from the ledger they share | Only to a viewer with the usage right. |
So everything in the popover is shown to anyone who can watch the chat,
except Open usage, which needs the usage right, as the usage page does.
See Usage and
Account Limits for how CAF keeps them.
The agent's name is the one the app gives it everywhere else, Claude,
here as on the composer. In a summary,
CAF names an agent by its profile, such as claude-agent-acp, so that one
agent two apps name differently counts as one; the app shows that profile
by its agent's name and mark. Three cases want a rule:
- An agent with no profile, from another app: CAF names it by that app's name for it, which this app may not know. Show that name as it comes, with no mark.
- Two of this app's agents with one profile are one agent to a summary, as they share one account. Name it by the product the profile is for, as the app names that product (Claude), not by either agent's own name.
- The All agents menu lists the summary's agents, by profile, or by name for those without one. On Limits it picks the app's agents whose profile it names, or, without a profile, whose name it names. Agents that share a profile share their limits, so Limits shows them once, under the product's name.
In the chat #
The ring #
The context ring sits by Send, as the composer describes: how full the agent's context is, as a ring and a percent, in the caution colour above 80% and the warning colour above 95%. Clicking it opens the popover, and clicking it again, or anywhere else, closes it. Escape closes an open popover and does nothing else: whatever else would take Escape, such as a question waiting on the user, waits for the next press. Focus stays on the ring throughout. A new chat, before the agent has said how full its context is, has no ring, and so no popover.

The dot. When one of the chat's agent's limits runs low, the ring gains a dot, so it's noticed without opening anything:
- caution, when the window with least left has 20% left or less (low);
- warning, when it has 10% left or less, or the agent refuses turns in it (out);
- none otherwise.
The window that counts is the one with least left (the TypeScript SDK's lowest), and
how low it is is the TypeScript SDK's lowness, so every app puts the dot in the same
place.
The two kinds of threshold differ, deliberately. The ring's colours go by
how full the context is, and change only above 80% and 95%, as the
composer's do. A limit's go by what's left, and change at or below 20% and
10%, as the TypeScript SDK's LOW_LEFT and OUT_LEFT do. Each follows the one rule
every app shares for its measure, so neither is bent to match the other.
The popover #
One card, above the ring, in sections. Each measure is a row: a label, a bar and a value. It takes no focus, and the chat goes on around it.
This chat, headed This chat:
| Row | Shows |
|---|---|
| Context | A bar of how full the context is, and 195K / 1M: tokens used, of what it holds. The bar takes the ring's colours. |
| Cost so far | What the chat has cost: $1.84, with API estimate beside it if any of it was estimated. Under it, a line saying how it was come by (below). Nothing yet while CAF has no record of any of its turns. |
| Tokens processed | Every token its turns used, short: 2.1M. |
The line under the cost, by what the chat's spend holds:
| When | The cost | The line |
|---|---|---|
| All of it reported by the agent | $1.84 | As the agent reported it. |
| All of it estimated | $1.84 API estimate | An estimate, at API prices. |
| Some of each | $1.84 API estimate | $1.62 as the agent reported it, $0.22 estimated at API prices. |
| No price for its models, and nothing reported | $0.00 | No price is known for the models it used, and the agent reported no cost. |
And when some tokens had no price, a further line: 1.2M tokens on models with no known price aren't in it.

No record yet. A chat whose turns CAF has no record of, such as one from
before usage was recorded, or imported, shows Nothing yet for its cost and
0 tokens. Its limits are still shown: they're the account's, not the
chat's. The viewer pictured also lacks the usage right, so there's no
Open usage.
The agent's limits, headed Claude's limits, with the agent's mark and name, and as of 22:42 at the right: when CAF heard of them. With windows heard at different times, it's the oldest, so it never claims they're fresher than they are. Then a row per window, in the order CAF gives them:
- the label, from the TypeScript SDK's
label: 5-hour, Weekly, Weekly · Opus, Weekly · extra included, or the agent's own name for a window CAF doesn't know; - a bar of what's left, with a line where an even pace would have it now (see Pace);
- what's left, as a percent: 72%;
- under it, the pace, or the agent's own word for the window if it has one, then when it resets: Under pace · resets in 1 h 52 min.
Under the rows, Bars show what's left. The line is where even use would have it now. An agent that hasn't said what its limits are has no limits section.
Open usage, at the foot, in the link colour, goes to the usage page.
Only a viewer with the usage right sees it.
A limit low or out #

Low. A window with 20% left or less is in the caution colour: its bar, and its percent. The ring's dot is caution.

Out. A window with 10% left or less, or refused, is in the warning colour, and so is the dot.
The agent's word. Claude also says, of each window, whether it still takes turns in it. That's shown in words, in place of the pace:
| The agent says | Shown as |
|---|---|
It warns the window is near its end (Warning) | Near the limit, in the caution colour |
It refuses turns until the window resets (Refused) | Refused until it resets, in the warning colour, with 0% left |
Nothing more (Fine) | The pace |
The colour of the bar and the percent comes only from what's left, never from the agent's word: Claude may warn of a window at 50% used, as here, and that's no reason for a dot. A refused window always has nothing left, so it's always out.
Limits are information only. Nothing in the composer changes for them, and a message is never held back: a turn the agent refuses for its limits fails in the transcript as the transcript shows.

Extra usage. When the account goes on beyond its plan, paid for as it goes, the limits section ends with Extra usage in use, in the caution colour, and Beyond your plan, paid for as you go. Nothing is shown when it isn't in use, or the agent hasn't said.
Pace #
A window's pace is how much of it has gone by: where its use would be if it were used evenly from start to reset. Drawn on a bar of what's left, it's a line at 100% less the pace.
- Ahead of pace: more is used than the pace. At this rate, it runs out before it resets.
- Under pace: less is used than the pace.
- On pace: exactly the pace.
The pace words are muted: how much is left, and its colour, carry the warning. A window with no reset, or one CAF doesn't know the length of, has no pace: no line, and no pace words. Pace and resets move with the clock, not with news, so the app draws them again as time passes.
Times #
Every time in these parts is given the same way:
- how long until: under a minute, 42 min, 1 h 52 min, 1 h, 1 d 10 h, 4 d;
- a moment, in one form: the clock alone if it's today, 23:40; the day of the week and the clock if it's within a week, Mon 09:00; else the date and the clock, 14 Nov 09:00. The clock is the user's, 24-hour;
- when a reset is: resets in 1 h 52 min in the popover, and on the usage page with its moment too, Resets in 1 d 10 h, at Mon 09:00;
- when something was heard or fetched: as of 22:42, as of Fri 18:05; fetched at 09:14, fetched Fri 09:14.
A window whose reset has come but that CAF hasn't forgotten yet, as may happen for a few minutes after the computer wakes, says Resetting in place of when it resets. Once CAF forgets it, it's gone, until the agent says again.
Numbers #
Every number in these parts, and on the usage page, is given the same way:
- tokens, short: whole under a thousand, 950; whole thousands up to a million, 195K; then one decimal, 2.1M, 1.2B. A tooltip may give the count in full, 2,104,391;
- money, in US dollars to the cent, $1.84; anything above nothing but under a cent, <$0.01, so it isn't read as none;
- prices, per million tokens: whole dollars bare, $5; otherwise as many decimals as they need, up to four, and at least two, $0.50;
- shares, as percents: whole from 10% up, 76%; one decimal under 10%, 3.0%, 0.9%; and <0.1% for a sliver above nothing;
- what's left of a limit, and the pace: whole percents, as CAF gives them.
The usage page #

Suggested. One page, with a header and a body that scrolls. The header holds, in order:
- Usage, the page's name, then which agents and which apps it covers: All agents, All apps, each a menu to pick some;
- the period: Past 24h, 7 days, 30 days, 90 days, with 7 days chosen when the page opens;
- what it measures: Cost, Tokens or Limits;
- Refresh, and Close if the page is shown over something.
Only a viewer with the usage right has the page, as it covers every CAF
app on the computer, not just this one.
The period asked for. Each period ends now and is made of whole days, or
whole hours for Past 24h, in the user's own time zone, today's (or this
hour's) included. So the query (UsageQuery) is:
zone: the user's own time zone;by:Hourfor Past 24h,Dayfor the rest;since: the start of the day (or hour) 6 before today's for 7 days, 29 for 30 days, 89 for 90 days, 23 hours before this one for Past 24h;until: now;appsandagents: those picked in the menus, or empty for all.
That gives 7 days of bars for 7 days, today's partly done. A period of a fixed length back from now, such as now less 7 × 24 hours, would cut the first day in two, and give 8 bars.
Cost and Tokens #
The body, from the top:
-
The total, large: $50.88, or the tokens, 64.8M. Under it, how many chats it covers, and for cost how it was come by:
- 54 chats · API estimate, with an ⓘ whose tooltip says What agents reported, and for turns they reported nothing, an estimate at the models' API prices. On a plan, it isn't what you pay., if any of it was estimated;
- 54 chats · as agents reported it, if none was;
- and · 0.9% of tokens had no price, and aren't in it, if any had none. If none had a price and none was reported, that's all it says, under $0.00: · 100% of tokens had no price, and aren't in it.
-
Shares, By agent or By app: each with its colour, mark, name and chats, its cost or tokens, and under it 76% of cost · 44.4M tokens, or when measuring tokens, 69% of tokens · $38.64. Biggest first.
-
A chart, stacked by the same: Daily cost, by agent, or when measuring tokens, Daily processed tokens, by agent; Hourly in place of Daily for the past 24 hours, and by app when split by app. Every day or hour of the period has its place, empty ones too.
-
Totals:
Label What it is Processed tokens Every token, totalof the summary'sTokensCached input cache_readUncached input inputCache writes cache_writeOutput output, thinking includedCache savings The TypeScript SDK's cacheSavings, with an ⓘ whose tooltip says What reading input from the cache saved, against reading the same input fresh, at the models' prices.Cache savings is each cached token at its model's input rate, less what it cost read from the cache, fast mode's multiplier included, for the models that have a price. It's left out when nothing priced was read from the cache (
cacheSavingsis null). -
Three bars of shares:
- Tokens by type: Input, Cache read, Cache write, Output.
- Cost by type, the same kinds, from the TypeScript SDK's
costByKind: each kind of token at its model's rate, fast mode's multiplier included, for the models that have a price, with the note At the prices the models have: an agent's reported cost isn't split by type. It's left out when no model has a price (costByKindis null). - Cost by speed: Standard, Fast mode, by the buckets'
fast.
Their parts are tones of one colour, never an agent's or an app's.
-
Breakdown: a table by Model, App or Day (Hour for the past 24 hours). Below.

Tokens is the same page measured in tokens: the total, the shares, the chart and the breakdown's order are by tokens instead of cost.

By app splits the shares and the chart by the app each turn came from, from the ledger every CAF app on the computer shares.

Past 24h goes by hour: Hourly cost, by agent, hours on the chart, and Hour in the breakdown.
Names and colours #
Up to the app, within these rules. Agents are named as
above. An app is named by its host's name
(clackatoo). A model is named by its name, Opus 5.5, as the agent's
profile names the agent's id for it (Summary.names, which the TypeScript
SDK's modelName looks up), and by the id itself, as it comes
(gpt-6.1-sol), where it has none, as for an agent whose profile doesn't
name its models. Where the id matters, as a price goes by it, the id
follows the name: its tooltip in the breakdown, and in brackets where a
price names the model. Each agent and app has a colour of its own, the same
wherever it appears. It's identity, not a colour role, so, as the
overview says, it appears only in marks
and to tell them apart in charts: the dot by a share, the chart's stacks, a
row's bar in the breakdown. It's never on text, controls or edges, which is
why the All agents and All apps menus carry no coloured dots.
The breakdown #

By model, the default: #, Model, Cost, Share, Tokens, biggest first, each model by name, with its agent's mark and a bar of its share in the agent's colour.
- A model whose tokens no price covered, and whose turns reported no cost, has Unpriced in place of its cost; one with some such tokens has its cost, and 1.2M unpriced beside it. Under the table: Unpriced: tokens on a model with no known price, from turns whose agent reported no cost. They aren't in the cost.
- Under that: Click a model for its price, or to set your own.
A model's price. Clicking a model opens its price under its row: where it came from, the rates In US dollars per million tokens (Input, Cache read, Cache write, Output, and Fast mode as a multiplier, ×2, if it has one), and buttons. Where it came from:
| Price | It says | Buttons |
|---|---|---|
| The user's own | Your own price. | Change your price, Remove your price |
| LiteLLM's list, as fetched | From LiteLLM's price list, fetched at 09:14. | Set your own price |
| The list that came with the app | From the price list built into the app. | Set your own price |
| None | No price is known for Opus 4.8 (claude-opus-4-8), so turns on it that didn't report a cost aren't counted in the cost. | Set your own price |
If the list names the model otherwise than the agent does, it says so:
…, as anthropic/claude-opus-5-5.
Set your own price opens a form of the four rates and the fast mode
multiplier, headed Your own price for Opus 5.5 (claude-opus-5-5), in US
dollars per million tokens. The other apps on this computer that share your usage record
use it too., with Cancel and Save. Remove your price takes the user's
own away: a list's price applies again if a list has one, and otherwise the
model is unpriced. The viewer can't tell beforehand which, as a summary
holds only the price that was used.
A price set or removed applies to every figure at once, as costs are estimated with the prices of now, and reaches the other apps within the hour. If it isn't done, the form stays, with why under it, in the warning colour:
| CAF answers | It says |
|---|---|
PriceNotSet, with the system's words | Your price couldn't be saved, and prices are as they were: then the system's words |
NoLedger | This app keeps no record of usage, so it can't keep a price of your own. |
NotAllowed | You may not set prices here. |
Gone | The app has shut down, so nothing was saved. |
| The link dropped before the answer | The link to the app dropped before the answer came, so your price may not have been saved. |

By app: #, App, Chats, Cost, Share, Tokens, with
Click an app to see only its usage. under it. Clicking an app picks it in
the All apps menu, which asks again with only that app (UsageQuery.apps).

By day: a row per day of the period, newest first (Sat, 21 Nov), empty days too, then a column per agent, Total, and Tokens (or Cost, when measuring tokens). A day an agent didn't work is –; a day nobody worked has – in every column and a total of $0.00.

Split by agent or Split by app switches the columns.
Limits #

Limits shows the agents picked in the All agents menu (all of them, at first), each with its mark, name and whether it's signed in, and the account's limits as the agent last said them. The All apps menu and the period go, as limits belong to neither. There's no Refresh: limits come only as the agent works, and CAF can't ask for them. A card per window:
- the label, and what's left, large: 72% left;
- a bar of what's left, with the pace's line;
- the agent's own word, if it has one: Near the limit, Refused until it resets;
- the pace: Under pace · 38% of the window left;
- when it resets, and when it was heard: Resets in 1 h 52 min, at 23:40, and as of 22:42.
A fine window's bar is muted, so low and out stand out.
An agent with no limits heard says so plainly: Codex hasn't said what its limits are. Only some agents report them, and only as they work. Its usage is still counted under Cost and Tokens. At the foot: Limits are as each agent last said, so they have no period. Bars show what's left; the line on each is where even use would have it now.

Low and out take the same colours as in the popover, and Extra usage in use, in the caution colour, goes in the agent's heading when it is.
The limits here are the same as in the popover: a viewer without the usage
right, who has no usage page, still sees them in the chat.
The page's states #

Reading. The first time, the page says Reading usage…. Read again, by Refresh or a new period, the last figures stay up, with Reading again… the figures may still change. and a spinning Refresh.

Partly unreadable. If any file of the usage record couldn't be read, the
figures are shown, and above them, in the warning colour:
Some of the usage record couldn't be read, so these figures are short:
eyespy/2026-10.jsonl.zst., naming each file. If CAF names ., the record's
folder itself couldn't be read, and it says instead The usage record's
folder couldn't be read, so these figures are short. The page is never
quietly short.

Nothing yet. A period with no turns in it says No chats in the last 7 days. (or the past 24 hours), with $0.00, 0 chats, and Nothing to chart yet where the chart goes. That includes a computer with no usage record yet at all: CAF reads a missing record as nothing used.

Couldn't read. If the summary can't be made at all, the page shows only why, in the warning colour, starting Usage couldn't be read:
| CAF answers | It says |
|---|---|
| The link dropped before the answer | Usage couldn't be read: the link to the app dropped before the answer came. |
Gone | Usage couldn't be read: the app has shut down. |
BadQuery::Zone | Usage couldn't be read: the time zone Europe/Lndn isn't one the app knows, so it can't say where days begin. |
BadQuery::Period | Usage couldn't be read: it can't be summed up over that period. |
NotAllowed | Usage couldn't be read: you may not see usage here. |
The periods above never give BadQuery::Period, and a viewer without the
usage right has no page to get NotAllowed on, but the words are there for
an app that strays. An app that keeps no usage record (NoLedger) isn't
failing: it says, muted, This app keeps no record of usage, so there's
nothing to show here.
In an app not written in TypeScript #
The helpers this page names are the TypeScript SDK's. caf-core, in Rust,
has LimitWindow::pace, WindowKind::length, Tokens::total, Tokens::add
and Spend::cost, and no more. An app that draws natively, in Rust or
anything else, does the rest itself, by these rules, so it says exactly what
every other app says:
| Helper | The rule |
|---|---|
left | What's left of a window, as a whole percent: 0 if Refused, else 100 less used. |
lowness | out at 10% left or less (OUT_LEFT), low at 20% left or less (LOW_LEFT), fine otherwise. So a refused window is always out. |
lowest | The window with the least left; on a tie, the first of them in the order CAF gives the windows. None if there are none. |
label | FiveHours: 5-hour. Week: Weekly. ModelWeek: Weekly · and the model's name with its first letter made a capital, Weekly · Opus. ExtraWeek: Weekly · extra included. Other: the agent's own name for it, as it comes. A kind newer than the app knows: the kind's own name, as CAF sends it. |
pace, length | Use caf-core's LimitWindow::pace and WindowKind::length: a whole percent of the window gone by, rounded half up; none with no reset or no length. |
total | Every token: input, cache read, cache write and output. Thinking is part of output, so isn't counted again (Tokens::total). |
cost | Reported and estimated cost added up (Spend::cost, or a bucket's reported plus estimated). |
totals | Every bucket's tokens, reported and estimated cost, unpriced tokens and turns, added up. |
group | The buckets by app, agent, model or fast mode (fast or standard), each group's figures added up. Biggest first by the measure shown (cost, or tokens); on a tie, by the other measure; then by key, compared character code by character code, whatever the locale. By period: every period of the query, in time order, empty ones too. |
split | Every period of the query, in time order, empty ones too, each with its buckets grouped as group does, by cost. |
price | A model's price in a summary: the entry Summary.matched pairs with the agent's id for the model, found by name in Summary.prices; none if either is missing. |
modelName | A model's name to show: the name Summary.names pairs with the agent's id for it, else the id itself. |
costByKind, cacheSavings | As Cost and Tokens says: per bucket, at its model's price, times the price's fast multiplier if the bucket's fast is on; buckets with no price left out. costByKind is none if nothing was priced; cacheSavings is none if nothing priced was read from the cache. |
A period starts where the query's zone says it does: an hour at the top of
the zone's hour, a day at the first moment of its date there, which is
midnight unless the clocks skip it, so a day is 23 or 25 hours across a
change of clocks. A bucket belongs to the last period starting at or before
its start.
What CAF tells the app #
| What's shown | Where it comes from |
|---|---|
| The ring and the context row | Usage.used of Usage.size, on the chat. |
| Cost so far and its line | The chat's spend (Spend): cost(), reported, estimated, unpriced and turns, sent again (Change::Spend) whenever it changes. |
| Tokens processed | Spend.tokens, added up with the TypeScript SDK's total. |
| The limits | AgentStatus.limits (AccountLimits): each LimitWindow's kind, used, resets, state (Fine, Warning, Refused) and heard. |
| A window's name | The TypeScript SDK's label. |
| What's left, low, out | The TypeScript SDK's left and lowness, at LOW_LEFT (20) and OUT_LEFT (10). |
| The ring's dot | lowness of the TypeScript SDK's lowest. |
| Pace | The TypeScript SDK's pace (caf-core's LimitWindow::pace), and length. |
| Extra usage in use | AccountLimits.extra_usage: in_use, heard. |
| Open usage, the page, prices | The viewer's usage right (Rights::usage, given with ViewerRules::usage). |
| The page's figures | A Summary for a UsageQuery (since, until, zone, by: Day or Hour; apps, agents), asked for with FromViewer::Usage. |
| Totals, shares, the chart, the breakdown | The summary's buckets, summed by the TypeScript SDK's totals, group (by app, agent, model, period, fast), split, cost and total. |
| Cost by type, Cache savings | The TypeScript SDK's costByKind and cacheSavings, at the prices the summary used. |
| Chats | Summary.chats: all, by_app, by_agent. |
| A model's name | The TypeScript SDK's modelName, from Summary.names: the name each model's lines were recorded with, or the one its agent's profile gives now. A turn's own record names its models too (TurnUsage.models' ModelTokens.name). |
| A model's price | The TypeScript SDK's price, from Summary.prices and matched: a PricedModel's price (ModelPrice) and layer (Own, Fetched, Bundled), and Summary.fetched. |
| Setting a price | FromViewer::SetPrice, answered Done, PriceNotSet, NoLedger, NotAllowed or Gone. |
| Some of the usage record couldn't be read | Summary.unreadable: file names, or . for the folder. |
| Usage couldn't be read | Outcome::Gone, BadQuery (Zone, Period) or NotAllowed, or the link dropping. |
| This app keeps no record of usage | Outcome::NoLedger. |