One mount serves any harness. You set up the mount once, then connect each agent that needs it. The agents read the same files, and their sessions feed the same sources.

| Harness or framework | How it connects | Page |
| --- | --- | --- |
| Claude Code | `stash attach` | [Claude Code](/docs/user-guide/stash/integrations/claude-code/index.md) |
| Codex | `stash attach` | [Codex](/docs/user-guide/stash/integrations/codex/index.md) |
| Kiro (`kiro-cli chat --v3`) | `stash attach` | [Kiro](/docs/user-guide/stash/integrations/kiro/index.md) |
| Strands Agents, in Python and TypeScript | the `StrandsStash` memory manager | [Strands Agents](/docs/user-guide/stash/integrations/strands-agents/index.md) |

Any other agent with a shell can use a mount too. It reads the files, and runs `stash search`, `stash tool call`, and `stash note save`. Any MCP client can run `stash mcp NAME` as a server. Without hooks, Stash doesn’t capture its turns.

## Where Stash runs

Stash runs where the agent runs: on a laptop, in a container, on Amazon Bedrock AgentCore Runtime, or inside a Strands Box sandbox. It supports Linux (x86\_64 and arm64, glibc 2.17 or later) and macOS on Apple silicon. See [Deploy on AgentCore Runtime](/docs/user-guide/stash/integrations/agentcore-runtime/index.md) and [Run an agent in a box](/docs/user-guide/stash/integrations/box/index.md).

## What a coding agent gets

For Claude Code, Codex, and Kiro, `stash attach` writes three things into the files that the harness reads:

-   a **steering block** that tells the agent where its context is, and how to use it;
-   **hooks** that warm the mount at session start, capture each turn, and ask for notes;
-   the **`stash` MCP server**, unless you attach in CLI mode.

Stash owns only its own entries, and keeps each byte outside them. See [Attachment modes](/docs/user-guide/stash/guides/attachment-modes/index.md) for the steering block, the hooks, and the choice between MCP and CLI mode.

## Attach every session

A global attach applies to each session of the harness, in any folder:

```bash
stash attach ops --global
```

You can’t attach your home folder as a workspace, because its files are the files of a global attach. Use `--global` instead.

## Detach

```bash
stash detach            # this folder
stash detach --global   # the harness homes
```

`detach` takes no mount name. It removes the hooks, the steering block, and the `stash` server. A file that held only Stash content goes away.

## Let the agent set it up

The repository has agent skills in [`skills/`](https://github.com/strands-agents/stash/tree/833198a2b91f6490291149d06b4daac8de0727c8/skills). They work in Claude Code, Codex, and Kiro:

-   `/stash-setup` installs Stash, writes the mount config, creates the mount, and attaches your folder.
-   `/stash-import-mcp-servers` moves the MCP servers that your harness uses into the mount.
-   `/stash-diagnose` finds why Stash doesn’t work in a folder.

## Next steps

-   [Quickstart](/docs/user-guide/stash/quickstart/index.md): create and attach your first mount.
-   [Attachment modes](/docs/user-guide/stash/guides/attachment-modes/index.md): choose MCP or CLI mode.
-   [Secure Stash](/docs/user-guide/stash/guides/security/index.md): limit what an attached agent can reach.