# How do I see what an AI agent ran on my servers?

Read the recent calls of an agent in Valakes, filter the audit log by agent or event, and run Verify to check that no entry was edited, reordered or cut.

Source: https://valakes.com/guides/review-what-an-agent-did/

Last updated: 2026-11-29

The Agents panel lists the latest calls of each agent. Settings, Audit log holds the full record, and Verify checks that no entry was edited, reordered or cut from the end.

An agent that works on your servers leaves two records in Valakes: a short list of recent calls and a log you can filter and verify. An agent cannot read the audit log, because no tool exists for it. The built-in assistant is listed in the same panel as "Built-in assistant". To decide what an agent may do in the first place, see [Keep your SSH password away from Claude Code](https://valakes.com/guides/let-claude-code-run-commands-without-a-password/). The use case [letting coding agents work on servers without losing control](https://valakes.com/use-cases/ai-agents-on-servers/) puts this log next to the levels and approvals.

## Steps

1. **Read the recent calls**

   Open the Agents panel with `Ctrl+Shift+J` (`Cmd+Shift+J` on macOS). Under **Recent calls** it lists the tool, the outcome, the host and the time of each call. Click a call for its details. In the picture, the agent claude-code has opened a session on a staging host and the call went through.

   A call that waits for you shows in the approval queue above, with the exact command, the host, the directory and the risk Valakes found.

2. **Open the audit log and filter it**

   For more than the latest calls, open Settings and choose **Audit log**. It lists everything agents did: every call, approval, command and transfer, with the agent, the host and the time. It never holds a secret. Filter by agent or by event.

   The picture is filtered to the event `command.requested` and scrolled to the right, so the Time column and most of the Actor column are out of view on the left. Each row shows the host, the decision and the command. Here `df -h /` and `uptime` were allowed, and `touch /tmp/valakes-shot-agent` needed an approval. To see how a request ended, filter by the event `approval.decided`.

3. **Run Verify**

   Press **Verify**. It checks the whole chain of entries and says "Verified N entries" or "Chain broken". The badge in the picture reads "Verified 25 entries".

   A broken chain shows a banner at every start until you press **Export and start a new segment**.

4. **Act on what you find**

   If a call looks wrong, use the buttons on the agent's card in the Agents panel. **Pause** makes the agent's next call fail with "paused". It does not stop a command that already started, and the sessions stay open. **Revoke** ends the agent's access for good, after a confirmation. **Rotate access** makes a new token and stops the old one at once.

   **Pause all agents** pauses every agent. The **Kill switch** also turns the API off, cancels every pending approval and closes the sessions that agents opened. Your own tabs stay.

## What it does not do

The log is tamper-evident, not tamper-proof. It proves that the entries it holds were not edited, reordered or cut from the end since they were written. It does not prove that the log is complete. A process that runs as you can delete the file, and Verify then reports it. Entries written while the vault was unavailable are marked as degraded and cannot be verified.

The log holds counts, commands with placeholders and decisions. It never holds the values of saved credentials or the output of a command, so it tells you what an agent ran, not what the server printed. A broadcast command is kept as each host planned it, so a password you typed into one yourself can stay in the log. Some of your own actions, such as a new local folder in Files, are not in it.

The kill switch and Pause do not undo what a command already did. The security FAQ in the Help says in detail what the audit log proves and what it does not.

## Documentation and help

[Read the docs: Agents](https://docs.valakes.com/agents/)

## Read next

- [AI agents work under your rules](https://valakes.com/features/ai-agents/): Valakes has a local API that lets an AI agent such as Claude Code or Codex open sessions and run commands on the hosts you allow. The agent never sees a password, and changes wait for your approval.
- [How do I give an AI agent SSH access with the least damage?](https://valakes.com/learn/ai-agents-on-servers/): Give the agent its own account on the server, with no sudo, no password in the prompt and nothing secret in its reach. Let it read first, allow root for one exact command at most, make every change wait for a person, and keep a record of what ran.
- [How do I keep a record of what an AI agent ran on a server?](https://valakes.com/learn/agent-audit-trail/): Do not count on shell history. Give the agent its own account and key, log sshd at VERBOSE so each login shows the key fingerprint, and let sudo record the input and output of anything the agent runs as root.
- [How do I read logs on a Linux server?](https://valakes.com/learn/read-server-logs/): Use tail -f to watch a log file live, grep -C 3 to see a match with the lines around it, and zgrep for the rotated copies that are compressed. For a service that logs to systemd, run journalctl -u name --since "1 hour ago". You need sudo or the right group for the journal.

The screenshots show Valakes built from commit 0b8738d, taken on 25 November 2026.
