/waaagh:hive-learningsfrom waaagh
Push waaagh's operational learnings and the owner's way of operating into their Hive (hive.codes) account, and keep them current: the "waaagh operations" Brain (every campaign's learnings, rendered by hive-brain.sh), an optional operating-model Brain, the Workers standing instructions, and the spectra MCP server Hive runs in its VMs for load awareness. Updates Hive through the browser (Hive has no API for these), verifies, and records the sync. USE WHEN the user wants to sync, push, upload or refresh waaagh learnings or their operating rules in Hive, change Hive's standing worker instructions, update the spectra server in Hive, when hive-brain.sh status says stale, or after a learnings consolidation pass.
Ships in waaagh. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Everything this skill pushes has a source file on the host, and Hive is only ever a copy of that
source. SCRIPTS below is ../orchestrate/scripts, relative to this skill's base directory;
HIVE is ~/.claude/orchestrate/hive/ (under ORCHESTRATE_STATE_DIR when set), the owner's own
files, which the plugin never ships.
| In Hive | Where | Source here |
|---|---|---|
| waaagh operations Brain | Settings → Memory & Brains | "$SCRIPTS/hive-brain.sh" render (every repository's learnings under ~/.claude/orchestrate/*/learnings/); its id is in hive-brain.sh status |
| Operating-model Brain (optional: the owner's standing rules for agents) | Settings → Memory & Brains | $HIVE/operating-model.md; its name and id are a row of $HIVE/brains.tsv (name<TAB>id) |
| Workers standing instructions (every new worker's prompt, 4000-character limit) | Settings → Workers → Custom instructions → Workers | $HIVE/worker-instructions.txt |
| spectra MCP server (a command Hive runs in each VM) | Settings → Skills & MCP | spectra/hive-mcp-arg.txt here (the sh -c argument) |
hive-brain.sh's self-test is bats "$SCRIPTS/hive-brain.bats". The hive-cloud-agent skill
passes the waaagh operations Brain plus every id in brains.tsv as brainIds on launch.
Hive has no API for any of these: neither the hive MCP server nor the public REST API
(https://hive.codes/api/v1/openapi.json) can read or write Brains, worker instructions or MCP
servers. The settings pages on hive.codes are the only writer, so pushes run in the user's
browser, where they are signed in to Hive (Claude in Chrome: load its skill first; work in a new
tab and close it at the end). Do not write through Hive's internal /api/... endpoints; reading
one to verify is fine.
learning.sh (supersede, retire) on the host; change the
operating model or worker instructions by editing the file in $HIVE, after the user agrees to
the change.hive-brain.sh render refuses (exit 3) when a line looks
like a token or key; fix that learning, do not filter the output by hand. Check the other files
the same way before a push: no tokens, emails or home-directory paths.N / 4000) and apply
to every worker started after the save, scheduled runs included. Running workers keep the old
ones. Put the rules every brief would otherwise repeat here (one issue per worker, low-disk
builds, check spectra's load before heavy builds, file issues on GitHub), so briefs stay
short."$SCRIPTS/hive-brain.sh" status. stale=no: say so and stop. never or
yes: go on. Note brain_id and current_sha."$SCRIPTS/hive-brain.sh" render --out "<scratchpad>/waaagh-brain.md". Read the file: it is
the exact text to put in the Brain.https://hive.codes/settings/memory and click its entry in the Brain
library. With no ledger entry and no Brain of that name: Create Brain, set Brain name
and the description ("Operational learnings from waaagh campaigns: lane safety, devices, CI and
per-repository hazards. Suggest for any worker doing parallel-lane delivery work."), then
Save details.form_input. The editor saves on its own: the
status beside the name moves to saved · v<N+1>.read_network_requests with pattern
/api/brains/brain- after selecting the Brain; the id is the last path segment."$SCRIPTS/hive-brain.sh" record --sha <current_sha> --brain "waaagh operations" --brain-id <id>. status then says stale=no.Only when $HIVE/operating-model.md exists. Same steps 3 to 6 with that file as the text and the
Brain named as its brains.tsv row says (description: "The owner's standing rules for agent work:
autonomy and decisions, priorities, lanes, git, PRs and evidence, tests, review, CI and merging,
issues. Suggest for every worker."). Add or update its brains.tsv row with the id. There is no
ledger for it: compare the file with the Brain (Verify) to know whether a push is needed.
Open https://hive.codes/settings/workers. Leave Applies to on Every hive. Set the
Workers textarea (placeholder "e.g. Run the focused tests before the full suite…") to
$HIVE/worker-instructions.txt with form_input, check the counter is under 4000, click Save
instructions, reload and read the value back. Leave the Your hive box and the worker
defaults (delivery, branch names, extra steps) as they are unless the user asks: the defaults are
"Merge when checks pass" (merge-when-green, seen 2026-11-28) and goal-<id> branches, so a
launch that must not merge passes workerOptions.delivery: "pull-request" itself.
Hive runs it in each session VM as sh -c '<spectra/hive-mcp-arg.txt>', with a 60 s startup
timeout. The script installs spectra's pinned Linux release (checksum-verified against the
release's checksums.txt) into $HOME/.local/share/spectra-<version> on first use, then execs
spectra-mcp on stdio. Hive starts the command with HOME unset, so the script resolves a
home itself (getent passwd, else $TMPDIR); a plain $HOME fails with "HOME: parameter not
set".
load gives the admit/hold/backoff verdict. It is cgroup-aware
(effective_cpus), but its limit still scales with the host's CPU count, and its default
8 GiB free-memory floor holds a small VM: pass min_free_gb / max_load_per_cpu sized to the
VM. memory, system, process, orphans, lineage, owner also work on Linux; the macOS-only
tools (inspect_app, logs, services, timemachine, updates) do not.v=v0.1.3 in spectra/hive-mcp-arg.txt by PR, test it in a Linux container
with env -i (no HOME) on amd64 and arm64, then paste it as argument 2 under Edit spectra,
save, and click Test.Check in the page with javascript_tool, returning only true/false or numbers (hashes or text
returned out of the page may be blocked). Hive normalizes the Markdown it saves: it drops trailing
newlines and inserts a blank line after headings. So compare the non-blank lines: in the page, join
the textarea value's non-blank lines with \n, add a final \n, hash it with
crypto.subtle.digest("SHA-256", …), and compare it with the same hash of the source file
(python3 -c locally). A mismatch: set the text again once; still wrong, stop and report.
learning.sh consolidate --done, and whenever learning.sh add wrote a global learning.hive-cloud-agent skill checks hive-brain.sh status).Hive marks an account's first Brain as its default (isDefault). Change which Brain is the default
only when the user asks; hive-cloud-agent passes every Brain id in brainIds, so a worker it
launches gets them whichever is the default.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kaeawc/waaagh --plugin waaagh8 skills in this plugin
/hive-cloud-agentUse Hive (hive.codes) as a cloud agent through the hive MCP server: launch a Hive worker on a repository with a self-contained brief and the waaagh operations Brain, follow it, answer its questions, read its diff and PR, steer, stop or take it over locally, run investigations and scheduled jobs. USE WHEN the user wants to send work to Hive, launch or follow a Hive worker, list Hive workers, answer a Hive question, hand a Hive session off to or back from this machine, or dispatch cloud-ready waaagh issues to Hive instead of Claude Code cloud routines./manage-hive-workerManage Hive (hive.codes) workers that are already running: query them, follow them cheaply, surface their questions to the user, sort their decisions and blockers, steer, stop, take over or hand back. USE WHEN the user asks "what are my Hive workers doing", "anything need me in Hive", "check on / follow worker X", "what did the orchestrator say", "answer the Hive question", "tell the worker to ...", "stop / cancel that worker", "is it stuck", "take over this Hive session", "hand it back", or pastes a Hive session link or id./orchestrateRun a repository's delivery loop with parallel agents: plan from the issue tracker, implement in isolated lanes, review, merge, and verify what merged. Claude subagents do all of it: a Sonnet lane implements routine, fully specified work and an Opus lane implements judgment work, each writing its code and tests in its own worktree; Haiku scouts and validates independently, Opus is the one independent reviewer per lane, Fable judges concepts, and the orchestrator commits and pushes. Work can also go to Hive workers and Claude cloud routines, steered alongside the local lanes. Standing single-pass roles — merge bot, rebase bot, issue-hygiene bot, post-merge verification — run from brief templates and tested scripts, with a lane-count policy (16/12/4), a conservative merge policy that switches to a fast path above 20 open PRs, and durable campaign state under ~/.claude/orchestrate/<owner>__<repo>/. Also covers one writer per branch, jj vs Git isolation, fingerprint-keyed results, excerpted logs, bounded CI polling, and claim-based takeover of the user's own open PRs. USE WHEN delegating nontrivial or parallel work, running a multi-lane campaign over issues and PRs, choosing a lane/model/effort, splitting work between local lanes, Hive workers and cloud routines, validating or reviewing delegated work, driving PRs through feedback, CI and merge, triaging or deduplicating issues for planning, scheduling post-merge verification, or controlling session cost.Other plugins' skills for the same job