deepread-pii-removal

deepread-pii-removal is a cursor rule for Cursor from deepread-tech/skills. It costs 41 tokens per session (2,269 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

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.

agentmods
npx agentmods add rules/deepread-tech/skills/deepread-pii-removal
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.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.svg" alt="Measured on agentmods" 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,269 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00041 $0.02269
Opus 5 $0.00020 $0.01135
Sonnet 5 $0.00008 $0.00454
Haiku 4.5 $0.00004 $0.00227

Measured 4d ago against content hash a4ecf2c3a134, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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 · 281 lines

How it starts

The opening of the file, as written. The whole thing — 281 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
413 File exceeds size limit
429 Monthly page quota exceeded or rate limit hit

GET /v1/pii/{job_id} — Get Job Status & Results

Auth: X-API-Key

Poll every 5-10 seconds until status is completed or failed.

Read the full file on GitHub · 281 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. 4d 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 2mo ago), licensed MIT. It adds 41 tokens to every session and 2,269 once invoked, about $0.0002 per session on Opus 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.