Pattern 19 · Agents

Agent run history & audit log

A week after an agent did something unexpected, nobody can find which run did it, what it saw or who started it.

By Alex StepikinUpdated November 20263 min readLive demo
Live demo · try it

An interactive mock built in plain HTML, CSS and JavaScript. Data is fictional; no model is called.

FitWhen to use it — and when not

Use it when

  • Agents that run on schedules or triggers while nobody watches
  • Regulated or shared workspaces where someone has to answer "who did this?"
  • Debugging: comparing a failed run with the last good one

Skip it when

  • One-off chat answers — the conversation itself is the record
  • When the live step log is all anyone will ever need and runs are never revisited

AnatomyThe parts of the pattern

  1. Run listOne row per run: agent, trigger, start time, duration, outcome.
  2. FiltersStatus, agent, trigger (manual, schedule, event) and date.
  3. Run detailInputs, the actions taken in order, outputs and cost.
  4. ActorWho or what started the run and under whose permissions.
  5. Re-runStart again with the same inputs, or open the actions to undo them.

GuidelinesDo & don’t

Do

  • Describe each run by its outcome: "Sent 3 invoice reminders", not "Run #4182 succeeded".
  • Keep failed and cancelled runs; they are the ones people search for.
  • Link every external action to the object it changed.

Don’t

  • Mix the audit log with debug output — keep raw traces one click away.
  • Let entries be edited or deleted by the agent that produced them.
  • Show only the last 24 hours when runs happen weekly.

In the wildReal-world examples

GitHub Actions (workflow runs)Zapier (Zap history)n8n (executions)LangSmith (traces)

Products named for reference only — no affiliation, and the demo above is an original illustration, not a copy of their UI.

For engineersImplementation notes

  • Write the run record as append-only events (run_started, action, run_finished) with a run_id; the list and the detail are two views of the same events.
  • Store the exact inputs and model/prompt versions so a re-run is reproducible, and mark it as a new run linked to the original.
  • Set a retention period per workspace and say it in the UI.

See alsoRelated patterns

All 32 LLM UX patterns

Need this in your product?

I design interfaces for AI products and agents: approvals, run history, undo, and the small states people notice in daily use. A 1–2 day sprint reviews your app and redesigns one core flow in Figma, at a fixed price from $400 per day. Related case: Atlas, a control room for a fleet of AI agents.

Book a callSee the Atlas case

Create bold.
Deliver better.

See our workGet in touch