Ask your whole life a question—without handing your whole life to a cloud model.
VaultAgent indexes personal files on a Mac, retrieves the useful excerpts locally, redacts sensitive values locally, and sends only masked context to the chosen reasoning model. It is built for OpenAI Build Week 2026, Apps for Your Life.
Drop in a PDF, email, scan, WhatsApp export, or Office file. Ask something human: “What did my cardiologist prescribe, and did insurance cover it?”
VaultAgent answers with grounded sources while showing the exact local text and the redacted version that left the Mac. The original stays local by default.
| What the user gets | What makes it safe |
|---|---|
| One place to ask across scattered personal records | Retrieval, OCR, embeddings, and the index stay on-device |
| Frontier-model reasoning over useful context | Presidio + Gemma redact context before it crosses the boundary |
| Evidence, not a privacy promise | Every outbound payload is audited and diffable |
- Private ingest: PDF, DOCX, PPTX, XLSX, text/Markdown, images with OCR, WhatsApp exports, and email archives index locally.
- Two privacy modes: Full uses Presidio + the local Gemma contextual judge; Fast skips Gemma for lower latency and clearly discloses its lower contextual-PII recall.
- Model choice, safely scoped: the Ask bar exposes only server-approved Codex GPT-5.6 choices; the model receives masked context only.
- File lifecycle: drag in up to 15 files, remove one private import with
−, or reset the searchable index. Watched folder changes reindex automatically. - Two MCP boundaries: a tunnel-friendly read-only MCP for ChatGPT, and a separate localhost-only, owner-authorized Codex import MCP.
flowchart LR
subgraph mac["On this Mac"]
F["Personal files"] --> P["Parse + OCR"] --> E["EmbeddingGemma"]
E --> I[("SQLite + FTS5 + sqlite-vec")]
I --> R["Local retrieval"] --> G{{"Redaction gate\nPresidio + Gemma\naudit before / after"}}
end
G -->|"typed placeholders only"| M["Selected reasoning model"]
G --> A["Local audit trail"]
4111 1111 1111 1111 becomes [CREDIT_CARD]; the model can still reason
about the payment, but never receives the card number.
These are committed, reproducible measurements—not UI counters.
| Check | Result | What it means |
|---|---|---|
| Stress corpus hard cases | 525 / 525 clean | No surviving secret is acceptable in cards, IDs, keys, OCR, JSON, URLs, invisible-character, and long-input probes |
| Contextual-PII measured recall | 0.533 Full vs 0.213 Presidio | On the 75-case prose/context set, the local Gemma judge is 2.5× Presidio alone |
| Structured PII corpus | 472 / 480 (98.33%) | Both Presidio-only and Full gate score the same because this 60-document corpus plants structured identifiers Presidio already recognizes |
| Open-weight baseline | 456 / 480 (95.00%) | Direct comparison with Hugging Face openai/privacy-filter |
| Real audit replay | 1,786 fields · 8 canaries · 0 leaks | Every recorded redacted field was checked raw and whitespace-collapsed |
| GPT-5.6 reasoning | Terra 9/10, 28.659s · Luna 8/10, 21.788s | Ten fixed questions through the actual gated Codex backend |
| Regression suite | 44 / 44 passing | Includes the flagship canary-leak test |
The structured corpus is deliberately not where Gemma should shine. The 600-case stress corpus includes prose and contextual PII; that is where its measured recall advantage appears. Known weak spots are reported rather than hidden: fullwidth/Devanagari digits and unusual card separators remain hard.
Run the evidence yourself:
uv run pytest
uv run python evals/run_stress.py
uv run python evals/redaction_eval.py
uv run python evals/reasoning_eval.py
uv run python evals/leak_sweep.pyChoose the privacy/latency trade-off in the Ask bar. Fast is blue and explicitly warns that it skips the local contextual judge; Full is the safe default and shows its local-Gemma protection.
| Fast: rules only | Full: Presidio + Gemma |
|---|---|
![]() |
![]() |
Ingest stays local. Drag files in, watch indexing progress, then manage the resulting local sources from the dashboard.
| Local drop zone | A file dropped for private indexing |
|---|---|
![]() |
![]() |
macOS on Apple Silicon:
brew install ollama cloudflared
ollama pull gemma4:e2b && ollama pull embeddinggemma
uv sync
uv run python scripts/make_samples.py # fake, canary-bearing demo data
./scripts/run_all.shOpen the fragment-only dashboard URL printed by run_all.sh. The token stays
out of browser history and server logs.
The public/tunnelled MCP exposes redacted read tools only. Start a tunnel
to http://localhost:8787, then configure its generated bearer token in the
ChatGPT connector—never in the tunnel URL or a chat message.
Local Codex can import a file already on the Mac through a separate, localhost-only write MCP. It cannot be tunnelled and requires an explicit approved-root list plus a distinct token:
VAULTAGENT_LOCAL_INGEST_ROOTS="$HOME/Downloads:$HOME/Desktop" ./scripts/run_all.sh[mcp_servers.vaultagent_local_ingest]
url = "http://127.0.0.1:8788/mcp"
bearer_token_env_var = "VAULTAGENT_LOCAL_INGEST_MCP_TOKEN"
enabled_tools = ["import_local_file", "remove_local_import"]import_local_file copies and indexes an approved local file without returning
raw text. remove_local_import deletes only VaultAgent's private copy and its
index—not the user’s original. Attaching a file straight to a cloud chat may
already send it away from the Mac, so use local import for the privacy boundary.
Indexing and file management
The local index is one SQLite database: sqlite-vec for semantic retrieval and
FTS5 for keyword retrieval. The watcher refreshes VAULTAGENT_DIR on create,
edit, rename, and delete events. Dashboard/Codex imports are copied into a
private 0700 directory before parsing; they are removed with their index records
through the dashboard or local MCP. Reset all clears searchable records and
private imports, but never deletes originals in the watched folder.
Redaction policy
Default rules mask cards, Aadhaar, PAN, phones, email, OTPs, passwords, API
keys, standard developer-token prefixes, private-key blocks, and labelled
secret values. Names, dates, and locations stay by default so answers remain
useful. For a stricter profile, copy
docs/policies/standard-strict.json and
point VAULTAGENT_POLICY to the private copy. It only adds masking categories;
it never relaxes the built-in policy.
Important environment variables
| Variable | Purpose |
|---|---|
VAULTAGENT_DIR |
Watched local source folder |
VAULTAGENT_IMPORT_DIR |
Private home for dashboard/Codex imports |
VAULTAGENT_DB / VAULTAGENT_AUDIT |
Local SQLite index / outbound audit location |
VAULTAGENT_EMBED_MODEL / VAULTAGENT_JUDGE_MODEL |
Local embedding / contextual-redaction models |
VAULTAGENT_CODEX_MODEL / VAULTAGENT_CODEX_MODELS |
Server-approved Codex reasoning default / selector choices |
VAULTAGENT_POLICY |
Additive JSON redaction policy |
VAULTAGENT_MCP_TOKEN |
Bearer token for tunnelled read-only MCP |
VAULTAGENT_LOCAL_INGEST_MCP_TOKEN / VAULTAGENT_LOCAL_INGEST_ROOTS |
Separate local-write MCP authorization and approved folders |
VAULTAGENT_ALLOW_REMOTE_OLLAMA |
Explicitly permits a remote raw-text model host; off by default |
Codex built the deterministic 60-document / 480-secret redaction evaluation, the ten-question reasoning evaluation through the real Codex backend, and the audit-log leak sweep. It also performed blind, test-first reimplementations of the redaction gate and WhatsApp parser, then retained the clearer production references after behavior and readability comparisons.
/feedback Session ID: 019f849b-e6cf-75f2-9212-9122625af1df
VaultAgent is defense in depth, not encryption or a claim of perfect redaction. The default mode keeps raw source text on the Mac and sends masked context to the model. Names and cities are deliberately preserved by default because they make answers useful. Remote Ollama and custom Python chat backends are explicit trust-boundary changes; they are not part of the default local-only model.




