Skip to content

cmux MCP: expose first-class agent dispatch tools - #24607

Merged
teamleaderleo merged 2 commits into
feat-cmux-nextfrom
agent-dispatch-mcp
Oct 24, 2026
Merged

teamleaderleo merged 2 commits into
feat-cmux-nextfrom
agent-dispatch-mcp

Conversation

@teamleaderleo

@teamleaderleo teamleaderleo commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

The cmux MCP server now exposes agent_dispatch, agent_steer, agent_briefs_list, and agent_report. Each tool routes through acpmux's structured dispatch RPC and carries brief ids, target host/session, stop condition, status, and sender metadata. Calls accept arbitrary registered harness names, including Qwen, OpenCode, and Pi, and never require scp, ssh, a remote path, or shell parsing.

Changelog

Added: harness-agnostic agent dispatch, steer, brief-list, and report MCP tools.

Validation

  • pr-overlap before edits: no overlap.
  • Rustfmt on changed files, git diff --check, and scripts/cmux-next/prepush-gate.py pass.
  • Focused MCP tests include a Qwen dispatch fixture and steer/list/report routing.
  • Full cargo checks are routed to the fleet; none ran on overloaded huge-blue.

Load and per-host capacity remain warn-only in the tool descriptions and acpmux contract; no launch is refused for load.

agent-identity footer


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

The MCP server now exposes agent_dispatch, agent_steer, agent_briefs_list, and agent_report, making agent dispatch available without shell-based handoffs.

  • Dispatch supports registered harnesses, target and host selection, stop conditions, and idempotency keys; harness and model are combined into the launcher selector.
  • Steer and report use persisted brief IDs; brief listing supports status and limit filters.
  • Fleet placement rules still apply, but load and per-host capacity remain warnings and do not block launches.
  • Where no acpmux daemon is reachable the tools fail as unavailable; timed-out mutations are marked in progress and retryable with the same idempotency key.

Written for commit 9b5837c. Summary will update on new commits.

View guided diff Turn on auto-fix

@teamleaderleo
teamleaderleo temporarily deployed to cmux-tui-merge-tree October 23, 2026 21:29 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

cmux status (one comment, edited in place; each line is updated by the job that owns it)

Review 58c65de: HQ feed card · gallery before/after runs · checks

App of this head (app.zip, kept 1 day)

gh workflow run reload-build.yml -R manaflow-ai/cmux --ref feat-cmux-next -f tag=pr24607 -f ref=agent-dispatch-mcp -f platform=macos -f backend_mode=local

red: cmux-next checks (god files, concurrency, crash safety, l10n); NEW: red check: Companion workflows (+5 more) is not red on the base 8f8ffbc; do not merge until green; see lane-rules
red: cmux-next crash ratchet; NEW: green on the base 8f8ffbc; do not merge until green; see lane-rules

@github-actions github-actions Bot added the risk:normal Risk tier (docs/ci/risk-tiers.md) label Oct 23, 2026
@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Bead cx-j449k created for this PR by the cmux coordinator.

@blacksmith-sh

blacksmith-sh Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Found 14 test failures on Blacksmith runners:

Failures

Test View Logs
/tmp/tmphb3xbqqn/summary-fail.json (live):/summary-fail.json (live): View Logs
/tmp/tmpsstl2zus/summary-missing.json (live):/summary-missing.json (live): View Logs
[tabs] debug.tab_switch timed 0 of 40 switches/
[tabs] debug.tab_switch timed 0 of 40 switches
View Logs
[tabs] debug.tab_switch timed 0 of 40 switches/
[tabs] debug.tab_switch timed 0 of 40 switches
View Logs
[tabs] the window draws no frames/[tabs] the window draws no frames View Logs
[tabs] the window draws no frames/[tabs] the window draws no frames View Logs
convention violations found (ERROR lines above)./
convention violations found (ERROR lines above).
View Logs
test_a_pull_request_that_changes_the_shortcut_inputs_still_rewrites_them (main.Sett
ingsOnlyArtifactLeavesTheActionFollowers.test_a_pull_request_that_changes_the_shortcut_
inputs_still_rewrites_them) (job='repair')/
test_a_pull_request_that_changes_the_shortcut_inputs_still_rewrites_them (main.Sett
ingsOnlyArtifactLeavesTheActionFollowers.test_a_pull_request_that_changes_the_shortcut_
inputs_still_rewrites_them) (job='repair')
View Logs
test_base_passes (main.NoticesPairTests.test_base_passes)/
test_base_passes (main.NoticesPairTests.test_base_passes)
View Logs
test_every_routed_input_triggers_the_workflow (main.PullRequestTiers.test_every_rou
ted_input_triggers_the_workflow) (path='.git/config')
View Logs

...and 4 more test failures. View all on Blacksmith: run 40047540034, run 40047540075

Fix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@cursor

cursor Bot commented Oct 23, 2026

Copy link
Copy Markdown

Bugbot needs on-demand usage enabled

Bugbot uses usage-based billing for this team and requires on-demand usage to be enabled.

A team admin can enable on-demand usage in the Cursor dashboard.

Leo: "Maybe we need to keep improving ACPM UX then, or CMUX next, just exposing more and more and, like, depicting the stuff better."
Agent-Session: https://cmux.com/deeplink/agent?harness=codex&session=01a16a73-ea8b-71c1-a792-182ccebd603e&host=huge-blue
@teamleaderleo
teamleaderleo merged commit e815801 into feat-cmux-next Oct 24, 2026
104 of 125 checks passed
@teamleaderleo
teamleaderleo deleted the agent-dispatch-mcp branch October 24, 2026 01:02
cmux-agent Bot pushed a commit that referenced this pull request Oct 24, 2026
…cy key; the agent pane bundles DispatchCard.css

- cmux-tui agent_dispatch_tools: E0505, `key` borrowed `parsed` while
  `parsed` moved into backend.acpmux (from #24607). The key is owned now.
- build-agent-pane-web.sh did not add DispatchCard.css (from #24608), so
  the web bundles refused to build and every package-test-lane step at
  the tip failed before its Swift suites (step 3fd7c13c4d1d89a51286f6b5).

Not run: cargo check on the VM stops at ghostty-vt-sys (no zig); the
fleet step after this push compiles both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

This branch had an error being deployed

1 failed and 2 inactive (outdated) deployments
cmux-tui-merge-tree — 9b5837cb Deployed Oct 24, 2026 by teamleaderleo via publish the merge tree #5414
artifacts — db985de6 Deployed Oct 23, 2026 by teamleaderleo via publish the Windows daemon to R2 #46762
sentry-dsyms — db985de6 Deployed Oct 23, 2026 by teamleaderleo via upload cmux-tui dSYMs to Sentry #46762
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:normal Risk tier (docs/ci/risk-tiers.md)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant