Claude/claude cli agent orchestratio#47
Open
thsunkid wants to merge 3 commits intonoopstudios:mainfrom
Open
Conversation
Add multi-round interactive sessions enabling Claude Code (master) to have back-and-forth conversations with cursor-agent CLI (subagent). Cursor-agent can now ask questions mid-task via a prompt protocol using [CURSOR_QUESTION]/[CURSOR_RESULT] markers. The MCP server manages session state across multiple one-shot cursor-agent invocations, stitching them into a coherent conversation. New tools: - cursor_agent_session_start: begin a multi-round task - cursor_agent_session_reply: answer a pending question - cursor_agent_session_status: check session state - cursor_agent_session_end: terminate a session Also includes a PostToolUse hook (hooks/post-tool-use.js) that proactively injects pending questions into Claude Code's context between agentic loop iterations, mimicking the InboxPoller pattern from Claude Code's native agent teams. All 7 existing tools remain unchanged (backward compatible). https://claude.ai/code/session_01NtFBbZHj4eGWa1z2V5Egzy
Technical architecture doc explaining the multi-round one-shot pattern for bidirectional Claude Code ↔ Cursor CLI communication, plus a comprehensive testing guide with 7 test levels for local validation. https://claude.ai/code/session_01NtFBbZHj4eGWa1z2V5Egzy
…munication Implement a two-MCP architecture enabling stateful, multi-turn communication with a single cursor-agent process via file-based IPC: - bridge-mcp/server.js: cursor-agent side, blocks on report_to_orchestrator - orchestrator-mcp/server.js: Claude Code side, 6 native tools (spawn/check/reply/status/result/kill) - orchestrator.js: CLI wrapper for the same file IPC - Fix --model flag usage (short -m flag broken in cursor-agent CLI) - Update README with new architecture docs - Add e2e test suites for bridge and session workflows Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
No description provided.