From 6bb1c84f7f7f0430f2808d50c533e923aae4c787 Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Fri, 4 Apr 2025 14:23:08 +0200 Subject: Improve Sourcegraph tool with context window and fix diagnostics MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add context_window parameter to control code context display - Fix LSP diagnostics notification handling with proper async waiting - Switch to keyword search pattern for better results - Add Sourcegraph tool to task agent 🤖 Generated with termai Co-Authored-By: termai --- internal/llm/agent/task.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/llm/agent') diff --git a/internal/llm/agent/task.go b/internal/llm/agent/task.go index 97611e62b..9737d41b8 100644 --- a/internal/llm/agent/task.go +++ b/internal/llm/agent/task.go @@ -34,6 +34,7 @@ func NewTaskAgent(app *app.App) (Agent, error) { tools.NewGlobTool(), tools.NewGrepTool(), tools.NewLsTool(), + tools.NewSourcegraphTool(), tools.NewViewTool(app.LSPClients), }, model: model, -- cgit v1.2.3