Skip to content

LiveLog

Stable

A streaming, monospaced log of what an agent is doing, with pause and follow.

Also known as log viewer, console, terminal output, logs

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

Lines arriving, with pause

Test run

  1. 10:42:00$ npm test

A new line arrives every 0.9 seconds. Press Pause to hold them; new ones wait behind the "N new lines" button. Scroll up to stop following.

When to use it

Lets people watch a running agent's raw output, stop it from moving to read it, and catch up when they are ready.

Made of: Header with name · Paused note · Pause or Resume button · Scrolling log · Line: time, level mark, text · Jump to latest or N new lines button

Use it for

  • Command and test output while a coding agent runs.
  • A browser or data agent's step-by-step log.
  • Any stream of short lines that people may want to stop and read.

Not for

  • A lasting record of what the agent changed, with undo: use ActionLog.
  • A readable summary of the agent's steps: use ActivityTrace.
  • A finished block of code or output to copy: use CodeBlock.

Do and avoid

Agent output

  1. 10:42:01Opened orders.csv
  2. 10:42:02Read 120 rows
  3. 10:42:03WarningRow 87 has no date, skipped
  4. 10:42:04Wrote summary.csv

Do. Plain lines, with a word and icon only where something went wrong.

10:42:01 Opened orders.csv

10:42:02 Read 120 rows

10:42:03 Row 87 has no date, skipped

10:42:04 Wrote summary.csv

Avoid. Whole coloured lines are hard to read and need colour to make sense.

Do

  • Keep the log for raw, fast output. Summarise the same work elsewhere for people who will not read it.
  • Give warnings and errors a level so they are marked with a word.
  • Turn on wrap where lines are long and the screen is narrow.

Avoid

  • Do not use it as the only record of what an agent changed.
  • Do not edit or remove earlier lines; only append.
  • Do not colour whole lines to show status.

On a phone

  • It fills the width of its container in one column. Long lines scroll sideways inside the log unless wrap is on, so the page never scrolls sideways.
  • The Pause button and the N new lines button keep their size and have a 44px tap area on a touch screen.
  • Dragging the log up stops following, and the Jump to latest button appears near the bottom.
  • Turn on wrap on narrow screens when lines are long and reading matters more than lining up.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started