Quickstart
Create a local Stash mount, save a note, and let Claude Code read it as context. This path needs no AWS account or remote source.
Before you start
Section titled “Before you start”You need:
- Linux (x86_64 or arm64, glibc 2.17 or later), or macOS on Apple silicon;
- Claude Code; and
- a project directory where Stash can add the Claude Code integration files.
Run the commands from that project directory.
1. Install Stash
Section titled “1. Install Stash”curl -fsSL https://github.com/strands-agents/stash/releases/latest/download/install.sh | shThe script installs stash at ~/.local/bin/stash. Check that your shell can
find it:
stash --versionIf your shell cannot find stash, add the install directory to PATH:
export PATH="$HOME/.local/bin:$PATH"You can also install Stash with npm or with Python:
npm install -g @strands-agents/stashpipx install strands-stash # or: uv tool install strands-stashEach command installs the same stash binary. Use a global install, as above.
Do not run Stash with npx or uvx, and do not install it into the
node_modules or the virtual environment of a project. stash attach writes
the path of the binary into your hooks, and these places can move or delete the
binary.
2. Configure a local mount
Section titled “2. Configure a local mount”Create stash.toml:
mount_point = "/tmp/ops-context"harnesses = ["claude"]
[extraction]enabled = trueThe mount_point must be an absolute path that is empty or does not exist.
The [extraction] table turns on local notes.
3. Create and attach the mount
Section titled “3. Create and attach the mount”stash create ops --config stash.toml --attachThe command starts the local Stash daemon and creates the ops mount. It also
connects this project to the mount by adding:
- a marked instruction block to
CLAUDE.md; - hooks to
.claude/settings.local.json; and - the
stashMCP server to.mcp.json.
Stash preserves content and config entries that it does not own.
stash create returns before the mount is ready. Check its state:
stash status opsRepeat the command until it shows state: ready. Do not continue while it
shows starting. If it shows state: failed, use the displayed error to fix
the config, then remove the failed mount and its data before you create it
again:
stash delete ops --yes --remove-datastash create ops --config stash.toml --attach4. Save context for the agent
Section titled “4. Save context for the agent”Save a note about the running incident:
stash note save ops --topic "inc-4412 mitigation" <<'EOF'INC-4412: checkout latency rose after deploy 2026-11-20.3.
## Key facts- Checkout p99 latency rose from 300 ms to 1.4 s after the deploy.- Rolling back the deploy returned p99 latency to 300 ms.
## Decisions- Keep the deploy rolled back while the team checks the connection pool change.EOFStash writes the note under local/memories/. Check the source page and the
saved note:
cat /tmp/ops-context/_sources/local.mdcat /tmp/ops-context/local/memories/inc-4412-mitigation.md5. Ask Claude Code to use the mount
Section titled “5. Ask Claude Code to use the mount”Start Claude Code in the same project directory:
claudeApprove the workspace MCP server if Claude Code asks.
Ask:
Read the Stash source pages and the saved note. What happened in INC-4412,and what should the next responder do?Claude Code follows the steering in CLAUDE.md, reads the mounted files, and
answers from the note. The note stays available to later sessions.
6. Clean up
Section titled “6. Clean up”Exit Claude Code, then remove the mount and its files:
stash delete ops --yes --remove-dataThe command also removes the Stash steering, hook, and MCP entries from the attached workspace.
What you built
Section titled “What you built”You built a local context workspace that Claude Code reads with its existing file tools. Stash kept the full note outside the model context until the agent needed it.
Next steps
Section titled “Next steps”- Strands Agents: use the same mount from a Python or TypeScript agent.
- AgentCore Memory source: add durable memory that can hydrate later sessions and receive write-back.
- Connect sources: add knowledge bases, web search, AWS Context, MCP servers, and plugins.
- How Stash works: learn how the daemon, mount, sources, hydration, and write-back fit together.
- Supported harnesses and frameworks: connect Codex, Kiro, or another agent to the same mount.