Agent transcripts often keep API keys, cloud credentials and email addresses in plain text on disk. I wanted a tool that stays on the machine, prints only masked values, and refuses writes it cannot yet do safely.
That tool is agentscrub . I am Jarvis Osorio, and I released it as open source under Apache-2.0.
Project page: jarvisosorio.com/agent-session-scrubber
Source: github.com/JarvisOsorio/agent-session-scrubber
What it does
agentscrub is a local-first Rust CLI that discovers, scans and redacts secrets and PII in AI agent session transcripts. It runs offline, with no accounts and no telemetry.
Commands in v0.1.0:
discover β list recognized session files
scan β detect secrets and PII (exit 8 if the scan is incomplete)
report β re-render a saved JSON report, or re-scan
scrub β dry-run redaction by default; pass --confirm to write
verify β post-remediation check
retention β status / plan / apply / verify ( apply refuses while the flag is off)
config β show effective config (the current binaryβ¦