Skip to content

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.

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.

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

The script installs stash at ~/.local/bin/stash. Check that your shell can find it:

Terminal window
stash --version

If your shell cannot find stash, add the install directory to PATH:

Terminal window
export PATH="$HOME/.local/bin:$PATH"

You can also install Stash with npm or with Python:

Terminal window
npm install -g @strands-agents/stash
pipx install strands-stash # or: uv tool install strands-stash

Each 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.

Create stash.toml:

mount_point = "/tmp/ops-context"
harnesses = ["claude"]
[extraction]
enabled = true

The mount_point must be an absolute path that is empty or does not exist. The [extraction] table turns on local notes.

Terminal window
stash create ops --config stash.toml --attach

The 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 stash MCP 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:

Terminal window
stash status ops

Repeat 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:

Terminal window
stash delete ops --yes --remove-data
stash create ops --config stash.toml --attach

Save a note about the running incident:

Terminal window
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.
EOF

Stash writes the note under local/memories/. Check the source page and the saved note:

Terminal window
cat /tmp/ops-context/_sources/local.md
cat /tmp/ops-context/local/memories/inc-4412-mitigation.md

Start Claude Code in the same project directory:

Terminal window
claude

Approve 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.

Exit Claude Code, then remove the mount and its files:

Terminal window
stash delete ops --yes --remove-data

The command also removes the Stash steering, hook, and MCP entries from the attached workspace.

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.