Share files between sandboxed Claude Code agents through MCP
A developer connected sandboxed Claude Code instances to a virtual file system so they could pass files through MCP without direct access to AWS.
- What they did
- They set up several Claude Code instances in a sandbox and gave them MCP tools for listing, uploading, and downloading files from a virtual file system using an `agentfiles://` URI. A separate orchestrator handled the real file operations behind the scenes on AWS, while the agents only saw the narrow file interface.
- How it went
- The agents handled the unusual file system well and stayed fully separated from the backend. Requests from the tools, together with orchestrator logs, created a complete audit trail. No numbers were provided.
- Tips
- Keep storage credentials inside the orchestrator and expose only the smallest file-related tools you need. If you want to add cloud storage or other irreversible steps, pause first and confirm before proceeding.
Try it yourself with Claude Code
Help me prototype a small group of sandboxed [agent name] instances that share files through MCP. Give them only a virtual file interface for listing, uploading, and downloading files from [local folder or cloud bucket], and route every request through an outer orchestrator that handles the real storage work and logs each read and write. Start with [number] agents, stop once one agent can hand a file to another and I can inspect the audit log, and before you connect any cloud account, move any data, or use any credentials, ask me to approve it first.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Draft PR reviews, then send them yourself
They used Claude Code to prepare GitHub review drafts for queued pull requests, while keeping final edits and submission under their control.
Use Claude Code to plan and run a legacy stack migration
An engineer used Claude Code to map, split, and execute a multi-repo migration while keeping each step tied to docs, tickets, and review.
Try a local search layer for code lookup
ColGrep-Agent-2B runs locally and helps Claude Code sift search hits and open files to find code with less effort.
Use Claude Code to revive an old assembly build
A developer used Claude Code to get a 1991 assembly game’s old tools compiling again on modern setup files.
Use Claude Code for a carefully checked migration
A developer used Claude Code to update a reset feature, but the review work and cleanup erased most of the speed gains.
Match a pull request to repo style
A developer used Claude Code to bring a pull request in line with a repo’s style, but it only altered comments and left the code unchanged.