How it's built

  • A finished turn is its message, one summary line of chips saying what the work was, and the agent's answer.
  • Clicking the summary opens the timeline in its place: every step in order, on a rail. Clicking again folds it.
  • A running turn always shows its timeline, live.
  • Failures, CAF's notes and a lost chat are never folded away.
  • A question waiting on the user attaches to the top of the composer, shows the command or change it asks about, and the step it's about points to it.
  • A step is drawn by its title, as given: CAF's for its own tools, the agent's for the rest.
  • A step that runs on in the background is marked Background until it ends, wherever its turn is; when it ends, CAF tells the agent, in a turn of CAF's own.

What CAF decides

  • A chat is turns, a turn is items: words, thinking, tool calls, CAF's notes, the app's own items, and anything CAF couldn't read.
  • A failure is in CAF's words (FailureReason), with what the agent said quoted apart, and CAF's remedy (Remedy).
  • Questions aren't items: they're a list on the chat (Chat.questions), and come and go.
  • A tool call's result is pieces (Piece): text, diffs, a command's output, images and links. CAF works out a diff's hunks and keeps a command's output as its terminal showed it; the app draws them as they are.
  • Who allowed a call is kept with it (Decision): the user, or the policy with its reason.
  • A job is a call that goes on after the agent was answered (ToolCall.job); CAF's notice of its end starts a turn (Starter::Notice).
  • Later, marked so in the pictures: the compaction line. CAF doesn't record it yet.