ワンクリックで
hive-work-loop
// The core agent work cycle in Hive — from finding a task through claiming, launching a run, handling approvals, finishing, and promoting. Use this skill for task-first project work, governed runs, and clean handoff.
// The core agent work cycle in Hive — from finding a task through claiming, launching a run, handling approvals, finishing, and promoting. Use this skill for task-first project work, governed runs, and clean handoff.
Discipline for developing Hive itself — PR sizing, review handling, merge discipline, release workflow, delegation, and cleanup hygiene. Use this skill when working on Hive repo changes that span multiple PRs or review cycles.
Coordinate work across multiple agents and projects in Hive. Covers task claims, blockers, handoffs, campaigns, portfolio management, briefs, and shared memory.
Hive mental model and orientation. Read this first before using any other Hive skill. Covers the entity hierarchy, observe-and-steer pattern, drivers, sandboxes, console vs CLI, and workspace conventions.
Use the Hive MCP server for the thin v2 search and execute tool surface. Use this skill when configuring MCP access to Hive or when an agent needs workspace search and bounded local execution.
Set up and configure Hive workspaces, projects, tasks, and evaluator policy. Use this skill when bootstrapping, creating projects, managing tasks, or configuring PROGRAM.md.
| name | hive-work-loop |
| description | The core agent work cycle in Hive — from finding a task through claiming, launching a run, handling approvals, finishing, and promoting. Use this skill for task-first project work, governed runs, and clean handoff. |
This is the core cycle for getting work done in Hive. It covers the full path from finding a task to promoting the result.
find ready work → build context → claim → launch run → monitor
→ handle approvals → finish (evaluates + promotes) → release
hive next --json # recommended next task
hive task ready --json # full ready queue
hive task ready --project-id <project-id> --json # scoped to one project
hive next returns the highest-priority unblocked task. It respects dependency constraints and expired claims.
If the queue is empty, check why:
hive deps --json # shows blockers
hive task list --json # shows all tasks regardless of status
hive context startup --project <project-id> --task <task-id> --json
This compiles a startup bundle: task description, acceptance criteria, project mission, API docs, code examples, dependency snapshot, and previous notes.
For a saved markdown bundle (from a repo checkout):
make session PROJECT=<project-id>
hive task claim <task-id> --owner <your-name> --ttl-minutes 30 --json
Claims are time-limited leases. Other agents can see who holds what. Always claim before starting work so you do not collide.
Read PROGRAM.md before proceeding with autonomous work:
cat projects/<project-id>/PROGRAM.md
For governed execution (recommended):
hive work <task-id> --owner <your-name> --json
hive work does several things:
For more control over driver and model:
hive work <task-id> --owner <your-name> --driver codex --model gpt-4 --json
For batch mode (no interactive follow-up):
hive run start <task-id> --driver local --json
hive run status <run-id> --json # driver progress, health, phase, budget
hive run show <run-id> --json # full run metadata
hive run artifacts <run-id> --json # list output artifacts (patch, transcript, eval)
Run states flow through: queued → compiling_context → launching → running → awaiting_input → completed_candidate → accepted/rejected/escalated.
Drivers may request approval for sensitive operations. When a run enters awaiting_input:
hive steer approve <run-id> --json # approve pending request
hive steer approve <run-id> --approval-id <id> --json # approve specific request
hive steer reject <run-id> --approval-id <id> --reason "..." --json
Other steering commands:
hive steer pause <run-id> --reason "..." --json # pause active run
hive steer resume <run-id> --json # resume paused run
hive steer cancel <run-id> --reason "..." --json # cancel run immediately
hive steer note <run-id> --message "..." --json # add steering note to event stream
hive steer reroute <run-id> --driver claude --json # transfer to different driver
A human may also steer through the console. Watch for state changes.
hive finish <run-id> --json
hive finish evaluates the run against PROGRAM.md policy and promotes by default — it merges the worktree branch back and cleans up. Depending on the evaluator result:
awaiting_review.To accept without promoting (e.g., to inspect the worktree first):
hive finish <run-id> --no-promote --json
Then promote later when ready:
hive run promote <run-id> --cleanup-worktree --json
For manual evaluation control outside the finish flow:
hive run eval <run-id> --json # run evaluator
hive run accept <run-id> --json # manually accept
hive run reject <run-id> --reason "tests failed" --json # manually reject
hive run escalate <run-id> --reason "needs human" --json # escalate to human
hive task update <task-id> --status done --json # mark task complete
hive task release <task-id> --json # release claim
hive sync projections --json # refresh generated docs
hive run cleanup --terminal --json # clean up all finished runs
If the work produced durable knowledge:
hive memory observe --note "..." --scope project --project <project-id> --json
For longer transcripts:
hive memory observe --transcript-path <file> --scope project --project <project-id> --json
hive context handoff --project <project-id> --json
This compiles a handoff bundle with current state, open work, and context for the next agent.
| Step | Command |
|---|---|
| Find work | hive next --json |
| Build context | hive context startup --project <id> --task <id> --json |
| Claim | hive task claim <id> --owner <name> --ttl-minutes 30 --json |
| Launch | hive work <id> --owner <name> --json |
| Monitor | hive run status <run-id> --json |
| Approve | hive steer approve <run-id> --json |
| Finish + promote | hive finish <run-id> --json |
| Finish only | hive finish <run-id> --no-promote --json |
| Promote later | hive run promote <run-id> --cleanup-worktree --json |
| Release | hive task release <id> --json |
| Handoff | hive context handoff --project <id> --json |
hive task ready), not from old docs or checklists.