scan_sessions
Scan sessions for leaked secrets
Scan this machine's AI coding assistant session transcripts for leaked credentials and risky agent behaviour, and return the redacted JSON report as a text block. Each detected secret is reported in a truncated mask that keeps at most its first character and last two characters; the surrounding transcript snippet and the transcript-authored project label are not returned. severity sets the lowest reported level, hours bounds the window (0 scans all history and is the slowest form), project narrows to one project, user narrows to the user ids or email addresses a Compliance API export recorded. compliance_withheld counts the Compliance API export sessions that were found and withheld unread because reading them needs an Enterprise license; they contribute nothing to the counts. Each incident carries confidence (high, medium or low: how likely the match is a live, usable credential after context penalties) and likely_test_value (true when the value sits in a test context); neither changes severity.
userhoursprojectseverity