deepread-pii-removal

deepread-pii-removal is a cursor rule for Cursor from deepread-tech/skills. It costs 41 tokens per session (2,744 once invoked), scanned A, original, MIT.

A reference for using the DeepRead API to find and hide personal information in documents. Personal information includes details such as names, addresses, emails, payment numbers, and medical record numbers.

In plain words
What is it for?
Use it to upload PDFs, text files, or images, detect personal information, and return a cleaned document. It supports black bars, placeholders, and partial masking.
Why use it?
It provides the endpoints, options, and examples needed to automate document redaction. Redaction removes or masks sensitive details before a file is shared.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: positional $N argument.

Good fit Use it to upload PDFs, text files, or images, detect personal information, and return a cleaned document. It supports black bars, placeholders, and partial masking.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/deepread-tech/skills/deepread-pii-removal
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/deepread-tech/skills

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for deepread-pii-removal

README.md
[![agentmods](https://agentmods.dev/badge/rules/deepread-tech/skills/deepread-pii-removal/github.svg)](https://agentmods.dev/rules/deepread-tech/skills/deepread-pii-removal)
Your own site
<a href="https://agentmods.dev/rules/deepread-tech/skills/deepread-pii-removal"><img src="https://agentmods.dev/badge/rules/deepread-tech/skills/deepread-pii-removal/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for deepread-pii-removal

Your own site · 80×15
<a href="https://agentmods.dev/rules/deepread-tech/skills/deepread-pii-removal"><img src="https://agentmods.dev/badge/rules/deepread-tech/skills/deepread-pii-removal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,744 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.02744
Opus 5.5 $0.00016 $0.01098
Sonnet 5.5 $0.00008 $0.00549
Haiku 4.5 $0.00004 $0.00274

Measured 3d ago against content hash 600ab1168b1c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

deepread-pii-removal scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

resp = requests.post(
.cursor/rules/deepread-pii-removal.mdc · 301 lines

How it starts

The opening of the file, as written. The whole thing — 301 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DeepRead PII Removal API Reference

You are helping a developer redact PII from documents using DeepRead's API. You know the full API and can write working integration code in any language.

Base URL: https://api.deepread.tech Auth: X-API-Key header with key from https://www.deepread.tech/dashboard or via the device authorization flow (see deepread-setup rule)


What It Does

Upload a document (PDF, text, image). AI detects 14 types of PII automatically, redacts them using your chosen style, and returns a clean document with a detection report.

PII types: SSN, credit cards, emails, phone numbers, names, addresses, dates of birth, passport numbers, driver's licenses, bank accounts, IBANs, IP addresses, URLs, medical record numbers.

Redaction styles:

  • black_bar — black rectangles over PII (default)
  • placeholder — replace with labels like [NAME], [SSN]
  • partial — partial reveal like ***-**-6789

POST /v1/pii/redact — Submit for Redaction

Auth: X-API-Key. Content-Type: multipart/form-data

Parameter Type Required Default Description
file File Yes — PDF, TXT, PNG, or JPEG
redaction_style string No "black_bar" "black_bar", "placeholder", or "partial"
webhook_url string No — HTTPS completion callback
language string No "en" en, zh, es, hi, ar

Response (200 OK):

{
  "id": "<job_id>",
  "status": "queued"
}

Processing is asynchronous — poll the GET endpoint or use a webhook.

Errors:

Status Meaning
400 Unsupported format, empty file, invalid params, non-HTTPS webhook
401 Invalid or missing API key
402 PII redaction is not on your plan (Enterprise), or the credits do not cover the job — the body names what is needed
413 Over the hard maximum: 2,000 pages or 500 MB
429 Requests per minute or pages in flight exceeded — Retry-After says when to retry

Read the full file on GitHub · 301 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed 600ab1168b1c
  2. 18d ago Changed baad4aeea035
  3. 1mo ago Changed · +20 lines e52f719e11cd
  4. 1mo ago First seen · 281 lines · 41 tokens per session scan A a4ecf2c3a134

Subscribe to this mod's changes

deepread-pii-removal is a cursor rule published in the GitHub repository deepread-tech/skills (4 stars, last pushed 4d ago), licensed MIT. It adds 41 tokens to every session and 2,744 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.