AWS releases Strands Stash to keep large agent tool results in local files
Strands Stash gives Claude Code, Codex, Kiro and Strands agents a file workspace for supported tool results. Test whether reading those files on demand saves tokens without losing evidence.
AWS has released Strands Stash 0.1, an open-source tool that saves supported agent tool results to a filesystem you control. When a large result is saved, the agent gets a bounded preview and a path it can read later. For developers using Claude Code, Codex, Kiro or Strands Agents, that means a long investigation can come back to the rows it needs without sending the whole result to the model up front or querying the source again while the file is still cached. Strands Agents launch announcement

What the agent sees on the next turn
Imagine asking a coding agent to group CI failures by job, then asking which failed runs used a particular dependency version. The first question needs a handful of fields from each record. The second might need fields that were absent from the first preview. With Stash, the agent can read those fields from a saved result if it has access to the mount and the file is still there. AWS illustrates the pattern with a 2,000-record issue search and a follow-up that filters the saved JSON to five relevant records. That example shows how retrieval works. The token savings depend on what the harness sends and how much the agent reads back. Strands Agents launch announcement
A local daemon maintains the directory. The harness still assembles each model request from material such as the initial source digest, tool previews and any file content the agent reads. The original service controls access to its records. A result that exceeds the configured result or cache limits can get a preview without a saved full file. Cached results can also expire or be evicted. If an evicted file came from a tool call, the agent has to call the tool again to obtain a new result, which may differ if the underlying data has changed. Stash overview · How Stash works
The same directory layout works across supported harnesses. Local notes can survive conversation compaction, and a configured memory provider can make selected state available to later sessions. Conversation history and resuming a particular conversation still belong to session management. AWS Context, which recently became generally available, is one of the sources Stash can connect to. Teams can also start with local notes without an AWS account and connect a supported MCP source when they have a workload to test. How Stash works · Strands Agents launch announcement · Automater’s coverage of AWS Context
Test the follow-up that needs the missing rows
- Pick one large structured result and freeze the input. Use a read-only test source with a fixed set of CI records or tickets. Write down the expected record IDs and one field the agent must verify for each. Include a second question whose answer requires a field or record absent from the initial preview. Check that the test result fits the configured file and cache limits before comparing the runs.
- Run your current workflow and the Stash workflow. Use the same model, harness, prompt and source data. Start each run without saved results from earlier attempts. In the Stash run, check that the tool response includes a preview and path, then verify that the agent reads the saved file on the follow-up. Inspect the trace for a duplicate copy of the full result entering through the harness. The Strands documentation recommends giving each result one route into model context. How Stash works
- Grade the answer before comparing cost. Check the returned IDs and fields against the expected values. Across successful runs, compare input tokens, elapsed time and calls to the original source. Track local file reads separately so you can see when a cheaper source workload adds turns. If the agent reads the entire file to finish, that run tells you how much of the result the task actually needed.
Large JSON results with selective follow-ups are a good first test. A short lookup or a code review that needs to read an entire document has less room to save and may incur extra reads. Before connecting real data, decide who can read the mount and how long its files should remain there. Anyone with read access to the directory can see the working copies saved there. Write-back to a supported source is optional. Strands Agents launch announcement