Agent Redact — Development skill for Claude Code
Zero-latency, zero-leak secret & PII redactor for LLMs, Claude Code, and Agentic workflows.
How to install Agent Redact
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open TonyDuongg/agent-redact and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Redact does
Zero-latency, zero-leak secret & PII redactor for LLMs, Claude Code, and Agentic workflows.
Alternatives in Development
- Sanitize — Detect and redact PII from text files — 15 categories (SSNs, credit cards, API keys, etc.), zero dependencies 3.1k ★
- Ds Harness Remote — 基于 DeepSeek Harness 插件机制构建的远程访问方案,通过低延迟、端到端加密的 P2P 网络,支持使用 PC、移动端 和 Web 随时访问本地设备上的DSH 、CodeX、Cursor、Claude Cod 860 ★
- Sync Pii Anonymizer — Skill: Re-sync the vendored pii-anonymizer library 295 ★
README
agent-redact 🛡️
[](https://github.com/TonyDuongg/agent-redact/actions/workflows/ci.yml) [](https://www.npmjs.com/package/agent-redact) [](https://opensource.org/licenses/MIT) [](package.json) [](package.json)
**Universal zero-latency, zero-leak secret & PII redactor for ALL AI Agents, LLMs, and Multi-Agent Workflows.**
Developers and autonomous AI agents (**Claude Code, Cursor, OpenAI, DeepSeek, Google Gemini, Ollama, LangChain, AutoGen, CrewAI**) frequently pipe local logs, source code, `.env` files, and database dumps directly into model prompt contexts. Unintentional leaks of credentials (Anthropic keys, OpenAI tokens, AWS keys, Stripe secrets, JWTs, database URLs) are catastrophic.
`agent-redact` is a universal privacy and secret firewall designed to protect **ANY** agentic architecture:
- Intercepts prompts before network transmission to any cloud or local LLM.
- Reversibly masks sensitive tokens (
[API_KEY_1]). - Restores values in generated agent responses without ever leaking secrets to external servers or monitoring tools.
- First-class integration via CLI, Universal TypeScript Wrapper (
wrapAgent), Model Context Protocol (MCP), and Web Middlewares (Express / Fastify / Next.js).
⚡ Highlights
- Zero-Latency Performance: Optimized single-pass regex compilation executes in under 2ms even for large prompt payloads.
- Zero Runtime Dependencies: Pure TypeScript/JavaScript with zero third-party packages at runtime, eliminating supply-chain vulnerabilities.
- Dual-Way Reversible Masking (Vault): Masks sensitive tokens into numbered ses
Related Skills
Check Pii
/check-pii — Check text for PII and redact
Privacy Scan
Pre-send gate: scan a file or stdin payload for secrets and PII, redact, re-scan, only then proceed.
Ward
Claude Code hook CLI — PII guard, leak detection, event logging
Aegis Trace Export
Export activity-log traces with PII / secret redaction for safe sharing. Use this skill whenever the user want
Dsh Guard Pack
Nine DeepSeek Harness guard plugins in one installable set: secret-leak blocking, a per-session cost cap, auto
Secret Scan
Scan working directory untuk secrets — gitleaks detect mode, custom rules, fail-fast kalau ada leak.
Related Agents
ForensicAgent
Forensic security analyst — PII detection, secret scanning, identity leak auditing across git history, staged
Redaction Auditor
Expert auditor for secret-redaction code in the claude-handoff project. Use PROACTIVELY whenever src/core/reda
Performance Memory Expert
Domain advisor for event-loop latency, worker thread delegation, SQLite query and index optimization, FTS5 ful