Transcript Sentinel is an interactive terminal UI and secret scanner for auditing leaked credentials in AI agent transcripts, chat history, session logs, and local agent state.
It is designed for a specific problem that normal repository secret scanners miss:
- secrets leaked into agent conversation history;
- credentials buried in
history.jsonl, session files, and tool state; - transcript archives mixed with examples, docs, plugins, and cache files;
- noisy generic regex matches that slow down incident response and credential rotation.
Transcript Sentinel helps security engineers, red teamers, AI platform teams, and builders audit:
- AI agent transcripts
- LLM chat history
- local agent session storage
- agent-side credential files
- secret exposure in coding agent workflows
- credential leakage in prompt engineering and tool use
This makes it useful for:
- secret scanning for AI agents
- transcript security reviews
- leaked API key detection
- credential rotation workflows
- incident response for agent systems
- local security audits for developer AI tools
- Scan common AI agent directories in the user home folder
- Scan a custom directory with
-dir - Detect provider-specific secrets for OpenAI, Anthropic, GitHub, AWS, Slack, Stripe, Discord, Google, Heroku, and private keys
- Detect generic secret assignments with context-aware false-positive suppression
- Classify findings by confidence
- Deduplicate repeated findings in the TUI
- Show provider summaries for fast triage
- Interactive Bubble Tea TUI with:
- target selection before scanning
- cached scan reuse for the same target selection
- explicit rescan and cache clearing
- scan progress with active file activity
- multi-pane results view
- keyboard and basic mouse support
Traditional secret scanners are tuned for source code repositories and CI pipelines. AI agent environments behave differently:
- agents persist prompts, tool outputs, and credentials in local histories;
- secrets often appear in transcript artifacts instead of source files;
- examples and plugin docs create large amounts of false-positive noise;
- responders need a triage-first interface, not just a wall of regex matches.
Transcript Sentinel is built for agent transcript auditing first, repository-style scanning second.
go run .go build -o transcript-sentinel .go run .go run . -dir /path/to/scango run . -tuigo run . -show-secretsgo run . -verboseThe TUI now works in three stages:
- Select which agent directories you want to scan.
- Run the scan with live progress, queued/completed counters, and active file activity.
- Review results in a three-pane layout: target selection, findings list, and finding details.
The TUI also caches results per target selection:
enteropens cached results if the exact same selection was already scannedrforces a fresh scancclears the cache for the current selection
q: quit
up/downorj/k: movespaceorx: toggle a targetA: select all targetsu: unselect all targetsenter: open cached results or start a scanr: force rescan for the current selectionc: clear cached results for the current selection- mouse click: toggle a target
- mouse wheel: scroll target selection
esc: cancel the current scan and return to selectionq: quit
tab: switch focus between targets, findings, and detailsup/downorj/k: move in focused listpgup/pgdown: jump through findingsa: show all findingsh: show high-confidence findingsm: show medium-confidence findingsl: show low-confidence findingss: toggle masked vs full secret displayb: go back to target selectionenter: open cached results or start a new scan from the current target selectionr: force rescan for the current target selectionc: clear cache for the current target selection- mouse click: change focus or select items
- mouse wheel: scroll targets, findings, or details depending on focus
- Audit Claude, Codex, Gemini, or Copilot local history for leaked API keys
- Review AI coding agent workspaces before rotating credentials
- Triage leaked GitHub, OpenAI, or Anthropic tokens found in agent sessions
- Investigate whether a prompt or tool output exposed credentials in local agent state
- Run a local incident-response pass on developer AI folders after a red-team exercise
If you are sharing the project, these are the problem spaces it addresses:
- AI agent secret scanner
- LLM transcript security
- prompt leak detection
- leaked API key scanner
- agent history credential audit
- terminal UI secret scanner
- coding agent security tool
- transcript-based secret detection
- local AI tool security audit
- credential exposure in agent workflows
- richer provider and rule analytics
- stronger mouse interactions and pane-aware scrolling
- export formats for incident response and ticketing
- rotation playbooks and remediation helpers
- persistent cache between runs
- more transcript-specific heuristics and suppressions
Run tests with a writable Go build cache:
env GOCACHE=/tmp/gocache go test ./...Apache-2.0. See LICENSE.