你这个就是wait 触发的太频繁了,因为默认wait时间是30秒。根据官方的schema文档,把wait相关的timeout调高点,就能让它少调了。
比如下面这样,调成默认5分钟,最长1小时
[features.multi_agent_v2]
enabled = true
hide_spawn_agent_metadata = true
max_concurrent_threads_per_session = 16
min_wait_timeout_ms = 300000
max_wait_timeout_ms = 3600000
default_wait_timeout_ms = 3600000
"MultiAgentV2ConfigToml": {
"additionalProperties": false,
"properties": {
"default_wait_timeout_ms": {
"format": "int64",
"maximum": 3600000,
"minimum": 0,
"type": "integer"
},
"enabled": {
"type": "boolean"
},
"expose_spawn_agent_model_overrides": {
"description": "Exposes `model` and `reasoning_effort` on the multi-agent v2 spawn tool and adds corresponding guidance to root and subagent usage hints.",
"type": "boolean"
},
"hide_spawn_agent_metadata": {
"type": "boolean"
},
"max_concurrent_threads_per_session": {
"format": "uint",
"minimum": 1,
"type": "integer"
},
"max_wait_timeout_ms": {
"format": "int64",
"maximum": 3600000,
"minimum": 0,
"type": "integer"
},
"min_wait_timeout_ms": {
"format": "int64",
"maximum": 3600000,
"minimum": 0,
"type": "integer"
},
"multi_agent_mode_hint_text": {
"type": "string"
},
"non_code_mode_only": {
"type": "boolean"
},
"root_agent_usage_hint_text": {
"type": "string"
},
"subagent_developer_instructions": {
"description": "Overrides inherited developer instructions for subagents without role-specific instructions.",
"type": "string"
},
"subagent_usage_hint_text": {
"type": "string"
},
"tool_namespace": {
"maxLength": 64,
"minLength": 1,
"pattern": "^[a-zA-Z0-9_-]+$",
"type": "string"
},
"usage_hint_enabled": {
"description": "Deprecated compatibility field. Its value is ignored.",
"type": "boolean"
},
"usage_hint_text": {
"type": "string"
},
"wait_agent_enabled": {
"description": "Expose the multi-agent v2 `wait_agent` tool.",
"type": "boolean"
}
},
"type": "object"
}