The mount
A mount is the directory where your agent finds its context. You name it, you give it a
config, and the Stash daemon fills it with files from each source. The agent reads it
with the tools it already knows: ls, cat, grep, and jq.
This page describes what a mount holds, how its files behave, and how it moves through its life. To create your first mount, see the Quickstart.
What the agent sees
Section titled “What the agent sees”Each source in the config is one folder, at KIND/NAME/. A dot in the kind is one more
folder level, so gateway.bedrock-knowledge-bases named runbooks is at
gateway/bedrock-knowledge-bases/runbooks/. Here is the ops mount, at
/tmp/ops-context:
/tmp/ops-context/ .strands-stash owner marker: the name of the mount _sources/ one page for each source, and local.md incidents.md runbooks.md ticketing.md local.md agentcore-memory/incidents/ memory records, one folder for each namespace summaries/2026-11-20__checkout-latency-after-deploy.md gateway/bedrock-knowledge-bases/runbooks/ 2026-11-22__checkout-runbook-pdf.md one file for each passage found mcp/ticketing/ _tools/get_ticket.json the JSON schema of each tool _tools_results/get_ticket/20261122T093005123Z-a1b2c3d4/ call_metadata.json the input, the error, and the facts of each block content/1.json one saved JSON result block local/ memories/<session>/mitigation-plan.md notes, with [extraction]| Path | What it holds |
|---|---|
_sources/NAME.md | What the source holds, its path, and what it supports: files, search, and tools. The agent reads it before its first search. |
KIND/NAME/... | The records of the source. A memory source has one folder for each namespace. |
KIND/NAME/_tools/TOOL.json | The schema of each tool of an mcp or Gateway source. |
KIND/NAME/_tools_results/TOOL/TIME-HASH/ | The call metadata and each result file that fits the mount limits. TIME is the UTC time of the call. HASH comes from the tool and its input. |
local/memories/ | The notes of the local store, when the config has [extraction]. |
Each file that Stash writes has mode 0444, so the agent can’t change it by mistake.
The steering block tells the agent the same rule: don’t write to the mount.
How files get in
Section titled “How files get in”Nothing reaches the mount unless something asks for it:
- Hydration, when the mount starts. Each source loads its first files. See Hydration.
- A search.
stash searchwrites each hit as a file before it prints the path. - A tool call.
stash tool callwrites call metadata and each result file that fits under_tools_results/. - A note.
stash note savewrites one file inlocal/memories/.
ls, cat, and grep never call a source. An empty folder means nothing has been
fetched yet, not that the source is empty.
Who owns the files
Section titled “Who owns the files”Stash keeps a list of each file it wrote, with its SHA-256 hash, at
mounts/NAME/projection.json in the data root. Stash changes only the bytes on
that list. A file that someone changed is not replaced or removed, and it
leaves the list. See
Data and control roots for the data
root location.
The .strands-stash marker names the mount that owns the directory. create refuses a
mount point that holds files and has no marker, and a mount point that another mount
owns. The mount point must be empty, missing, or already owned by this mount. It can’t
overlap the data root or another mount point.
stash delete NAME --remove-data is the one exception to the list: it removes the mount
point with every file in it, also files that Stash didn’t write.
States
Section titled “States”stash ls and stash status NAME show the state of each mount.
| State | Meaning |
|---|---|
pending_config_resolution | The config has ${...} variables with no value. Run stash bind. The mount doesn’t serve yet. |
starting | The sources start and hydrate. A search or a tool call fails with mount "NAME" is starting. |
ready | The mount serves. health is ok, or degraded when a source didn’t start. |
failed | No source of the config started, or the mount died. The daemon keeps the mount. stash status NAME shows the error. |
create returns before the mount is ready. Poll stash status NAME until it shows
state: ready. A source that doesn’t start doesn’t stop the others: its
_sources/NAME.md page gives the reason.
stash daemon stop suspends each mount. The files and the queued writes stay, and the
next daemon restores the mount. At a restart, a source whose records the last run kept
starts from them, with no fetch.
The cache
Section titled “The cache”Source files and tool results share the cache_max_bytes budget. Each source
can set its own refresh and expiry intervals. When the cache is full, Stash
removes the least recently used files first.
Notes do not count against the budget and do not expire. A large tool result
can stay preview-only when it does not fit. Run stash compact NAME to trim
the cache now.
See The cache for every key, default, and limit. Managed workspace explains how refresh, expiry, and compaction affect the files.
Limits
Section titled “Limits”The configuration reference owns the source count, name rules, and reserved names. See Sources.
Outside AgentCore Runtime, you choose an absolute mount_point. Runtime
chooses the mount point for its session. See
Top-level keys and
Deploy on AgentCore Runtime.