When should you use it?
- Several agents need to share files
- You do not want keys inside agent sandboxes
- You need an audit trail
Not for: A single agent on your laptop; Teams without an orchestrator
What do you need, and what do you get?
You need
- Sandboxed agent instances
- Storage behind an orchestrator
- MCP calls to browse, send and fetch files
You get
- Shared files without exposed keys
- Request logs
- Compartmentalized agents
How does it work, step by step?
- Hide the storageKeep real storage keys only in the orchestrator.
- Define a virtual pathGive files a custom address scheme the agents use.
- Expose toolsOffer list, upload and download tools through MCP.
- Broker requestsLet the orchestrator perform the real file actions.
- Log everythingKeep request logs to audit what each agent did.
The prompt
Our own prompt, inspired by prescriptivist on Hacker News and written to work in Claude Code. Values in lime are placeholders.
Fill in the blanks (optional; the copied prompt uses your values)
Design an MCP file broker for my agents. Storage: {storage}. Agents: {agents}. Define a virtual address scheme, tools for list, upload and download, which agents may access which folders, size limits, and the log fields for each request. Keys must never be passed to agents.
Inspired by prescriptivist on Hacker News: Comment in MCP was always a bad idea?. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.
What can go wrong?
- The broker becomes a single point of failure; monitor it.
- Limit which agents can see which files.
- Watch for large uploads that drive cost.
Our take
prescriptivist's design answers a question every multi-agent builder hits: how do isolated agents collaborate without each one holding keys to the shared storage? The answer is to give them none. Agents ask for files by a made-up path, and an orchestrator outside the sandbox decides whether to fetch, write or refuse. Credentials stay in one place, and an agent that is tricked by a malicious document has nothing to leak. The broker brings a second benefit almost for free: every file request passes through it, so you get an audit trail that answers what an agent touched and when. The author notes the models adapt well to a strange file system, which matches what we would expect, since tools with clear descriptions are easy to use. If you copy this, keep the tool set small, with read, write and list only, add per-agent allowed paths in the broker, and reject anything outside them. Shell access is the opposite of this approach, so drop it from agents that only need files.
Where the time goes back: Agents collaborate on files while secrets stay out of every sandbox.
FAQ
Do agents cope with odd paths?
Why MCP?
Source and credit
Inspired by prescriptivist on Hacker News. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.
- Inspired by
- Comment in MCP was always a bad idea?
- Creator
- prescriptivist on Hacker News
- Published on
- Hacker News
- Original date
- Sep 21, 2026
- License
- Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
- Originally for
- Claude Code
- AI dry run
- Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends, bookings or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails. - Verified
- Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.
Are you the creator? Claim or correct this page.