ls ./client-files
Agents Reading Files They Should Not Leak.
AI agents on private data are, by construction, a path those files can travel. Local is better than cloud, but the path still ends wherever the agent's tools can write.

The Agent Is a Channel

An agent that reads files is, by construction, a path those files can travel. On a cloud service the path ends in someone else's data centre. On a local machine it ends wherever the agent's tools can write. That is better, but it is not nothing, and the whole of the section you reach by going back to local ai agent safety is about treating it seriously. This page is about the data side only.
Classify Before You Read
Not every folder is equal. Payroll, medical notes, KYC files, counsel's advice: these carry obligations that a supplier contract does not. Before an agent gets read access, decide which classes it may see at all. We have found that most useful automations need far less than people first grant. The invoice extraction task needs the invoices. It does not need the HR share it was given because that was the easiest mount.
Redact at the Boundary

Where a task genuinely needs a sensitive document, we put a redaction model in front of it. The agent sees names replaced by placeholders, account numbers masked, addresses removed, and does its work on that. The mapping back to real values stays in a separate store the agent cannot reach. Our Veilbrook model does this step; on a frozen test set of 70 unseen files across insurance, legal and accounting documents it caught 97.6 % of identifiers, and the misses are in the report we hand over. Not perfect, we say so, and the gap is why the human check remains.
Persistence Is Where Leaks Hide
The model forgets the document when the task ends. The agent's memory does not. Vector indexes, scratchpad files, conversation logs, cached tool results: each is a copy of client data sitting on disk, often unencrypted, often outside the backup policy. Inventory every place the agent writes. Give each a retention rule. Encrypt the lot. Then check the inventory again after each framework update, because defaults change.
Where This Meets Security

Everything above assumes the agent behaves. When someone makes it misbehave, by planting an instruction in a PDF or by reaching the inference port from a compromised laptop, the data rules above are your second line. The first line is our guide to local ai agent security, and the two pages are meant to be read together.
Prove it on your documents.
Every engagement starts the same way: we run the system on a sample of your own files, under NDA/DPA, and hand you a written report with the scores, misses included. No commitment.