summaryrefslogtreecommitdiffhomepage
path: root/internal/llm/agent
diff options
context:
space:
mode:
authorKujtim Hoxha <[email protected]>2025-04-04 14:23:08 +0200
committerKujtim Hoxha <[email protected]>2025-04-04 14:23:08 +0200
commit6bb1c84f7f7f0430f2808d50c533e923aae4c787 (patch)
tree2a92f077570d505d5ae0387660a0d246de0fa43a /internal/llm/agent
parenteb9877ee20c44b7cd34f78e9110d315db71977f6 (diff)
downloadopencode-6bb1c84f7f7f0430f2808d50c533e923aae4c787.tar.gz
opencode-6bb1c84f7f7f0430f2808d50c533e923aae4c787.zip
Improve Sourcegraph tool with context window and fix diagnostics
- 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 <[email protected]>
Diffstat (limited to 'internal/llm/agent')
-rw-r--r--internal/llm/agent/task.go1
1 files changed, 1 insertions, 0 deletions
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,