feat(agents): restrict Agent tool to specific sub-agents in strictPlan and strictSpec

This commit is contained in:
xixingde 2026-04-14 14:10:19 +08:00
parent 523018de61
commit 3eb909567a
2 changed files with 9 additions and 1 deletions

View File

@ -245,7 +245,7 @@ export const STRICT_PLAN_AGENT: BuiltInAgentDefinition = {
'根据用户的需求创建具体可实施的计划。Use this when you need to create structured, actionable implementation plans based on user requirements. This agent follows a strict workflow: understand requirements → QuickExplore project → clarify requirements → create proposal → implement proposal.',
tools:[
"AskUserQuestion",
"Agent",
"Agent(QuickExplore,TaskCheck,SubCoding)",
"Read",
"Write",
"Edit",

View File

@ -81,6 +81,14 @@ export const STRICT_SPEC_AGENT: BuiltInAgentDefinition = {
whenToUse:
'将用户需求按照标准阶段分配到对应工作流Agent执行。Use this when you need to orchestrate user requirements through the standard workflow stages: requirements clarification → architecture design → task planning → execution. This agent coordinates the Spec workflow with four rigorous stages to ensure high-quality delivery.',
disallowedTools: [EXIT_PLAN_MODE_TOOL_NAME],
tools:[
"AskUserQuestion",
"Agent(Requirement,DesignAgent,TaskPlan,SubCoding)",
"Read",
"Write",
"Edit",
"TodoWrite",
],
source: 'built-in',
baseDir: 'built-in',
model: 'inherit',