/waaagh:hive-cloud-agentfrom waaagh
Use 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.
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.
None: SKILL.md is the whole skill.
Hive runs coding agents in its own cloud VMs. Each worker (a goal session) gets a repository, a
goal and a branch, and by default opens one pull request. This machine talks to Hive through the
hive MCP server (https://hive.codes/mcp), so every step below is an mcp__hive__* tool call.
Hive's workers are an extra cloud lane for a waaagh campaign (../orchestrate/SKILL.md, "Engines"):
they take cloud-ready work, never device work.
Day-to-day following, questions, steering and takeover of running workers is manage-hive-worker;
names and sidebar placement is organize-hive-worker; the Brains and standing instructions workers
start with are hive-learnings.
SCRIPTS below is ../orchestrate/scripts, relative to this skill's base directory.
The server is registered at user scope and signs in with OAuth, so no API key is stored:
claude mcp add --scope user --transport http hive https://hive.codes/mcp
claude mcp login hive # interactive terminal: approve the request on hive.codes
A session started before the login does not see the tools; start a new one. Check with
hive_api_info (version v1; the OAuth grant shows as read and write scopes for sessions,
workspaces, agents, jobs, investigations and practices) and hive_workers. A 401 means
the sign-in expired or was revoked under Settings → Developer → Connected apps: run
claude mcp login hive again. Never paste a Hive key (hv_live_…) into chat, a brief or a file.
merge-when-green), which merges before the campaign's review can hold the PR. Launch with
workerOptions.delivery: "pull-request" unless the owner chose merge-when-green for the
campaign; then follow the draft hold in ../orchestrate/SKILL.md ("Engines") for fix-first
reviews. hive_merge_pull_request only when the user asks for it in so many words.hive-learnings), not in every brief.gh issue create on the GitHub repository." The same holds for anything you file yourself.hive_answer_question only from
the owner's own words in this conversation or an owner decision already recorded
(decision.sh); otherwise relay the question to the user verbatim and wait.hive_cancel_session, hive_cancel_job, hive_delete_workspace and
hive_delete_investigation need the user's go-ahead for that specific item.hive_wait_for and hive_follow --waitSeconds block; keep each wait at most
600 seconds and never loop on them inside one turn. Between turns, report where the worker is.cloud-ready issue, unblocked and unclaimed:
"$SCRIPTS/issues-ranked.sh" --route cloud-ready --skip-in-pr --drop-blocked
"$SCRIPTS/open-blockers.sh" --repo OWNER/REPO <issue>
"$SCRIPTS/lane-claim.sh" check --repo OWNER/REPO --issues <issue> --files <paths>
Skip the issue on BLOCKED or a conflict: line."$SCRIPTS/hive-brain.sh" status prints the waaagh operations brain_id.
When it says stale=yes or never, run the hive-learnings skill first so the worker gets
current learnings. Any other Brains the owner keeps for every worker (an operating-model Brain)
are listed in ~/.claude/orchestrate/hive/brains.tsv (name<TAB>id, one per line). Every
worker also gets Hive's standing Workers instructions, so the brief need not repeat them.hive_launch_session:
goal: the brief (above). repoUrl: https://github.com/OWNER/REPO.name: the convention in organize-hive-worker (default OWNER/REPO#<issue>: <short title>), so hive_workers lists are readable and no rename is needed later.branch: work/<issue>-<slug>, the waaagh lane convention.brainIds: the waaagh operations brain_id plus the ids in brains.tsv.idempotencyKey: waaagh-OWNER-REPO-<issue>-<attempt>, so a retried call cannot start two
workers. A 409 "Idempotency-Key was already used" means the same request already went out:
list the workers before launching again with a new attempt number.workerOptions: {"delivery": "pull-request"} (see Rules); add planFirst: true for
judgment work the owner wants to approve first, researchFirst: true when current docs
decide the design.provider/model/reasoningEffort: leave Hive's defaults unless the user names one. Match
the model to the work: mechanical steps (fix-checks triage, rebases, re-running a gate) on a
small model or low effort; single-area fixes with a clear checklist on a mid model; design
work, multi-area changes and reviews on the largest.load first. A default Hive
snapshot with the toolchain and warm dependencies (hive_create_snapshot) saves every
worker its setup minutes; propose one to the owner when briefs keep repeating setup steps."$SCRIPTS/lane-claim.sh" add --repo OWNER/REPO --worktree hive:<sessionId> \
--branch work/<issue>-<slug> --issues <issue> --files <paths> --agent hive
When the worker ends, lane-claim.sh set --worktree hive:<sessionId> --status done (or
abandoned).| Need | Tool |
|---|---|
| Every worker, needs-attention first | hive_workers (repository: "OWNER/REPO" to narrow) |
| One worker's state, branch, open question, PR and new activity | hive_follow with session, then again with after from its last answer |
| Block until it finishes, idles or asks | hive_wait_for with until: "needs_input" or "finished", timeoutSeconds ≤ 600 |
| Answer its question | hive_answer_question (sessionId, questionId, answer), owner's words only |
| Add work for its next turn / redirect the running turn | hive_message_session with to, text and intent: "queue" / "steer" |
| What it changed | hive_get_session_diff (scope: "session"; patches: false first) |
| Its transcript | hive_read_session (format: "markdown", from: "end", a maxChars cap) |
| Keep it alive past its expiry | hive_update_session_lifecycle (extendMs) |
| Stop it (with the user's go-ahead) | hive_cancel_session |
| Start a completed or expired one again | hive_resume_session (HTTP 400 on a running one) |
| What all sessions did lately | hive_standup (hours) |
manage-hive-worker has the cheap triage loop, the taxonomy of what a worker needs, and the known
delivery problems (unread messages to idle sessions, digests that skip activity).
A worker's PR is a lane PR like any other: it gets the campaign's independent review
(../orchestrate/roles/review.md) and goes through the merge loop. Review findings go back to the
worker with hive_message_session (intent: "steer" while it runs, "queue" only for one that
will take another turn) while it is still alive, or to a repair lane when it has ended.
hive_claim_session (client: "claude-code") pauses Hive's agent and
returns the goal, branch, latest commit, PR and review comments. Check out that branch in a new
worktree, work there, and post one-line progress with hive_post_session_update.hive_release_session with a summary of what changed locally and
what is left. Hive's agent resumes on the pushed branch.hive_start_investigation (name, prompt, repoUrl), then hive_get_investigation until it
finishes and hive_get_investigation_report for the report.hive_schedule_task with exactly one of schedule (cron) or
runAt, and one of message or command; hive_list_jobs, hive_update_job
(status: "paused" to pause), hive_run_job. A recurring job is standing configuration: create
or change one only on the user's request. Hive's scheduler allows about 3 runs per hour per
account, shared by every session, so a scheduled recheck can run hours late.Hive's practices (Settings → Practices) are kits of repository conventions. hive_list_practices
shows what is on; hive_set_practice / hive_set_kit change one at account or hive scope, and
hive_install_practices opens a PR adding a kit's files to a repository. These change account or
repository settings: only on the user's request.
Hive can run spectra in each worker VM (Settings → Skills & MCP; setup and caveats in
../hive-learnings/SKILL.md). With it on, a worker's standing instructions tell it to call
spectra's load before heavy builds or test runs and to wait or run fewer jobs on hold or
backoff; a brief for build-heavy work (Gradle, Xcode, large Go or Rust test suites) can say the
same with VM-sized min_free_gb and max_load_per_cpu.
What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/hive-learningsPush 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./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.Other plugins' skills for the same job
npx claudepluginhub kaeawc/waaagh --plugin waaagh