For agents
Let an AI agent work on a customer CSV without seeing the rows
Give the agent a tool that reads the file on your own machine and hands back counts, record
IDs and receipts instead of rows, then stop the agent opening the file itself. The model
still decides what to check and explains what the numbers mean. The customer rows stay on
your machine; the conversation gets numbers and IDs.
Set up Sift for agents →
Why "redact it first" only gets you halfway
The usual advice is to strip names and emails before an AI sees the file. That keeps the
obvious personal data out of the prompt, but two problems remain:
- The model still reads every other row. Order values, notes, company
names and IDs all go through it, and on a big file that is a lot of reading.
- Its counts and changes are still worked out by reading. Ask how many
duplicates there are, or to fix 3,000 phone numbers, and the answer depends on what it
managed to read. There is no record of what changed and no exact undo.
Splitting the job fixes both: the agent does the thinking, and a local tool does the exact
part on the file where it sits.
What the agent gets, and what stays on your machine
The agent asksIt gets back
What is in this file?→Rows, columns, blanks, and with a rules file, values not in standard form (sift_profile)
How many duplicates?→Counts, exact and after trim and lowercase (sift_count)
Who is in both files?→Matched, only in one, only in the other (sift_match)
Fix the phone numbers→A dry run first, then a new file, a receipt ID and an undo (sift_fix_dry_run, sift_fix_apply, sift_fix_undo)
When the agent needs to know what a column holds, sift_profile can list the
most common values, but only values found on two or more rows, so no single record's value
leaves the file, and personal fields such as email, phone, names and addresses show counts
only unless you allow them. The one tool that returns values from single records, sift_sample,
refuses personal fields unless you allow them.
Set it up in Claude Code
- Connect Sift. Add a
.mcp.json to the folder you work in,
then open a new session and approve sift. The exact snippet is on the
setup page.
- Stop the agent opening the exports itself. Sift never sends rows, but
Claude has its own file tools and will open a file if asked. Block that for your exports
folder in
.claude/settings.json:
{ "permissions": { "deny": ["Read(./exports/**)"] } }. For other shell
commands and scripts, also turn on Claude Code's sandbox with a read block on the same
folder. Sift runs as its own process, so it can still read the files.
- Tell the agent the rule. Paste the prompt below at the start of the
session.
Use Sift for every look at the files in ./exports. Do not open, read or print them
yourself. Use its tools for every count you report to me and every change to the data, show
me the dry run before applying a fix, and give me the receipt ID for any change.
What this does not protect
- The deny rule and the sandbox guard against accidents. They stop the
agent opening the folder by mistake. They are not a security boundary against someone
determined.
- Claude Desktop has no such setting. There, the prompt is the only thing
keeping the agent on Sift's tools.
- Counts and record IDs do reach the model. If your record IDs identify
people directly in your setup, treat them as personal data too.
- Anything you paste into the chat is in the chat. Keep rows out of your
own messages as well.
Next step
Add Sift to your agent
Install, connect Claude, and try it on the test files. Your agent gets counts and IDs; the rows stay on your machine.
Set up Sift for agents →
One file, no agent? Clean a file by hand in your browser, with nothing uploaded.
Related guides