feat(core): add dynamic swarm worker tool (#3433)

* feat(core): add dynamic swarm worker tool

  Add a swarm tool for ad-hoc parallel worker execution with bounded concurrency, wait-all and first-success modes, per-worker failure
  isolation, and aggregated results.

  Register the tool in core, prevent nested worker recursion, and document the new workflow.

* fix(core): harden swarm worker execution

  Prevent swarm calls from bypassing the outer scheduler concurrency budget.

  Disallow interactive question prompts in swarm workers by default, and avoid incomplete Markdown table escaping by using an HTML entity for
  pipe characters. Add focused tests for the scheduler behavior, worker tool restrictions, and result formatting.
This commit is contained in:
Reid 2026-04-19 14:46:59 +08:00 committed by GitHub
parent cd8d9dce6a
commit f7ebc372f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 1091 additions and 2 deletions

View file

@ -5,6 +5,7 @@ export default {
shell: 'Shell',
'todo-write': 'Todo Write',
task: 'Task',
swarm: 'Swarm',
'exit-plan-mode': 'Exit Plan Mode',
'web-fetch': 'Web Fetch',
'web-search': 'Web Search',