feat: add configuration to enable/disable subagents

Add subagents.enabled flag in config.yaml to control subagent feature:
- When disabled, task/task_status tools are not loaded
- When disabled, system prompt excludes subagent documentation
- Default is enabled for backward compatibility

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hetao
2026-02-05 20:49:02 +08:00
parent ef379a3100
commit 85128f5f14
6 changed files with 105 additions and 63 deletions

View File

@@ -268,6 +268,8 @@ Models, tools, sandbox providers, skills, and middleware settings are configured
- `skills.container_path`: Container mount path (default: `/mnt/skills`)
- `title`: Automatic thread title generation configuration
- `summarization`: Automatic conversation summarization configuration
- `subagents`: Subagent (task tool) configuration
- `enabled`: Master switch to enable/disable subagents (boolean, default: true)
- `memory`: Memory system configuration
- `enabled`: Master switch (boolean)
- `storage_path`: Path to memory.json file (relative to backend/)