From 3ec12e649d23ed997d9790cda248db541bb408de Mon Sep 17 00:00:00 2001 From: Christoph Schmatzler Date: Wed, 4 Mar 2026 19:40:53 +0000 Subject: [PATCH] extract global AGENTS.md to file and add nushell scripting rule --- profiles/opencode.nix | 9 +-------- profiles/opencode/AGENTS.md | 11 +++++++++++ 2 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 profiles/opencode/AGENTS.md diff --git a/profiles/opencode.nix b/profiles/opencode.nix index 2a831ca..4107725 100644 --- a/profiles/opencode.nix +++ b/profiles/opencode.nix @@ -71,14 +71,7 @@ source = ./opencode/plugin; recursive = true; }; - "opencode/AGENTS.md".text = '' - # Global AGENTS.md - - ## Version Control - - - Use `jj` for VCS, not `git` - - `jj tug` is an alias for `jj bookmark move --from closest_bookmark(@-) --to @-` - ''; + "opencode/AGENTS.md".source = ./opencode/AGENTS.md; "opencode/oh-my-opencode.json".text = builtins.toJSON { "$schema" = "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json"; diff --git a/profiles/opencode/AGENTS.md b/profiles/opencode/AGENTS.md new file mode 100644 index 0000000..644ab5e --- /dev/null +++ b/profiles/opencode/AGENTS.md @@ -0,0 +1,11 @@ +# Global AGENTS.md + +## Version Control + +- Use `jj` for VCS, not `git` +- `jj tug` is an alias for `jj bookmark move --from closest_bookmark(@-) --to @-` + +## Scripting + +- Always use Nushell (`nu`) for scripting +- Never use Python, Perl, Lua, awk, or any other scripting language