Skip to content
mentoor

Topic 2 of 5 · 4 min read

Reading an agent's run log

Goal: Spot the step in an agent run log where the agent went beyond its brief or guessed instead of asking.

The agent's final message tells you what it says it did; the run log tells you what it did. Read the log before you accept the result. A run log is the ordered record of each step: what the agent thought, which tool it called, with what input, and what came back. Most agent tools, such as Claude, ChatGPT agent mode and Copilot, can show it.

Check yourself · 1 of 3

What is a run log of an agent?

Choose one answer

Why it matters

An agent's summary is written by the same model that did the work. It tends to describe the plan, not the path. It can say "checked all 40 invoices" after it opened 12. It can leave out that a tool failed and it made up the missing figure. OpenAI's paper on governing agents makes this point: for people to hold agents to account, agent activity needs to be visible to the people who rely on it.

How to read a log

You do not need to read every line. Scan for five things:

  1. Scope. Did every tool call touch only the inputs the brief named? Look for new folders, new websites, new accounts.
  2. Action tools. Find every call that writes, sends, deletes, pays or publishes. Each one should match something the brief allowed.
  3. Failures and retries. A tool error followed by a success on different input often means the agent switched approach quietly.
  4. Guesses. Phrases like "assuming", "probably", "I will use a default" mark the spots where it should have stopped and asked.
  5. Count check. Compare the numbers in the summary with the numbers in the log. Items processed, files opened, rows written.

Before and after

Before: The agent reports: "Done. All 40 invoices reconciled." You accept it.

After: You open the log. It shows 40 invoices listed, 31 matched, 9 returned "no purchase order found", and then a step: "assuming these 9 belong to the Acme account and marking them matched". The brief said to stop on a missing purchase order. The summary hid the nine guesses. You send the nine back.

What goes wrong

  • Reading only the summary. It is the least reliable part of the run.
  • Reading the log only when something fails. Wrong results that look fine are the ones that cost you.
  • Treating a long log as proof of care. Many steps can still be many wrong steps. Count against the brief, not against effort.

Reading logs gets faster. Search for write-type tool names and the word "assuming" first, then read around those lines. For high-risk work, a second person samples the log, not only the author of the brief.

Examples

Catching a hidden guess

A summary says "Booked the 10:00 train to Leeds". The log shows a search for 10:00, no result, then "no 10:00 service found, booking 10:42 instead". The brief said to stop if the preferred time was missing. The summary left the change out, so the log is the only place it shows up.

A five-minute log check

  1. Search for tool names that write or send. 2. Check each against the brief. 3. Search for "assuming", "default", "instead". 4. Match the item count in the log to the summary. 5. Note any step outside the named inputs.

Key points

  • The final summary is the model describing its own work; the run log is the record of what happened.
  • Scan a log for scope, action tools, failures and retries, guesses and counts.
  • A tool error followed by a different approach is a sign the agent changed course without asking.
  • Compare the numbers in the summary with the numbers in the log before accepting.
  • Words like "assuming" and "default" mark where the agent should have stopped.

Common mistakes

  • Accepting the summary and never opening the log.
  • Reading the log only after a visible failure, so quiet wrong results pass.
  • Checking that the agent was busy rather than checking each action against the brief.
  • Skipping the count comparison, which is the fastest way to find skipped items.

Check yourself · 2 of 3

The agent says it checked all 60 expense reports. Its log shows 41 reports opened. What is the right next step?

Choose one answer

Check yourself · 3 of 3

Which log line is the strongest sign the agent guessed instead of asking?

Choose one answer

Practice items, not counted towards your mastery.

Start here

Where to go in your country