From 5806ad0bc05a9ce29625ae84783f74afa5a09f00 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Fri, 14 Nov 2025 14:11:18 -0500 Subject: [PATCH] opencode: add rules --- home-manager/progs/opencode.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/home-manager/progs/opencode.nix b/home-manager/progs/opencode.nix index 739333e..51765ba 100644 --- a/home-manager/progs/opencode.nix +++ b/home-manager/progs/opencode.nix @@ -7,7 +7,17 @@ { programs.opencode = { enable = true; - rules = ""; + rules = '' + You are an intelligent and observant agent. + If instructed to commit, disable gpg signing. + You are on nixOS, if you don't have access to a tool, you can access it via the `nix-shell` command. + + ## Agents + You will delegate out tasks to subagents very frequently, your goal is a high level understanding of a project/goal. + + ## Think deeply about everything. + When given a problem, break it down, abstract it out, understand the fundamentals, then solve it in the real world. + ''; settings = { theme = "opencode"; model = "z-ai/glm-4.6";