AWS Open-Sources Strands Stash to Manage AI Agent Context via Filesystem
AWS released Strands Stash, an open-source tool that decouples agent context from the harness by exposing memory and knowledge bases as local files.
Amazon Web Services (AWS) has open-sourced Strands Stash, a new tool designed to manage the context of AI agents through a standard filesystem interface. The release addresses a common inefficiency in agentic workflows: when an agent queries a database or document store, the entire result set often floods the model's context window, consuming valuable tokens even if only a few lines are needed for the task.
Stash operates by running a background program alongside the agent that maps external data sources—such as memory stores, knowledge bases, and Model Context Protocol (MCP) servers—into Markdown and JSON files within a single directory. When a tool returns a large volume of data, Stash saves the full result to a file and provides the agent with a short preview and the file path. The remaining data stays outside the context window until explicitly requested.
Because agents are already proficient at navigating filesystems using shell commands like ls, cat, and grep, they can locate, read, and filter specific information without loading irrelevant records into the model. This approach also decouples agent state from the underlying harness, allowing context to persist across sessions and be shared between different agent frameworks such as Claude Code, Codex, and AWS Kiro.
The tool is currently in preview for Linux and Apple silicon Macs. While it offers a mechanism to reduce token costs and improve interoperability, AWS notes that for shorter tasks involving small tool results, the overhead of navigating the filesystem may outweigh the benefits.