Declarative agent configuration
Source:
docs/08-agent-cli.mdat2081f31a099e· docs version 0.4.0
The interactive tentaflake agent wizard was removed. Agent definitions are
reviewable inputs: use my-agents.nix for the full builder API or
agents.json for the smaller data schema.
Nix definitions
Section titled “Nix definitions”Start from my-agents.nix.example:
cp my-agents.nix.example my-agents.nixEach builder returns a NixOS module. The repository auto-imports the resulting
list when my-agents.nix exists.
{ mkHermesAgent, mkZeroClawAgent, ... }:[ (mkHermesAgent { name = "assistant"; autoStart = false; }) (mkZeroClawAgent { name = "research"; autoStart = false; settings.schema_version = 3; })]This evaluates under the default balanced profile. The capsules have no
direct network and receive no real credentials. Keep them stopped until a
reviewed broker path exists.
Use mkHermesAgent or mkZeroClawAgent according to the runtime contract.
See the builder comments and example file for runtime-specific options.
JSON definitions
Section titled “JSON definitions”Copy agents.json.example, keep only the agents you need, and validate it:
cp agents.json.example agents.jsonjq -e . agents.jsonagentsFromData turns the committed, non-secret data into Hermes and ZeroClaw
modules. The JSON file may name an envFile; it must never contain the secret
value itself.
The current JSON compatibility schema always wires environment files and, for ZeroClaw, ports. It therefore evaluates only when the host deliberately sets:
tentaflake.security.profile = "dev";This is a migration bridge, not a secure 24/7 configuration. Prefer the Nix builder API for balanced capsules.
Apply deliberately
Section titled “Apply deliberately”First evaluate or build the selected host:
nix build \ .#nixosConfigurations.tentaflake.config.\system.build.toplevel \ --no-linkActivation is a separate runtime operation. Review the build result and target
before using nixos-rebuild switch or tentaflake rebuild.
Verify
Section titled “Verify”After an explicitly authorized activation:
tentaflake statustentaflake doctortentaflake doctor --securitysystemctl status \ docker-hermes-assistant.serviceFor Podman, unit names start with podman-.
Remove an agent
Section titled “Remove an agent”Delete its declarative entry and rebuild deliberately. State directories and secret files are not deleted automatically. Decide separately whether they must be archived, retained, or removed.