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
Track new dev tools and assemble project-ready kits
A developer used Claude Code to watch AI dev-tool sources, rank each result, and create a toolkit with a CLAUDE.md for a chosen project.
Use Claude Code to handle Jira fixes and draft replies
A freelance developer uses Claude Code to work through client Jira tickets, patch the code, and prepare reply text while they keep a manual review step.
Use Claude Code to build from a spec with review agents
A commenter had Claude Code implement software from a written spec while sub-agents checked the code and tests ran throughout.
Investigate why a service is getting killed
Run a read-only SSH check to find the cause of a process death and rank fixes by risk.
Set up Claude Code to manage Tangled issues
They built a Tangled MCP server so Claude Code could check branches and handle issues for repos in owner/repo form.
Modernize legacy scientific code with verified rebuilds
Use Claude Code to map an old codebase, rewrite it safely, and compare old and new results against test inputs before accepting changes.