Shows the sessions of the command line agent of Cursor, cursor-agent, in the notch: working, done at the end of a turn, failed when a turn stops on an error, what the tool in use does, its repository and its branch, its tool calls as steps and how many subagents its Task tool runs.
cursor-agent reports through hooks: each hook posts a few fields of its event with curl to a Unix socket in your own folder, ~/Library/Application Support/Blossom/cursor/socket, where this adapter listens. Blossom launches the adapter.
Approvals and questions stay in cursor-agent, and Blossom does not see them. A hook of Cursor can deny a tool and cannot allow one, and no hook fires while cursor-agent waits for you to approve or to answer. So a session that waits for you shows working in Blossom, with the tool it asks about as the tool in use, and you answer in cursor-agent.
The hooks are entries of a Cursor hooks.json. You can try them in one folder, or install them for every session.
You need:
Blossom. It includes this adapter and the Bun that runs it; from a clone, bun run build makes one.
cursor-agent, also started as agent. Read from the bundle of 2026.03.30 and never run here; hook payloads may change between releases, and a release that orders the fields of a payload differently makes the hooks send nothing.
curl, head, sed and printf, which every hook runs by their full paths under /usr/bin, ps, which the hook of a prompt runs as /bin/ps, and zsh or bash, the shell cursor-agent runs hooks with. macOS ships all of them.
The quickest way. Blossom finds the Cursor CLI on your Mac, and connecting it is one click: "Continue" on the second step of the introduction, with the Cursor CLI checked, or its switch in Settings > Agents. Blossom then adds this adapter to its configuration, starts it, and puts the hooks of adapters/cursor/hooks.json in ~/.cursor/hooks.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/cursor/, 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. cursor-agent accepts comments in the file; Blossom does not keep them, so a file with comments is connected by hand. A user reported that cursor-agent 2026.11.05 on macOS reads hooks only from the .cursor/hooks.json of a project; if a session does not show after you connect, put the same hooks there, as "Try it in one folder" below does, 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/cursor/configuration.json apps/macos/build/Build/Products/Debug/Blossom.app/Contents/MacOS/Blossom
The notch shows nothing until a session of cursor-agent 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 cursor 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": "cursor" }] }
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.
cursor-agent reads the hooks of a project from .cursor/hooks.json at the root of its workspace, and no option names another file. So try the hooks in a folder made for it, and nothing of yours changes:
cd "$(mktemp -d)"mkdir .cursor && cp "<absolute path of the clone>/adapters/cursor/hooks.json" .cursor/hooks.jsonagent
What you should see:
Nothing when the session opens. The tile appears next to the notch with the first prompt, named after the repository and the branch of the workspace, blossom · plugin/clocks, or after the folder outside a repository. The hooks pass on no prompt, so the prompt never titles a session.
No badge while it works, and the tool in use in live.
The green badge when a turn ends, also when you interrupt it; the red one when a turn stops on an error.
No change while cursor-agent asks you to approve a command: answer there.
For a clone without the app, a file with comments, or a file Blossom leaves alone. The hooks of adapters/cursor/hooks.json go into your ~/.cursor/hooks.json, next to the hooks you already have. The commands below write a new file, and you put its content in place.
A user reported that cursor-agent 2026.11.05 on macOS did not load ~/.cursor/hooks.json while the file of a project worked; see the research in ../../documentation/roadmap/cursor.md. If a session does not show after you install, try the hooks in one folder as above to tell the two apart.
If ~/.cursor/hooks.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 hooks to a new file that only you can read. 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 and delete the new file, which is empty: rm ~/.cursor/hooks.merged.json. cursor-agent accepts comments in the file and jq does not, so a file with comments stops here too; then add the six entries of adapters/cursor/hooks.json under hooks by hand.
Otherwise review the new file. The only differences are added hooks whose command names the socket:
Keep a copy 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.
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 hooks without the hooks of the adapter to a new file. The command drops every hook whose command names the socket of the adapter and the events it leaves empty. Every other hook stays as it is.
(umask 077 && jq ' def blossom: type == "object" and (.command | type) == "string" and (.command | contains("Application Support/Blossom/cursor/socket\"")); if (.hooks | type) == "object" then .hooks |= with_entries(if (.value | type) == "array" and (.value | length) > 0 then (.value |= map(select(blossom | not))) | select(.value | length > 0) else . end) else . end' ~/.cursor/hooks.json > ~/.cursor/hooks.cleaned.json)
If jq printed an error, or the new file is empty or holds only null, stop and delete it: rm ~/.cursor/hooks.cleaned.json. Review it and put the new content in place, as when installing:
An event that held an empty list before the install comes back without that key, and a file that held no hooks comes back with version and an empty hooks, which cursor-agent reads the same way. A folder where you tried the hooks has nothing to remove but itself.
Approvals stay in cursor-agent, unseen.cursor-agent reads one answer from a hook, deny, and runs its own approval after the hooks either way, so no hook can approve for you; and it runs no hook while it waits for you. Blossom never answers anything for cursor-agent, and a session that waits for an approval shows working.
Questions stay in cursor-agent, unseen. Its tool that asks you to pick among options fires no hook at all.
Headless runs do not show.agent -p fires neither the hook of a prompt nor the one of the end of a turn, so the adapter never starts its session.
A session shows up with its first prompt. An open session with nothing typed shows nothing, and so does a session that was already running when Blossom started, until its next prompt.
An interrupted turn is done.cursor-agent ends it with the status aborted, and it is your turn.
The name is the repository and the branch. The project is the repository and the branch of its folder, read from HEAD and the pointers of .git at most once every five seconds, without running git; the branch is the title. See ../../documentation/decisions/names.md.
Steps are tool calls, saying what they do. Each call of a tool is a step, from its start to its end; two calls of the same tool are paired with their ends oldest first. A step still running when the turn ends is shown failed. Only the name of a tool is sent, never what it was given or what it printed, so a step is a label made from that name, such as Running a command for Shell or Reading a file for Read. A tool whose name has characters other than letters, digits, _, :, . and -, or is longer than 64, is not reported.
Subagents are counted from the Task tool. A call of Task counts as a running subagent until it ends or the turn ends. If the tools of a subagent report under a conversation of their own, which the research could not settle, they show nowhere; if they report under the session, they are steps of it.
The hooks send a few fields and nothing else.cursor-agent gives a hook the whole event: your prompt, the input of a tool and its output, your email and the path of the transcript. Each hook reads the first mebibyte of it with sed, in the C locale, anchored at both ends of the payload, and sends only the identifier of the session, the name of its event, the name of the tool, the status of the end of a turn and, with a prompt, the folder of the workspace. A string of JSON cannot hold an unescaped quote, so no prompt or output can pass for one of those fields. A payload longer than a mebibyte sends nothing, and so does one whose fields are not in the order cursor-agent 2026.03.30 writes them. The hook of a prompt adds where the session runs, below.
A tool whose event is larger than about a mebibyte ends failed.cursor-agent gives the shell of a hook the payload among its arguments, which macOS limits to about a mebibyte with the environment; a larger event, such as the output of a tool that printed a lot, runs no hook at all, and the hooks read at most a mebibyte anyway. Its step stays running, as the tool in use, until the turn ends, and is then shown failed. Read from how the hook is started, not tried.
Your payloads still pass through the shell.cursor-agent writes the whole payload into the here document of the command before the hook reads it, which the shell keeps in a temporary file or a pipe while the hook runs. That is cursor-agent's doing and the same for every hook.
Only safe session identifiers report. A hook sends the identifier only when it is at most 64 letters, digits, dots, dashes and underscores. cursor-agent makes a UUID.
The hooks print nothing, as long as your shell lets them.cursor-agent reads what a hook prints as its decision, and the exit status 2 as a denial. Every command sends everything it runs to /dev/null and ends with || /usr/bin/true, so neither a configuration file of curl nor whatever answers on the socket can make a hook decide anything, and a function of your shell named curl or sed does not run in place of /usr/bin/curl or /usr/bin/sed. They do not resist your own shell, which cursor-agent restores before it runs a hook: a function whose name is a full path, such as /usr/bin/curl, an exit trap, an alias of a word the command uses, or a read-only variable blossom_body changes what the hook does, and can make it print a decision or exit with 2.
The hooks ignore your curl configuration.-q keeps curl from reading ~/.curlrc and its siblings. Nothing you set there applies to the hooks.
The environment is trusted. Whoever writes your shell configuration can already run anything in a hook, and in every shell you open. A startup file that prints text puts it before the hook's silence; cursor-agent then reads that text and, unless it is a decision, ignores it.
The hooks of the Claude Code adapter run too.cursor-agent also runs the hooks of ~/.claude/settings.json, with events of its own names. If you installed the hooks of the Claude Code adapter, they post the whole payload of every event of cursor-agent, your prompts and the input and output of its tools included, to the socket of that adapter, which shows nothing for them. That socket is yours alone like this one, but a process that took it while Blossom is closed would read them. If that matters to you, keep the hooks of the Claude Code adapter out of ~/.claude/settings.json on a Mac where you run cursor-agent: removing the hooks of the Cursor adapter changes nothing about it.
Without Blossom, cursor-agent works as before. With Blossom closed nothing listens on the socket: each hook gives up at once, prints nothing and ends without an error.
A Blossom that does not answer costs a second. When the adapter is alive but does not answer, with Blossom suspended for example, every event waits one second.
The hook of a prompt finds the terminal of its session. When its payload matched, the hook of beforeSubmitPrompt walks up its processes with /bin/ps, from cursor-agent, 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, from the environment cursor-agent gives its hooks. Every variable is named with a default, so a shell where you turned on nounset runs it. It sends each value 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.
Every event runs a few short processes.head, sed and, when the payload matched, printf and curl. The adapter installs six hooks, and none on the events that run around each read of a file or each command.
A session whose cursor-agent was killed leaves within seconds. Every command names the process that started its shell, in the header Blossom-Process; that is expected to be cursor-agent, which starts a new shell for each hook. The adapter watches a process only once two events in a row name it, so a process that lives only as long as one hook is never watched. Every five seconds it asks the system whether the watched process still exists, and a session whose process is gone leaves the notch. If the system has already given the identifier to another process, the session stays until that one ends too. If the process changes with every event, nothing is watched, and a killed cursor-agent leaves its tile until you dismiss it.
The socket is yours alone. It lives in a folder only your user can open. 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 make a session look working, done, failed or closed, or, by listening on the socket while Blossom is closed, learn which sessions run, in which folder, and which tools they call. It cannot answer anything, because the hooks print nothing, and it reads no prompt, because the hooks send none. See ../../documentation/decisions/socket.md.
Sixty-four sessions at most. Blossom stops an adapter that lists more than 128 sessions. So when a sixty-fifth session starts, the adapter closes the one it heard from least recently, which is most likely one whose cursor-agent ended without saying so. A process that posts to the socket can push your sessions out this way, and cannot get the adapter stopped.
The hooks find the socket through $HOME. A session started with another HOME does not report.
The adapter was tested with its hook commands run by zsh and bash against the socket, with payloads written from the bundle of cursor-agent 2026.03.30, never captured from a run. Each check below needs cursor-agent signed in. Write down what the line in italics asks.
Prepare once. To see the raw payloads first, make a folder whose hooks log what they receive, and remove it afterwards:
The payloads. Ask hi, then run the shell command ls, and quit. Does every line of events.log start with conversation_id, generation_id and model, and end with session_id, hook_event_name, cursor_version, workspace_roots, user_email and transcript_path, in that order? If not, the hooks of the adapter send nothing on this release.
The process. In a second terminal, ps -ax -o pid,ppid,command | grep '[c]ursor-agent'. Is the process on every line of the log the cursor-agent of the session, the same for the whole session?
Then run Blossom with the adapter and, in a new folder, try the hooks of the adapter as above.
A turn. Ask hi. Does the tile appear with the prompt, named after the folder, or the repository and the branch in a clone, with no badge, and turn green when the answer ends?
A tool. Ask run the shell command sleep 5 and approve it. Does live show Shell, does detail list it as a step, and does the tile turn green at the end?
An approval. Ask run the shell command touch probe.txt and do not answer yet. Does the tile stay working, with no badge and no request panel? Deny it. Does the step end failed, and the tile turn green when the turn ends?
An interrupt. Ask count from 1 to 300, one number per line and interrupt it. Does the tile turn green?
A failure. Start with a model that does not exist, if cursor-agent lets you, and ask hi. Does the tile turn red?
A subagent. Ask for a task that delegates to a subagent. Does peek show one running subagent while it works, and do its tools show as steps of the session or nowhere? Write down which.
A question. Ask ask me to pick between two options before you answer. Does the tile stay working while cursor-agent asks?
The end. Quit cursor-agent. Does the tile leave at once? Start it again, ask hi, and kill -9 its process from another terminal. Does the tile leave within about five seconds?
Quitting Blossom. Quit Blossom and ask hi. Does cursor-agent keep working, with nothing printed about a hook?
A headless run.agent -p hi in the folder. Does no tile appear?
Installed for every session. After installing as above, start agent in another new folder and ask hi. Does the tile appear? Remove as above. Does a new session no longer show?
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, with nothing printed about a hook?