Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Agent Audit TrailNew to Visual Studio Code? Get it now.
Agent Audit Trail

Agent Audit Trail

Gyana Prakash Khandual

|
1 install
| (0) | Free
Per-action history, isolated diffs, and selective revert for AI coding agent sessions inside VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Agent Audit Trail

A Visual Studio Code extension that records every action an AI coding agent takes in your workspace and gives you a per-action timeline, isolated diffs, and selective revert — so you can review and trust agent output one change at a time instead of one session at a time.

What it does

When an AI coding agent runs inside your workspace, Agent Audit Trail records every file it reads, writes, creates, or deletes, plus any commands it runs. Each action is stored with its before and after file content, the agent's reasoning (when available), and a confidence marker if the agent expressed uncertainty.

You get a tree view in the activity bar showing every session and every action inside it. Clicking an action opens a side-by-side diff in the editor. If you want to undo a specific change without touching the rest of the session, you can revert that one action on its own.

Features

  • Timeline view showing all agent sessions and their actions in the order they happened
  • Per-action isolated diff using the native VS Code diff editor
  • Selective revert of any single action, with a warning if later actions in the session depend on it
  • Whole-session revert in reverse chronological order
  • Confidence markers on actions where the agent expressed uncertainty, so you know where to focus review attention
  • Support for Claude Code, GitHub Copilot, and Cursor, with a generic file system watcher that works even when none of them are installed
  • Session export to Markdown or JSON for pull request descriptions or compliance records
  • Configurable retention so old history is pruned automatically

Getting started

Install the extension. It activates automatically when VS Code opens. Run any AI agent task as you normally would, then open the Agent Sessions panel in the activity bar to see what the agent did.

No configuration is required. By default all four adapters are enabled and session history is kept for 14 days.

Settings

Setting Default Description
agentAuditTrail.enabledAdapters all four Which agent adapters are active
agentAuditTrail.retentionDays 14 Days to keep session history
agentAuditTrail.detectConfidence true Detect uncertainty in agent reasoning
agentAuditTrail.confirmBeforeRevert true Confirm before reverting a single action
agentAuditTrail.exportFormat markdown Export format for sessions

Commands

All commands are available in the Command Palette under the prefix Agent Audit Trail.

  • Open Agent Sessions Timeline
  • Revert This Action
  • Revert All Actions in Session
  • Export Session
  • Enable / Disable Adapters
  • Clear All History
  • Refresh Timeline

Privacy

All session data is stored locally in workspace storage. Nothing is sent over the network. No telemetry is collected.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft