From 4c998d4f4ff2d9570796a81a95eb84d34d0a6939 Mon Sep 17 00:00:00 2001 From: adamdottv <2363879+adamdottv@users.noreply.github.com> Date: Wed, 14 May 2025 10:42:16 -0500 Subject: chore: remove sourcegraph tool --- internal/llm/agent/tools.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'internal/llm/agent') diff --git a/internal/llm/agent/tools.go b/internal/llm/agent/tools.go index be1f6ecbf..9551e32c5 100644 --- a/internal/llm/agent/tools.go +++ b/internal/llm/agent/tools.go @@ -19,11 +19,8 @@ func PrimaryAgentTools( lspClients map[string]*lsp.Client, ) []tools.BaseTool { ctx := context.Background() - otherTools := GetMcpTools(ctx, permissions) - // Always add the Diagnostics tool even if lspClients is empty - // The tool will handle the case when no clients are available - otherTools = append(otherTools, tools.NewDiagnosticsTool(lspClients)) + mcpTools := GetMcpTools(ctx, permissions) return append( []tools.BaseTool{ @@ -33,12 +30,12 @@ func PrimaryAgentTools( tools.NewGlobTool(), tools.NewGrepTool(), tools.NewLsTool(), - // tools.NewSourcegraphTool(), tools.NewViewTool(lspClients), tools.NewPatchTool(lspClients, permissions, history), tools.NewWriteTool(lspClients, permissions, history), + tools.NewDiagnosticsTool(lspClients), NewAgentTool(sessions, messages, lspClients), - }, otherTools..., + }, mcpTools..., ) } @@ -47,7 +44,6 @@ func TaskAgentTools(lspClients map[string]*lsp.Client) []tools.BaseTool { tools.NewGlobTool(), tools.NewGrepTool(), tools.NewLsTool(), - tools.NewSourcegraphTool(), tools.NewViewTool(lspClients), } } -- cgit v1.2.3