FUSE Architecture Gives Cloud Agent Sandboxes POSIX File Access
掘金 · 人工智能 reports that the developers of an open-source cloud-hosted Agent platform designed a FUSE-based virtual filesystem for short-lived, high-concurrency Sandbox sessions. Their architecture separates file content in object storage, Session-visible namespaces in PostgreSQL, and access through the Filestore protocol, allowing tools such as git, find, and grep to use predictable POSIX paths. The developers also describe scoped, short-lived tokens, read-only mounts for inputs and Skills, and on-demand expansion of Skill archives.
The design gives AI Agent Sandboxes a practical file layer while keeping storage, namespace visibility, permissions, and lifecycle management separate.
我们最近在构建开源云端托管 Agent 平台 github.com/superduck-a… ,需要让 Sandbox 中的 Agent 像访问本地目录一样读取用户文件、加载 Skill,并保存任务产物。需求看起来只是「把云端文件挂载进 Sandbox」,但落到高并发、短生命周期的 Session 环境后,会遇到命名空间、权限、状态管理和资源清理等一系列工程挑战。
我们借鉴了 Anthropic Sandbox 的 rclone-filestore 架构思路,基于 FUSE(Filesystem in Userspace)实现了一套动态虚拟文件系统:文件内容仍保留在对象存储中,Session 只维护逻辑路径与资源引用;Skill 归档不必在启动前解压;Sandbox 通过短期、作用域受限的 Token 访问 Filestore。摸着 Anthropic 过河。
AI Agent 需要「文件系统」
Agent 在 Sandbox 中执行任务时,仍大量依赖 git、find、grep 等原生 CLI。这些工具要求底层提供稳定的 POSIX 文件接口:输入文件、Skill 与任务产物需要落在可预测的逻辑路径上,访问方式也不应随底层存储形态变化。文件系统还提供了直观的权限边界,例如将 /skills 挂为只读、将 /outputs 挂为可写。