Skip to content

Claude/claude cli agent orchestratio#47

Open
thsunkid wants to merge 3 commits intonoopstudios:mainfrom
thsunkid:claude/claude-cli-agent-orchestration-Uxqrw
Open

Claude/claude cli agent orchestratio#47
thsunkid wants to merge 3 commits intonoopstudios:mainfrom
thsunkid:claude/claude-cli-agent-orchestration-Uxqrw

Conversation

@thsunkid
Copy link
Copy Markdown

No description provided.

claude and others added 3 commits February 12, 2026 12:53
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants