fix: 明确告知 agent SearchExtraTools/ExecuteExtraTool 是核心工具,已在工具列表中

- prompts.ts: 核心工具列表显式加入 SearchExtraTools, ExecuteExtraTool
- claude.ts: 非 delta 路径提示强调这两个工具可直接调用
- messages.ts: delta 路径渲染强调这两个工具已在工具列表中
- SearchExtraToolsTool/prompt.ts: 加入完整两步工作流示例
- ExecuteTool/prompt.ts: 加入完整两步工作流示例
This commit is contained in:
claude-code-best
2026-05-19 16:23:20 +08:00
parent 27b334aceb
commit a05242cef0
5 changed files with 58 additions and 24 deletions

View File

@@ -4593,7 +4593,7 @@ You have exited auto mode. The user may now want to interact more directly. You
const parts: string[] = []
if (attachment.addedLines.length > 0) {
parts.push(
`The following deferred tools are now available via SearchExtraTools:\n${attachment.addedLines.join('\n')}`,
`The following deferred tools are now available:\n${attachment.addedLines.join('\n')}\n\nTo use these tools, call SearchExtraTools then ExecuteExtraTool — both are core tools already in your tool list. Call them directly, do NOT use Bash/Glob to find them.`,
)
}
if (attachment.removedNames.length > 0) {