# See what an agent did on your computer

After a session, check what an agent actually did: which tools it called, with which arguments,
when, and how each call ended. Reading the record changes nothing and needs no extra step.

**In short:** Ask any connected agent: "Search the journal of my laptop for the calls of agent:ChatGPT today."
It calls `journal_search {"machine": "<machine>", "author": "agent:ChatGPT"}`.

## When to use this

An agent reported a result and you want to see how it got there, or something changed on the
computer and you want to know who did it.

## Steps

1. On your page, open the machine's record: every call is listed with the agent, the tool, the
   result and the time ([the record of calls](https://docs.cmdop.ai/concepts/audit-and-history.md)).
2. For the arguments, ask in a chat for [`journal_search`](https://docs.cmdop.ai/reference/tools/journal_search.md) on that
   machine, filtered by `author`, `tool` or `text`. The machine keeps its calls with their
   arguments, 30 days or 500 MiB.
3. For a view across every machine, even while they are off, use
   [`history_search`](https://docs.cmdop.ai/reference/tools/history_search.md): tasks, calls and agent sessions, without
   arguments.

What the record does not hold: the output of commands. It records the call, its arguments and how
it ended.

## Check

The calls you saw in the chat appear in the journal under the agent's name, with matching times.

## If it fails

- An agent sees other authors' calls without their arguments: that is by design. The owner sees
  every agent's calls.
- [`unauthorized`](https://docs.cmdop.ai/reference/errors/unauthorized.md): the agent's token ran out or was revoked.

## Related

[Cut an agent off](https://docs.cmdop.ai/guides/use-cases/cut-off.md) · [Revoke an agent](https://docs.cmdop.ai/guides/access/revoke.md)
