# Acting

Blossom can ask an agent to continue, stop or start a session — only for an agent you turned that on for, and only with what you typed.

![Isolated git worktrees controlled from Blossom](/docs/worktrees.jpg)

## Opt-in, per agent

Acting is **off by default**, one switch per agent in **Settings → Agents**: *Let Blossom act on the sessions of &lt;agent&gt;*. Nothing happens for an agent until you turn it on.

- **Today.** OpenCode and Claude Code declare it, and Blossom sends nothing an adapter did not declare: OpenCode can start a session, prompt one and cancel a turn; Claude Code can start a session and go on with the sessions Blossom started.
- **Your plan.** Each action costs what the agent costs — your plan, credits or keys — and Blossom retries nothing by itself.
- **Only your words.** A prompt leaves on <kbd>↩</kbd>, <kbd>⌘</kbd> <kbd>↩</kbd> or a click on send. Nothing an adapter, a plugin or a session sends ever fills a field or sends it.

## Starting a new session

<kbd>N</kbd> in peek, or **New session** in the command bar, opens the panel — only while an agent can start one.

- **What it shows.** What the session should do, the agent, the folder, and **Asks you before**: *Commands* or *Every edit*. It opens on *Every edit*, the more cautious of the two.
- **Folders.** The ones you started a session in, latest first, eight at most, each with a cross to forget it; *Choose a folder…* opens the folder panel of macOS. Opened from the command bar no folder is chosen, so a start never lands in a repository you did not point at.
- **Starting.** <kbd>⌘</kbd> <kbd>↩</kbd> starts, <kbd>↩</kbd> breaks the line. A refusal keeps everything typed and says why.

## Replying, queueing and interrupting

<kbd>R</kbd> in the detail of a session, or a click on its toast of done, opens one panel in two forms.

- **Reply.** A session that finished its turn takes a reply: <kbd>↩</kbd> sends it, <kbd>⇧</kbd> <kbd>↩</kbd> breaks the line. Three quick replies — *Run the tests*, *Commit this*, *Undo it* — only fill the field.
- **Queue.** While the session works, <kbd>↩</kbd> puts what you typed in the queue; it is sent when the session stops, and each queued prompt can be taken out again.
- **Interrupt.** <kbd>⌘</kbd> <kbd>↩</kbd> stops the turn and sends what you typed. An empty field interrupts nothing.
- **Stop.** <kbd>⌘</kbd> <kbd>.</kbd> asks for a second press within three seconds: it ends work in progress and cannot be undone.
- **What changed.** A finished session lists the files its repository holds uncommitted, by name and line counts; *Show what a session changed* in **Settings → General** turns it off.

## Isolated git worktrees

When the folder you chose is a repository that can take one, **Works in** offers *A new worktree*: a folder `<repository>.worktrees/<name>` on a new branch `blossom/<name>`, made from the current commit. Uncommitted changes and ignored files such as `.env` stay behind.

- **What Blossom runs.** `git` in that folder, without a shell. It never fetches, pushes or reaches a remote, runs a hook of the repository or copies a file.
- **Removing one.** Worktrees Blossom made are listed under *Project*. **Remove** asks for a second press and only removes when nothing would be lost; otherwise it says why — uncommitted changes, a stash, commits only here, a lock, submodules, or a session working in it.
- **Yours.** A worktree Blossom made is your folder: `--uninstall` leaves it.
