mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-17 22:05:50 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user