agent-zero
agent-zero copied to clipboard
Feature Request: Runtime Toggle to Disable Automatic Subagent Spawning
Summary
Root cause: tools/call_subordinate.py always spawned a subordinate when invoked, with no way to keep a manually designed multi-agent setup frozen at runtime.
Change: Added a subagent_spawn_locked boolean setting in helpers/settings.py (default False), gated Delegation.execute in tools/call_subordinate.py to short-circuit with a clear refusal Response when the setting is on, and exposed the toggle in the Advanced section of webui/components/settings/agent/agent.html.
Closes https://github.com/agent0ai/agent-zero/issues/1638