Skip to main content
Change of provenance

The repository or configuration that created this release differ from a previous release. View details.

Strands Stash

Give your agent its context as files: memory, knowledge bases, and MCP tools in one directory.

Commit Activity Open Issues Open PRs License Discord

Documentation ◆ Quickstart ◆ Commands ◆ Configuration


Overview

An agent's context window is its only state. Every tool result and every record it has seen sits there, you pay for it on each model call, and it is gone when the session ends.

Stash mounts your context sources as one directory of files: AgentCore Memory, Bedrock knowledge bases, web search, AWS Context, any MCP server, and any store that a plugin serves. Your agent reads that directory with the tools it already knows (ls, cat, grep, jq), so only what it reads enters the window. Stash can also write each session back to memory, so the next session starts with what the last one learned.

Stash works with Claude Code, Codex, Kiro, and Strands agents. It is in preview, and it runs on Linux (x86-64 and arm64) and on macOS with Apple silicon.

Install

npm install -g @strands-agents/stash

Or, without Node:

curl -fsSL https://github.com/strands-agents/stash/releases/latest/download/install.sh | sh

Run stash --version to check that it worked. Install with npm globally (-g), not with npx: stash attach writes the path of the binary into your hooks, so it must not move. For other ways to install, see the quickstart.

Mount your first source

stash configure asks for each value and writes the config. Or write it yourself:

# stash.toml
mount_point = "/tmp/stash"
harnesses = ["claude"]

[sources.team-memory]
kind = "agentcore-memory"
arn = "arn:aws:bedrock-agentcore:us-east-1:123456789012:memory/REPLACE-ME"
auth = { sigv4 = {} }

Create the mount, attach the current folder, and read it:

stash create team-memory --config stash.toml --attach
stash ls                                   # wait until the mount is ready
cat /tmp/stash/_sources/*.md               # what each source holds, and how to read it
stash search team-memory "deployment process" --path "/agentcore-memory/team-memory/*"

Then start Claude Code in the same folder. No AWS account? Leave out the sources: each mount has a local store for the agent's notes. For the full walkthrough, see the quickstart.

How Stash works

How Strands Stash fits together. The agent reads the mount with ls, grep, cat, and jq, and asks the daemon to search, call a tool, or save a note. The daemon returns a preview, writes the full results to the mount, and reaches the sources: AgentCore Memory, AgentCore Gateway, MCP servers, and plugins.

/tmp/stash/
├─ _sources/                       one page for each source: what it holds, how to search it
├─ agentcore-memory/team-memory/   memory records, by namespace
├─ mcp/tickets/_tools/             one JSON schema file for each tool
├─ mcp/tickets/_tools_results/     the full result of each tool call
└─ local/memories/                 notes the agent saved for later sessions

A small daemon runs next to the agent and owns each mount. When a mount starts, the daemon fills the tree with recent records and the searches that earlier sessions made. The agent reads files for what is there, and runs stash search or stash tool call (or the same tools through the stash MCP server) for what is not. Each result lands as files, and the agent sees a short preview.

stash attach adds a short block of instructions to the agent's CLAUDE.md, AGENTS.md, or Kiro steering file, and a hook that queues each turn on disk. With write-back on, the daemon sends those turns to AgentCore Memory, which makes long-term records from them. The sources keep the data; the mount is a view.

Read How Stash works for the details.

Learn more

Build from source

You need rustup. rust-toolchain.toml selects the toolchain.

git clone https://github.com/strands-agents/stash.git
cd stash
make build        # lint, then a debug build linked from ~/.cargo/bin/stash
make test-unit    # the unit suite

See CONTRIBUTING.md for the other gates and how to send a change.

Reporting a problem

Open an issue with the command you ran, what you expected, what happened, and the output of stash --version. If you think you found a security problem, read SECURITY.md first, and do not open a public issue.

License

This project is licensed under the Apache License 2.0. See LICENSE.

Metadata

Release files for strands-stash 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Change of provenance

The repository or configuration that created these release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Built distributions (wheels)

Table of built distributions (wheels) for strands-stash 0.1.0
File Interpreter ABI Platform Actions
strands_stash-0.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for strands_stash-0.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
strands_stash-0.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for strands_stash-0.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
strands_stash-0.1.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for strands_stash-0.1.0-py3-none-macosx_11_0_arm64.whl

Total release size: 31.9 MB

Release files / strands_stash-0.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL strands_stash-0.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 11.1 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
14caa4a992e3331662f82545522a1241af293577406a328856cfa21c1149105b
BLAKE2b-256 checksum
How to use checksums
239b53cf85ed441e2a17404a110e39bf52afcd188940344d61c38b3916512d25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / strands_stash-0.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL strands_stash-0.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 10.5 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
ffc4c7771c669b6b5c9b6b059a9bd39474b61a3339be6b05051f9ac15b92a327
BLAKE2b-256 checksum
How to use checksums
1e62d70c1a629248fe4901c8e259550103a36e845815abaad460550af77cb010
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / strands_stash-0.1.0-py3-none-macosx_11_0_arm64.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL strands_stash-0.1.0-py3-none-macosx_11_0_arm64.whl
Size 10.3 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
bf4853ca8de31f70c4be17cd5b45fd203fb364d3a77e102dbf14f9814fc84609
BLAKE2b-256 checksum
How to use checksums
2b54b0b049c5c54f8284ae6dfdc1e5aca057792001c4f2e704c62e41dd962b10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for strands-stash 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Change of provenance

The repository and configuration that created this release differ from a previous release.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Select from 3 files

Attestation for strands_stash-0.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page