From 867699a08c29244bef177400aa4e40428dfb392c Mon Sep 17 00:00:00 2001 From: karitham Date: Wed, 16 Sep 2026 14:16:48 +0200 Subject: [PATCH] modules/opencode: drop lsp --- modules/opencode/agents/explore.md | 7 ------- modules/opencode/commands/explore.md | 10 ---------- modules/opencode/default.nix | 17 ++--------------- 3 files changed, 2 insertions(+), 32 deletions(-) delete mode 100644 modules/opencode/commands/explore.md diff --git a/modules/opencode/agents/explore.md b/modules/opencode/agents/explore.md index 9ed5902..4ec049c 100644 --- a/modules/opencode/agents/explore.md +++ b/modules/opencode/agents/explore.md @@ -29,10 +29,3 @@ Your strengths: 2. **Fall back** to `grep`, `glob`, `read` only when LSP is unavailable for the file type or returns no results. 3. Return file paths as absolute paths. 4. MUST NOT create files or modify system state. - -## Constraints - -- MUST NOT use `grep`/`glob`/`read` when an LSP operation can answer the question — imprecise tools waste context. -- MUST NOT create files or run commands that modify system state. - -Complete the user's search request efficiently and report your findings clearly. diff --git a/modules/opencode/commands/explore.md b/modules/opencode/commands/explore.md deleted file mode 100644 index ee9bbe1..0000000 --- a/modules/opencode/commands/explore.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -description: Explore and load relevant code into context using LSP -agent: explore -subtask: false ---- - -**Protocol:** Use LSP (goToDefinition, findReferences) to find and read relevant code. Tests included if relevant. End with a 3-bullet summary of what was found. No implementation. - -User wants to explore: -$ARGUMENTS diff --git a/modules/opencode/default.nix b/modules/opencode/default.nix index f40e4d1..e3aa5f1 100644 --- a/modules/opencode/default.nix +++ b/modules/opencode/default.nix @@ -26,24 +26,11 @@ let postBuild = '' wrapProgram $out/bin/${name} \ --run 'if [ -f "${opencodeEnvFile}" ]; then set -a; . "${opencodeEnvFile}"; set +a; fi' \ - --set OPENCODE_EXPERIMENTAL_LSP_TOOL true \ --set OPENCODE_DISABLE_LSP_DOWNLOAD true \ --set OPENCODE_DISABLE_AUTOUPDATE true \ --set OPENCODE_EXPERIMENTAL_MARKDOWN true \ --set OPENCODE_ENABLE_EXA true \ - --set SHELL "${lib.getExe pkgs.bash}" \ - --prefix PATH : "${ - lib.makeBinPath [ - self'.packages.golangci-lint-langserver - pkgs.nixd - pkgs.marksman - pkgs.typescript-language-server - pkgs.vscode-langservers-extracted - pkgs.yaml-language-server - pkgs.typos-lsp - pkgs.nil - ] - }" + --set SHELL "${lib.getExe pkgs.bash}" ''; }; in @@ -137,7 +124,7 @@ in } ); settings = { - lsp = { }; + lsp = false; inherit (cfg) theme; default_agent = "pair"; agent = { -- 2.51.2