Skip to content

feat: add Desktop and Headless Swarm Mode parity - #1327

Merged
likun666661 merged 1 commit into
apache:mainfrom
likun666661:agent/desktop-swarm-mode
Jul 22, 2026
Merged

likun666661 merged 1 commit into
apache:mainfrom
likun666661:agent/desktop-swarm-mode

Conversation

@likun666661

@likun666661 likun666661 commented Jul 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add a Desktop Swarm Mode toggle/badge backed by the persisted Runtime session default
  • support /swarm, /swarm status, /swarm on|off, and one-shot /swarm <task> without leaking command text into the model-visible user message
  • validate orchestration mode and trusted turn overrides at the Desktop IPC boundary, and restore effective state from SessionSummary for active, resumed, and branched sessions
  • move the shared /swarm parser from CLI into @maka/core so hosts cannot drift
  • add Headless session-default and turn-override options to runExperiment / runTaskOnce
  • expose effective mode, source, and scoped agent_swarm authorization from the authoritative AgentRun header in structured Headless results

Runtime remains the owner of prompt injection, step-0 tool pinning, scoped authorization, and exclusive-step admission. This PR only supplies trusted host intent and renders the resulting state/evidence.

Tracks #1324.

Scope boundary

This completes the staged first-delivery PR 3 only. The follow-up enhancements A–G in #1324 remain intentionally out of scope and are not implemented by this PR: prompt_template × items, resume_agent_ids, provider rate-limit awareness, dynamic concurrency capacity, real worktree isolation, per-item retries, and multi-batch pipeline Swarm.

Testing

  • npm --workspace @maka/core test — 1146 passed
  • npm --workspace maka-agent run test:dist — passed
  • npm --workspace @maka/ui run test:dist — passed
  • npm --workspace @maka/desktop test — 2765 passed
  • npm --workspace @maka/headless run typecheck — passed
  • targeted Headless runner suite — 18 passed
  • full Headless suite — 1176 passed, with 2 unrelated Harbor Python adapter failures in the local system Python 3.9 environment:
    • Kimi adapter fixture timed out
    • Codex adapter fixture hit Python 3.9 missing-current-event-loop behavior

@likun666661
likun666661 marked this pull request as ready for review July 22, 2026 06:09
@likun666661
likun666661 merged commit 02f175e into apache:main Jul 22, 2026
3 checks passed
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.

1 participant