Repository navigation
Conversation
- Handle subagentStart: spawns a helper agent attached to the parent lead and briefs it with a message - Handle subagentStop: reports back to lead with a message, marks helper done for auto-sweep - Handle sessionEnd: emits leave so the agent departs when a session is closed - Allow subagentStart in cursorResponse handshake - Add subagentStart, subagentStop, sessionEnd to cursorHooks setup list and docs
RaminGe
force-pushed
the
feat/cursor-subagent-lifecycle
branch
from
October 20, 2026 13:50
419e0ba to
5f67303
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Beautiful project, some improvements for cursor might follow in the next time from me :)
Summary
Brings the Cursor adapter to parity with the Claude Code adapter by adding support for subagents and proper session termination:
Subagents (
subagentStart&subagentStop):subagentStart: Spawns a helper teammate (parent: lead,role: subagent_type) attached to the lead's desk pod, briefed with an initial message from the lead.subagentStop: Helper reports back to the lead with a summary message and is markeddone, allowing the floor engine's helper auto-sweep to clean it up cleanly.cursorResponse: Answers{"permission": "allow"}forsubagentStartso subagents are not blocked by the hook handshake.Session Cleanup (
sessionEnd):leaveevent when a session ends or a chat window is closed, so agents depart through the door instead of lingering idle until the stale timeout.CLI & Docs:
subagentStart,subagentStop, andsessionEndtocursorHooks()inbin/agent-floor.mjs(foragent-floor setup cursor).docs/integrations.mdwith the new hooks.test/protocol.test.mjs(11/11 tests passing).