Llmscrub
Description
Sweep LLM agent logs (Claude Code, Codex) for leaked secrets and redact them in place.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
llmscrub

Sweep LLM agent logs (Claude Code, Codex) for leaked secrets and redact them in place.
LLM agents accumulate surprising amounts of secret material in their logs: API keys pasted into prompts, `.env` files read into tool results, `curl -H "Authorization: Bearer ..."` commands, Supabase access tokens baked into MCP config, GCP service-account private keys from `cat credentials.json`, 1Password outputs that got piped to stdout. `llmscrub` stacks several detectors to find them and redacts in place with backups.
What it detects
Four layers:
- trufflehog — ~700 known-format detectors, many verified against live APIs
- gitleaks — regex-heavy ruleset, complementary to trufflehog (catches things like
curl -u user:passauth) - Built-in extras that trufflehog/gitleaks miss:
- PEM private-key blocks (including embedded in JSONL as
\n-escaped strings) - Environment-variable assignments with sensitive key names (
API_KEY=...,DATABASE_URL=...) Authorization: BearerandBasicheaders- URL-embedded passwords (
scheme://user:pass@host) - Aggressive
KEY=VALredaction when the file context suggests a.envwrite
- PEM private-key blocks (including embedded in JSONL as
- 1Password sweep (opt-in via
--op) — pulls every concealed field from your signed-in 1Password vault and does exact-string matching against the logs. Catches values that are real secrets but don't look like one structurally (homegrown tokens, service passwords, anything the pattern detectors can't recognize). Filtered by entropy so short dictionary-word entries don't cause false positives.
Install
brew install harqian/tap/llmscrub
Usage
llmscrub scan # report what's there (read-only)
llmscrub scan -v # also list affected files
llmscrub redact --dry-run # preview redactions
llmscrub redact # re
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的
AI mem0
| Universal memory layer for AI Agents | 51341 | 221 | 1 |
AI