Lesson 14.02 · Phase 14 · Agent UX & Interfaces

Showing the work: step views

People trust an agent they can check. Show its work the way a colleague would describe it: what it looked at, what it changed, what went wrong, with the raw details one click away.

Learning objectives

  • Turn a raw trace of tool calls into a step view: plain-language rows, durations and outcomes.
  • Group repetitive read-only calls, and fold retries into the row that finally succeeded, with a note.
  • Never hide what matters: side effects get their own marked rows, and failures stay visible.
  • Render it for a terminal and as HTML, escaping all trace text, which is untrusted.

A raw trace is accurate and unreadable: thirteen JSON objects with escaped regexes, timings in milliseconds and three identical bash calls. The opposite extreme, a single "Done ✓", hides the one thing the user needed to know: that the agent posted a message to a team channel.

Loading the full lesson…