TonyDuongg

Agent Redact — Development skill for Claude Code

Development community

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 🛡️

[![CI](https://github.com/TonyDuongg/agent-redact/actions/workflows/ci.yml/badge.svg)](https://github.com/TonyDuongg/agent-redact/actions/workflows/ci.yml) [![npm version](https://img.shields.io/npm/v/agent-redact.svg?style=flat&color=3178c6)](https://www.npmjs.com/package/agent-redact) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Zero Dependencies](https://img.shields.io/badge/dependencies-0-brightgreen)](package.json) [![Node.js Version](https://img.shields.io/badge/node-%3E%3D20.0.0-blue)](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