---
title: Agent activity
icon: LuActivity
description: See every file an agent edits in a session, with per-edit diffs and selective rollback.
---

Agent activity shows all edits made by an agent during its current editing session. It is built for quick review: see which files changed, inspect each edit, and undo any agent work you do not want to keep.

## Open agent activity

Avatar icons will appear in the top right of the editor whenever an agent or a human is editing a document. You can click on an agent's avatar icon to open the activity panel for that agent.

The activity panel displays the list of files that the agent has edited in the current session.

## What you can see

The activity panel groups edits by file. Each file row shows the total additions and deletions made by the agent.

Expand a file to see individual edits. Each edit has its own additions, deletions, timestamp, and diff.

## Undo agent edits

While an agent's session is still active, you can undo:

- The agent's latest edit in a file
- All edits made by an agent in a file at once

After the agent session ends, the activity panel still shows the session's edits for review, but undo is no longer available. Use the [timeline](/docs/features/timeline-and-recovery) to roll back changes from a closed session.
