fix(delegate): make MCP toolset inheritance configurable

This commit is contained in:
helix4u 2026-04-22 18:18:50 -06:00 committed by Teknium
parent 98e1396b15
commit 3e96c87f37
4 changed files with 100 additions and 6 deletions

View file

@ -712,6 +712,10 @@ DEFAULT_CONFIG = {
"provider": "", # e.g. "openrouter" (empty = inherit parent provider + credentials)
"base_url": "", # direct OpenAI-compatible endpoint for subagents
"api_key": "", # API key for delegation.base_url (falls back to OPENAI_API_KEY)
# When delegate_task narrows child toolsets explicitly, preserve any
# MCP toolsets the parent already has enabled. Off by default so
# narrowed child toolsets stay strict unless the operator opts in.
"inherit_mcp_toolsets": False,
"max_iterations": 50, # per-subagent iteration cap (each subagent gets its own budget,
# independent of the parent's max_iterations)
"reasoning_effort": "", # reasoning effort for subagents: "xhigh", "high", "medium",
@ -923,7 +927,7 @@ DEFAULT_CONFIG = {
},
# Config schema version - bump this when adding new required fields
"_config_version": 22,
"_config_version": 23,
}
# =============================================================================