Shows the sessions of Claude Code in the notch and lets you answer its permission requests from Blossom. Once you turn acting on for Claude Code, Blossom can also start a session of Claude Code in a folder you chose and go on with it, see Acting on sessions.
Claude Code reports through hooks: each hook posts its event with curl to a Unix socket in your own folder, ~/Library/Application Support/Blossom/claude/socket, where this adapter listens. Blossom launches the adapter.
A headless run, such as claude -p, does not report: its hooks end before they post anything. A session Blossom starts is such a run, and reports through its own output instead.
The hooks are an entry in a Claude Code settings file. You can pass that file to one session, or install its hooks for every session.
You need:
Blossom. It includes this adapter and the Bun that runs it; from a clone, bun run build makes one.
Claude Code. Tested on 2.1.333; hook payloads are not versioned, so a later version may differ.
curl, which every hook runs as /usr/bin/curl -q. macOS ships it.
The quickest way. Blossom finds Claude Code on your Mac, and connecting it is one click: "Continue" on the second step of the introduction, with Claude Code checked, or its switch in Settings > Agents. Blossom then adds this adapter to its configuration, starts it, and puts the hooks of adapters/claude/settings.json in ~/.claude/settings.json, after the hooks you already have. Nothing of yours changes, and a file that does not exist is created with the hooks alone.
Before it writes over the file, Blossom keeps a copy of it in ~/Library/Application Support/Blossom/backups/claude/, named after the moment in UTC. It writes the new content to a file next to yours and moves it into place, so a failure halfway leaves your file as it was; a symbolic link stays a link. A file that is not plain JSON, such as one with comments, or that is read-only, Blossom leaves alone and says why in its row. Claude Code runs the hooks only in folders you trusted in it, which the row reminds you of. "Repair" in the row puts the hooks back when they are missing or not the ones this Blossom installs. "Disconnect", shown while the agent is off, takes the adapter out of Blossom and its hooks out of the file, and nothing else. What Blossom writes and why is in the decision.
bun install && bun run bootstrap && bun run buildBLOSSOM_CONFIGURATION=adapters/claude/configuration.json apps/macos/build/Build/Products/Debug/Blossom.app/Contents/MacOS/Blossom
The notch shows nothing until a session of Claude Code reports. Run one Blossom at a time: the adapter holds the socket, and the adapter of a second Blossom logs cannot listen for the hooks of claude code and exits.
An app opened from Finder reads ~/Library/Application Support/Blossom/configuration.json. Name the adapter by its package, which Blossom includes, so neither a path nor Bun is needed:
{ "adapters": [{ "package": "claude" }] }
If the file already exists, add the adapter to its adapters list instead. Then open apps/macos/build/Build/Products/Debug/Blossom.app. The adapter runs from inside the app, so moving or updating the app changes nothing in the file; how Blossom finds a package is in ../../documentation/architecture/adapters.md.
Nothing is installed. With Blossom running, start Claude Code in any project with the hooks of the adapter:
claude --settings "<absolute path of the clone>/adapters/claude/settings.json"
The documentation of Claude Code says the hooks of a settings file do not run until the trust dialog of the folder is accepted, so nothing shows before that.
What you should see:
Nothing when the session opens. The Claude Code tile appears next to the notch with the first prompt. After /clear the tile is gone until the next prompt.
The session named after the first line of that prompt, after the repository of the folder, blossom · Fix the flaky notch tests, with its branch beside it in peek. Two or more sessions of one repository, its worktrees included, stack in one row, blossom · 3 sessions. Outside a repository the folder takes the place of the repository.
No badge while it works. While it is the only session working the notch is wider, and it says what the tool in use does, such as Run the tests for a command Claude Code described that way or Edit reducer.rs, for as long as that tool runs; between tools it says the name of the session.
The green badge when a turn ends.
In its detail, opened from peek: the branch as a chip under the header, and one step per tool the session used in its turn, saying what it does, each with its time. While a subagent runs, its row of peek says how many.
A permission request in the request panel when Claude Code asks before using a tool: what it wants to run, with Allow, Reject and, when Claude Code suggests a rule for it, Always. Control characters, line breaks and reordering characters are shown as their escapes, such as \n. Blank-looking characters and a literal backslash are not, and a long command can end below what the panel shows. For Bash, Edit and Write the request also carries what the call would do, the command, the old and new text of an edit or the content of a write, for the panel to show once it draws it, unless "Show what a request would do" is off.
A plan to approve, when Claude Code leaves plan mode: "Leave plan mode and start on this plan", with the plan in Markdown, Approve and Keep planning.
For a clone without the app, or a settings file Blossom leaves alone. The hooks of adapters/claude/settings.json go into your ~/.claude/settings.json, next to the hooks you already have. The commands below write a new file, and you put its content in place.
If ~/.claude/settings.json does not exist, there is nothing to merge. Copy the file of the adapter and stop here. The copy never overwrites a file that is there:
Otherwise, from the root of the clone, write the merged settings to a new file. Each hook of the adapter is added after the hooks you have for the same event; nothing of yours changes.
If jq printed an error, stop: your settings are not valid JSON and the new file is empty. Otherwise review it. The only differences are added hooks that name the socket:
Keep a copy of your settings and put the new content in place. A backup that already exists is kept, so the first one survives. The second line does nothing when the new file is empty or not valid JSON, and it replaces the content of your file, not the file: a symbolic link and the mode of the file stay as they are.
Install once. Running the commands again adds every hook a second time; remove first. Remove first too when the hooks of an earlier version of this file are installed: they stay next to the new ones, and they still report headless runs.
A session started after that reports to Blossom, from its first prompt on. The documentation of Claude Code says a session that is already running picks up hooks added to a settings file; that is not tried by hand.
After an install by hand; after connecting from Blossom, Disconnect does it, and removing Blossom takes out the hooks of every tool, see Removing it. Write your settings without the hooks of the adapter to a new file. The command drops the hooks whose command names the socket, and whatever they leave empty. Every other hook stays as it is.
Review it and put the new content in place, as when installing. The line that keeps a copy does nothing after an install made with the commands above: the backup is the one from before installing, and it is never overwritten.
The command above removes the hooks as the adapter ships them, and as it shipped them before: when a session reported as soon as it opened and headless runs reported too, and when the hooks did not name the process of Claude Code. With any other count, a hook that names the socket was changed by hand and stayed: take it out yourself.
A session that got the hooks from --settings has nothing to remove.
Hooks installed from the earlier version of the adapter, which listened on port 47821, do not name the socket, and Blossom no longer listens on that port. A process of any user of the Mac that takes the port receives what those hooks post, and it can also answer them: Claude Code reads the JSON response of an HTTP hook, the decision of a PreToolUse hook included, which can allow a tool. That is why they must be removed: run the same commands with def blossom: (.url // .command // "") | contains("127.0.0.1:47821"); as the second line of the first.
Auto mode shows no request. In the auto permission mode Claude Code decides by itself and asks nothing, so Blossom has nothing to show. The same holds whenever a rule or the mode already settles a call. Start a session with --permission-mode default to see a request.
Always is for the session. It adds the rule Claude Code suggested, for that session only. The panel shows the command, not the rule, and the rule may be a pattern wider than that one command. The option is there only when every rule Claude Code suggests names one tool and says what it allows, with more than wildcards. Nothing is written to any settings file, and the next session asks again.
A minute to answer. A request not answered in Blossom within sixty seconds is withdrawn, and Claude Code then decides by itself. The dialog of the terminal is expected to take over; that is not tried by hand.
Answering in the terminal. Claude Code may not tell the adapter that you answered there. The request leaves the panel when the tool finishes or its batch ends, or after sixty seconds at the latest, when the hook gives up. A request you deny in the terminal may stay in the panel until then.
Questions are answered in Blossom too. When Claude Code asks one to four questions with options to pick one from, Blossom asks them together, and the terminal asks at the same time: whichever you answer first wins. The answer from Blossom is the label of the option, exactly as if you had picked it in the terminal, or the text you typed, as "Type something" does there. Blossom does not show the description of an option, and the panel takes neither several questions nor a typed answer until it draws a field for them: answer those in the terminal. A question that takes several options stays in Claude Code: the session shows that it needs you, and you answer there. As for a permission, a question not answered in Blossom within sixty seconds leaves the panel, and the terminal keeps asking.
A plan is approved in Blossom too. When Claude Code presents a plan with ExitPlanMode, Blossom asks for it as a request, with the plan in Markdown, while the terminal shows its own dialog. Approve allows the call as Claude Code sent it. Keep planning denies it with the note you type, or with "Keep planning: the plan was not approved in Blossom.", which Claude Code gives the model. That Claude Code then stays in plan mode, and which mode an approved plan leaves it in, was not tried against a real Claude Code.
The hook of a prompt finds the terminal of its session. Before it posts, it walks up its processes with /bin/ps, sixteen at most, for the terminal device and the processes above it, and reads the variables terminal programs and multiplexers set, such as TERM_PROGRAM, __CFBundleIdentifier, TMUX_PANE and KITTY_WINDOW_ID. It sends each one in a header only when it is short and of plain characters, and Blossom keeps it in memory, shows it nowhere, and uses it to bring that terminal forward when you ask. It adds about 50 ms to a prompt, and to no other hook. Hooks connected before this version need Repair in Settings > Agents.
Without Blossom, Claude Code works as before. With Blossom closed nothing listens on the socket. Each hook gives up at once, prints nothing and ends without an error, so the session goes on and Claude Code decides every permission by itself. That holds too when a Blossom that was killed left its socket behind.
A permission is never allowed by default. The hook of a permission request prints what the adapter answered and nothing else. With Blossom closed, the adapter gone, no answer within the minute or any other failure, it prints nothing, which Claude Code reads as no decision. The commands name /bin/test, /usr/bin/curl and /usr/bin/true in full, so neither a program earlier in the PATH nor a shell function of the same name runs in their place, and ignore the curl configuration of the user. They still trust the environment Claude Code was started in: whoever sets that can already run anything in a hook.
The hooks ignore your curl configuration. Every command runs /usr/bin/curl -q, and -q keeps curl from reading ~/.curlrc, ~/.config/curlrc and the files that CURL_HOME and XDG_CONFIG_HOME point at. Without it a line of such a file, a write-out for example, is printed by every hook, also with nothing listening, and Claude Code reads what a hook prints as its decision: a configuration file could allow a tool. Nothing you set there applies to the hooks, which only talk to the socket.
A Blossom that does not answer costs time. When the adapter is alive but does not answer, with Blossom suspended for example, every event waits one second and a permission request sixty, and none ends in a decision. Those are the bounds of the hooks.
Every event runs curl. A hook is a short process, and Claude Code waits for it: about 8 milliseconds per event on an idle Apple M3 Pro, and about 27 on a busy one.
Headless runs do not report. A run of claude -p started from a terminal never reaches Blossom: it shows no tile, raises no request, and a call it would deny is denied at once, as without Blossom. Only a run that reports sdk-cli is skipped; a program that drives Claude Code through the Agent SDK may report another value, and then it still shows. So does a claude -p started from inside a session of an app that sets its own value: it inherits that value. Every command tests it first, with /bin/test "${CLAUDE_CODE_ENTRYPOINT-}" = sdk-cli ||, and Claude Code sets that variable to sdk-cli for the hooks of a headless run, so the hook ends there, before curl starts. It still costs a short process per event: 5 to 12 milliseconds in the run it was measured in.
The desktop app and the IDE extensions are not tried by hand. A session in the terminal reported cli, in one try. The documentation of Claude Code lists claude-desktop and claude-vscode for the other two. Claude Code keeps such a value when it is started with it, which was tested with claude --init-only and claude -p; that the apps set it was not. If one of them reports sdk-cli, its sessions do not show. Check 11 below finds out.
A session whose Claude Code was killed leaves within seconds. A Claude Code that is killed or crashes cannot say that its session ended. So every command names a process, in the header Blossom-Process: the process identifier Claude Code gives its hooks in CLAUDE_PID when that is only digits, ten at most, or else the parent of the shell that runs the hook. Anything else in that variable is not used: a value with line breaks would otherwise reach the request and could replace the payload the adapter reads. Every five seconds the adapter asks the system whether the process the session last named still exists. A session whose process is gone leaves the notch, and its pending requests with it. The header prints nothing, and the adapter takes it only when it is a positive integer. In headless runs on 2.1.332 and 2.1.333 CLAUDE_PID was the process of Claude Code itself. An interactive session, the desktop app and the IDE extensions are not tried by hand: check 12 below does it. The limits:
If the system has already given the identifier to another process, the session stays until that one ends too.
A hook that runs through a wrapper, as with CLAUDE_CODE_SHELL_PREFIX, names the wrapper when Claude Code gives no CLAUDE_PID. The wrapper ends with the hook, so the tile leaves within five seconds of each event and comes back with the next.
With two Claude Code processes on one session, as after resuming it in a second terminal, the last one to report is the one watched. When it dies the session leaves while the other still runs, and comes back with the next event of the other.
Hooks installed before they named a process still work, but a session of theirs that is killed stays until Blossom restarts: remove them and install again.
Done waits a second after a subagent. When a background subagent finishes before its turn does, Claude Code ends the turn and at once starts another by itself, to read what the subagent reported. So that the session is done once and not twice, the green badge of a turn in which a subagent finished comes one second after the turn ends, and not at all if the session goes on working. The wait is for any subagent that finished in the turn; one that runs in the foreground is not tried by hand, and its turn may simply be done a second late. A turn without subagents is done at once.
The name comes from the first prompt and the repository. The title is the first line of the first prompt that has a letter, cleaned and cut to 60 characters at a word; a prompt that starts with / or !, or is a path alone, titles nothing, and the next one is waited for. The title then stays: later prompts do not change it. The project is the repository the folder of the session belongs to, the main one also in a linked worktree, and the branch rides beside the title, or is the title before a prompt gives one. To know them the adapter reads HEAD, commondir and the .git file of a worktree, and runs no program; it reads again at an event of the session, at most once every five seconds, so a branch created during the session shows within seconds of its next event. Outside a repository the folder is the project, or the title before a prompt. The rest of the prompt is dropped as it arrives. See ../../documentation/decisions/names.md.
What detail shows comes from the hooks. The context is the branch. A step is one call of a tool of the session itself, saying what it does and never showing what it holds: the description Claude Code wrote for a command, or Running a command, never the command; the verb and the name of a file, Edit reducer.rs, never its folder or its content; the description of a subagent; a label for any other tool, such as Searching the code, Waiting for background work for Yield or Using linear for a tool of an MCP server. A step is in progress from PreToolUse, completed with PostToolUse and failed with PostToolUseFailure. A call that never reports, such as one rejected in Blossom, is failed when its batch ends, when the turn stops or fails, or when Claude Code says it is idle; a call interrupted with esc fails when the adapter finds the interruption, below, and a prompt typed before that runs in the same turn, so its steps follow the ones before. A call failed at idle stays failed if it runs later. The calls of subagents are not steps, as they are not the activity of live. A prompt after the session was done or failed starts the steps again; the turn Claude Code starts by itself after a subagent reports keeps them. The last fifty calls of a turn are kept, and the words of a step are cut to 80 characters, and the host cleans and cuts them again. The adapter sends no output: the hooks carry what a tool printed, and the notch does not show it. See ../../documentation/decisions/hooks.md.
Subagents are counted from their start to their stop.SubagentStart with an agent_type adds one, SubagentStop of that same agent_id takes it away, and the agents of Claude Code itself, which have none, such as the one /compact starts, are not counted. A stop without a start changes nothing. A Stop of the session that lists no running subagent, and a failed turn, forget every subagent left, so one that was killed and never stopped is not counted past such a stop; while another subagent still runs, and after a turn interrupted with esc, which sends no Stop, it stays counted. Not tried by hand in an interactive session; check 14 below.
A turn interrupted with esc is done within about ten seconds. Claude Code sends no hook when you interrupt a turn, and writes one line in the transcript of the session instead. So the adapter looks at the end of that file, and only there: while a session works or waits for you, after five seconds without any hook of it, every five seconds and only when the file grew, the last 64 KiB at most, for one second at most. It takes the file only when its path is ~/.claude/projects/<folder>/<session>.jsonl of that same session, and not when a link is anywhere below projects, or the file is a pipe, a file of another user or a file with a second name. A file it cannot read is not tried again until the session reports. It looks for one thing: whether the last message is the mark Claude Code writes for an interruption. What it reads is not kept, logged, sent to Blossom or shown. Then the session is done, as after Claude Code says it is idle, with its toast, its calls in progress failed, and its pending request or question withdrawn. A session started with CLAUDE_CONFIG_DIR keeps its transcripts elsewhere and still waits for idle. See the decision.
A session shows up when it starts working. An open session with nothing typed shows nothing. After /clear the tile leaves and comes back with the next prompt. A resumed session comes back with its next prompt, and a session that was already working when Blossom started with its next event.
The socket is yours alone. It lives in a folder only your user can open, and the adapter refuses to start when that folder is a symbolic link or belongs to someone else. Another user of the Mac can neither post events nor take the place of the adapter. A process that runs as you still can: it can show a request that no session raised, withdraw a real one or, by listening on the socket while Blossom is closed, read every hook payload and answer a permission request with allow. That is the trust your own Claude Code settings file already has: such a process can also rewrite ~/.claude/settings.json. See the known gaps in ../../documentation/roadmap/README.md and the decision in ../../documentation/decisions/socket.md.
The hooks find the socket through $HOME. The adapter derives the same path from the home folder of the user. A session started with another HOME does not report, and works as without Blossom.
The Cursor CLI runs these hooks too.cursor-agent also runs the hooks of ~/.claude/settings.json, on events of its own names and with payloads of its own shape, your prompts and the input and output of its tools included. Installed here, the hooks post them to the socket of this adapter, which starts and changes nothing for an event it does not know, and neither keeps nor logs what it carries. A process that took the socket while Blossom is closed would read them; see ../cursor/README.md. If that matters to you, keep these hooks out of ~/.claude/settings.json on a Mac where you run cursor-agent.
Devin CLI, Grok Build and Trae skip these hooks. Devin CLI and Grok Build run the hooks of ~/.claude/settings.json by default, and Trae does once you turn on its import of Claude Code hooks. Every command tests, right after a headless run, whether GROK_HOOK_EVENT, DEVIN_PROJECT_DIR or TRAE_PROJECT_DIR has a value, the variables those agents document for their own hooks, with /bin/test -n "${GROK_HOOK_EVENT-}${DEVIN_PROJECT_DIR-}${TRAE_PROJECT_DIR-}" ||. If one has, the hook ends there, before curl: it prints nothing and exits 0, and that agent goes on as without Blossom, its permission requests never held. The adapter also takes a payload only when it carries transcript_path as text, which Claude Code sends with every event and none of those agents documents: anything else starts and changes nothing, and a permission request without it is answered at once with nothing. A session of Claude Code started from a shell where one of those variables has a value does not show: unset it. None of this was tried with a real agent; check 19 below. The sources are in ../../documentation/roadmap/adapter.md.
Qoder CLI and Qwen Code do not run these hooks. Both copied their format but read only their own settings, and each has an adapter of its own; see ../../documentation/roadmap/adapter.md.
Hooks installed before that guard post the events of those agents. Settings > Agents says that its hooks are not the ones this Blossom installs; press Repair. Installed by hand, remove them and install them again.
When a turn ends, Blossom asks the adapter what the repository of the session holds uncommitted, and the adapter runs git in the folder the hooks named: the names of the files without their folder, the lines added and removed, whether each is new or deleted, and the commits made since the turn began, never the content of a file. The reply panel, detail and the row of the inbox show it; "Show what a session changed" in Settings > General turns it off, and then git does not run. git is taken only from /opt/homebrew/bin, /usr/local/bin, the Command Line Tools or Xcode, never from your PATH, and no program a repository names runs; see decisions/git.md and decisions/changes.md. Tried with payloads written by hand and a real git on repositories made by the tests, not with a real Claude Code.
The adapter offers the limits of the plan, the five hour and weekly windows. It reads them only when Blossom asks, and Blossom asks only while "Start command lines to read limits" is on in Settings > General, off by default. Then it starts your claude, found in the path of adapters, with --print --verbose --input-format stream-json --output-format stream-json --no-session-persistence --tools "" --strict-mcp-config --settings '{"disableAllHooks":true}', without CLAUDE_CODE_ENTRYPOINT, CLAUDECODE, CLAUDE_CODE_SSE_PORT and CLAUDE_PROJECT_DIR, and sends it the control requests initialize and get_usage. That claude asks Anthropic with your account. get_usage is undocumented and its authors say its answer may change, so this may stop working in any release of Claude Code. The process ends 90 seconds after the last reading. It was built and tested against a script that answers like the program read by the study, never against a real claude: see the study and the checks.
Off until you turn on "Let Blossom act on the sessions of Claude Code" in Settings > Agents. The adapter declares one capability for Claude Code, start; see the protocol. With the switch on, "New session" of the command bar and N in peek offer Claude Code, a session Blossom started takes replies from its toast of done and from its detail with R, what you queue while it works is sent when it stops, and Stop and Interrupt end its turn. It was built from the documentation of Claude Code read on 3 December 2026, for the version 2.1.334, and tested against a script that answers what that documentation says. The maintainer tried it by hand against a real Claude Code on 3 December 2026, and it worked: a new session started, asked its permissions in the notch, and could be continued and stopped. Checks 23 to 37 below are the list to run again when Claude Code or the adapter changes. What is documented and what is still supposed is in the research.
A new session starts your claude, found in the path of adapters as for the plan limits, without a shell, in the folder you chose, with:
and the environment of the adapter without CLAUDE_CODE_ENTRYPOINT, CLAUDECODE, CLAUDE_CODE_SSE_PORT and CLAUDE_PROJECT_DIR, the variables of a running session. The adapter asks it initialize over its standard input and announces the session once it answers, within twenty-five seconds; the identifier is a new UUID of the adapter's, which Claude Code keeps.
It asks before commands, or before every edit too. "Every edit" is the mode default, the one the user interface calls Manual: Claude Code asks before edits, commands and network requests. "Commands" is the mode acceptEdits: edits in the folder go without asking, and so do mkdir, touch, rm, rmdir, mv, cp and sed on paths in the folder, which Claude Code counts as edits. No mode that asks nothing is ever passed, and the mode given on the command line wins over a defaultMode of your settings. Your own allow rules of ~/.claude/settings.json still apply, and so do the commands Claude Code runs without asking in every mode, such as ls and git status.
The settings of the folder are not read.--setting-sources=user reads ~/.claude/settings.json and leaves out .claude/settings.json, .claude/settings.local.json and .mcp.json of the folder. A run of claude -p shows no trust dialog and runs the hooks and the MCP servers of a repository it was never trusted in, as the documentation of Claude Code warns; a folder you pick in Blossom may be a clone you never opened. So a session Blossom starts runs no hook and no server of the repository, and also skips its permission rules and the "don't ask again" answers you gave in that folder, so it may ask more than the terminal does there. Whether the CLAUDE.md of the folder is still read is not documented; it is not a settings file, so it is expected to be (supposed).
Its permission requests come through its own output. With --permission-prompt-tool stdio Claude Code sends the program that started it a control request can_use_tool for every call it would ask you about, and waits for the answer. The adapter shows it in the request panel as it shows a request of a hook: the command or the path as the title, the command, the change or the content of a file below it, Allow and Reject, and Always when Claude Code suggests a rule, which is kept for that session only and written to no settings file. A question of AskUserQuestion and a plan of ExitPlanMode are asked the same way. A request waits for as long as you take; nothing sends it back to a terminal, since there is none. Rejecting answers "Rejected in Blossom."; a request withdrawn without an answer is denied.
The hooks of Blossom do not change. A session Blossom starts is a headless run, so the hooks you connected end before they post anything for it, and the session shows once, from its output. Nothing needs Repair. If CLAUDE_CODE_ENTRYPOINT is set where Blossom runs, the adapter takes it out, so that Claude Code reports sdk-cli and the hooks skip it.
What you type goes in on standard input, as one JSON line, {"type":"user","message":{"role":"user","content":"…"}}, never as an argument, so a prompt that starts with -, such as --help, is text for Claude. A prompt whose first character other than a space or a line break is / or ! is refused, since Claude Code runs /<name> as a command or a skill, /clear and /compact included; Blossom says it was not sent and keeps your text: word it another way. Line breaks are kept. Nothing of the prompt is logged, kept after it is written, or put in an error; the title of the session is the first line of the first prompt, as for every session, and the standard error of claude is not read.
One process per session, four at most. The process stays open between turns, so a reply goes to the same process; Blossom itself starts four sessions at most. If it ended, by a crash or kill, the next reply starts claude again with --resume=<identifier> in place of --session-id, which continues that same conversation from its transcript: that is the only session the adapter continues, one whose process it knows is gone. A turn whose process ends fails.
A session open in your terminal is never written. The adapter does not declare prompt: a session you started in a terminal shows no reply. The documentation of Claude Code says two processes that resume one session both write to one transcript and a later resume can miss messages; and a session of the terminal leaves the notch within five seconds of its process ending, so there is never one whose process the adapter knows is gone. A prompt that reaches the adapter for such a session anyway is refused as held, -32010.
Stop and Interrupt, for the sessions Blossom started. Blossom stops and interrupts a session it started when the agent declares start, so the steering form of such a session shows Stop, Interrupt and Queue. A cancel sends that session's claude the control request interrupt, once, whether the turn came from a prompt of Blossom or Claude Code started it by itself; the turn ends as Claude Code ends an interrupted one, the session turns green, the prompt of Blossom answers cancelled, and a request it waited on leaves the notch. Interrupt then sends what you typed as the next prompt, to the same process. The adapter does not declare cancel, which would reach the sessions of your terminal too: nothing documented stops a turn of a session in your terminal from outside, so those show no Stop; stop them in Claude Code.
Your account and your plan. The process is your own, unmodified claude, signed in by you; the adapter never reads, passes or keeps a credential. Every prompt draws on your Claude subscription, or is billed to an API key when one applies: the documentation of Claude Code says claude -p always uses ANTHROPIC_API_KEY when it is set, which reaches Blossom when you start it from a terminal that exports it, and an apiKeyHelper of your settings applies too. The session does not say which account it uses: run /status in a terminal to see what your claude signs in with.
What Blossom starts ends with it. The processes run in the process group of the adapter. Closing a session, and Blossom quitting or turning the adapter off, sends interrupt, ends the input of the process and stops it with SIGTERM after half a second if it is still there; Blossom kills what is left two seconds after. The conversation stays in Claude Code's history, and claude --resume <identifier> in a terminal goes on with it once Blossom no longer runs it. No screen closes a session yet: closing is reached over the adapter's standard input.
In a new worktree. When you choose "A new worktree" in the new session panel, Blossom makes the worktree itself with git, next to the repository, on a branch blossom/<name>, and the adapter receives its folder like any other: it starts claude there with the same command line, and passes no --worktree. Claude Code's own --worktree is not used: with -p it fetches origin by default, may reset a worktree of the same name, and leaves its worktrees locked; see the decision. This is new behaviour that was not tried against a real Claude Code: checks 38 to 41 below are what to run first.
The adapter was tested against headless runs of Claude Code. These need an interactive session and are not tried by hand. Each one is a few steps; write down what the line in italics asks.
Prepare once. Run Blossom with the adapter, then, in another terminal:
cd "$(mktemp -d)"claude --settings "<absolute path of the clone>/adapters/claude/settings.json" --permission-mode default --model haiku
Accept the trust dialog. The notch shows nothing yet: the tile appears with the first prompt. In each check, "ask" means type the prompt.
Who shows the request. Ask run the bash command touch probe.txt. Does the request panel open at the same moment as the dialog in the terminal, or does the terminal show no dialog and wait?
Allow. Answer Allow in Blossom. Does probe.txt exist, and did the dialog in the terminal close by itself?
Reject. Ask run the bash command touch rejected.txt and answer Reject in Blossom. Is there no rejected.txt, and does Claude Code say it was rejected in Blossom?
Always. Ask run the bash command node -e 'console.log("same")' and answer Always, when the panel offers it. Ask the same again. Does the second one run without asking, and is there no .claude/settings.local.json in the folder?
Answering in the terminal. Ask run the bash command sleep 30 and allow it in the terminal. Does the request leave the panel at once, or only when the command ends half a minute later?
Denying in the terminal. Ask run the bash command touch denied.txt and deny it in the terminal with esc. Does the request stay in the panel, and for how long? While it is there, and within the minute, answer Allow in Blossom. Does anything run, and is there a denied.txt? Nothing must run.
Answering nowhere. Ask run the bash command touch late.txt and wait more than a minute. Does the request leave the panel after a minute, and does the dialog in the terminal still take an answer?
A slow command. Ask run the bash command sleep 30, wait ten seconds and answer Allow in Blossom. Does the amber badge leave at once, or only when the command ends?
Quitting Blossom. Quit Blossom and ask run the bash command touch alone.txt. Does Claude Code keep working and show its own dialog, with no hook error in the terminal?
A failed turn. With Blossom running, start another session with the same command and --model nonexistent-model-xyz in place of --model haiku, and ask hi. It costs nothing: the model does not exist. Does the tile show the failed badge? A headless run reported the failure, with a copy of the hooks that did not skip headless runs.
The desktop app and the IDE extension. Neither takes --settings, so the hooks go in the settings of a temporary project folder, never in your own settings: run mkdir -p <folder>/.claude && cp "<absolute path of the clone>/adapters/claude/settings.json" <folder>/.claude/settings.json with a new, empty folder. Open that folder in the desktop app, or in the editor with the extension, trust it if it asks, and ask hi. Does the session show up in the notch? If it does not, run the entrypoint.log check in ../../documentation/roadmap/adapter.md to see what that app reports: only sdk-cli is taken for a headless run. Delete the folder afterwards.
A Claude Code that is killed. Start a second session the same way in another terminal, and ask hi in both, so both tiles show. In a third terminal, ps -ax -o pid,tty,command | grep '[c]laude' lists the Claude Code processes with their terminals; run kill -9 with the process identifier of the second session. Does its tile leave within about five seconds? Leave the first session idle for a minute. Does its tile stay the whole minute? It must: a tile that leaves and comes back with the next prompt means the hooks name a process that is not Claude Code.
Two identical calls. Ask run the bash command touch twin.txt twice, as two tool calls in one message. Does the panel show two requests with the same command? If it does, answer Allow on the first. Does the second stay in the panel until you answer it? The first one running must not take the second out of the panel while Claude Code still waits for it.
Subagents. Ask launch two general-purpose subagents in parallel with the Agent tool; each replies with the word ok and uses no tool. Rest the pointer on the ear while they run. Does the row of the session say "2 subagents", then "1 subagent", and nothing once both ended? Then ask for one subagent that runs sleep 60 in the background and press esc while it runs. Does the chip leave when the turn ends? Open the detail of the session. Does it show the folder as a chip and one step per tool, Agent among them, with their times?
A question. Ask use the AskUserQuestion tool to ask me which database to use, with the options Postgres, SQLite and Neither. Does the request panel open on the question, with the three options and the keycaps 1, 2 and 3, while the terminal shows the same question? Rest the pointer on the panel for half a second and press 2. Does the terminal say that the question was answered with SQLite, and does the agent go on with it? Ask the same again and answer 1 in the terminal. Does the question leave the panel?
Interrupting. Ask count from 1 to 300, one number per line and press esc halfway. Does the tile show done within about ten seconds, without typing anything? Ask run the bash command ping -c 60 127.0.0.1, allow it, and press esc in the terminal while it runs. Is the session done within about ten seconds, with the step Bash failed in its detail? Ask the same again and answer nothing in the dialog for ten seconds, then press esc there. Does the request leave the panel and the session show done?
The name. In a clone of a repository, start a session the same way and ask Explain the reducer as the first prompt. Does peek read the repository, the prompt and the branch, and does a second session in the same clone stack with it under <repository> · 2 sessions? Then /clear and ask /compact first: does the session stay titled with the branch until a prompt with words?
A worktree and a branch that changes. Make a worktree with git worktree add ../probe -b probe/start and start a session in it. Does it stack with the sessions of the clone, titled with its prompt and showing probe/start? Ask run the bash command git switch -c probe/renamed, then ask hi. Does the branch beside the title become probe/renamed within a few seconds, with the title unchanged? If the clone is in Documents or Desktop, write down whether macOS asked whether Blossom may reach that folder. Remove the worktree after.
Another agent. This one needs Devin CLI or Grok Build, signed in, and Blossom running with the adapter; it needs no Claude Code. In a new, empty folder run mkdir -p .claude && cp "<absolute path of the clone>/adapters/claude/settings.json" .claude/settings.json, and add one hook that only logs what the guard reads: jq '.hooks.PreToolUse[0].hooks += [{type: "command", command: "env | grep -E \"^(GROK_HOOK_EVENT|DEVIN_PROJECT_DIR|TRAE_PROJECT_DIR)=\" >> env.log; cat > /dev/null"}]' .claude/settings.json > settings.json && mv settings.json .claude/settings.json. Start devin there, or grok and trust the folder, and check with /hooks where the agent supports it that the hooks of .claude/settings.json are loaded. Ask run the bash command touch other.txt. Does no tile show in the notch and no request open in Blossom, and does the agent ask in its own terminal at once, with no hook error?Does env.log name DEVIN_PROJECT_DIR or GROK_HOOK_EVENT with a value? If a tile shows, or the log is empty, the guard does not hold for that agent: write down the version. Delete the folder afterwards.
A plan. Start a session with claude --permission-mode plan and ask plan how to add a line to README.md. Does the request panel open on "Leave plan mode and start on this plan" while the terminal shows its own dialog? Answer Approve in Blossom. Does Claude Code leave plan mode, and in which mode does it go on? Ask for another plan and answer Keep planning. Does Claude Code stay in plan mode, and does the model read "Keep planning: the plan was not approved in Blossom."?
Two questions. Ask use the AskUserQuestion tool to ask me two questions at once: which database, Postgres or SQLite, and which cache, Redis or none. Does one request in the panel hold both, while the terminal asks them too? Answer in the terminal: does the request leave the panel?
The terminal of a session. Send a prompt from Terminal, one from iTerm and one inside tmux. Does each prompt start as quickly as before, within about 50 ms, and does no hook error show in the terminal?
The next checks act on Claude Code: run them again when Claude Code or the adapter changes. They need Blossom run with the adapter, the hooks connected, and a signed-in Claude Code; each prompt draws on your plan, so the prompts are short. Write down the release of claude (claude --version) and whether you started Blossom from Finder or from a terminal. Prepare a scratch folder once: mkdir -p /tmp/blossom-acting && cd /tmp/blossom-acting && git init. In each check, "start" means: open the command bar with the global shortcut, choose "New session", pick Claude Code, "Choose a folder…" and the scratch folder, the approval the check names, type the prompt and press ⌘↩.
The switch. Open Settings > Agents. Is there "Let Blossom act on the sessions of Claude Code", off? Turn it on. Does "acting": ["claude"] appear in the entry of the adapter in the configuration file? If there is no switch, the adapter is not running or Blossom did not read capabilities from its manifest: look at the standard error of Blossom.
No reply to a session of the terminal. In a terminal, in the scratch folder, claude --permission-mode default and ask hi. When the tile is green, click its toast of done, and press R in its detail. Does neither open a reply form? It must not: the adapter does not declare prompt. If one opens, Blossom took a capability the adapter does not declare; send nothing and report it.
A new session, asking before every edit. Start with Every edit and create a file named probe.txt containing hello. Does a tile appear at once, titled with the prompt and the folder, and does the request panel open on Write with the path and the content "hello", while no terminal shows anything? Answer Allow. Does probe.txt exist, and does the tile turn green? In a terminal, ps -ax -o pid,command | grep '[c]laude --print': one process, with --permission-prompt-tool stdio --permission-mode default --setting-sources=user --session-id=<an identifier>, and no second tile of the same session in peek? A second tile means the hooks did not skip the run: write down CLAUDE_CODE_ENTRYPOINT of the shell that started Blossom. If no request comes and the tile turns green or red at once, Claude Code did not send can_use_tool to the adapter: --permission-prompt-tool stdio does not work in this release, and the adapter must not declare start.
Asking before commands. Start with Commands and create a file named second.txt containing two, then run the bash command git status --porcelain, then the bash command git add second.txt. Is second.txt written without a request, does git status --porcelain run without one, and does the request panel open on git add second.txt? Reject it. Does Claude Code say it was rejected, and is second.txt left unstaged?
A reply from the toast and from detail. When the session of 25 is green, click its toast of done. Does it open "Reply to Claude Code"? Type what does probe.txt contain? answer in one word and press ↩. Does the same tile turn to working and back to green, with no new tile and no new process in ps, and does the panel go to the steering form and back? Then press R in its detail and click "Run the tests": does the field fill and send nothing? Clear it.
The queue, Stop and Interrupt. Reply write the numbers from 1 to 300, one per line. While it works, press R in its detail. Does the steering form show Stop, Interrupt and Queue? If Stop and Interrupt are missing, Blossom did not apply its rule for the sessions it started to start. Type then say QUEUED and press ↩. Does "Sent when it stops · 1" show it, and does Claude Code answer QUEUED only after the numbers? Then, in the terminal of 24, start a long turn of your own, write the numbers from 1 to 300, one per line, and press R in the detail of that session: does it open no steering form, and does no Stop show for it anywhere?
Stop. Reply write the numbers from 1 to 600, one per line to the session Blossom started. While it works, press ⌘., then again within three seconds. Do the numbers stop within a few seconds, does the tile turn green, not red, and does the panel go back to the reply form? In a terminal, ps -ax -o pid,command | grep '[c]laude --print': the same process as before, still there? If the numbers go on, interrupt did not reach the turn; if the tile turns red, Claude Code ended the turn as a failure the adapter did not expect.
Interrupt. Reply write the numbers from 1 to 600, one per line again. While it works, type stop counting and say INTERRUPTED in the steering form and press ⌘↩. Do the numbers stop, and does Claude Code then answer INTERRUPTED in the same session, the tile working again and then green, with no new process in ps?
Stop while it asks. Reply run the bash command git add probe.txt, and when its request opens in the notch, open the detail, press R and press ⌘. twice. Does the request leave the notch, does the tile turn green, and is probe.txt left unstaged (git status)?
A question and a plan. Reply use the AskUserQuestion tool to ask me which database to use, Postgres or SQLite. Does the request panel ask it, with both options? Press 2. Does Claude Code go on with SQLite? Then start a new session with Every edit and enter plan mode with the EnterPlanMode tool, plan how to add a line to probe.txt, and present the plan. Does the panel open on "Leave plan mode and start on this plan" with the plan? Answer Keep planning. Does Claude Code stay in plan mode?
What is refused, and what is only text. Reply /compact, then !ls, then /clear. Is each refused under the field, with the text kept, and does nothing reach Claude Code: the tile stays green? Then reply --help. Does Claude Code answer it as text, with no help of the command line, and does ps show the same process as before? Then paste ten lines of text and send them: does Claude Code read all ten?
The settings of the folder are not read. In a new scratch folder, mkdir -p .claude && echo '{"hooks":{"UserPromptSubmit":[{"hooks":[{"type":"command","command":"touch ran.txt"}]}]}}' > .claude/settings.json, then start a session there with say hi. Is there no ran.txt after the turn? A ran.txt means the hooks of the folder ran without a trust dialog: --setting-sources=user does not hold in this release; report it. Then, in the same folder, claude -p "say hi" in a terminal: is ran.txt there now? That shows what was kept out.
The account. Note your usage in claude.ai, Settings > Usage, start a session with say hi, and look again. Did the usage of your plan move? Then quit Blossom, start it from a terminal with ANTHROPIC_API_KEY=invalid exported, and start a session with say hi. Does the tile turn red, the turn failed? The documentation says -p always uses that variable; a green tile means the key was not used and your plan was. Quit and start Blossom again without the variable.
A process that dies. With the session of 25 green, kill -9 its process from ps as in 25. Does its tile stay? Reply what file did you create first? one word. Does ps show a new process with --resume=<the same identifier> and no --session-id, and does Claude Code remember probe.txt? Then send count from 1 to 500 slowly, one per line and kill -9 the process while it works. Does the tile turn red, and does the reply form open again on it?
Closing over standard input. Quit Blossom. From the root of the clone, bun run adapters/claude/source/main.ts 2> errors.log and type one line at a time:
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"protocolVersion":1}}: the manifest names "capabilities":{"start":true} for claude, and no other capability.
{"jsonrpc":"2.0","id":1,"method":"session/new","params":{"agentId":"claude","cwd":"/tmp/blossom-acting","approval":"ask_before_edits"}}: a session/started comes before the answer, whose sessionId is a UUID.
{"jsonrpc":"2.0","id":2,"method":"session/prompt","params":{"sessionId":"<it>","prompt":[{"type":"text","text":"create a file named closed.txt containing PROMPT-MARKER"}]}}: a session/request_permission for the write arrives. Answer {"jsonrpc":"2.0","id":<its id>,"result":{"outcome":{"outcome":"selected","optionId":"reject"}}}: the answer to 2 is end_turn, and no closed.txt exists.
A session/prompt of count from 1 to 500 slowly, one per line to it as id 3, and while it counts {"jsonrpc":"2.0","method":"session/cancel","params":{"sessionId":"<it>"}}: the answer to 3 is cancelled within a few seconds, and the process is the same in ps.
{"jsonrpc":"2.0","id":4,"method":"session/close","params":{"sessionId":"<it>"}}: session/closed, then an empty result, and no claude --print left in ps.
End with ctrl-D. Does grep -c PROMPT-MARKER errors.log print 0? Delete errors.log.
Quitting ends what Blossom started. Start a session with count from 1 to 500 slowly, one per line, and keep a session of yours open in a terminal. While it counts, quit Blossom. Is there no claude --print in ps two seconds later, and does your terminal session go on untouched? Then, in the scratch folder, claude --resume <the identifier from ps>: does it show the count, interrupted? Exit it.
A protected folder. Start a session in a folder under ~/Documents with list the files here. Does macOS ask whether Blossom may open the folder, and does the session work after you allow it? Write down what you saw; it is check 19 of the study.
Four at most. Start four sessions with count from 1 to 500 slowly, one per line, one after the other, and a fifth while they work. Is the fifth refused under the panel, which stays open, with four claude --print in ps? Quit Blossom afterwards to end them.
A new worktree. In a scratch repository with one commit, git init probe && cd probe && git commit --allow-empty -m start, change a tracked file without committing it, then start a session there with A new worktree and create a file named probe.txt containing hello. Does the panel say the uncommitted changes stay in the folder before you start, and then "Making the worktree…"?Is there ../probe.worktrees/create-a-file-named-probe on the branch blossom/create-a-file-named-probe, with ps showing claude --print started in that folder and no --worktree? Allow the edit. Is probe.txt in the worktree and not in probe, and is the change of probe still there?
The session in its project.Does peek stack the session under probe, with the branch blossom/create-a-file-named-probe, and does its detail say "In the worktree ~/…/probe.worktrees/create-a-file-named-probe"? Write down whether Claude Code's own history lists the session under the folder of the worktree (claude --resume in that folder).
What Claude Code does there. In the worktree, reply run git status and git branch --show-current. Does Claude Code see the branch blossom/… and only probe.txt as new? Write down whether Claude Code asks to trust the folder, or reads a CLAUDE.md of the repository from there.
Removing it. When the session is green, close the panel, open the new session panel again. Is the worktree listed under "Worktrees Blossom made" with "Kept: uncommitted changes"? Reply commit probe.txt, allow it, open the panel again: "Kept: 1 commit only here"? Merge it from probe with git merge blossom/create-a-file-named-probe, open the panel again: does it show Remove, and do two presses remove the folder and the branch?