Skarn

v0.38.0
com.getskarn/skarn Checked 4 hours ago Published 3 days ago

Scans AI coding sessions and assistant configs for leaked secrets and risky hooks; local, redacted

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

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.…

ParameterTypeDescription
hoursintegerOnly sessions active in the last N hours. 0 scans all history. Default 0.
projectstringOnly sessions whose project name or path matches this filter.
severitystringLowest severity to report. Default low.
userstringOnly sessions whose user id or email address matches this filter; only a Compliance API export carries either.

vet_configs Vet assistant configuration

Statically vet this machine's AI assistant configuration - hook commands, MCP server definitions, permission grants and rules (allow, ask, deny), installed plugins and skills - and return the masked JSON findings report as a text block. Read-only: config files are opened for reading and never written. Project configuration is read at the server process's working directory, at the top of its git repository and, in a linked worktree, at the main checkout.

list_sessions List recent sessions

List recent AI coding assistant sessions as structural metadata only: session id, assistant, timestamps, message and tool counts, and token totals. No session message text is returned, and no label authored inside a transcript such as a project name, git branch or model id. hours bounds the window, limit caps the row count, project, cli and user narrow the list; a row from a Compliance API export carries the recorded user id and never the email address. compliance_withheld counts the Compliance API export sessions that were found and withheld unread because reading them needs an Enterprise lic…

ParameterTypeDescription
clistringOnly sessions recorded by this assistant, for example claude, codex or cursor.
hoursintegerOnly sessions active in the last N hours. 0 lists all history. Default 168.
limitintegerMaximum rows to return. Default 50.
projectstringOnly sessions whose project name or path matches this filter.
userstringOnly sessions whose user id or email address matches this filter; only a Compliance API export carries either.

session_stats Session statistics

Aggregate recent AI coding assistant sessions into counts: sessions per assistant, total messages, distinct projects, token totals and estimated cost. No session message text is returned. hours bounds the window, project, cli and user narrow what is aggregated. 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. tools_dropped counts the session sources that failed discovery, and stores_unreadable the session stores that could not be read in full; sessions or co…

ParameterTypeDescription
clistringOnly sessions recorded by this assistant, for example claude, codex or cursor.
hoursintegerOnly sessions active in the last N hours. 0 aggregates all history. Default 168.
projectstringOnly sessions whose project name or path matches this filter.
userstringOnly sessions whose user id or email address matches this filter; only a Compliance API export carries either.