Filesystem-Based Memory for LLM Agents: Organization, Evolution, and Sustainability

📅 2026-07-29
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work challenges the prevailing assumption that large language model (LLM) agents inherently function without structured long-term memory, presenting the first systematic investigation into file systems as a memory substrate. The authors introduce a unified memory architecture comprising three collaborating agent types—manager, searcher, and executor—that jointly maintain a directory-tree-based Markdown storage system augmented with sandboxed shell tools, dedicated memory interfaces, and chunked retrieval strategies. Through comprehensive evaluation, they assess how organizational schemes, tooling, and model capabilities jointly influence memory coherence and task performance. Results demonstrate that well-structured memory organization can reduce retrieval costs by approximately 50%, yet most agents struggle to sustain such structure over time. Notably, changes to the toolset exert an impact on memory morphology comparable to switching the underlying LLM, underscoring that memory architecture constitutes a design space rather than a fixed default.
📝 Abstract
Deployed LLM agents increasingly keep their long-term memory as a filesystem: a directory tree of markdown files that the agent itself reads, writes, and reorganizes through generic file tools. Yet research has largely passed over this medium: prior systems design bespoke memory representations and study retrieval over them, leaving the default's two working assumptions untested: that an agent can keep a growing store organized as memories accumulate, conflict, and go stale, and that this organization pays. We present the first systematic exploration of filesystem-based memory for LLM agents. We formalize the setting as three roles around one memory filesystem: a management agent integrates and organizes incoming content, a search agent answers queries with cited sources, and an execution agent supplies task trajectories that are distilled into skills, unifying declarative memory and skills in a single store. Across long-conversation benchmarks and embodied tasks, we vary memory shape (agent-organized hierarchy, verbatim dump, chunk retrieval), stream scale, tool harness (sandboxed shell, memory-tool-style functions, varied search tooling), and the strengths of the management and search agents, tracking answer quality, cost, and store health as memory grows. What organization reliably buys is search economy: organized stores roughly halve retrieval cost where material is large. Today's agents, however, fall short of the default's promise: in our growth study, organization erodes for all but the strongest management agent, and no agent we measure converts organization itself into better answers. And the model is not the only lever over a store's shape: changing the tool set alone reshapes the store as strongly as swapping the model. The study turns the filesystem default from an assumption into a design space for agent memory.
Problem

Research questions and friction points this paper is trying to address.

filesystem-based memory
LLM agents
memory organization
long-term memory
memory sustainability
Innovation

Methods, ideas, or system contributions that make the work stand out.

filesystem-based memory
LLM agents
memory organization
retrieval cost
agent memory design
🔎 Similar Papers
No similar papers found.