feat(agents): restrict Agent tool to specific sub-agents in strictPlan and strictSpec
This commit is contained in:
parent
523018de61
commit
3eb909567a
|
|
@ -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.',
|
'根据用户的需求创建具体可实施的计划。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:[
|
tools:[
|
||||||
"AskUserQuestion",
|
"AskUserQuestion",
|
||||||
"Agent",
|
"Agent(QuickExplore,TaskCheck,SubCoding)",
|
||||||
"Read",
|
"Read",
|
||||||
"Write",
|
"Write",
|
||||||
"Edit",
|
"Edit",
|
||||||
|
|
|
||||||
|
|
@ -81,6 +81,14 @@ export const STRICT_SPEC_AGENT: BuiltInAgentDefinition = {
|
||||||
whenToUse:
|
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.',
|
'将用户需求按照标准阶段分配到对应工作流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],
|
disallowedTools: [EXIT_PLAN_MODE_TOOL_NAME],
|
||||||
|
tools:[
|
||||||
|
"AskUserQuestion",
|
||||||
|
"Agent(Requirement,DesignAgent,TaskPlan,SubCoding)",
|
||||||
|
"Read",
|
||||||
|
"Write",
|
||||||
|
"Edit",
|
||||||
|
"TodoWrite",
|
||||||
|
],
|
||||||
source: 'built-in',
|
source: 'built-in',
|
||||||
baseDir: 'built-in',
|
baseDir: 'built-in',
|
||||||
model: 'inherit',
|
model: 'inherit',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user