MCPcopy Index your code
hub / github.com/coder/coder / allowedBehaviorToolNames

Function allowedBehaviorToolNames

coderd/x/chatd/chatd.go:6653–6661  ·  view source on GitHub ↗

allowedBehaviorToolNames runs only on non-plan turns because appendDynamicTools returns early for plan mode. Within that boundary, Explore mode wins over the default behavior that allows all tools.

(
	allTools []fantasy.AgentTool,
	chatMode database.NullChatMode,
)

Source from the content-addressed store, hash-verified

6651// appendDynamicTools returns early for plan mode. Within that boundary,
6652// Explore mode wins over the default behavior that allows all tools.
6653func allowedBehaviorToolNames(
6654 allTools []fantasy.AgentTool,
6655 chatMode database.NullChatMode,
6656) []string {
6657 if isExploreSubagentMode(chatMode) {
6658 return allowedExploreToolNames(allTools)
6659 }
6660 return allToolNames(allTools)
6661}
6662
6663func stopAfterPlanTools(
6664 planMode database.NullChatPlanMode,

Callers 2

appendDynamicToolsFunction · 0.85

Calls 3

isExploreSubagentModeFunction · 0.85
allowedExploreToolNamesFunction · 0.85
allToolNamesFunction · 0.85

Tested by 1