# What Blossom reads & keeps

Everything Blossom knows lives in two places: a small folder on your disk, and memory that disappears when the thing it describes does.

## On disk

| What | Where | Holds |
|---|---|---|
| **Configuration** | `~/Library/Application Support/Blossom/configuration.json`, or the file `BLOSSOM_CONFIGURATION` names | Adapters, the agents acting is on for, preferences, which plugins are on and what each was granted |
| **State** | `state.json`, beside it | Catalog sequence and digests, a plugin's kept text (4 KiB at most), the last eight folders you started a session in, the sixteen latest worktrees |
| **Plugin tokens** | The Keychain, one item per plugin and host | The token you typed, never synchronized. The plugin never sees it: Blossom adds it to the request |
| **Backups** | `backups/<tool>/`, mode `0600` | An agent's hooks file as it was before each write. Never overwritten |
| **Plugins** | The `plugins` folder beside the configuration | The modules you added |

> [!NOTE]
> **No log file of its own.** Sessions, steps, titles, queued prompts, plan limits and what agents print live in memory and are gone when Blossom quits. The diagnostics of **Settings → About** are a text you copy yourself — versions, macOS, Mac model, each adapter's and plugin's identifier, origin and digest — and never a path, project, branch, title, step, setting or token.

## In memory only

- **What a request would do.** A command, a change to a file or a plan, at most 64 KiB (65,536 characters, 2,000 lines, 1,000 a line), in the panel of that request and, for a short command, in its inbox row. Answered, cancelled or withdrawn, it is dropped.
- **What a session changed.** Each uncommitted file by name without its folder, fifty at most, the lines `git` counts added and removed, and the commits of the turn. Never a diff, never a file's content. Dropped at the next turn or when the session closes.
- **Where a session runs.** The terminal device and the processes above the hook, used only to jump there and dropped with the session.

> [!TIP]
> **Both are switches in Settings → General.** *Show what a request would do* drops a diff the moment it arrives; *Show what a session changed* stops Blossom asking an adapter, so `git` never runs for it.

## How adapters connect

An adapter is a program Blossom starts, and it runs as you, outside the sandbox. What it reads is its own, and [each guide says it](../../../adapters/claude/README.md).

| Pattern | What Blossom writes | What crosses |
|---|---|---|
| **Shell hooks** | Its own entries, after yours, in one file of the agent in JSON, TOML or YAML — copied first, replaced in one rename | One line of JSON per event, to `~/Library/Application Support/Blossom/<adapter>/socket`, which only your user can open |
| **Extension modules** | One `blossom.ts`, mode `0600`, in the agent's folder of extensions or plugins | A few fields of each event, to the same socket. It never awaits, reads no file, reaches no other network, swallows every error |
| **Local service** | Nothing: the adapter talks to the service the agent already runs, on the loopback | What you typed and the folder you chose, when you act on a session |
| **GitHub Actions** | Nothing | The runs and jobs of the repositories you name, through your own `gh`, every sixty seconds; it writes nothing to GitHub |

The patterns and their packages are in [Adapter packages](../architecture/adapters.md); what goes into each agent's file is in [decisions/connecting.md](../../decisions/connecting.md).
