Topic 2 of 5 · 4 min read
Live status and activity logs for agents
Goal: Write a run summary from an agent activity log that states what changed, what failed and what still needs the user.
While an agent works, show what it is doing right now, keep a log of what it did, and finish with a short summary that says what changed, what failed and what still needs the user. Silence makes people either hover nervously or walk away and miss a problem.
Check yourself · 1 of 3
What should a run summary give the user first?
Why it matters
Agent runs take minutes or hours, not seconds. The user is not watching every step, but they need to trust the result when they return. Three layers serve three different moments: a live status line for someone watching, a step log for someone checking, and a summary for someone who just came back.
The three layers
- Live status. One line in plain words: "Reading invoice 7 of 40" or "Waiting for the bank site to load". Not "Processing". A real current action tells the user the agent is alive and where it is.
- Activity log. A timestamped list of actions: what was opened, what was changed, what was skipped, what failed. Each entry has a result. The log is for checking and debugging, so it should be complete but easy to filter.
- Run summary. Written at the end, for a person who has not watched. It answers three questions in this order: what changed, what failed or was skipped, and what needs the user now.
For agents that use a browser or a computer, add screenshots: one at key moments, such as before a form is submitted. A screenshot shows what the agent saw, which text alone cannot do. Without it, a person asked to step in has to guess what the page looked like.
Before and after
Before: "Done! I processed your invoices."
The user cannot tell if all 40 were handled.
After: "Processed 37 of 40 invoices. Changed: 37 marked as paid in the ledger. Failed: invoice 12 (amount does not match the bank), invoice 19 (PDF unreadable), invoice 33 (supplier not found). Needs you: decide on those 3; nothing was sent to suppliers."
Counts, failures by name and a clear next step turn a vague success into something the user can act on.
What goes wrong
- Fake progress. A spinner or a "98% done" bar with no real basis. When the number is invented, the user stops trusting every number.
- Success-only summaries. The summary leaves out skipped and failed items because they look bad. The user finds them later, which is worse.
- Raw log dumps. Two thousand lines of tool output is not a summary. Write the summary from the log, and link to the log.
- No way to stop. Live status without a Pause or Stop control is just a view of something the user cannot interrupt.
If you build agents, you can have the model draft the summary from structured log events, then check its counts against the log in code:
{ "step": 12, "action": "mark_paid", "target": "invoice-12", "result": "failed", "reason": "amount mismatch" }
Examples
Turning a log into a summary
Log: 10:02 opened 40 invoices; 10:09 marked 37 paid; 10:10 invoice 12 failed (amount mismatch); 10:10 invoice 19 failed (unreadable PDF); 10:11 invoice 33 failed (supplier not found).
Summary: "37 of 40 invoices marked paid. 3 failed: 12 (amount mismatch), 19 (unreadable PDF), 33 (supplier not found). Nothing was sent. You need to decide on the 3."
A useful live status line
Weak: "Working..."
Better: "Filling in the shipping form on the courier site (step 3 of 5). Paused if the site asks for a login."
The better line names the action, shows a real position and says what would make the agent stop.
Key points
- Live status should name the current action in plain words, not say 'Processing'.
- An activity log records each action with a result, so the user can check what happened.
- A run summary says what changed, what failed or was skipped, and what needs the user, in that order.
- Browser and computer-use agents should show screenshots at key moments, since text alone hides what the agent saw.
- Progress numbers must be real; invented percentages teach users to ignore every number.
Common mistakes
- Showing a spinner or invented percentage instead of the real current action.
- Writing a summary that mentions only successes and hides failures and skips.
- Pasting the raw tool log in place of a summary.
- Offering live status with no pause or stop control.
Check yourself · 2 of 3
Which live status line is the most useful while an agent works in a browser?
Check yourself · 3 of 3
An agent's summary says 'All 40 invoices handled', but the log shows 3 errors. What is the right fix?
Practice items, not counted towards your mastery.
Start here
- Building effective agents (Anthropic) (opens in a new tab)ArticleFree
Explains agents versus fixed workflows and why agents need checkpoints and clear tool design.
- Configure permissions (Claude Code) (opens in a new tab)DocsFree
A real permission system with allow, ask and deny rules, scoped by tool and path.
- Measuring AI agent autonomy in practice (Anthropic) (opens in a new tab)ArticleFree
Data on how people grant approvals, interrupt agents and let agents ask for clarification.