mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 14:25:51 +00:00
feat: 将 Agents/Teams 工具纳入 Tool Search 按需发现
将 TeamCreate、TeamDelete、SendMessage 从 CORE_TOOLS 移除, 使其成为 deferred 工具,通过 ToolSearch 按需发现以减少 context token。 swarm 模式下 SendMessage 保持 always loaded,TeamCreate/TeamDelete 在 swarm 未启用时调用返回启用提示。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -553,7 +553,8 @@ async function handlePlanRejection(
|
||||
export const SendMessageTool: Tool<InputSchema, SendMessageToolOutput> =
|
||||
buildTool({
|
||||
name: SEND_MESSAGE_TOOL_NAME,
|
||||
searchHint: 'send messages to agent teammates (swarm protocol)',
|
||||
searchHint:
|
||||
'send message to teammate agent, broadcast, inter-agent communication, swarm messaging, agent coordination',
|
||||
maxResultSizeChars: 100_000,
|
||||
|
||||
userFacingName() {
|
||||
@@ -564,9 +565,10 @@ export const SendMessageTool: Tool<InputSchema, SendMessageToolOutput> =
|
||||
return inputSchema()
|
||||
},
|
||||
shouldDefer: true,
|
||||
alwaysLoad: isAgentSwarmsEnabled(),
|
||||
|
||||
isEnabled() {
|
||||
return isAgentSwarmsEnabled()
|
||||
return true
|
||||
},
|
||||
|
||||
isReadOnly(input) {
|
||||
|
||||
Reference in New Issue
Block a user