fix(agents): remove isMainThread flag and update agent descriptions and tool restrictions
This commit is contained in:
parent
75c510cb9d
commit
28b0ecfaf2
|
|
@ -258,5 +258,6 @@ export const STRICT_PLAN_AGENT: BuiltInAgentDefinition = {
|
||||||
// 通过斜杠命令从主线程启动时,使 resolveAgentTools 跳过 filterToolsForAgent,
|
// 通过斜杠命令从主线程启动时,使 resolveAgentTools 跳过 filterToolsForAgent,
|
||||||
// 从而保留主线程完整工具集(包括 Agent 工具)。
|
// 从而保留主线程完整工具集(包括 Agent 工具)。
|
||||||
isMainThread: true,
|
isMainThread: true,
|
||||||
|
visibleTo: ['None'],
|
||||||
getSystemPrompt: () => getStrictPlanSystemPrompt(),
|
getSystemPrompt: () => getStrictPlanSystemPrompt(),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -117,10 +117,10 @@ Start by confirming the user requirements, then proceed with test case generatio
|
||||||
export const TDD_AGENT: BuiltInAgentDefinition = {
|
export const TDD_AGENT: BuiltInAgentDefinition = {
|
||||||
agentType: 'TDD',
|
agentType: 'TDD',
|
||||||
whenToUse:
|
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:[
|
tools:[
|
||||||
"AskUserQuestion",
|
"AskUserQuestion",
|
||||||
"Agent(QuickExplore,TaskCheck,SubCoding)",
|
"Agent",
|
||||||
"Read",
|
"Read",
|
||||||
"Write",
|
"Write",
|
||||||
"Edit",
|
"Edit",
|
||||||
|
|
|
||||||
|
|
@ -207,7 +207,7 @@ function getWikiSystemPrompt(): string {
|
||||||
export const WIKI_AGENT: BuiltInAgentDefinition = {
|
export const WIKI_AGENT: BuiltInAgentDefinition = {
|
||||||
agentType: 'WIKI',
|
agentType: 'WIKI',
|
||||||
whenToUse:
|
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:[
|
tools:[
|
||||||
"Agent(WikiCatalogueDesign,WikiDocumentGenerate,WikiIndexGeneration,WikiProjectAnalyze)",
|
"Agent(WikiCatalogueDesign,WikiDocumentGenerate,WikiIndexGeneration,WikiProjectAnalyze)",
|
||||||
"Read",
|
"Read",
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ export function registerProjectWikiSkill(): void {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
type: 'text',
|
type: 'text',
|
||||||
text: '请提供需要规划的需求描述。用法: /strict-project-wiki <需求描述>',
|
text: '请提供技术文档的需求描述。用法: /strict-project-wiki',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ export function registerStrictPlanSkill(): void {
|
||||||
disableModelInvocation: true,
|
disableModelInvocation: true,
|
||||||
allowedTools:[
|
allowedTools:[
|
||||||
"AskUserQuestion",
|
"AskUserQuestion",
|
||||||
"Agent",
|
"Agent(QuickExplore,TaskCheck,SubCoding)",
|
||||||
"Read",
|
"Read",
|
||||||
"Write",
|
"Write",
|
||||||
"Edit",
|
"Edit",
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ export function registerTddSkill(): void {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
type: 'text',
|
type: 'text',
|
||||||
text: '请提供需要规划的需求描述。用法: /strict-test <需求描述>',
|
text: '请提供需要测试描述。用法: /strict-test <需求描述>',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user