# Hide Client Names & Secrets Before Sending Code to AI

> Cleans code and text locally before they go to an AI model. Client and project names you list, emails, phones and keys become consistent tokens. Python logic is proven unchanged, and the originals are put back into the answer. No model, no network.

Hide Client Names & Secrets Before Sending Code to AI is a paid AI agent skill on Agensi by Nicolas Baranov, in Legal & Compliance. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $15 (one-time purchase)
- Creator: [Nicolas Baranov](https://www.agensi.io/creators/creator-1633)
- Category: [Legal & Compliance](https://www.agensi.io/skills/legal-compliance)
- Version: 1.1
- Last updated: 2026-12-05
- Security: scan passed (2026-12-05); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/hide-client-names-secrets-before-sending-code-to-ai
- Tags: privacy-security, python, data-protection, compliance

## What it does

- Replaces client and project names you list with consistent tokens, in every spelling
- Replaces emails, phone numbers, keys and tokens before code leaves your machine
- Proves Python logic is unchanged after cleaning, or refuses to output anything
- Puts the original names back into the model's answer, even in new names it built
- Flags tokens in the answer that it never issued
- Refuses input with invisible characters instead of guessing

## Who it's for

- **Freelancers handling sensitive client code:** Protect your clients' privacy when using AI to debug or refactor their code. Try: "Clean the client names and secrets from this Python script before I send it to ChatGPT."
- **Agencies and outsourcing teams under NDA:** Send client code to an AI or a subcontractor without naming the client or leaking its keys. Try: "Hide Northwind and Нортвинд in these files before I send them to the contractor."
- **Developers using AI for code reviews:** Strip API keys and client names from Python while its logic stays provably the same. Try: "Replace all keys and project names in these logs so I can ask for a summary."

## About this skill

You want a model's help with client code, but the code says who the client is and holds keys and personal data. This skill cleans it on your machine first, checks its own result, and puts the originals back into the answer.

### What gets replaced

| What | Replaced with |
|---|---|
| Client and project names you list, in any case or separator (`Northwind`, `north_wind`, `NorthwindClient`, Cyrillic look-alikes) | `client_a_3f9c21b0` |
| Keys, tokens, passwords (only the value) | `SECRET_5e0d77a1` |
| Email | `user_1b788a54@example.invalid` |
| Phone (+7/8, +1) | same layout, area code `000` |
| ИНН, СНИЛС, card numbers (checksum-validated) | new digits with a valid checksum |
| Public IPv4 | `10.x.y.z` |

The same value always gets the same token, so the code still makes sense to the model.

### What it checks before giving you output

1. **Nothing sensitive is left:** the output is scanned again with the same detectors.
2. **Exact reversibility:** restoring the output gives back the input byte for byte.
3. **Python logic unchanged:** both versions are parsed and must differ only by a consistent one-to-one renaming.
4. **Fail closed:** invisible characters, unparseable Python, a secret in code outside a string, or a token already present in the input stop it, and nothing is written.

### How it works

1. You list the clients and projects to hide, with every spelling you use.
2. The agent cleans each file into a separate folder without opening the original, and reports what was replaced.
3. You send only the cleaned files to the other model, a web chat or a contractor.
4. You save the answer, and the agent restores the original names in it, including inside new names the model built from a token. Tokens the model invented are reported.

The key and the token table stay in a private folder in your home directory and are never sent anywhere.

### What it does not do

It is a convenience with checks, not a security boundary: an algorithm stays recognisable after renaming. It finds only the names you list, not people's names in free text. Other phone formats, passports, IBAN and IPv6 are not covered. The logic proof is for Python only; other languages and plain text are replaced and round-tripped without it.

### Licence

The bundled source is under the Business Source License 1.1 (full text in the package). Use is free for non-commercial use, for an evaluation or pilot of up to 90 days per organisation, and in an organisation where up to 10 developers use it.

## Requires

- Python 3.10+

Keep the key and token table (~/.skilllayer/context) out of git. The commands this skill runs make no network calls.

## Known limitations

It only hides names you list manually. It does not detect all personal names or addresses in free text automatically. Logic proofing is for Python only.

## Technical details

Version 1.1 (in review since 5 December 2026): all the code is one file, scripts/skilllayer.py (38 KB), the context command of SkillLayer v0.3.1 cut from its source by a build script that copies every function verbatim; standard library only, Python 3.10+, no network code. SKILL.md gives the file's SHA-256; the agent checks its copy before running it and, with the user's yes, keeps a checked copy in ~/.skilllayer/tools/. Tested against the full tool: identical output in 11 cases. Version 1.0, live until 1.1 is approved, bundles the same tool as about 85 .py files in lib/ with a launcher; that source also contains an update check and package-registry lookups the skill never runs. Both: the first run creates a random key and a token table in ~/.skilllayer/context (owner-only files); $SKILLLAYER_CONTEXT_DIR or --home moves them. The token table holds the originals and is never sent anywhere. Exit codes: 0 cleaned or nothing to clean, 2 blocked (nothing written), 1 bad input.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Hide Client Names & Secrets Before Sending Code to AI skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this help me if I want to use AI for my work?

It replaces client and project names you list, emails, phone numbers and keys with consistent tokens before your files go to an AI or a contractor, so they don't learn which client it is or see its keys and contacts. The code's logic itself stays readable; that is what lets the model help.

### What do I need to have ready to use this skill?

Python 3.10 or newer, the files you want to clean, and a list of the client and project names to hide, with every spelling you use. Everything runs locally; no accounts or cloud services are needed.

### What kind of output will I get back?

The skill produces a cleaned version of your file where private details are replaced by placeholders. If you are cleaning a Python script, it also provides a report proving that the underlying logic of your code has not been altered during the cleaning process.

### Are there any types of private information this skill might miss?

Yes. It finds only the names you list, not people's names or addresses in free text. Phones are recognised in +7/8 and +1 formats only, and passports, IBAN, bank account numbers and IPv6 addresses are not covered. Bare 10- or 12-digit numbers are treated as ИНН only after the word ИНН/INN.

### How do I tell my AI agent to start cleaning my files?

Simply tell your AI agent which files to clean and provide a list of the specific project or client names you want to mask. You should also tell the agent where you would like the cleaned versions of the files to be saved.

### Can I turn the placeholders back into my original data later?

Yes. Save the answer from the AI or contractor to a file and the skill puts your original names and details back, including inside new names the model built from a token. It must run on the same machine, with the same key and token table, and it reports any token-shaped strings it never issued.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
