Watch
0
0
Fork
You've already forked hyperhive
0

refactor: rename templates to agent.nix/ruth.nix, sweep stale name refs

This commit is contained in:
müde 2026-07-13 22:01:24 +02:00
commit 7c9d72b9ca
6 changed files with 28 additions and 28 deletions

View file

@ -51,14 +51,14 @@ let
};
# Agent module eval from the content-addressed nixSrc. Relative
# imports inside agent-base.nix (the ./harness module dir) resolve
# imports inside agent.nix (the ./harness module dir) resolve
# correctly against the nixSrc directory tree. `hyperhive.packages`
# stays unset — every option default that references it carries a
# `defaultText`, so the doc walk never forces the packages.
agentEval = nixosSystem {
system = pkgs.stdenv.hostPlatform.system;
modules = [
"${nixSrc}/templates/agent-base.nix"
"${nixSrc}/templates/agent.nix"
];
};
@ -155,7 +155,7 @@ let
`hyperhive.nixosModules.default` to operator host configurations
(`services.hyperhive.{enable,domain,c0re,forge,matrix,gateway}.*`).
- [per-agent options](agent.md) — options declared in
`nix/templates/harness-base.nix`, visible from every `agent.nix`
`nix/templates/harness/`, visible from every `agent.nix`
(`hyperhive.model`, `hyperhive.allowedRecipients`,
`hyperhive.extraMcpServers`, `hyperhive.frontend.*`,
`hyperhive.forge.*`, `hyperhive.matrix.*`, `hyperhive.gui.*`).

7
nix/templates/agent.nix Normal file
View file

@ -0,0 +1,7 @@
{ ... }:
{
imports = [ ./harness ];
# Entry-point for sub-agent containers. Referenced from `flake.nix`
# (`nixosConfigurations.agent-base`) and the meta-flake's
# `applied/<name>/flake.nix`.
}

View file

@ -52,7 +52,7 @@ in
these models instead of a hardcoded set.
Configure hive-wide by setting a shared default (e.g. in your
`agent-base.nix`) or per-agent to narrow the menu — for example a
`agent.nix` shared defaults) or per-agent to narrow the menu — for example a
haiku-only agent can hide `opus` and `sonnet`. The *current* model is
still set by `hyperhive.model` and remains switchable at runtime via the
UI; this option only controls which choices the picker presents.

View file

@ -1,5 +1,5 @@
# Shared scaffolding for every hyperhive harness container.
# `../agent-base.nix` and `../manager.nix` both import this; all
# `../agent.nix` and `../ruth.nix` both import this; all
# agents use the same service unit regardless of which entry-point
# they came from.
#

View file

@ -15,7 +15,7 @@
`$HIVE_DOCS_DIR/`, and appends a single pointer sentence to the agent's
system prompt so it knows the docs exist (see
`hive-ag3nt::prompt::render`). Default-on for the root/manager agent
(see `../manager.nix`), off elsewhere; any agent can flip it from its
(see `../ruth.nix`), off elsewhere; any agent can flip it from its
`agent.nix`.
'';

14
nix/templates/ruth.nix Normal file
View file

@ -0,0 +1,14 @@
{ lib, ... }:
{
# Entry-point for the privileged root agent (ruth). Referenced from
# `flake.nix` (`nixosConfigurations.ruth`) and the meta-flake's
# `applied/ruth/flake.nix`.
imports = [ ./harness ];
# The root/manager bootstraps a fresh hive, so it gets the hyperhive
# reference docs made available by default (readable at
# `$HIVE_DOCS_DIR/`, added via `claude --add-dir`). `mkDefault` so a
# manager's own `agent.nix` can still turn it off. Other agents default
# off.
hyperhive.docs.enable = lib.mkDefault true;
}