hive-workflow

hive-workflow is a skill for Claude Code, Codex from dip497/hivemind. It costs 0 tokens per session (3,019 once invoked), scanned A, original, MIT.

A workflow skill for coordinating multiple AI agents on one task, including parallel research, chained steps, and map-reduce work.

In plain words
What is it for?
Use it to fan out work to several agents, run pipeline stages, collect reports, and manage agent communication on a shared canvas.
Why use it?
It helps divide larger jobs among agents and combine their results in an organized workflow.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/dip497/hivemind/hive-workflow
Any agent
npx skills add dip497/hivemind --skill hive-workflow
Clone the repo
git clone --depth 1 https://github.com/dip497/hivemind

Made for: Claude Code, Codex.

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-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/dip497/hivemind/hive-workflow.svg)](https://agentmods.dev/skills/dip497/hivemind/hive-workflow)
Your own site
<a href="https://agentmods.dev/skills/dip497/hivemind/hive-workflow"><img src="https://agentmods.dev/badge/skills/dip497/hivemind/hive-workflow.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,019 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.03019
Opus 5 $0.00000 $0.01510
Sonnet 5 $0.00000 $0.00604
Haiku 4.5 $0.00000 $0.00302

Measured yesterday against content hash affb95161ffc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hive-workflow 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 yesterday.

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.

templates/agentic/.claude/skills/hive-workflow/SKILL.md · 233 lines

How it starts

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

Multi-agent workflows on the hivemind canvas

You are an agent in a hivemind tile. You can spawn sibling agents as visible tiles and orchestrate them. Workers are real tiles the user watches — children of you, depth-capped (max 3 deep) and rate-limited. Two layers:

  1. mcp__hive__hive_workflow — one blocking call for the common shapes. Use this first. It spawns the fleet, drives it, and returns aggregated replies.
  2. Raw mcp__hive__* (hive_spawn_agent / hive_send / hive_send_keys / hive_read / hive_connect / hive_approve / hive_list_tiles / hive_report) — when control flow is dynamic and no fixed shape fits.

All of these no-op with "app not running" if hivemind isn't up — safe to try.

Auto-report is the default. A spawned worker (and every hive_workflow worker) delivers its reply straight into YOUR session when it finishes a turn — you see a [hive] from <tileId>: … message. So the normal pattern is fire-and-forget: spawn, keep working, collect the reports as they arrive. Only reach for hive_read when you must BLOCK inline for the next reply. To check who is still busy without blocking, poll hive_list_tiles.

When to use which

You need… Use
Same task over a list, in parallel hive_workflow({ shape: "fanout" })
Fan out + synthesize the results hive_workflow({ shape: "mapreduce" })
A → B → C, each consuming the last hive_workflow({ shape: "pipeline" })
Loop until a condition / unknown count raw spawn + hive_read loop
A judge panel, voting, conditional branches raw spawn + hive_read

The tool: hive_workflow

fanout — N workers in parallel

One worker per items[i]. prompt is a template; {item} is filled per worker. Blocks until all finish, returns each reply.

hive_workflow({
  shape: "fanout",
  items: ["src/auth.ts", "src/pay.ts", "src/api.ts"],
  prompt: "Review {item} for security bugs. List findings as file:line — one line each.",
  max_concurrent: 6
})
// → { shape:"fanout", items:[ {item, tileId, status:"turn"|"timeout"|"error", text}, … ] }

Read the full file on GitHub · 233 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. yesterday Changed affb95161ffc
  2. 5d ago First seen · 233 lines · 0 tokens per session scan A 284f8fcb29f8

Subscribe to this mod's changes

hive-workflow is a skill published in the GitHub repository dip497/hivemind (6 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,019 tokens. 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-08-31.

Related

Other skills, from other repositories

doubt-driven-review

In-flight adversarial check on a non-trivial decision BEFORE it stands — distinct from post-hoc review of a finished diff. Use on "stress-test this decision", "are we sure about this", "verify before commit", "poke holes in this", when working in unfamiliar code, or before an irreversible step (migration, prod deploy…

BlackBeltTechnology/pi-agent-dashboard · 90 tokens

release-cut

Cut a new pi-agent-dashboard release: promote ## [Unreleased] in CHANGELOG.md, bump every workspace package.json per SemVer, commit, tag v , and push — triggering the Release workflow that publishes every non-private workspace, builds the Electron artifacts, and creates a GitHub Release. Use on "cut a release"…

BlackBeltTechnology/pi-agent-dashboard · 93 tokens

faq-mine

Mine docs/faq.md from README.md, docs/.md, and the pi-hermes memory stores. Dispatches @fast subagents per source, dedupes against the existing FAQ, and merges entries in caveman style. Use when asked to "build / regenerate / extend the FAQ", "mine docs into FAQ", "mine hermes memory into FAQ", "surface runtime…

BlackBeltTechnology/pi-agent-dashboard · 94 tokens

performance-optimization

Measure-first performance work. Use on triggers like "it's slow", "profile this", "optimize perf", "fix the bottleneck", "improve load time / Core Web Vitals", or when a measured regression needs fixing. Enforces measure-before-optimize. Fills a perf gap not covered by existing project skills. Not a build/ship…

BlackBeltTechnology/pi-agent-dashboard · 77 tokens

project-init

Scaffold an unconfigured directory into a configured pi project. Interactive, profile-driven: previews the planned writes, then writes AGENTS.md, .pi/settings.json and prompt files — optionally also a knowledge base, an openspec/ scaffold, and user-global /.pi/agent/settings.json. Use on a bare directory, or when the…

BlackBeltTechnology/pi-agent-dashboard · 81 tokens

plan-proposal

Develop-side planning orchestrator for an OpenSpec change: artifact creation → doubt-driven-review → scenario-design → fold of automated scenarios into tasks.md, then STOPS at the git-worktree boundary. Main interactive session only; never a subagent. Triggers: "plan this change", "draft the proposal and plan"…

BlackBeltTechnology/pi-agent-dashboard · 83 tokens