Watch
0
0
Fork
You've already forked hyperhive
0

archetypes: each built-in archetype ships an icon

reviewer, android-dev and reverse-engineer set services.hyperhive.agent.icon, with
lib.mkDefault, to an SVG under nix/archetypes/icons, so an agent built from one
shows an icon in the swarm UI until its config sets another. The archetype
module-eval check requires an svg icon on each.
This commit is contained in:
iris 2026-11-11 02:18:13 +01:00 • committed by mara
commit 5cdf51fcfc

View file

@ -5,10 +5,16 @@
# `meta` fields: `description` (required), `permissions`, `limits`,
# `inference`, in the shapes `POST /api/agents` takes them, and `prompt`, the
# text the create form prefills the new agent's AGENTS.md with; see
# docs/2-handbook/swarm/archetypes.md.
# docs/2-handbook/swarm/archetypes.md. Every archetype sets
# `services.hyperhive.agent.icon` (with `mkDefault`) to an SVG in `icons/`, so
# its agents show one until their config sets another.
{
reviewer = {
module = { };
module =
{ lib, ... }:
{
services.hyperhive.agent.icon = lib.mkDefault ./icons/reviewer.svg;
};
meta = {
description = "Reviews pull requests and replies. It can run hive-forge and git (execution), and holds messaging and inbox; it has no get_agent_meta (meta).";
permissions = [
@ -20,8 +26,9 @@
};
android-dev = {
module =
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
services.hyperhive.agent.icon = lib.mkDefault ./icons/android-dev.svg;
environment.systemPackages = [
pkgs.android-tools
pkgs.gradle
@ -33,9 +40,12 @@
};
};
reverse-engineer = {
module = {
services.hyperhive.agent.rea.enable = true;
};
module =
{ lib, ... }:
{
services.hyperhive.agent.icon = lib.mkDefault ./icons/reverse-engineer.svg;
services.hyperhive.agent.rea.enable = true;
};
meta = {
description = "Reverse-engineers binaries and applications: REA and Ghidra 12.1 are installed with their MCP tools allowed. It holds the default permissions.";
};