From 47b2db23df5ed891465b1185fcee7892692c7fc8 Mon Sep 17 00:00:00 2001 From: xixingde <137176592+xixingde@users.noreply.github.com> Date: Fri, 10 Apr 2026 12:24:43 +0800 Subject: [PATCH] feat(strictPlan): add allowedTools configuration to restrict available tools --- src/costrict/skill/strictPlan.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/costrict/skill/strictPlan.ts b/src/costrict/skill/strictPlan.ts index 385d56d15..41208c855 100644 --- a/src/costrict/skill/strictPlan.ts +++ b/src/costrict/skill/strictPlan.ts @@ -8,6 +8,14 @@ export function registerStrictPlanSkill(): void { whenToUse: '根据用户的需求创建具体可实施的计划。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.', userInvocable: true, + allowedTools:[ + "AskUserQuestion", + "Agent", + "Read", + "Write", + "Edit", + "TodoWrite", + ], // 关键:在子 Agent 中运行 context: 'fork', // 关键:使用 StrictPlan Agent