Repository navigation
acpmux: ask every chat to batch its first reads and keep working while a bg task runs - #34579
Conversation
…e a bg task runs Leo: some sessions read early and concurrently, others go one call at a time on the same model. The harness prompts allow both; cmux's MCP instructions (acpmux server, and cmux_exec in code mode) now say which it wants. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-85a3e4109076ed5dd0f3
Bugbot needs on-demand usage enabledBugbot 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. |
|
cmux status (one comment, edited in place; each line is updated by the job that owns it) Review App of this head (app.zip, kept 1 day)
Shipped in:
|
|
Review (subagent claude-opus-5-5 medium): SHIP at cd57e09 Checked: spacing at the string continuations, the scoped github_status-only Follow-ups:
|
|
Found 2 test failures on Blacksmith runners: Failures
|
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-3x.png)
Leo, on why some cmux NEXT sessions do better work than others on the same model:
Leo-ask: ask-c344b7792d
What cmux adds today
A cmux NEXT chat gets the harness's own system prompt (Claude Code's, or Codex's), plus the
instructionsof the MCP servers cmux attaches:cmux_exec's description, which carries the same bg steerCompared with Anthropic's published claude.ai prompt and Claude Code's prompt, these additions do the right things. They only cover cmux's own tools and say when to use each one, and they don't restate the model's identity or its safety rules. One thing was missing: nothing tells the agent how to pace its work in cmux. Claude Code's prompt says to batch independent tool calls, but sessions still varied. Codex's prompt doesn't say it as plainly. The bg_start steer also left open whether the agent should wait on the task or keep working.
Change
One sentence goes next to the bg steer, in both places it appears: the acpmux server's instructions and the code-mode
cmux_execdescription.It's a default, not a MUST, and it names cmux's own tool (bg_start), so it doesn't just repeat what the base prompt already says. Chief turns don't get it: their allowlist leaves out the bg tools, so the steer isn't attached.
The other half of Leo's ask, a tab that shows what the agent was told and lets the person edit the preset prompt, is a separate PR.
Tests
acpmux_mcp_tests::github_status_is_listed_with_its_instructionasserts the new sentence.code_mode::bg_steer_testsasserts the same forcmux_exec.Observed / Not run
cargo test -p acpmux github_status_is_listedandcargo test -p cmux-tui bg_steer. Results are in a comment below.Changelog
Changed: cmux NEXT agents are asked to batch their first reads and keep working while a background task runs.
Risk: low. Two instruction strings, no code paths.
Agent session: agent session
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by cubic
Adds a parallel-work instruction to cmux NEXT's MCP prompts so agents batch their first reads and searches and keep working while a
bg_starttask runs.bg_startsteer in theacpmuxserver's instructions and the code-modecmux_execdescription.acpmux_mcp_testsandbg_steer_testsassert the new sentence appears.Written for commit cd57e09. Summary will update on new commits.