New Claude Cookbook: Auto-Review Agent Session Transcripts for Security Issues

brada · x · 2026-10-20

Brad Abrams published a new official Claude Cookbook recipe that points Claude at finished agent session transcripts to flag sessions worth human review. It works with Managed Agents sessions, Messages API logs, or Claude Agent SDK logs.

What it catches

Pipeline: logs → transcripts → code-based flagging → Claude reviews each session in a Managed Agents dynamic workflow → ranked report with quoted evidence.

On 20 sample sessions it surfaced 4 actionable cases: an injected invoice tricking the agent into sending a report to a supplier portal, cross-service admin token theft, and a supplier webpage instructing the agent to exfiltrate notes. The docs stress that network limits and permission policies block actions—this review shows what got through.

Original post →

More from coding & agent

coding & agent channel →