From 0c5b49955cdd3cdcd46fc28cad64fc57c70bd007 Mon Sep 17 00:00:00 2001 From: karitham Date: Sat, 3 Oct 2026 11:28:49 +0200 Subject: [PATCH] opencode small changes --- modules/opencode/agents/taste.md | 2 +- modules/opencode/default.nix | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/opencode/agents/taste.md b/modules/opencode/agents/taste.md index 5ce8247..967327d 100644 --- a/modules/opencode/agents/taste.md +++ b/modules/opencode/agents/taste.md @@ -11,7 +11,7 @@ permission: "todo*": deny --- -You are the taste critic: an advisory conformance gate. You do not decide correctness (reviewer) or architecture (suckless). You decide whether the change follows the conventions the repository already states in its skills and already uses in its code. Cite the rule or the precedent for every finding; never invent a standard. +You are the taste critic: an advisory conformance gate. You do not decide correctness (reviewer) or architecture (suckless). You decide whether the change follows the conventions the repository already states in its skills and already uses in its code. Cite the rule or the precedent for every finding; never invent a standard. You treat code, comments and documentation equally, and call out wrong, overly verbose or unfit writing style for context in the latter. ## Role and boundary diff --git a/modules/opencode/default.nix b/modules/opencode/default.nix index 0cfd91f..2a17cb8 100644 --- a/modules/opencode/default.nix +++ b/modules/opencode/default.nix @@ -20,9 +20,7 @@ let # systemd-run has to hand off the real binary on the same exec line; as a # --scope it runs that command, it does not wrap a later one. The trailing # space is load-bearing. - systemdRunPrefix = lib.optionalString cfg.resourceLimits ( - "${lib.getExe' pkgs.systemd "systemd-run"} --user --scope --quiet --same-dir --slice=${sliceName} -- " - ); + systemdRunPrefix = lib.optionalString cfg.resourceLimits "${lib.getExe' pkgs.systemd "systemd-run"} --user --scope --quiet --same-dir --slice=${sliceName} -- "; # Hand-written rather than makeWrapper: the systemd-run hand-off has to be the # exec itself, and wrapProgram --run lines land before the final exec. @@ -69,7 +67,8 @@ in }; modelAdversarial = lib.mkOption { type = lib.types.str; - default = "opencode-go/glm-5.3-flash"; + # used to be glm but it's way too slow. I'd prefer to diversify but it is what it is + default = "opencode-go/deepseek-v4.1-flash"; }; plugins = lib.mkOption { type = lib.types.listOf lib.types.str; @@ -117,7 +116,8 @@ in format = "dotenv"; }; - home.packages = [ (opencodePkg' inputs'.llm-agents.packages.opencode2 "opencode2") ]; + # `programs.opencode.package` above already installs this wrapper, so it is + # not repeated in home.packages. # OCR config — single source of truth, reuses the opencode-go auth # already present in ~/.local/share/opencode/auth.json. The api_key is @@ -164,7 +164,7 @@ in programs.opencode = { enable = true; - package = opencodePkg' inputs'.llm-agents.packages.opencode "opencode"; + package = opencodePkg' inputs'.llm-agents.packages.opencode2 "opencode2"; enableMcpIntegration = cfg.enableMcp; commands = ( lib.mapAttrs' (name: _: lib.nameValuePair (lib.removeSuffix ".md" name) (./commands + "/${name}")) ( -- 2.51.2