| Filename | Latest commit message | Latest commit date |
|---|---|---|
Each agent row on the hive dashboard, and the agent page's link menu, linked to the agent's forge profile and its config repo. Both are gone, with what only they used: - hive-agent no longer builds the two links, the `Forge` link kind, or the `forge_public_url` field of its state, and no longer reads `HIVE_FORGE_PUBLIC_URL`. The agent page's link menu and the dashboard row's icon strip (which skips a forge link an agent not yet rebuilt still sends) drop their forge handling. - hive-c0re's dashboard state no longer carries `forge_public_url`. - `HIVE_FORGE_PUBLIC_URL` is no longer forwarded to agents through the meta flake (the forwarded-variable list, its test fixture, the controller's settings and the VM test), so the next meta flake render differs by that one line. hive-c0re still reads it for the forge URL a hive publishes, so `swarm.forge.publicUrl` stays, with its description corrected. - The docs stop describing the links. |
||
| .. | ||
| 1-getting-started | ||
| 2-handbook | ||
| 4-implementation | ||
| 5-project | ||
| README.md | ||
hyperhive docs
Depth reference for hyperhive — the substrate, not the pitch (that's the top-level README / website). Every page here stands alone; pick the one matching your task rather than reading top to bottom. The docs sit in five sections, by what the reader wants:
- Getting started: what hyperhive is, and how to bring one up.
- Handbook: running and using a hive and a swarm.
- Options reference: every NixOS option.
- Implementation: how it works inside.
- Project: how the project itself works.
1. Getting started
- Adding hyperhive to a NixOS flake? Which options does it need? →
1-getting-started/nixos.md. - Bringing a fresh swarm online? →
1-getting-started/setup.md(the hand steps after the first switch).
2. Handbook
Using and operating hyperhive, in the three layers that make it up, plus the accounts an agent can hold outside it. Some pages here still carry implementation detail next to the operator content; sorting those out is later work.
Swarm
The services that exist once per swarm. Start at
2-handbook/swarm/.
- How are two hives connected into a swarm? →
2-handbook/swarm/(peer hives, TLS trust). - What does the swarm UI show, and what does
swarmctldo? →2-handbook/swarm/ui.mdand2-handbook/swarm/swarmctl-cli.md(the generated flag reference). - How do per-agent forge accounts work? What does
forge_notifypoll, and how does it format wake messages? →2-handbook/swarm/forge.md(the swarm's Forgejo);4-implementation/agent-tools/forge.mdfor thehive-forgeCLI verbs agents actually call. - How does the matrix-tuwunel container work? Multiple accounts per
agent? →
2-handbook/swarm/matrix.md(the homeserver);4-implementation/agent-tools/matrix.mdfor the MCP tool surface andservices.hyperhive.agent.matrixAccounts. - What's
/knowledge? How does the swarm-wide knowledge repo sync, and how to contribute a document? →2-handbook/swarm/knowledge.md. - Who mints each credential, who reads it, and how does it rotate — and
where's that shape headed? →
2-handbook/swarm/credentials.md(the rules, where each secret goes and why) and2-handbook/swarm/credentials-reference.md(the tables: each credential, current state and target state, and where each file lives today). - How does an agent get a prompt at set times, and why doesn't it fire
twice after downtime? →
2-handbook/swarm/schedules.md. - How to create an agent from a ready-made set of permissions and
settings? →
2-handbook/swarm/archetypes.md. - How to log an agent in to claude from the swarm UI, and why doesn't a
stale stored copy log it out again? →
2-handbook/swarm/claude-login.md.
Hives
The host a hive runs on and the operator's tools for it. Start at
2-handbook/hives/.
- What does the dashboard look like, and how to use it? →
2-handbook/hives/, with the full tab-by-tab reference indashboard. - What does
hivectldo? Provisioning, gateway users, container shells? →2-handbook/hives/hivectl.md(the curated guide);2-handbook/hives/hivectl-cli.mdfor the exhaustive, autogenerated flag reference. The agents' own tool surface is in4-implementation/agent-tools/. - What's the operator/agent trust boundary? What's a permission? →
2-handbook/hives/boundary.md.
Agents
One agent: its roster entry, state, config and page. Start at
2-handbook/agents/.
- How do config changes flow from manager to operator to container? →
2-handbook/agents/config-changes.md(config PRs, the meta flake, system messages). - What state survives destroy / purge / restart? →
2-handbook/agents/persistence.md. - Who can do what to whom — the agent roster and privilege? →
2-handbook/agents/agent-roster.md. - What does an agent's own page show? →
2-handbook/agents/web-page.md. - Agent trust model, prompt-injection threat model, credential
isolation? →
2-handbook/agents/security.md.
External accounts
Accounts outside the swarm that an agent can hold. Start at
2-handbook/external-accounts/.
- How to give an agent a GitHub account (
gh+git push)? how's the PAT injected? →2-handbook/external-accounts/github.md(operator content up top; thegh/git-push + notification-poller mechanics are in a collapsed "Implementation" section at the bottom). - How to give an agent GitLab accounts (
glab+git push, more than one instance)? →2-handbook/external-accounts/gitlab.md.
3. Options reference
The autogenerated NixOS options reference (every services.hyperhive.* /
hyperhive.* option, host and agent) lives on the website, built from the
module declarations: the options site.
Nothing of it sits in this tree.
4. Implementation
Agent tools
- What can an agent do inside its container? bash, subagent, forge, matrix, and the
hive-forge,swarm-logsandswarm-metricsCLI references? →4-implementation/agent-tools/.
Turn loop, scheduler, CI, observability
- How does claude get its prompt, and what tools does it have? →
4-implementation/turn-loop/— the loop, binary shape, turn outcomes; sub-pages:claude-invocation,config,mcp. - what's the job queue, as a general idea (not hive-c0re specifics)? →
4-implementation/scheduler/jobq.md— operator-facing, no implementation detail. - How does the rebuild queue work? What are the concrete step kinds,
queue sources, scheduler internals? →
4-implementation/scheduler/coordinator.md. - How does the CI runner work? How does it register? →
4-implementation/scheduler/ci.md. - How are Claude Code metrics (tokens, cost, tool calls) exported to
Prometheus/Grafana? →
4-implementation/scheduler/observability.md.
Networking
- What nginx vhosts does the gateway serve? How does matrix
discovery work? →
4-implementation/networking/gateway.md. - How does DNS resolution work in agent containers? What's the
bridge network for? →
4-implementation/networking/network.md. - Where do agent snapshots go? How does the swarm's
btrfs receiveendpoint authenticate a pushing hive? →4-implementation/networking/snapshot-store.md.
Swarm services
- How does the secret store come up, who writes its grants, how's it
sealed? →
4-implementation/swarm/bao.md. - How to set an agent's model or effort from the swarm, and what happens
to its own pick? →
4-implementation/swarm/inference.md. - How does a PR get checked against its repo's own yes/no rules before
a full review? →
4-implementation/swarm/review-classifier.md. - Does an agent config PR build before it's merged? →
4-implementation/swarm/builder.md. - How long do CI runs take, per repo and PR, and where does the board get
it? →
4-implementation/swarm/ci-metrics.md. - How does an agent get a todo when someone assigns it an issue, and lose it
when the issue closes? →
4-implementation/swarm/notify-router.md.
Trust boundary mechanics
- How does systemd activate
hive-priv, and how does the per-agent socket directory get its owner and mode? →4-implementation/trust-boundary/boundary-mechanism.md. - How does
hive-c0rerun unprivileged and delegate root operations? →4-implementation/trust-boundary/hive-c0re-privilege.md. - How do in-container nix builds stay apart from the credentials? →
4-implementation/trust-boundary/nix-builds.md.
Web UI internals
- How's the dashboard built, and how does the terminal render? →
shape,css-vars,terminal-rendering.
Crate reference
- What does a specific Rust crate do, on its own terms? →
4-implementation/crates/— every workspace crate's ownREADME.md, one level up from source; the crate itself is still the source of truth, this is just a walkable mirror.
5. Project
How the project itself works: processes, conventions, design guides.
- Naming, commit style, wire protocol, the
data-asyncpattern? →5-project/process/conventions.md. - Why does the nspawn flag look like that? →
5-project/process/gotchas.md(bind mounts, conf flags, other NixOS/nspawn quirks). - What does a PR review verdict actually gate? →
5-project/process/pr-review-gate.md. - How are the web UIs designed to look and behave? →
5-project/web-ui/design-guide.md.