# AI agent observability: what to log, what to watch, what to alert on > AI agent observability for small teams: what to log, how to spot stuck, looping and drifting agents, how to read an action trail, and the alerts to set. - URL: https://www.smith.seattlecompute.com/blog/ai-agent-observability - Published: 2026-11-06 - Type: guide - Topics: ai agent observability, ai agent monitoring, monitor ai agents, ai agent logging - Publisher: The Seattle Compute Company (Smith, https://www.smith.seattlecompute.com/) > AI agent observability means seeing what an agent did and whether it is stuck or off-task. Log every action, watch for loops and drift, alert on silence. Monitoring a normal app is mostly about errors. Monitoring an agent is different, because an agent can fail without throwing anything. It can sit on a login page for an hour, send the same message twice, or wander into work you never asked for. Nothing crashes. The work just doesn't happen. This guide is about seeing that early. It's the "watch" part of running agents. The "who's responsible" part is in [AI agent governance](/blog/ai-agent-governance), and the "when does a person step in" part is in [human in the loop](/blog/ai-agent-human-in-the-loop). ## What to log If you can only keep one thing, keep a per-action record. For each action: - **When** it happened. - **Which agent** took it, and which account it used. - **What system** it touched: Slack, email, a website, a file. - **What it did**, in plain words or the exact call. - **What came back**: success, error, or nothing. That second line matters more than it looks. If an agent shares a login with a person, the log can't tell the two apart. When the agent has its own identity, every action is traced to the agent, and you can filter the trail by it. Also worth keeping: messages the agent sent and received, pages it visited, and files it created. These are the things you'll want when someone asks "what did it tell the customer?" ## What to watch You're watching for three failure shapes. ### Stuck The agent is working but not progressing. Typical causes: a sign-in waiting on a code, a popup it can't dismiss, a page that never finishes loading. Signs: a long gap with no new actions, the same screen for many minutes, a task that has been "in progress" far longer than similar tasks. ### Looping The agent is busy but going in circles. It retries the same step, gets the same result, and tries again. Signs: the same action repeated with the same outcome, the same message sent more than once, a counter that climbs while the result stays flat. ### Scope drift The agent is doing things, just not the things its role covers. Maybe it reached for a system you never meant it to touch, or took a task further than asked. Signs: actions on systems outside its role, messages to people it wasn't asked to contact, work that doesn't map to any request. A written role makes this easy to spot, because you can compare the trail against it. See [writing agent roles](/blog/writing-agent-roles). ## How to read an action trail Don't read every line. Read it like a short story. 1. **Start with the request.** What was the agent asked to do? 2. **Skim the sequence.** Does each step follow from the last? 3. **Find the last successful action.** Everything after it is where things went wrong, if they did. 4. **Check the edges.** Look closely at anything that left your walls: sent messages, submitted forms, changed access. 5. **Compare to the role.** Anything outside it is worth a question. For the first batch of work from a new agent, read closely. After a week of clean trails, spot-check. ## Logs are not enough A log tells you what happened. It doesn't always tell you what's happening now. For a computer-using agent, the fastest check is often to look. With Smith, each agent works on its own computer with a real browser, and you can watch that screen live. If it's parked on a page, you'll see it in seconds. And when you see a problem, you can stop the agent at any time, take over the live screen, fix the step, and hand it back. ## Alerts you need Keep the list short. Alerts nobody reads are worse than none. | Alert | Why it matters | | --- | --- | | No activity from an agent that should be working | Catches stuck agents and dead sessions | | Same action repeated several times with the same result | Catches loops | | Action on a system outside the agent's role | Catches scope drift | | Message sent to a new outside recipient | Catches the riskiest drift | | Repeated sign-in failures | Often a credential or code problem | | Task open far longer than usual | A softer stuck signal | Send these somewhere you already look, like the agent's Slack channel or your own DMs. Start with the first three and add the rest when you've seen a real need. ## A checklist 1. Every action is logged with time, agent, account, system and result. 2. The agent has its own identity, so its actions aren't mixed with a person's. 3. Messages sent and pages visited are kept. 4. The agent's role is written down, so drift is visible. 5. You've set alerts for silence, repeats and out-of-scope actions. 6. You know how to open the live screen. 7. You can stop the agent right now. 8. Someone reads the first batch of trails by hand. 9. Alerts that never fire or always get ignored are cut or tuned after a week. For the sandbox, credentials and audit trail underneath all this, see [keeping AI agents safe](/blog/keeping-ai-agents-safe-sandboxes-credentials-audit). ## FAQ **What is AI agent observability?** Being able to see what an agent did, in what order, under which account, and whether it is still making progress. It covers logging, watching for problems and alerting. **What should I log for an AI agent?** Each action with a timestamp, the agent that took it, the account it used, the system it touched and the result. Keep messages sent and pages visited too. **How do I know an agent is stuck or looping?** Look for the same action repeated with the same result, long gaps with no output, or a task that never moves forward. A live view of the screen makes it obvious quickly. **Can I step in when something looks wrong?** With Smith, yes. You can stop an agent at any time and take over its live screen, then hand the task back. --- Site index for LLMs: https://www.smith.seattlecompute.com/llms.txt