Filesystem for AI Agents: What I Learned Building One
Filesystem for AI Agents: What I Learned Building One Most agentic systems, like Claude Code, that run on laptops and servers, interact with files natively through bash. But building an agentic sys...

Source: DEV Community
Filesystem for AI Agents: What I Learned Building One Most agentic systems, like Claude Code, that run on laptops and servers, interact with files natively through bash. But building an agentic system that allows users to upload and work with files comes with its own limitations that make you unable to store files on the server the agent runs on, and give the agent the bash tool: The fact that it's exposed to users anywhere — bad actors can get it to run commands that can crash the server or exploit other stuffs, so you want only file operations Even if you allow only file operations, you can't store every user's files on the server due to storage limits, so you'll have to store files in remote storage like S3 or Azure — but mounting them will make native commands like grep slow, as it has to download the full file first Even if you had unlimited storage and didn't need mounting, you still need isolation — where the agent cannot access files uploaded by another user, or by the same use