If you write down in a table what an agent at your company did and where it got stuck, the mistake that keeps coming back shows up when you read that table once a week. Once the fix goes into the agent's skill, the written instruction the agent reads, the same table tells you whether the mistake is back the next week. This page has a log table to fill in and a list of what to check each week. No coding needed.
Here an agent means an AI tool that connects to your company's tools and carries out a task step by step. The log is the table that holds the rows the agent leaves for each task.
Why keep a log
The US National Institute of Standards and Technology (NIST) publishes a playbook for its AI risk framework. Its MANAGE section suggests a database of reported errors and near misses, and a record of system changes along with the reason for each one (MANAGE 4.3).
The EU AI Act lists the fields a narrow group of high-risk systems has to log. Among them are the start and end time of each use and the people who verified the results (Art. 12). In the table below, the Date and time column and the Approver column hold two similar things. This is an analogy. Most agents in a company don't fall under that scope.
What goes in each row
In each row, write which tool the agent used and what it had that tool do. Keep the input and the output to a short summary. For a customer message, the record number and one sentence are enough.
Türkiye's personal data protection law (KVKK) requires data to be relevant to the purpose it's processed for, limited and proportionate. It also says data is kept only as long as the law requires or the purpose needs (Art. 4 (in Turkish)). The EU's General Data Protection Regulation (GDPR) sets the same two principles (Art. 5). Work out with your legal adviser which fields carry personal data and how long the rows are kept.
The log table
The row below is an example. Replace it with your own work. The cells match the invoice task in the work map, the table that lists which work goes to an agent. The Agent column takes the Agent role name from the permission list, which says what each agent can reach.
| Date and time | Agent | Task | Tool call | Input and output summary | Result and where it got stuck | Approver | Approved at | Decision | Reason | Duration | Fix |
|---|---|---|---|---|---|---|---|---|---|---|---|
| The tool writes it | Agent role name | Recording an incoming invoice | Read the email attachment, added a row to the sheet | Invoice number, amount and a link to the record, no personal names | Done, stuck or error, and if stuck, at which step | The person responsible for accounting | The date the approval button writes, or entered by hand | One of the five values | One sentence for a rejection or a rollback | Run time and fix time, if the tool's record has them | In the suggestion row, the skill that changed and the mistake it came from |
Set up the Decision column in Notion as a Select property and use only five values: awaiting approval, approved, rejected, rolled back, no approval needed. The last one is for work that isn't tied to an approval gate, the point where work waits for a person before it goes out.
In Notion you can set up an approval button that writes the name of whoever pressed it and the date. If you haven't set one up, the approver fills in the Approved at column by hand. The approved text itself stays in the tool's draft or record. The summary in the row points to it with a link or a version name.
Don't have the agent write when the row was opened. Take that from the tool's own record. In a Notion database, Notion fills in the Created time and Created by properties itself, and users can't change them (Notion). I couldn't find in the docs how the account the agent connects with shows up under Created by, so have the agent open a test row when you set it up. In Google Sheets you can read the time from the cell's edit history, or the approver writes it in. The summary and the result are the agent's own account of what happened.
For work that passes an approval gate, this row is the row in the approval table itself. Work that isn't tied to a gate opens a row in the same table too. Some work has its queue in its own tool, like a support draft. Open the row when that work leaves the tool, at the moment it's sent or exported, or enter those rows in one go before you read the week's work. For an agent that writes code, the record lives in the PR (pull request, the change request your team reads and approves), the same as in the permission list.
Tools outside code keep their own history
The tool docs and Anthropic posts on this page come from the companies that make those tools. Notion's version history records who changed what. It doesn't catch every change, though, and how long it's kept depends on your plan (version history).
In Zendesk, a ticket's audits, meaning its update history, are read-only and each one carries its author and its time (ticket audits). I couldn't find in the docs how an AI agent's work shows up there.
In Google Sheets, some changes, like adding a row or changing a formula, may not show in the cell's edit history. Restoring an older version clears that history (Google).
What Claude Code records in a team that writes code
If you don't have a team that writes code, skip this section and go to the weekly check.
In Claude Code, Anthropic's coding agent, one way to keep a lasting record is hooks. A hook is a command your team writes and Claude Code runs on a given event (hooks). The PostToolUse hook gets the input and the result of a tool call after the call succeeds. It doesn't catch a rejected or failed call. PostToolUseFailure, which runs on a failed call, doesn't fire either when a call is rejected before the tool runs at all, as with a permission denial. The duration the hook receives doesn't count time spent waiting for permission.
The PermissionDenied hook (hooks) runs only in auto mode, the mode where a classifier makes the permission decision, and only on a call the classifier rejected. A denial given by hand and a deny rule don't trigger it. The Recently denied tab under /permissions lists the classifier's rejections too, but it doesn't show a call the classifier rejected because it couldn't decide (auto mode).
OpenTelemetry is an open standard for exporting an application's runtime data in a common format. If your team has turned it on, Claude Code sends an event for each tool call that runs, with whether it succeeded and how long it took (monitoring). A rejected call doesn't produce that event. The rejection shows up in a separate decision event instead. In default mode, which the permission list guide suggests, that decision event is the only lasting record of a rejection. Prompts and tool details aren't sent by default. The user's email address, when there is one, is always included.
Session transcripts are stored as unencrypted plain text. By default they're kept for 30 days, and their format can change from one version to the next (sessions, data usage). Don't build the log on them.
What to look at once a week
Give the reading a fixed day of the week and one person. Anthropic's post on evaluating agents suggests picking sample transcripts of trial runs every week and reading them. That post is about testing an agent on trial tasks. Using the same rhythm for the company's work log is my suggestion.
- Count the rows that say "awaiting approval" in the Decision column. Compare how long the oldest one has been waiting with what you wrote in the Time to approve column for the approval gate.
- Count the rejected and rolled back work, then read the Reason column from top to bottom. That's where you find how many rows this week carry the same mistake or the same reason.
- From the Fix cell of the suggestion rows, work out how many of this week's mistakes and rejections were closed by a skill change and how many are still open.
- Work out the time spent on approval from the gap between the Date and time column and the Approved at column. Add the Duration column to it and compare the total with the Time today column in the work map.
Compare each item with the week before. None of the sources give a threshold for what counts as good.
The suggestion that comes out of the weekly reading
Having the agent prepare the reading is my suggestion. The agent can count the rows and write a suggestion for a mistake that keeps coming back. It says how many rows the mistake shows up in and what to add to which skill. Like any other work, the suggestion opens a row in the log and goes into the approval queue, and the approver's decision lands in the Decision column. When the approved change goes into the skill, write in the suggestion row's Fix cell which mistake it came from.
If the same mistake is back the next week, the change to the skill wasn't enough. Reopen the suggestion.
Common mistakes
Don't let the log sit unread. Once the rows pile up, read the rejected and stuck rows every week and pick a sample of the rest.
Don't paste the raw customer message into the row. If the message already sits in the support tool, link to it there with the record number.
Don't keep the log somewhere the agent can change it. The OWASP (Open Worldwide Application Security Project) list for web applications recommends an audit trail for important transactions, protected against tampering and deletion (A09:2021). The list wasn't written for agents. In a company, the equivalent is putting editing and deleting log rows in the agent's Never touches column in the permission list. And don't give the agent that writes the suggestions permission to write to its own skill.
After the log is set up
If you don't have a work map yet, start with the guide on which work to hand to an agent. The approval gate guide covers the queue that lands in front of the approver. For the agent's role and the places it may not touch, there's the permission list guide.
If you want to set this up together in your company, the AI-native company page explains how it goes.