Sets SF_SUBAGENT_VIA_SWARM=1 by default in the wrapper so all sf launches route subagent calls through runSingleAgentViaSwarm (uok message-bus / uok_messages table) instead of spawning a child sf process via runSubagent. Operators can opt out with SF_SUBAGENT_VIA_SWARM=0 (or =false) in env. Leaves the runSingleAgent code default (opt-in) unchanged so the existing tests/subagent-via-swarm.test.mjs "unset → subprocess" assertion keeps holding. The flip lives at the wrapper layer where every interactive/headless sf launch picks it up but tests and direct dev-cli launches stay on documented opt-in semantics. Note: this is Layer 1 of the inline-execution path. Layer 2 (full in-process unit dispatch via runUnitInline) is tracked separately in REQUIREMENTS.md R013/R014 and is not addressed here. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| sf-from-source | ||