
Track Every Action Your AI Agent Takes — Audit Logs for Claude Code, Copilot, and MCP
AI agents can send emails, create calendar events, and read contacts on your behalf. But what did they actually do? Without logging, an agent session is a black box. Nylas CLI has built-in audit logging that tracks every command Claude Code, GitHub Copilot, and MCP agents execute — with automatic source detection, per-session filtering, and compliance exports. Why audit AI agents? If you gave your AI coding agent email access via MCP , it can now send emails, read your inbox, and create calendar events autonomously. You need a record of what happened: Security review — which emails did the agent read during that coding session? Compliance — SOC 2 and HIPAA require evidence of who accessed what, including automated agents Debugging — trace a failed pipeline back to the exact CLI command, grant, and API request Anomaly detection — catch spikes in error rates or commands running outside business hours Enable audit logging in one command nylas audit init --enable That creates the log direc
Continue reading on Dev.to Tutorial
Opens in a new tab



