fix(agents): remove isMainThread flag and update agent descriptions and tool restrictions

This commit is contained in:
xixingde 2026-04-15 22:27:50 +08:00
parent 75c510cb9d
commit 28b0ecfaf2
6 changed files with 7 additions and 6 deletions

View File

@ -258,5 +258,6 @@ export const STRICT_PLAN_AGENT: BuiltInAgentDefinition = {
// 通过斜杠命令从主线程启动时,使 resolveAgentTools 跳过 filterToolsForAgent
// 从而保留主线程完整工具集(包括 Agent 工具)。
isMainThread: true,
visibleTo: ['None'],
getSystemPrompt: () => getStrictPlanSystemPrompt(),
}

View File

@ -117,10 +117,10 @@ Start by confirming the user requirements, then proceed with test case generatio
export const TDD_AGENT: BuiltInAgentDefinition = {
agentType: 'TDD',
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.',
'execute comprehensive testing workflow: confirm requirements, generate test cases, and execute tests with automated fixes',
tools:[
"AskUserQuestion",
"Agent(QuickExplore,TaskCheck,SubCoding)",
"Agent",
"Read",
"Write",
"Edit",

View File

@ -207,7 +207,7 @@ function getWikiSystemPrompt(): string {
export const WIKI_AGENT: BuiltInAgentDefinition = {
agentType: 'WIKI',
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.',
'为项目生成完整的技术文档体系,包括项目分析、文档结构设计、技术文档生成和索引文件创建。',
tools:[
"Agent(WikiCatalogueDesign,WikiDocumentGenerate,WikiIndexGeneration,WikiProjectAnalyze)",
"Read",

View File

@ -17,7 +17,7 @@ export function registerProjectWikiSkill(): void {
return [
{
type: 'text',
text: '请提供需要规划的需求描述。用法: /strict-project-wiki <需求描述>',
text: '请提供技术文档的需求描述。用法: /strict-project-wiki',
},
]
}

View File

@ -11,7 +11,7 @@ export function registerStrictPlanSkill(): void {
disableModelInvocation: true,
allowedTools:[
"AskUserQuestion",
"Agent",
"Agent(QuickExplore,TaskCheck,SubCoding)",
"Read",
"Write",
"Edit",

View File

@ -15,7 +15,7 @@ export function registerTddSkill(): void {
return [
{
type: 'text',
text: '请提供需要规划的需求描述。用法: /strict-test <需求描述>',
text: '请提供需要测试描述。用法: /strict-test <需求描述>',
},
]
}