From ab0439cbba01597d0619724b56995eb4ad783a9e Mon Sep 17 00:00:00 2001 From: m3ta-chiron Date: Sat, 14 Nov 2026 09:25:59 +0100 Subject: [PATCH] feat(coding/agents): split headless agent CLIs into cli.nix Move agent-lib and beads into a desktop-free module so servers that skip the full coding set (AZ-PRM-1) can import it on its own. Co-Authored-By: Claude Opus 5.5 --- profiles/sets/coding/agents/agents.nix | 4 ++-- profiles/sets/coding/agents/cli.nix | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 profiles/sets/coding/agents/cli.nix diff --git a/profiles/sets/coding/agents/agents.nix b/profiles/sets/coding/agents/agents.nix index b1ebceb..efe2f34 100644 --- a/profiles/sets/coding/agents/agents.nix +++ b/profiles/sets/coding/agents/agents.nix @@ -25,6 +25,8 @@ ./mcp.nix ./opencode.nix ./claude-code.nix + # headless agent CLIs (beads, agent-lib) + ./cli.nix ]; # NOTE: llm-agent packages are consumed via the `llm-agents` namespace @@ -34,9 +36,7 @@ # silently falling back to (outdated) nixpkgs attributes. home.packages = with pkgs; [ agenix-cli - agent-lib llm-agents.agent-browser - llm-agents.beads llm-agents.claude-desktop crunch docker-sbx diff --git a/profiles/sets/coding/agents/cli.nix b/profiles/sets/coding/agents/cli.nix new file mode 100644 index 0000000..7cc6dbe --- /dev/null +++ b/profiles/sets/coding/agents/cli.nix @@ -0,0 +1,11 @@ +# Headless agent CLIs — safe for servers without a desktop. +# Imported by agents.nix; servers that skip the full "coding" set (e.g. +# AZ-PRM-1 in AZ-NIX-SERVERS) can import this file on its own. +# Packages from the `llm-agents` namespace need numtide/llm-agents.nix's +# `overlays.shared-nixpkgs` in the consumer (see agents.nix). +{pkgs, ...}: { + home.packages = with pkgs; [ + agent-lib + llm-agents.beads + ]; +} -- 2.56.0