Claude Code Redact — AI skill for Claude Code
Claude Code mod that redacts secrets and PII before the model reads them, stores placeholders in the conversation rows, and restores real values only inside file edits.
How to install Claude Code Redact
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open karanb192/claude-code-redact and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Redact does
Claude Code mod that redacts secrets and PII before the model reads them, stores placeholders in the conversation rows, and restores real values only inside file edits. No network, no model call.
Alternatives in AI
- DontFeedTheAI — Transparent anonymization proxy for AI-assisted pentesting 654 ★
- Context Attachment Manager — Codex and Claude Code plugin (works in Claude Desktop): choose which past images go to the model with your nex 221 ★
- STS2 AI Agent — https://github.com/user-attachments/assets/89353468-a299-4315-9516-e520bcbfbd4b English README: README.md STS2 191 ★
README
redact for Claude Code
[](#license)
**Every key a developer pastes into Claude Code goes to the model and stays in a session file on disk. redact swaps it for a placeholder inside Claude Code before the model reads it, keeps the placeholder in the conversation rows the session file stores, and puts the real value back only inside file edits. Zero network reach.**
Site: [redact.aidojo.si](https://redact.aidojo.si). It is a Claude Code [mod](https://code.claude.com/docs/en/plugins/mods/overview): a plugin of TypeScript function hooks that runs in the Claude Code process.
What happens
# Interactive session on Claude Code 2.1.288, Opus 5.5, accept-edits mode. Fake key, masked here as AKIA****************.
⏺ redact: hid 1 AWS_KEY in your prompt
❯ Save this AWS access key id to a new file named key.txt in this directory, exactly as given, then stop: [REDACTED:AWS_KEY#08956cf3]
⏺ Write(key.txt)
⎿ Wrote 1 line to key.txt
1 AKIA****************
⏺ I saved the AWS access key ID to key.txt, exactly as you gave it with no trailing newline. The write tool fills in the
real value when it creates the file, so it should be on disk as you sent it. I didn't open the file to check, because that would print the key back
into this conversation.
`key.txt` on disk held the real key. The session file held the placeholder in every conversation row; `/redact` answered `hid 1 values this session (1 AWS_KEY); restored 1 placeholders`.
The same value gets the same placeholder for the whole session. When Claude later edits a file that holds it, redact puts the real value back inside the `Edit`, `Write` or `NotebookEdit` arguments only. In a live session this was driven end to end: a key typed in the prompt, Claude asked to save it to a file, the file on disk holding the real key while every conversation row holds the placeholder. See [Where it was proven](#where-it-was-proven).
Install
clau
Related Skills
Mandu
Run Claude Code or Codex next to your real secrets: the AI sees placeholders, you see the real values.
Shush
Remove PII & secrets from any file before you paste it into ChatGPT or Claude — a 100% local PII redaction CLI
Motus
Keep API keys and tokens out of your AI coding agent. Redacts exact secret values from tool output and session
Mask2ai
PII redaction for ChatGPT, claude.ai and Claude Code. Masks names, emails, phone numbers, cards, IBANs and IDs
AI Helpdesk
AI-powered helpdesk that turns inbound support emails into tickets — Claude classifies category/urgency/sentim
Local Secure Prompt Agent
Browser extension that redacts PII (emails, phone numbers, Aadhaar/PAN, API keys, names, locations) from promp
Related Agents
Opensource Forker
Fork any project for open-sourcing. Copies files, strips secrets and credentials (20+ patterns), replaces inte
Boundary Mapper
Maps system authorization boundary by finding all network connections, data stores, external services, and dat
Agent Performance Updater
Tier-1 Trade Evaluation. Computes per-agent (hit_rate, sharpe, pnl, n_samples) rows for the agent_performance