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 cbd2fe66de
commit b7bf027aa5
6 changed files with 105 additions and 63 deletions

View File

@@ -282,6 +282,18 @@ summarization:
#
# For more information, see: https://modelcontextprotocol.io
# ============================================================================
# Subagents Configuration
# ============================================================================
# Enable or disable the subagent (task tool) functionality
# Subagents allow delegating complex tasks to specialized agents
subagents:
enabled: true # Set to false to disable subagents
# ============================================================================
# Memory Configuration
# ============================================================================
# Global memory mechanism
# Stores user context and conversation history for personalized responses
memory: