fix(costrict): enable file edit and write tools for built-in agents

This commit is contained in:
xixingde 2026-04-07 20:40:17 +08:00
parent 884e0208b8
commit 47b535af47
4 changed files with 7 additions and 8 deletions

View File

@ -104,8 +104,6 @@ export const REVIEW_AND_FIX_AGENT: BuiltInAgentDefinition = {
disallowedTools: [
AGENT_TOOL_NAME,
EXIT_PLAN_MODE_TOOL_NAME,
FILE_EDIT_TOOL_NAME,
FILE_WRITE_TOOL_NAME,
NOTEBOOK_EDIT_TOOL_NAME,
],
source: 'built-in',

View File

@ -192,8 +192,13 @@ 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 → explore project → clarify requirements → create proposal → implement proposal.',
disallowedTools: [
EXIT_PLAN_MODE_TOOL_NAME,
FILE_EDIT_TOOL_NAME,
FILE_WRITE_TOOL_NAME,
],
tools:[
"AskUserQuestion",
"Agent",
"Read",
"Write",
"Edit",
],
source: 'built-in',
baseDir: 'built-in',

View File

@ -101,8 +101,6 @@ export const SUB_CODING_AGENT: BuiltInAgentDefinition = {
disallowedTools: [
AGENT_TOOL_NAME,
EXIT_PLAN_MODE_TOOL_NAME,
FILE_EDIT_TOOL_NAME,
FILE_WRITE_TOOL_NAME,
NOTEBOOK_EDIT_TOOL_NAME,
],
source: 'built-in',

View File

@ -123,8 +123,6 @@ export const TASK_CHECK_AGENT: BuiltInAgentDefinition = {
disallowedTools: [
AGENT_TOOL_NAME,
EXIT_PLAN_MODE_TOOL_NAME,
FILE_EDIT_TOOL_NAME,
FILE_WRITE_TOOL_NAME,
NOTEBOOK_EDIT_TOOL_NAME,
],
source: 'built-in',