npx skills add ...
npx skills add 5dive-ai/skills --skill 5dive-cli
Use the local `5dive` CLI on a 5dive runtime VM to spawn, inspect, send to, and tear down sibling agents — plus the shared task queue and org chart. Trigger when the user wants a worker, sub-agent, side task, parallel run, fan-out, or to delegate — or names a sibling agent ("ask X", "ping X", "tell X", "hand off to X", "coordinate with X"); confirm it exists via `5dive agent list --json`, then `agent send` / `agent ask`. Also for filing and tracking shared work (`5dive task add/ls/done`), the org chart (`5dive org tree`), parking a blocking question on a human (`task need`), and a quick recall of team memory (`5dive memory search`). For everything else the CLI can do — crew hosting, multi-account auth, auth recovery, declarative fleets/compose, goal DAGs, objectives, loops, compiling into the wiki, org-chart writes, governance votes, digest/usage/supervisor/fleet/diagnose, telegram pairing, the persona market, BYO providers, the company wizard, plugins (`5dive plugin`), seat liveness (`5dive liveness`), gate owners (`5dive human`), per-attempt run history (`5dive run`), event triggers (`5dive trigger`), host remediation (`5dive host`) and the nostr handset rail (`5dive buzz`) — see the `5dive-cli-extras` skill. When a request came over a chat channel (Telegram/Discord `<channel>` tag) and another agent should handle it, pass the chat context via `--reply-to-chat=<id> --reply-to-msg=<id>` so that agent replies from its own bot — don't relay. Always prefer `5dive` over running coding CLIs by hand.
npx skills add 5dive-ai/skills --skill 5dive-cli
This skill teaches you to drive the 5dive command on a 5dive runtime VM.
You are running inside one such VM. You can spawn additional agents on the
same host by shelling out to sudo 5dive ... and parsing the JSON envelope
it emits when you pass --json.
Use it whenever the work in front of you would benefit from a second pair of hands — for example:
sudo 5dive agent list --json,
then agent send.5dive task) or a reporting structure (5dive org).5dive task need).5dive memory search).If the user just wants you to do the work yourself, do not spawn an agent.
For crew hosting, accounts, loops/goals, governance, fleet health and the
other less-frequent surfaces, see 5dive-cli-extras.
Everything the CLI does maps onto these resources on the host:
agent-<name>) + one systemd unit
(5dive-agent@<name>.service) + one tmux session (agent-<name>)
running the chosen CLI in a restart loop.EnvironmentFile.telegram / discord / dashboard / buzz / none,
comma-listable) is the inbound message surface. Every agent type except
devin supports telegram (devin has no chat bridge at all — reach it via
agent send/agent ask); the other channels are each narrower than that.
telegram/discord each need their own bot token. discord works on
claude, openclaw and hermes only — it is refused at create-time for
codex/grok/antigravity/opencode/devin, and pi accepts it at
validation but dies at install (telegram only). dashboard (claude or codex
only, token-free) is web-dashboard chat and is folded into every claude create
by default — --channels=none opts out. buzz is the nostr handset rail and
is claude-only; it is wired by agent buzz enable, not by a token (see
5dive-cli-extras).sudo is
gated by isolation tier (DIVE-1002). New agents default to standard —
zero sudo. Only the first agent on a fresh box, or one created with
--isolation=admin, gets a scoped grant: the 5dive CLI plus non-paging
systemctl start|stop|restart of 5dive-* units — NOT NOPASSWD:ALL. So the
no-sudo surfaces (5dive task, org reads, memory) run from any agent;
the root surfaces (agent create/config/pair, heartbeat on/off,
doctor, usage) need an admin agent.antigravity claude codex devin grok hermes openclaw opencode pi — devin and pi have been live since Jul 2026 and
were simply missing from these docs until this sync. Run sudo 5dive agent types --json for what's actually installed — the set changes between
releases, and installed=missing in that output means the type is KNOWN but
its binary is not on this box, which is not the same as unsupported.--jsonPass --json as a global flag (anywhere on the command line). Stdout
becomes a stable envelope; progress lines stay on stderr.
Success:
Failure (exit code matches error.code):
Branch on error.class, not on the human message. Classes:
ok, usage, validation, not_found, conflict, auth_required,
not_installed, not_running, pairing, permission, timeout, generic.
See references/exit-codes.md for the full table.
agent info <name> shows the resolved type, CLI version, model and channel
state for one agent. For personas off the agent market, BYO-provider keys,
--defer-auth, and skill-inheritance flags on create, see 5dive-cli-extras.
agent send / agent askThere is no separate channel — messages land in the receiver's running CLI
as if a human had typed them. When you (an agent) call agent send, the CLI
wraps the payload as [5dive-msg from=<you> id=<8-hex>] <your text> so the
receiver knows a peer is pinging it (only sends from agent-* users get
wrapped; --raw skips wrapping, --from=<label> overrides the inferred name).
Quote the body in single quotes and keep backticks / $() out of it — the
message passes through a shell. For any body that quotes CLI verbs, use
--message-file=<path> instead (DIVE-2627): inside a double-quoted
--message=, backtick-quoted verbs RUN as command substitution as you, the
words are deleted, and the send still prints OK.
Scheduled sends (cron, systemd timers) need --wake: without it a send into a
stopped agent fails with exit 8 and is dropped — there is no queue and no retry.
--wake starts the unit and delivers once the prompt is up. It needs root,
refuses an agent stopped on purpose (desiredState=stopped), and its worst case
is 105s — size a timer's TimeoutStartSec above that.
To reply, send back to the named sender, optionally prefixing [re=<id>] so
they can match it to their question:
If you want request/response in one call instead of manually polling
agent logs, use ask — it watches the tmux pane after the marker line and
returns once the scrollback has been quiet for --idle-secs (default 5s):
ask is heuristic (a receiver that streams continuously stays "busy" until
--timeout fires) and returns whatever was on screen, chrome included — ask
for a terse final summary if you need something clean to parse.
If a user pings you on a Telegram/Discord chat where the target agent's bot
is also a member, don't relay the answer yourself — hand it off with
--reply-to-chat=<id> [--reply-to-msg=<id>] (values come from the inbound
<channel> tag's chat_id/message_id) so the target agent posts directly
via its own bot. See 5dive-cli-extras for the full chat-delegation walkthrough.
The host has a shared task queue and org chart in a group-writable sqlite
store, so no sudo is needed — any agent-* user can read and write directly.
A verifier closing a graded row must put graded-sha: <sha> in its
--result, naming the commit it actually read. Without it the merge gate
holds at no-graded-sha-stated; a sha that is not the PR head holds at
graded-sha-is-not-the-head (DIVE-2656). --no-graded-sha is the audited
escape, not the normal path.
On done/cancel, --result's first line is what gets pinged to the
owner's phone — lead with a terse one-line summary, detail after the first
newline.
--review= (DIVE-4324)A graded row spends a grader session, so pick the reviewer at filing time instead of letting the default pick one for you:
--review= | who grades it | cost |
|---|---|---|
none | nobody — task done closes it outright | no session |
check | a command does (pass --verify="<cmd>" too) | no session |
temp | one fresh pool session per delivery, then gone | one session |
<seat> | a pinned standing reviewer, in its own session | one session |
Pass nothing and the row still gets a mode — printed back with its cost on the
created DIVE-N line, and shown by task ls / task show: none for a
low-priority row, a bodyless chore title, a body tagged mechanical/copy/
doc, or a body that is one read-back command; check when you gave
--verify=<cmd>; a pinned seat when you passed --customer; temp otherwise.
The box setting still caps it, and it wins: 5dive config verify=never forces
none on temp and on a pinned <seat> — both book a session — and says so on
the created line rather than downgrading you in silence. check is exempt (a
command spends nothing), and bare --verify is the one way to buy a single row
back on such a box. See 5dive-cli-extras for the rail itself, projects,
recurring work, and loops.
task needWhen a task is blocked on something only a human can provide, don't sit on it and don't guess — gate it:
Since 0.32.0 the --ask is ENFORCED, not advised (DIVE-4176). A gate that
reaches the paired human is refused when its --ask runs over 25 words, or
names an ident, sha, branch, path, flag or check name — that text is all he sees,
and he has never read our code. Write it as a choice between OUTCOMES ("a cleanup
job needs read access it doesn't have: grant it permanently, or have me run the
one-off check myself?"), and put every mechanism in the task BODY.
--ask-ok="<why>" files anyway; it is recorded on the gate and counted later, so
reach for it when the ask genuinely cannot be written in plain English, not to get
past the check. Always pass --recommend for decision/approval — the alert leads
with your recommendation so the human can one-tap it.
Risk tiers (--tier=0|1|2): 0 auto-clears immediately (needs
--recommend, no ping); 1 pings but auto-applies the recommendation if
unanswered 48h; 2 never auto-applies. Money, public comms, secrets,
destructive and brand asks are floored to tier 2 regardless of the flag.
Who can clear it is set by TYPE, not by difficulty — check before you file,
not after task answer refuses you (DIVE-3228):
| type | default tier | who clears it at that default |
|---|---|---|
decision | 1 | any agent |
approval | 1 — not 2 | the routed lead |
access | 2 | the routed lead (lead-clearable at the default) |
manual | 2 | human only — a step only a person can perform |
secret | 2 | human only, at every tier; never routed |
Pinning --tier=2 yourself, or tripping a category floor, makes approval and
access human-only too. On any type, --needs=spend_authority|human_tap| secret_provision is human-only by declaration and outranks the tier.
So never hand-pass --tier=1 on an approval to keep it off a human — that
is already the default and the flag is a no-op.
A routed gate QUEUES for the reviewer's next natural wake rather than waking
their session; --urgent pings at file time. It is not --recommend — "I think
the answer is X" and "this cannot wait" are separate claims. See
5dive-cli-extras for task park/escalate/clear-recs/need --withdraw,
the --type=access + --probe self-check, and precedent prefill.
Read-only, no sudo, BM25-ranked snippets with file+heading provenance. Reach for it before re-deriving past decisions or debugging something a teammate already hit.
On a large store, prefer two-stage recall (DIVE-3821) — it buys you more candidates per token than snippets do:
An empty stage-1 result is evidence of absence; a short index is not. Search
with the words the FACT would use, not the words your task uses. For the
write-path (memory add, compiling into the shared wiki), memory router,
memory check and hygiene, see 5dive-cli-extras.
gh as the right oneReach for this when a gate refusal or a permission error doesn't make sense —
it names which uid/agent/tier the CLI actually sees you as, not what you
assume. Exits 6 (auth_required) rather than printing unknown if the actor
can't be measured, so it doubles as a scriptable measurability check.
When a task involves opening/commenting on a PR or issue as an agent, prefer
5dive gh <gh args...> over calling the gh binary directly: writes
(pr create, pr merge, issue comment, …) route to the 5dive-bot
machine account so the GitHub actor field actually distinguishes an agent
action from a human one (DIVE-2448); reads and admin-class calls stay on
your own credential automatically. 5dive gh --explain <args> previews the
routing decision without running anything.
--json. Parse the envelope. Don't grep stderr.agent rm.getUpdates. Each agent needs its own.worker-N agent stays
running across reboots — it's a real systemd unit, not a thread.
On task completion call 5dive agent rm <name>.5dive skips the systemd unit, the audit log, and the env
injection — the agent will run with broken auth and no restart loop.5dive --help if a flag is rejected as unknown — the binary
on the host may be newer or older than this skill. The help output is
authoritative.task need with a recommendation
instead of guessing or letting the task rot silently.agent send --reply-to-chat=<id> --reply-to-msg=<id>.references/commands.md — every subcommand and flag, copy/pasteable.
Includes the less-frequent top-level verbs not recapped above: deploy
(delegated production deploy, INST-5), bug (diagnostic issue filing),
constitution (front door onto the machine-enforced guardrails), ui
(local read-only web UI: org chart/queue/gates, DIVE-2655), acp
(speak ACP over stdio so a client like Buzz/Zed can select 5dive as a
coding-agent runtime — spawned BY the client, not run directly, DIVE-3017),
liveness (is a seat alive against an artifact it WROTE, DIVE-3778),
plugin (install/enable/rollback plugins + marketplaces), human
(the people who can CLEAR a gate, DIVE-3342), run (one attempt by one
agent at one task — the unit beneath trace), trigger (signed external
events become ordinary tasks) and host (hardened unit/journal/cron
remediation under the CLI-root grant).references/exit-codes.md — exit codes & error classes.references/paths.md — on-disk state layout (only for debugging).5dive-cli-extras skill — crew hosting, accounts, auth recovery, compose/
team templates, goal DAGs, objectives, loops, memory-write/wiki, org-chart
writes, governance votes, digest/usage/supervisor/fleet/diagnose, telegram
pairing detail, the persona market, BYO providers, and the company wizard.The full reference manual lives at https://5dive.com/docs. If a flag in
this skill conflicts with what the running binary accepts, trust the
binary — run sudo 5dive --help or sudo 5dive agent <sub> --help
directly and follow that.
Synced to 5dive CLI 0.32.0 (tag bb35e2be, 2026-09-11). A given box's
binary can lag by up to a day behind main (nightly update channel) — trust
5dive --help if they differ.
{ "ok": false, "error": { "code": 6, "class": "auth_required", "message": "..." } }# 1. Pick a unique name (lowercase letters/digits/hyphens, ≤16 chars,
# must start with a letter). Check the registry first if you care:
sudo 5dive agent list --json | jq -r '.data[].name' # data is an ARRAY of agents
# 2. Create the worker. --workdir scopes its tmux cwd; default is
# /home/claude/projects.
sudo 5dive agent create worker-1 \
--type=claude \
--workdir=/home/claude/projects/myrepo \
--json
# 3. Send it the task. tmux send-keys + Enter, so the text appears
# in the worker's running CLI prompt.
sudo 5dive agent send worker-1 \
"audit the auth middleware for OWASP A01 issues; report back as a markdown bullet list"
# 4. Poll its output until it goes idle. --tmux dumps the scrollback.
sudo 5dive agent logs worker-1 --tmux --lines=80
# 5. Tear it down when you're done — frees the systemd unit + Linux user.
sudo 5dive agent rm worker-1 --json
# `5dive fire worker-1` is an alias of `agent rm` (same guarded teardown).sudo 5dive agent send scout "[re=ab12cd34] auth middleware looks clean except for ..."sudo 5dive agent ask scout \
"list the OWASP A01 issues you found, one per line" \
--timeout=180 --json# Queue a unit of work. Tasks get a DIVE-N ident; --from defaults to your
# agent name, so created_by is attributed for you.
5dive task add "audit the auth middleware for OWASP A01" \
--assignee=worker-1 --priority=high --json
# --assignee also takes org-routing tokens (role:<r> / charter:<kw>); omit it to
# route to the org lead/coordinator.
# What's open, who's on what (priority-ordered); --mine filters to you.
5dive task ls --json
5dive task ls --mine --json
# Drive status as work moves. block/unblock express dependencies.
5dive task start DIVE-7 --json # -> in_progress
5dive task done DIVE-7 --result="one-line summary first; detail below" --json
5dive task block DIVE-9 --by=DIVE-7 --json # DIVE-9 waits on DIVE-7
# On a row that carries a verifier, the maker DELIVERS instead of closing;
# the verifier passes (`verify`) or bounces it back (`reject`).
5dive task deliver DIVE-7 --pr=<url> --result="..." --json
# since 0.32.0 (DIVE-4144): --feedback is REQUIRED on a reject and must name a
# FIX, not only a finding. --no-fix="<why>" is the audited escape.
5dive task reject DIVE-7 --feedback="FINDING: x / FIX: do y / VERIFY: run z" --json
# Whether a row is graded at all is the BOX's setting, and the row overrides it
# in both directions (since 0.32.0, DIVE-4251):
5dive config # this box's settings
5dive config verify=always|delivered-only|never # root; per BOX, not per seat
5dive task add "..." --verify # demand a grade on a `never` box (also clears
# the auto-skips; `--verify=<cmd>` with an `=`
# is the unrelated acceptance COMMAND)
5dive task add "..." --no-verify # skip one on an `always` box
# Every `ls` carries a `gate` column: HUMAN:<type> a person owes an answer,
# <seat>:<type> an agent does, `answered:<retire>`, `-` nothing.
5dive task ls --gated --json # only rows holding a live gate
5dive task ls --gated=human --json # exactly the `task inbox` set
# Nothing is moving and you can't see why: every open row nothing will
# dispatch, and the verb that clears each one (DIVE-3784).
5dive task doctor --json
# Who reports to whom, at a glance:
5dive org tree --json5dive task add "bump the pinned version in three manifests" --review=none
5dive task add "add the retry arm" --review=check --verify="bash tests/retry_unit.sh"
5dive task add "rework the claim path" --review=temp
5dive task add "new pricing tile" --review=quinn --customer5dive task need DIVE-12 --type=decision \
--ask="Ship behind a flag or straight to prod?" \
--options="flag|prod" --recommend="flag" --tier=1 --json
# --type: decision | secret | approval | manual | access
# -> task goes blocked; the human gets an alert with tap buttons.
5dive task inbox --json # every unanswered HUMAN gate in the fleet
5dive task queue --json # gates ROUTED TO YOU, filed without waking you
5dive task answer DIVE-12 --value="flag" --json # records + unblocks + pings the owner5dive memory search "hetzner capacity gotchas" --json5dive memory search "hetzner capacity" --index # stage 1: slug + one-liner + score, no bodies
5dive memory get <slug> [<slug>...] # stage 2: full bodies, only what you chose5dive whoami --json # actor, authority (root|sudo:<who>|self) and tier — with the SOURCE of each