Hive

Hive is a skill for Claude Code from mercurialsolo/claudectl. It costs 95 tokens per session (1,802 once invoked), scanned A, original, MIT.

A tool for connecting several machines and sharing selected agent knowledge between them. The relay carries work and state; the hive shares approved preferences, insights, and skills.

In plain words
What is it for?
Use it to create or join a hive, pair machines, approve join requests, check connected peers, and share skills.
Why use it?
It helps agents on different machines coordinate while keeping machine connections separate from the knowledge shared with peers.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claudectl plugin — 2 skills, 7 commands, 4 hooks, 1 MCP server shipped together

Good fit Use it to create or join a hive, pair machines, approve join requests, check connected peers, and share skills.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mercurialsolo/claudectl/hive
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mercurialsolo/claudectl --skill hive
Clone the repo
git clone --depth 1 https://github.com/mercurialsolo/claudectl

Made for: Claude Code.

Or install claudectl, the plugin that ships this one along with the rest of its 2 skills, 7 commands, 4 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Hive

README.md
[![agentmods](https://agentmods.dev/badge/skills/mercurialsolo/claudectl/hive/github.svg)](https://agentmods.dev/skills/mercurialsolo/claudectl/hive)
Your own site
<a href="https://agentmods.dev/skills/mercurialsolo/claudectl/hive"><img src="https://agentmods.dev/badge/skills/mercurialsolo/claudectl/hive/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Hive

Your own site · 80×15
<a href="https://agentmods.dev/skills/mercurialsolo/claudectl/hive"><img src="https://agentmods.dev/badge/skills/mercurialsolo/claudectl/hive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,802 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00095 $0.01802
Opus 5.5 $0.00038 $0.00721
Sonnet 5.5 $0.00019 $0.00360
Haiku 4.5 $0.00010 $0.00180

Measured 29d ago against content hash 22258f08ddf9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Hive scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 29d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude-plugin/skills/hive/SKILL.md · 113 lines

How it starts

The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.

claudectl Hive

claudectl links machines in two layers. Keep them apart when you explain or act:

  • Relay connects machines: encrypted TCP links made by pairing. It carries work and state: relay fleet (every session on every machine), relay delegate, relay send-session.
  • Hive is the knowledge shared over those links: distilled approve/deny preferences, insights, and skills the user chose to share. Peers gossip it and weight it by trust; local knowledge wins a conflict.

The hive needs the relay. The relay does not need the hive. An unnamed hive is simply everyone this machine has paired with; naming it gives it membership rules (a join policy) on top of pairing.

First, look

Run these before changing anything, and report what they say:

claudectl --version          # both machines should run the same version
claudectl hive identity      # "unnamed", or the hive's name and join policy
claudectl hive status        # membership, units, gossip sync per peer
claudectl relay peers        # paired machines: live / stale / never, last heard, address

Is a relay already listening? On macOS the background agent is io.claudectl.relay:

launchctl list | grep io.claudectl.relay
lsof -nP -iTCP -sTCP:LISTEN | grep claudectl

Start a hive (the host)

  1. Keep a relay running. Prefer the background agent over a foreground relay serve, because it survives logout:
    claudectl relay install-agent
    
  2. Name the hive. ask makes every join wait for the owner's approval, which is the right default when anyone other than the owner will join:
    claudectl hive identity set --name <name> --description "<what it is for>" --join-policy ask
    
    Never pick --join-policy open on your own initiative. It lets any machine that sees the LAN broadcast join without approval. Only set it when the user asks for it by name.
  3. Mint an invite and hand it to the user:
    claudectl hive invite --words      # link, relay code and word phrase
    claudectl hive invite --qr         # QR of the link
    
    The invite carries the pairing secret. Give it to the user to pass on privately. Do not post it to a channel, issue, PR or any shared document.

Read the full file on GitHub · 113 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 29d ago Changed 22258f08ddf9
  2. 1mo ago First seen · 113 lines · 95 tokens per session scan A ef8b06c388f7

Subscribe to this mod's changes

Hive is a skill published in the GitHub repository mercurialsolo/claudectl (205 stars, last pushed 1mo ago), licensed MIT. It adds 95 tokens to every session and 1,802 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-23.

Related

Hive compared with skills from other repositories

Hive next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Hivemercurialsolo/claudectlSkill2051mo agoMITA95Claude Code
codew-release-qa-sweepHmbown/CodeWhaleSkill41k3d agoMITA31Claude Code, Codex
gh-find-prsHmbown/CodeWhaleSkill41k3d agoMITA27Claude Code, Codex
best-of-nHmbown/CodeWhaleSkill41k3d agoMITA32Claude Code, Codex
contributor-onboardingHmbown/CodeWhaleSkill41k3d agoMITA57Claude Code, Codex
fleet-managerHmbown/CodeWhaleSkill41k3d agoMITA25Claude Code, Codex
handoffHmbown/CodeWhaleSkill41k3d agoMITA70Claude Code, Codex