Skip to content
hiveDOCS
GITHUB ↗v1.3.0-rc.3
Ask Beeanswers from these docs

Ask anything about Hive. Bee reads the most relevant pages of these docs and answers from them, with links to where it found the answer.

OR
Hand the docs to your own agent

Help me understand and set up Hive. Read https://hive.admir-saheta.com/agent-guide.md first, then walk me through it step by step.

API Reference

Complete generated reference for Hive's stable wire API: every method, event and type.

API level 17. Clients speak newline-delimited JSON over the daemon’s unix socket (hive api schema prints this as JSON Schema; pkg/hiveapi is the Go SDK; the README’s “Wire protocol” section has the framing). A protocol-2 client opens with {"type":"hello","version":"2","params":{"client":"my-tool"}}, then sends requests such as {"version":"2","type":"request","id":"1","method":"agent.list","params":{"all":true}}, each answered by a response with the same id and a result or an error (code, message). Pipe methods answer, then carry a byte stream on the connection. Every name below is stable within 1.x (the compatibility policy).

access

access.audit

Param Type
limit integer
member string

Result: []access.AuditEntry

access.doctor

Param Type
fix boolean

Result: runtime.AccessDoctor

access.get

Param Type
member string

Result: runtime.AccessMember

access.grant

Param Type
environment string
member string
role string observer, operator, owner, or none to take the role away

Result: access.Member

access.invite

Param Type
grants []access.Grant
key string
name string
print boolean
ttl_seconds integer

Result: runtime.AccessInvited

access.list

No params.

Result: runtime.AccessList

access.renew

Param Type
member string
ttl_seconds integer

Result: access.Member

access.revoke

Param Type
member string

Result: access.Member

access.whoami

No params.

Result: runtime.WhoAmI

agent

agent.explain

Param Type
id string

Result: agent.Explanation

agent.focus

Param Type
id string

Result: agent.Agent

agent.get

Param Type
id string

Result: agent.Agent

agent.handover

Param Type
id string the agent’s ID, or its pane’s
to string who gets it: a member’s name or ID, or owner for the runtime’s own user

Result: runtime.AgentHandedOver

agent.list

Param Type
all boolean

Result: agent.ListResult

agent.manifests

No params.

Result: []agent.Manifest

agent.prompt

Param Type
id string
read integer
stall_timeout_ms integer
start_timeout_ms integer
text string
timeout_ms integer
until string
wait boolean

Result: agent.PromptResult

agent.read

Param Type
ansi boolean
id string
lines integer
source string

Result: []string

agent.reload

No params.

Result: agent.ReloadResult

agent.rename

Param Type
id string
name string

Result: agent.Agent

agent.report

Param Type
id string
message string
session_id string
state string
ttl_ms integer

Result: agent.Agent

agent.seen

Param Type
id string

Result: map[string]boolean

agent.send_keys

Param Type
id string
keys []string

Result: map[string]boolean

agent.start

Param Type
args []string
base string
env map[string]string
environment_id string
isolate boolean
kind string
name string
worktree string

Result: runtime.AgentStarted

agent.stop

Param Type
id string

Result: agent.Agent

agent.wait

Param Type
after integer
id string
stall_ms integer
timeout_ms integer
until string

Result: agent.WaitResult

api

api.schema

No params.

Result: protocol.Schema

api.snapshot

No params.

Result: runtime.APISnapshot

branch

branch.check

Param Type
ref string read this branch’s repository
repo string read this repository (its main working tree); neither: every repository

Result: []branch.Branch

branch.clean

Param Type
delete_branch boolean also delete the local branch once git agrees it has merged
force boolean remove it even with uncommitted changes (they are saved under refs/hive/saved/ first)
merged boolean every merged branch, instead of one
ref string the branch

Result: []branch.Branch

branch.comment

Param Type
body string the comment
by string who wrote it
line integer the line it is about, in the branch’s version of the file
path string the file it is about
ref string the branch
send boolean send it (and every comment not sent yet) to the branch’s agent now

Result: branch.Branch

branch.conflicts

Param Type
ref string the branch
with string another branch to merge with (default: its base)

Result: branch.Conflicts

branch.diff

Param Type
context integer lines of context around each change (default 3)
limit integer the most bytes of patch to return (default 512 KiB, at most 4 MiB)
paths []string only these files
ref string the branch: its ID, environment, agent, plan/task or name
stat boolean only the files and their line counts, no patch

Result: branch.Diff

branch.get

Param Type
ref string the branch: its ID, environment, agent, plan/task or name

Result: branch.Branch

branch.list

Param Type
all boolean include cleaned and removed branches
repo string only this repository’s branches (its main working tree)

Result: []branch.Branch

branch.pr

Param Type
base string the branch it would merge into (default: the branch’s base)
body string the description (default: its commits and gates)
draft boolean open it as a draft
push boolean push the branch first if the remote lacks its commits
ref string the branch
remote string the remote (default: its upstream’s, else origin)
title string the title (default: its first commit’s subject)

Result: branch.Branch

branch.push

Param Type
ref string the branch
remote string the remote to push to (default: its upstream’s, else origin)

Result: branch.Branch

branch.ready

Param Type
gates []branch.Gate gates to run instead of the configured ones
ref string the branch

Result: branch.Branch

branch.send

Param Type
ref string the branch: its ID, environment, agent, plan/task or name

Result: branch.Branch

branch.update

Param Type
abort boolean undo a merge or rebase stopped on a conflict
rebase boolean rebase onto the base instead of merging it
ref string the branch

Result: branch.UpdateResult

client

client.report

Param Type
budget integer
rtt_us integer

Result: protocol.Empty

debug

debug.pprof (pipe)

Param Type
profile string
seconds integer

Result: protocol.Empty

debug.stats

No params.

Result: runtime.Stats

environment

environment.create

Param Type
env map[string]string
id string
root string
worktree environment.Worktree

Result: environment.Environment

environment.get

Param Type
id string

Result: environment.Environment

environment.list

No params.

Result: []environment.Environment

environment.remove

Param Type
id string

Result: protocol.Empty

environment.update

Param Type
id string
set map[string]string
unset []string

Result: environment.Environment

events

events.subscribe (pipe)

Param Type
types []string

Result: event.subscribeResult

insights

insights.asks

Param Type
by string group rows by kind (default), agent, environment, task, day or model
environment string only this environment
from string from this time (default: the start of today, local time)
kind string only this agent kind
limit integer at most this many (default and most 1000)
to string until this time (default: now)

Result: []insights.Ask

insights.budgets

No params.

Result: []insights.BudgetStatus

insights.export

Param Type
by string group rows by kind (default), agent, environment, task, day or model
environment string only this environment
from string from this time (default: the start of today, local time)
kind string only this agent kind
to string until this time (default: now)
what string spans, usage or alerts

Result: []insights.Record

insights.resume

Param Type
budget string the budget’s name
key string one key of it (a plan, environment or kind; default: every held one)

Result: []insights.BudgetStatus

insights.summary

Param Type
by string group rows by kind (default), agent, environment, task, day or model
environment string only this environment
from string from this time (default: the start of today, local time)
kind string only this agent kind
to string until this time (default: now)

Result: insights.Summary

insights.usage

Param Type
cache_read integer input tokens read from a cache
cache_write integer input tokens written to a cache
cost_usd number cost in US dollars, as the agent or provider stated it
id string the agent’s pane or process ID
input integer input tokens (not cached)
model string the model the usage is for
output integer output tokens
session string the agent’s session (default: the agent): totals are per session
source string where the numbers come from: report (default), transcript, statusline, or a name of the reporter’s
total boolean the numbers are the session’s totals so far (what grew is recorded), not an increment

Result: insights.UsageResult

issue

issue.close

Param Type
comment string a comment to add as it closes
ref string tracker:key

Result: issue.Issue

issue.comment

Param Type
body string the comment, as the tracker formats it (Markdown on GitHub)
ref string tracker:key

Result: object

issue.get

Param Type
ref string tracker:key (linear:HIV-42, github:owner/repo#42)

Result: issue.Issue

issue.search

Param Type
limit integer at most this many (default 20, at most 100)
query string what to search for, in the tracker’s own syntax
tracker string only this tracker (default: every one)

Result: []issue.Issue

layout

layout.apply

Param Type
environments []pane.EnvironmentSpec
version integer

Result: pane.ApplyResult

layout.export

Param Type
environments []string

Result: pane.LayoutSpec

metadata

metadata.list

No params.

Result: []metadata.Entry

metadata.report

Param Type
clear boolean
environment string
pane string
source string
title string
tokens map[string]string
ttl integer nanoseconds

Result: metadata.Entry

observer

observer.activity

No params.

Result: observer.Activity

observer.audit

Param Type
credential string
limit integer

Result: []observer.AuditEntry

observer.create

Param Type
name string
scope observer.Scope
screens boolean
ttl_seconds integer

Result: runtime.ObserverCreated

observer.get

Param Type
id string

Result: runtime.ObserverInfo

observer.list

No params.

Result: runtime.ObserverList

observer.revoke

Param Type
id string

Result: observer.Credential

observer.validate

Param Type
token string

Result: runtime.ObserverValidation

pane

pane.claim

Param Type
force boolean
pane string

Result: runtime.PaneClaimed

pane.close

Param Type
id string

Result: protocol.Empty

pane.focus

Param Type
direction string
id string

Result: pane.Pane

pane.get

Param Type
id string

Result: pane.Pane

pane.input

Param Type
data string
id string

Result: protocol.Empty

pane.list

Param Type
environment_id string
tab_id string

Result: []pane.Pane

pane.move

Param Type
direction string
environment_id string
pane string
tab_id string
target string

Result: pane.Pane

pane.popup

Param Type
height_pct integer
spec pane.Spec
tab_id string
width_pct integer

Result: pane.Pane

pane.read

Param Type
ansi boolean
id string
lines integer
source string

Result: []string

pane.release

Param Type
pane string

Result: map[string]boolean

pane.rename

Param Type
id string
name string

Result: pane.Pane

pane.resize

Param Type
cells integer
direction string
id string

Result: pane.Pane

pane.run

Param Type
command string
id string

Result: protocol.Empty

pane.send_keys

Param Type
id string
keys []string

Result: protocol.Empty

pane.send_text

Param Type
id string
paste boolean
text string

Result: protocol.Empty

pane.split

Param Type
direction string
focus boolean
pane string
ratio number
spec pane.Spec
tab_id string

Result: pane.Pane

pane.swap

Param Type
id string
with string

Result: protocol.Empty

pane.wait_output

Param Type
anywhere boolean
id string
pattern string
timeout_ms integer

Result: map[string]string

pane.zoom

Param Type
id string
on boolean

Result: pane.Pane

plugin

plugin.cancel

Param Type
plugin string
run string

Result: protocol.Empty

plugin.capabilities

No params.

Result: plugin.Discovery

plugin.card

Param Type
card string
environment string
links []plugin.Link
pane string
plugin string
rows []plugin.CardRow
ttl integer nanoseconds

Result: plugin.CardContent

plugin.config

Param Type
plugin string

Result: plugin.ConfigView

plugin.config.set

Param Type
plugin string
set map[string]any
unset []string

Result: plugin.ConfigView

plugin.contributions

No params.

Result: plugin.Contributions

plugin.list

No params.

Result: []plugin.Status

plugin.ready

Param Type
plugin string

Result: protocol.Empty

plugin.reload

Param Type
plugin string

Result: []plugin.Status

plugin.request

Param Type
capability string
plugin string
reason string

Result: plugin.PermissionRequest

plugin.run

Param Type
action string
environment string
pane string
plugin string
tab string

Result: plugin.Result

plugin.status

Param Type
indicator string
plugin string
text string
tone string
ttl integer nanoseconds

Result: plugin.StatusContent

plugin.view.clear

Param Type
doc plugin.ViewDoc
plugin string
view string

Result: plugin.ViewContent

plugin.view.click

Param Type
environment string
node string
pane string
plugin string
tab string
view string

Result: plugin.Result

plugin.view.set

Param Type
doc plugin.ViewDoc
plugin string
view string

Result: plugin.ViewContent

plugin.views

No params.

Result: []plugin.ViewContent

presence

presence.list

No params.

Result: runtime.PresenceList

presence.set

Param Type
environment string
pane string
tab string

Result: protocol.Empty

process

process.get

Param Type
id string

Result: process.Process

process.list

Param Type
environment_id string

Result: []process.Process

process.logs

Param Type
follow boolean
id string
stream string
tail integer

Result: process.logsResult

process.logs.stream

No params.

process.start

Param Type
args []string
command string
cwd string
env map[string]string
environment_id string
height integer
terminal boolean
width integer

Result: process.Process

process.stop

Param Type
id string

Result: protocol.Empty

runtime

runtime.gc

Param Type
dry_run boolean
older_than integer nanoseconds

Result: persist.GCReport

runtime.ping

No params.

Result: map[string]boolean

runtime.shutdown

No params.

runtime.status

No params.

Result: runtime.Snapshot

session

session.restore

Param Type
resume_agents boolean

Result: persist.RestoreReport

session.save

No params.

Result: persist.SaveResult

tab

tab.close

Param Type
id string

Result: protocol.Empty

tab.create

Param Type
environment_id string
name string
pane pane.Spec

Result: map[string]any

tab.focus

Param Type
id string

Result: pane.Tab

tab.get

Param Type
id string

Result: pane.Tab

tab.list

Param Type
environment_id string
tab_id string

Result: []pane.Tab

tab.rename

Param Type
id string
name string

Result: pane.Tab

tab.resize

Param Type
height integer
id string
width integer

Result: pane.Tab

task

task.approve

Param Type
by string who decides, for the task’s log
deny boolean refuse: cancel the task instead of starting it
id string the plan’s ID, or a unique prefix of it
note string why, for the task’s log
task string the task (may be left out when one task waits)

Result: task.Plan

task.assign

Param Type
id string the plan’s ID, or a unique prefix of it
task string the task to assign; without it, the plan and its unfinished tasks
to string who gets it: a member’s name or ID, or owner for the runtime’s own user

Result: task.Plan

task.cancel

Param Type
id string the plan’s ID, or a unique prefix of it
task string one of its tasks

Result: task.Plan

task.get

Param Type
id string the plan’s ID, or a unique prefix of it
task string one of its tasks

Result: task.Plan

task.list

No params.

Result: []task.Summary

task.retry

Param Type
id string the plan’s ID, or a unique prefix of it
task string one of its tasks

Result: task.Plan

task.run

Param Type
plan task.PlanSpec the plan, as data
source string the plan file’s name, for errors
toml string the plan, as the text of a plan file (instead of plan)

Result: task.Plan

task.wait

Param Type
after integer with until=change: the plan revision already seen
id string the plan’s ID, or a unique prefix of it
task string wait for this task rather than the whole plan
timeout_ms integer give up after this many milliseconds (0: never)
until string finished (default), attention (also a task waiting for a person) or change

Result: task.WaitResult

terminal

terminal.attach (pipe)

Param Type
height integer
process_id string
width integer

Result: terminal.viewResult

terminal.frames (pipe)

Param Type
height integer
process_id string
width integer

Result: terminal.viewResult

terminal.graphics (pipe)

Param Type
height integer
process_id string
width integer

Result: protocol.Empty

terminal.image (pipe)

Param Type
format string
process_id string
sha256 string
size integer
transfer_id string
view_id string

Result: terminal.ImageReceipt

terminal.input

Param Type
data string
process_id string
view_id string

Result: protocol.Empty

terminal.resize

Param Type
height integer
process_id string
view_id string
width integer

Result: protocol.Empty

terminal.snapshot

Param Type
ansi boolean
process_id string
scrollback integer

Result: terminal.SnapshotResult

workflow

workflow.cancel

Param Type
by string who asks, for a rerun’s record
id string the run’s ID, or a unique prefix of it

Result: workflow.Run

workflow.fire

Param Type
data any the payload, which expressions read as trigger.data
webhook string the webhook’s name, as workflows’ [[on]] webhook says

Result: []workflow.RunSummary

workflow.get

Param Type
name string the workflow’s name (hive workflow list)

Result: workflow.Workflow

workflow.list

No params.

Result: []workflow.Workflow

workflow.reload

No params.

Result: []workflow.Workflow

workflow.rerun

Param Type
by string who asks, for a rerun’s record
id string the run’s ID, or a unique prefix of it

Result: workflow.Run

workflow.run

Param Type
by string who asked, for the run’s record
dir string the directory steps run in unless they name an environment (absolute)
inputs map[string]string the workflow’s inputs, by name
name string a known workflow’s name
source string the file’s name, for errors
toml string the text of a workflow file (instead of name)

Result: workflow.Run

workflow.runs

Param Type
limit integer at most this many (0: every one kept)
workflow string only this workflow’s runs

Result: []workflow.RunSummary

workflow.status

Param Type
by string who asks, for a rerun’s record
id string the run’s ID, or a unique prefix of it

Result: workflow.Run

workflow.trigger

Param Type
name string the trigger’s name, as the plugin’s [[contributes.triggers]] says
payload map[string]any what the workflows’ match filters, and expressions read as trigger.data
plugin string the plugin whose trigger fires (a plugin’s own call says it)

Result: runtime.workflowTriggerResult

workflow.trust

Param Type
name string the workflow’s name
revoke boolean stop its triggers instead

Result: workflow.Workflow

workflow.validate

Param Type
source string the file’s name, for errors (and the workflow’s name when it gives none)
toml string the text of a workflow file

Result: workflow.Spec

workflow.wait

Param Type
id string the run’s ID, or a unique prefix of it
timeout_ms integer give up after this many milliseconds (0: never)

Result: workflow.WaitResult

worktree

worktree.create

Param Type
base string
branch string
env map[string]string
id string
repo string

Result: environment.Environment

worktree.list

Param Type
repo string

Result: []runtime.WorktreeInfo

worktree.open

Param Type
env map[string]string
id string
path string

Result: environment.Environment

worktree.remove

Param Type
force boolean
id string
path string

Result: protocol.Empty

Types

access.AuditEntry

Field Type
action string
client string
detail string
environment string
from string
member string
method string
name string
outcome string
time string

access.Grant

Field Type
environment string
role string

access.Member

Field Type
created_at string
expires_at string
fingerprint string
grants []access.Grant
id string
key string
last_seen_at string
managed boolean
name string
revoked_at string
state string

agent.Agent

Field Type
completion_seq integer
environment_id string
id string
kind string
last_output string
name string
owner presence.Person
pane_id string
pid integer
reason string
session_id string
since string
source string
state string
state_seq integer
tab_id string

agent.Detect

Field Type
args_regex string
process []string

agent.Explanation

Field Type
agent agent.Agent
detected string
manifest string
manifest_source string
quiet_ns integer nanoseconds
report agent.ReportState
screen []string
verdict agent.Verdict
worked_since_seen boolean

agent.Input

Field Type
image string

agent.KeysParams

Field Type
id string
keys []string

agent.ListResult

Field Type
agents []agent.Agent
rollups agent.Rollups

agent.Manifest

Field Type
activity boolean
detect agent.Detect
id string
input agent.Input
name string
priority integer
resume agent.Resume
rules []agent.Rule
source string
start agent.Start
synthetic boolean

agent.Matcher

Field Type
all []agent.Matcher
any []agent.Matcher
contains string
ignore_case boolean
line_regex string
not agent.Matcher
regex string

agent.PromptParams

Field Type
id string
read integer
stall_timeout_ms integer
start_timeout_ms integer
text string
timeout_ms integer
until string
wait boolean

agent.PromptResult

Field Type
agent agent.Agent
outcome string
output []string

agent.ReadParams

Field Type
ansi boolean
id string
lines integer
source string

agent.ReloadResult

Field Type
manifests []string
warnings []string

agent.ReportState

Field Type
message string
session_id string
state string
ttl integer nanoseconds
until string

agent.Resume

Field Type
args []string
last []string

agent.Rollups

Field Type
environments map[string]string
session string
tabs map[string]string

agent.Rule

Field Type
description string
match agent.Matcher
priority integer
region string
state string

agent.Start

Field Type
command []string
submit string
submit_delay_ms integer

agent.Verdict

Field Type
description string
region string
rule integer
state string
text string

agent.WaitParams

Field Type
after integer
id string
stall_ms integer
timeout_ms integer
until string

agent.WaitResult

Field Type
agent agent.Agent
outcome string

agent.idParams

Field Type
id string

agent.listParams

Field Type
all boolean

agent.reportParams

Field Type
id string
message string
session_id string
state string
ttl_ms integer

branch.Branch

Field Type
added integer lines added
ahead integer commits on the branch that its base lacks
base string what the branch merges into: a branch, or a commit
base_commit string the commit it started from
behind integer commits on its base that the branch lacks
changed []string the changed files (at most 200)
checking boolean its gates are running
cleanup string why a merged branch’s worktree was not removed
closed_at string when its worktree was removed
comments []branch.Comment review comments, sent or waiting to be sent to its agent
committed boolean it has been seen with commits of its own
created_at string
deleted integer lines deleted
dirty boolean uncommitted changes in the worktree
environment_id string its worktree’s environment, while there is one
error string why it could not be read last time
files integer files changed against its base, uncommitted changes included
gates []branch.GateResult the last run of its gates
head string the commit checked out
id string the branch’s ID in Hive: its environment’s ID when it was made
in_progress boolean a merge or rebase is stopped there, for a person to resolve
merged_at string
name string the branch’s name
overlaps []branch.Overlap other branches (or its base) changing the same files
owner branch.Owner the agent or task it was made for
path string its worktree, while there is one
pull_request branch.PullRequest the pull request opened for it, on request
pushed branch.Push its last push, made on request
ready_at string when its gates passed
ready_tree string the files its gates passed on (a git tree)
repo string the repository (its main working tree)
rev integer
saved string the ref keeping uncommitted work discarded with its worktree
started boolean an agent has worked there
state string created, working, ready, merged, cleaned or removed
updated_at string

branch.CheckParams

Field Type
ref string read this branch’s repository
repo string read this repository (its main working tree); neither: every repository

branch.CleanRequest

Field Type
delete_branch boolean also delete the local branch once git agrees it has merged
force boolean remove it even with uncommitted changes (they are saved under refs/hive/saved/ first)
merged boolean every merged branch, instead of one
ref string the branch

branch.Comment

Field Type
at string
body string
by string
id integer
line integer
path string
sent_at string
sent_to string

branch.CommentRequest

Field Type
body string the comment
by string who wrote it
line integer the line it is about, in the branch’s version of the file
path string the file it is about
ref string the branch
send boolean send it (and every comment not sent yet) to the branch’s agent now

branch.ConflictFile

Field Type
content string
path string
truncated boolean

branch.Conflicts

Field Type
branch string
clean boolean
files []branch.ConflictFile
with string

branch.ConflictsRequest

Field Type
ref string the branch
with string another branch to merge with (default: its base)

branch.Diff

Field Type
base string what it merges into
branch string the branch’s name
dirty boolean
files []git.FileChange
from string
head string
patch string
to string
truncated boolean

branch.DiffRequest

Field Type
context integer lines of context around each change (default 3)
limit integer the most bytes of patch to return (default 512 KiB, at most 4 MiB)
paths []string only these files
ref string the branch: its ID, environment, agent, plan/task or name
stat boolean only the files and their line counts, no patch

branch.Gate

Field Type
command []string the command, as an argument vector
name string what it checks
repo string only for repositories in this directory (empty: every one)
timeout_ms integer how long it may take, in milliseconds (default 30 minutes)

branch.GateResult

Field Type
at string
command []string
duration_ms integer
error string
exit_code integer
name string
output []string
passed boolean
skipped boolean

branch.ListRequest

Field Type
all boolean include cleaned and removed branches
repo string only this repository’s branches (its main working tree)

branch.Overlap

Field Type
branch string the other branch’s name, or the base’s
conflicts []string files a merge of the two would conflict on
files []string files both change
unknown boolean conflicts are unknown: git is too old to compute them
with string the other branch’s ID; empty when it is the base

branch.Owner

Field Type
agent string the agent’s ID
kind string the agent’s kind
plan string the plan of the task it was made for
task string the task it was made for

branch.PullRequest

Field Type
at string
draft boolean
forge string
number integer
url string

branch.PullRequestRequest

Field Type
base string the branch it would merge into (default: the branch’s base)
body string the description (default: its commits and gates)
draft boolean open it as a draft
push boolean push the branch first if the remote lacks its commits
ref string the branch
remote string the remote (default: its upstream’s, else origin)
title string the title (default: its first commit’s subject)

branch.Push

Field Type
at string
commit string
remote string

branch.PushRequest

Field Type
ref string the branch
remote string the remote to push to (default: its upstream’s, else origin)

branch.ReadyRequest

Field Type
gates []branch.Gate gates to run instead of the configured ones
ref string the branch

branch.Ref

Field Type
ref string the branch: its ID, environment, agent, plan/task or name

branch.UpdateRequest

Field Type
abort boolean undo a merge or rebase stopped on a conflict
rebase boolean rebase onto the base instead of merging it
ref string the branch

branch.UpdateResult

Field Type
branch branch.Branch
conflicts []string

environment.CreateRequest

Field Type
env map[string]string
id string
root string
worktree environment.Worktree

environment.Environment

Field Type
created_at string
env map[string]string
git git.Status
id string
managed boolean
name string
path string
schema integer
status string
worktree environment.Worktree

environment.UpdateRequest

Field Type
id string
set map[string]string
unset []string

environment.Worktree

Field Type
branch string
repo string

environment.idParams

Field Type
id string

event.subscribeParams

Field Type
types []string

event.subscribeResult

Field Type
seq integer

git.FileChange

Field Type
added integer
deleted integer
from string
path string
status string

git.Status

Field Type
ahead integer
behind integer
branch string
conflicts integer
detached boolean
head string
modified integer
root string
staged integer
untracked integer
upstream string

insights.Alert

Field Type
action string
budget string
environment string
held boolean
key string
level string
limit insights.Limits
message string
per string
time string
used insights.Amounts
window string

insights.Amounts

Field Type
cost_known boolean
cost_usd number
tokens integer
tokens_known boolean
working_ms integer

insights.Ask

Field Type
agent string
end string
environment string
kind string
name string
open boolean
pane string
plan string
reason string
start string
state string
task string
waited_ms integer

insights.AsksParams

Field Type
by string group rows by kind (default), agent, environment, task, day or model
environment string only this environment
from string from this time (default: the start of today, local time)
kind string only this agent kind
limit integer at most this many (default and most 1000)
to string until this time (default: now)

insights.Budget

Field Type
action string
cost_usd number
environment string
kind string
name string
per string
tokens integer
warn_at number
working_ms integer

insights.BudgetStatus

Field Type
budget insights.Budget
fraction number
held boolean
key string
level string
resumed boolean
used insights.Amounts
window string

insights.ExportParams

Field Type
by string group rows by kind (default), agent, environment, task, day or model
environment string only this environment
from string from this time (default: the start of today, local time)
kind string only this agent kind
to string until this time (default: now)
what string spans, usage or alerts

insights.Limits

Field Type
cost_usd number
tokens integer
working_ms integer

insights.QueryParams

Field Type
by string group rows by kind (default), agent, environment, task, day or model
environment string only this environment
from string from this time (default: the start of today, local time)
kind string only this agent kind
to string until this time (default: now)

insights.Record

Field Type
alert insights.Alert
span insights.Span
type string
usage insights.Usage
v integer

insights.ResumeParams

Field Type
budget string the budget’s name
key string one key of it (a plan, environment or kind; default: every held one)

insights.Row

Field Type
agents integer
asks integer
cost_usd number
key string
models []string
sources []string
states_ms map[string]integer
tokens insights.Tokens
waiting_ms integer

insights.Span

Field Type
agent string
end string
environment string
kind string
name string
pane string
plan string
reason string
start string
state string
task string

insights.Summary

Field Type
by string
from string
rows []insights.Row
to string
total insights.Row

insights.Tokens

Field Type
cache_read integer
cache_write integer
input integer
output integer

insights.Usage

Field Type
agent string
cost_usd number
environment string
kind string
model string
name string
pane string
plan string
session string
source string
task string
time string
tokens insights.Tokens

insights.UsageParams

Field Type
cache_read integer input tokens read from a cache
cache_write integer input tokens written to a cache
cost_usd number cost in US dollars, as the agent or provider stated it
id string the agent’s pane or process ID
input integer input tokens (not cached)
model string the model the usage is for
output integer output tokens
session string the agent’s session (default: the agent): totals are per session
source string where the numbers come from: report (default), transcript, statusline, or a name of the reporter’s
total boolean the numbers are the session’s totals so far (what grew is recorded), not an increment

insights.UsageResult

Field Type
agent insights.Who
recorded insights.Usage

insights.Who

Field Type
agent string
environment string
kind string
name string
pane string
plan string
task string

issue.CloseParams

Field Type
comment string a comment to add as it closes
ref string tracker:key

issue.CommentParams

Field Type
body string the comment, as the tracker formats it (Markdown on GitHub)
ref string tracker:key

issue.Issue

Field Type
assignees []string
body string
key string the tracker’s own name for it: HIV-42, owner/repo#42
labels []string
ref string tracker:key, as Hive names it
state string open or closed, as the tracker says
title string
tracker string the tracker: github, or a plugin’s
updated_at string
url string

issue.RefParams

Field Type
ref string tracker:key (linear:HIV-42, github:owner/repo#42)

issue.SearchParams

Field Type
limit integer at most this many (default 20, at most 100)
query string what to search for, in the tracker’s own syntax
tracker string only this tracker (default: every one)

layout.Node

Field Type
first layout.Node
pane string
ratio number
second layout.Node
split string

layout.Rect

Field Type
H integer
W integer
X integer
Y integer

metadata.Entry

Field Type
environment string
pane string
title string
title_until string
tokens []metadata.Token

metadata.Report

Field Type
clear boolean
environment string
pane string
source string
title string
tokens map[string]string
ttl integer nanoseconds

metadata.Token

Field Type
key string
source string
text string
until string

observer.ActiveObserver

Field Type
connections integer
id string
name string

observer.Activity

Field Type
observers []observer.ActiveObserver
watched map[string]integer

observer.AuditEntry

Field Type
action string
client string
credential string
detail string
name string
time string

observer.Credential

Field Type
created_at string
expires_at string
id string
last_used_at string
name string
revoked_at string
scope observer.Scope
screens boolean
state string

observer.Scope

Field Type
all boolean
environments []string
panes []string

pane.ApplyResult

Field Type
created_environments []string
panes integer
tabs []pane.Tab

pane.CreateTabRequest

Field Type
environment_id string
name string
pane pane.Spec

pane.EnvironmentSpec

Field Type
env map[string]string
id string
root string
tabs []pane.TabSpec

pane.LayoutSpec

Field Type
environments []pane.EnvironmentSpec
version integer

pane.MoveRequest

Field Type
direction string
environment_id string
pane string
tab_id string
target string

pane.NodeSpec

Field Type
first pane.NodeSpec
pane pane.Spec
ratio number
second pane.NodeSpec
split string

pane.Pane

Field Type
created_at string
environment_id string
focused boolean
id string
name string
popup boolean
process process.Process
process_id string
rect layout.Rect
tab_id string
view string
zoomed boolean

pane.Popup

Field Type
height_pct integer
pane string
width_pct integer

pane.PopupRequest

Field Type
height_pct integer
spec pane.Spec
tab_id string
width_pct integer

pane.Spec

Field Type
command []string
cwd string
env map[string]string
name string
view string

pane.SplitRequest

Field Type
direction string
focus boolean
pane string
ratio number
spec pane.Spec
tab_id string

pane.Tab

Field Type
active boolean
created_at string
environment_id string
focused string
height integer
id string
layout layout.Node
name string
popups []pane.Popup
width integer
zoomed string

pane.TabSpec

Field Type
layout pane.NodeSpec
name string

pane.exportParams

Field Type
environments []string

pane.focusParams

Field Type
direction string
id string

pane.idParams

Field Type
id string

pane.inputParams

Field Type
data string
id string

pane.keysParams

Field Type
id string
keys []string

pane.listParams

Field Type
environment_id string
tab_id string

pane.paneResizeParams

Field Type
cells integer
direction string
id string

pane.readParams

Field Type
ansi boolean
id string
lines integer
source string

pane.renameParams

Field Type
id string
name string

pane.runParams

Field Type
command string
id string

pane.swapParams

Field Type
id string
with string

pane.tabResizeParams

Field Type
height integer
id string
width integer

pane.textParams

Field Type
id string
paste boolean
text string

pane.waitParams

Field Type
anywhere boolean
id string
pattern string
timeout_ms integer

pane.zoomParams

Field Type
id string
on boolean

persist.GCReport

Field Type
bytes integer
dry_run boolean
files []string
processes []string

persist.GCRequest

Field Type
dry_run boolean
older_than integer nanoseconds

persist.RestoreReport

Field Type
panes []persist.RestoredPane

persist.RestoreRequest

Field Type
resume_agents boolean

persist.RestoredPane

Field Type
agent string
command []string
cwd string
environment string
error string
pane string
process_id string
resumed string
typed string

persist.SaveResult

Field Type
path string
written boolean

plugin.Action

Field Type
async boolean
command []string
id string
timeout string
title string

plugin.ActionStats

Field Type
canceled integer
failed integer
run integer
timed_out integer

plugin.CapabilityInfo

Field Type
description string
enforced string
name string

plugin.Card

Field Type
id string
scope string
title string

plugin.CardContent

Field Type
card string
environment string
links []plugin.Link
pane string
plugin string
rows []plugin.CardRow
title string
until string

plugin.CardRow

Field Type
label string
text string
tone string

plugin.CardUpdate

Field Type
card string
environment string
links []plugin.Link
pane string
plugin string
rows []plugin.CardRow
ttl integer nanoseconds

plugin.ConfigView

Field Type
error string
name string
path string
plugin string
schema_version integer
settings []plugin.Setting
values map[string]any
warnings []string

plugin.Configuration

Field Type
directory string
settings []plugin.Setting
version integer

plugin.ContextAction

Field Type
action string
contexts []string
title string

plugin.Contributes

Field Type
actions []plugin.ContextAction
cards []plugin.Card
forges []plugin.ForgeDecl
links []plugin.Link
palette []plugin.PaletteEntry
status []plugin.StatusIndicator
steps []plugin.StepDecl
trackers []plugin.TrackerDecl
triggers []plugin.TriggerDecl
views []plugin.ViewDecl

plugin.Contribution

Field Type
action string
available boolean
contexts []string
hidden boolean
id string
key string
kind string
plugin string
scope string
title string
url string

plugin.Contributions

Field Type
cards []plugin.CardContent
declared []plugin.Contribution
status []plugin.StatusContent

plugin.Discovery

Field Type
api integer
capabilities []plugin.CapabilityInfo
contributions []string
events []string
granted []string
hive_version string
isolation []string
methods []string
plugin string
supported_apis []integer

plugin.Event

Field Type
command []string
on string
timeout string

plugin.EventStats

Field Type
delivered integer
dropped integer
failed integer
queued integer

plugin.ForgeDecl

Field Type
command []string
hosts []string
name string

plugin.Grant

Field Type
denied []string
effective []string
missing []string
ungranted []string

plugin.Health

Field Type
actions plugin.ActionStats
crashes integer
events plugin.EventStats
last_error string
last_error_at string
loaded_at string
ready_at string
requests []plugin.PermissionRequest
restarts integer
since string
state string
warnings []string
Field Type
id string
title string
url string

plugin.Manifest

Field Type
actions []plugin.Action
api integer
configuration plugin.Configuration
contributes plugin.Contributes
data_directory string
description string
event_concurrency integer
events []plugin.Event
id string
isolation string
isolation_reason string
max_hive_version string
migrations []plugin.Migration
min_hive_version string
name string
permissions plugin.Permissions
platforms []string
runtime []plugin.Runtime
startup []plugin.Startup
test plugin.TestSpec
version string

plugin.Migration

Field Type
command []string
from integer
to integer

plugin.NetworkScope

Field Type
hosts []string

plugin.PaletteEntry

Field Type
action string
title string

plugin.ParamSpec

Field Type
default any
description string
required boolean
type string

plugin.PermissionRequest

Field Type
at string
capability string
plugin string
reason string

plugin.Permissions

Field Type
network plugin.NetworkScope
optional []string
process plugin.ProcessScope
reasons map[string]string
required []string

plugin.ProcessScope

Field Type
exec []string

plugin.Provenance

Field Type
attestation string
builder string
repository string
run string
workflow string

plugin.Result

Field Type
async boolean
exit_code integer
output string
run string

plugin.Revocation

Field Type
advisory string
id string
reason string
revoked_at string
version string

plugin.RunInfo

Field Type
action string
async boolean
id string
started string

plugin.Runtime

Field Type
command string
kind string
min_version string

plugin.Setting

Field Type
default any
description string
name string
required boolean
type string

plugin.Startup

Field Type
command []string
restart boolean

plugin.Status

Field Type
api integer
checked_at string
checksum string
commit string
dir string
enabled boolean
grant plugin.Grant
granted []string
health plugin.Health
id string
installed_at string
isolation string
last_error string
linked boolean
manifest plugin.Manifest
previous_checksum string
previous_commit string
previous_ref string
previous_trust plugin.Trust
previous_version string
problem string
provenance plugin.Provenance
publisher string
ref string
registry boolean
revoked plugin.Revocation
running integer
runs []plugin.RunInfo
sandbox string
signed_by string
source string
tier string
version string

plugin.StatusContent

Field Type
indicator string
plugin string
text string
tone string
until string

plugin.StatusIndicator

Field Type
id string
title string

plugin.StatusUpdate

Field Type
indicator string
plugin string
text string
tone string
ttl integer nanoseconds

plugin.StepDecl

Field Type
command []string
description string
inputs map[string]plugin.ParamSpec
name string
outputs map[string]plugin.ParamSpec
timeout string

plugin.TestSpec

Field Type
command []string
timeout string

plugin.TrackerDecl

Field Type
command []string
name string

plugin.TriggerDecl

Field Type
description string
name string

plugin.Trust

Field Type
checked_at string
provenance plugin.Provenance
publisher string
revoked plugin.Revocation
signed_by string
tier string

plugin.ViewClick

Field Type
environment string
node string
pane string
plugin string
tab string
view string

plugin.ViewContent

Field Type
available boolean
doc plugin.ViewDoc
plugin string
title string
updated string
view string

plugin.ViewDecl

Field Type
command []string
id string
title string

plugin.ViewDoc

Field Type
root plugin.ViewNode

plugin.ViewNode

Field Type
action string
children []plugin.ViewNode
columns []string
id string
kind string
rows [][]string
style string
text string
url string
value number

plugin.ViewUpdate

Field Type
doc plugin.ViewDoc
plugin string
view string

presence.Entry

Field Type
client string
connection string
environment string
pane string
person presence.Person
since string
tab string

presence.Hold

Field Type
environment string
holder presence.Person
pane string
process_id string
since string
until string

presence.Person

Field Type
id string
name string

process.LogsRequest

Field Type
follow boolean
id string
stream string
tail integer

process.Process

Field Type
args []string
command string
ended_at string
env map[string]string
environment_id string
exit_code integer
id string
log_dir string
lost boolean
owner presence.Person
pid integer
started_at string
status string
terminal boolean
working_dir string

process.StartRequest

Field Type
args []string
command string
cwd string
env map[string]string
environment_id string
height integer
terminal boolean
width integer

process.idParams

Field Type
id string

process.listParams

Field Type
environment_id string

process.logsResult

Field Type
logs string
truncated boolean

protocol.Empty

An object.

protocol.LinkReport

Field Type
budget integer
rtt_us integer

protocol.MethodSchema

Field Type
name string
params any
pipe boolean
result any

protocol.Schema

Field Type
$defs map[string]any
api_level integer
methods []protocol.MethodSchema

runtime.APISnapshot

Field Type
agents []agent.Agent
daemon runtime.Snapshot
environments []environment.Environment
panes []pane.Pane
processes []process.Process
rollups agent.Rollups
tabs []pane.Tab

runtime.AccessDoctor

Field Type
authorized_keys string
fixed boolean
problems []string

runtime.AccessInviteParams

Field Type
grants []access.Grant
key string
name string
print boolean
ttl_seconds integer

runtime.AccessInvited

Field Type
authorized_keys string
line string
member access.Member
socket string

runtime.AccessList

Field Type
authorized_keys string
enabled boolean
members []runtime.AccessMember
socket string

runtime.AccessMember

Field Type
connections integer
created_at string
expires_at string
fingerprint string
grants []access.Grant
id string
key string
last_seen_at string
managed boolean
name string
revoked_at string
state string

runtime.AgentHandedOver

Field Type
agent agent.Agent
from presence.Person

runtime.AgentStartRequest

Field Type
args []string
base string
env map[string]string
environment_id string
isolate boolean
kind string
name string
worktree string

runtime.AgentStarted

Field Type
agent agent.Agent
environment environment.Environment
pane pane.Pane
tab pane.Tab

runtime.ObserverCreateParams

Field Type
name string
scope observer.Scope
screens boolean
ttl_seconds integer

runtime.ObserverCreated

Field Type
credential observer.Credential
socket string
token string

runtime.ObserverInfo

Field Type
connections integer
created_at string
expires_at string
id string
last_used_at string
name string
revoked_at string
scope observer.Scope
screens boolean
state string

runtime.ObserverList

Field Type
credentials []runtime.ObserverInfo
enabled boolean
socket string

runtime.ObserverValidation

Field Type
credential observer.Credential
state string
valid boolean

runtime.PaneClaimed

Field Type
holder presence.Person
previous presence.Person

runtime.PluginRunRequest

Field Type
action string
environment string
pane string
plugin string
tab string

runtime.PprofRequest

Field Type
profile string
seconds integer

runtime.PresenceList

Field Type
holds []presence.Hold
presence []presence.Entry

runtime.Snapshot

Field Type
agents_survive_restart boolean
api_level integer
pid integer
protocol_version string
session string
socket string
started_at string
status string
version string

runtime.Stats

Field Type
goroutines integer
heap_alloc integer
heap_sys integer
num_gc integer
open_fds integer
started_at string
uptime_seconds number

runtime.WhoAmI

Field Type
from string
member access.Member
notify boolean
owner boolean

runtime.WorktreeCreateRequest

Field Type
base string
branch string
env map[string]string
id string
repo string

runtime.WorktreeInfo

Field Type
bare boolean
branch string
detached boolean
environments []string
head string
locked boolean
main boolean
path string

runtime.WorktreeOpenRequest

Field Type
env map[string]string
id string
path string

runtime.WorktreeRemoveRequest

Field Type
force boolean
id string
path string

runtime.accessAuditParams

Field Type
limit integer
member string

runtime.accessDoctorParams

Field Type
fix boolean

runtime.accessGrantParams

Field Type
environment string
member string
role string observer, operator, owner, or none to take the role away

runtime.accessRef

Field Type
member string

runtime.accessRenewParams

Field Type
member string
ttl_seconds integer

runtime.agentIDParams

Field Type
id string

runtime.agentRenameParams

Field Type
id string
name string

runtime.assignParams

Field Type
id string the plan’s ID, or a unique prefix of it
task string the task to assign; without it, the plan and its unfinished tasks
to string who gets it: a member’s name or ID, or owner for the runtime’s own user

runtime.handoverParams

Field Type
id string the agent’s ID, or its pane’s
to string who gets it: a member’s name or ID, or owner for the runtime’s own user

runtime.observerAuditParams

Field Type
credential string
limit integer

runtime.observerRef

Field Type
id string

runtime.observerValidateParams

Field Type
token string

runtime.paneClaimParams

Field Type
force boolean
pane string

runtime.paneReleaseParams

Field Type
pane string

runtime.pluginConfigSet

Field Type
plugin string
set map[string]any
unset []string

runtime.pluginParams

Field Type
plugin string

runtime.pluginRequestParams

Field Type
capability string
plugin string
reason string

runtime.pluginRunRef

Field Type
plugin string
run string

runtime.presenceSetParams

Field Type
environment string
pane string
tab string

runtime.workflowTriggerParams

Field Type
name string the trigger’s name, as the plugin’s [[contributes.triggers]] says
payload map[string]any what the workflows’ match filters, and expressions read as trigger.data
plugin string the plugin whose trigger fires (a plugin’s own call says it)

runtime.workflowTriggerResult

Field Type
runs []string

runtime.worktreeListParams

Field Type
repo string

task.Approval

Field Type
approved boolean
by string
decided_at string
note string
requested_at string

task.ApproveParams

Field Type
by string who decides, for the task’s log
deny boolean refuse: cancel the task instead of starting it
id string the plan’s ID, or a unique prefix of it
note string why, for the task’s log
task string the task (may be left out when one task waits)

task.LogEntry

Field Type
message string
time string

task.Plan

Field Type
cancelled boolean
created_at string
ended_at string
id string
kinds map[string]integer
max_parallel integer
name string
owner presence.Person
reason string
rev integer
schema integer
state string
tasks []task.Task
timeout_ms integer

task.PlanSpec

Field Type
defaults task.Spec values for what a task leaves out (id, prompt and needs are never taken from here)
kinds map[string]integer per agent kind, how many of its tasks may run at once
max_parallel integer how many of its tasks may run at once (0: as many as the machines allow)
name string what the plan is for
tasks []task.Spec the tasks, in any order; needs orders them
timeout_ms integer the plan’s time budget in milliseconds; unfinished tasks are cancelled when it runs out (0: none)

task.Ref

Field Type
id string the plan’s ID, or a unique prefix of it
task string one of its tasks

task.Result

Field Type
changed []string
changed_more integer
exit_code integer
outcome string
output []string
screen []string
summary string

task.RunParams

Field Type
plan task.PlanSpec the plan, as data
source string the plan file’s name, for errors
toml string the plan, as the text of a plan file (instead of plan)

task.Spec

Field Type
approve boolean wait for a person’s approval before starting
args []string extra command-line arguments for the agent
base string where a new worktree branch starts (default HEAD)
close_issue boolean close the issue when the task’s branch merges
command []string with until=command: the command whose exit status decides
env map[string]string extra environment variables for the agent
environment_id string the environment to run in, or to make a worktree of
id string the task’s name within its plan (letters, digits, ‘.’, ‘_’, ‘-’)
isolate boolean run in a new worktree on hive/<plan>/<task> unless worktree names a branch
issue string the issue it works on, as tracker:key (linear:HIV-42, github:owner/repo#42)
keep_agent boolean leave the agent running when the task ends
kind string the agent: claude, codex, … (see agent.manifests)
labels []string run on a machine that has all of these labels
machine string the saved machine to run on (local: this one)
match string with until=match: a regular expression the agent’s screen must match
needs []string tasks that must succeed first
no_summary boolean do not ask the agent to write a summary
prompt string what the agent is asked to do
retries integer how many times a failed attempt is retried automatically
timeout_ms integer how long the agent may work on it, in milliseconds (0: no bound)
title string a one-line description
until string done (default), idle, match or command
worktree string a branch: run in a new worktree on it

task.Summary

Field Type
attention []task.TaskView
counts map[string]integer
created_at string
ended_at string
id string
name string
owner presence.Person
reason string
rev integer
state string
total integer

task.Task

Field Type
agent_id string
approval task.Approval
attempt integer
base_commit string
ended_at string
environment_id string
log []task.LogEntry
machine string
owner presence.Person
pane_id string
path string
phase string
ready_at string
reason string
remote string
result task.Result
retried integer
spec task.Spec
started_at string
state string
worked_ms integer

task.TaskView

Field Type
agent_id string
attempt integer
ended_at string
environment string
id string
kind string
machine string
needs []string
owner presence.Person
pane_id string
plan_id string
reason string
rev integer
started_at string
state string
title string

task.WaitParams

Field Type
after integer with until=change: the plan revision already seen
id string the plan’s ID, or a unique prefix of it
task string wait for this task rather than the whole plan
timeout_ms integer give up after this many milliseconds (0: never)
until string finished (default), attention (also a task waiting for a person) or change

task.WaitResult

Field Type
outcome string
plan task.Plan

terminal.ImageReceipt

Field Type
delivery string
done boolean
path string

terminal.SnapshotResult

Field Type
alt_screen boolean
cursor vt.Cursor
height integer
lines []string
scrollback []string
title string
width integer

terminal.imageParams

Field Type
format string
process_id string
sha256 string
size integer
transfer_id string
view_id string

terminal.inputParams

Field Type
data string
process_id string
view_id string

terminal.resizeParams

Field Type
height integer
process_id string
view_id string
width integer

terminal.snapshotParams

Field Type
ansi boolean
process_id string
scrollback integer

terminal.viewParams

Field Type
height integer
process_id string
width integer

terminal.viewResult

Field Type
height integer
view_id string
width integer

vt.Cursor

Field Type
Blink boolean
Hidden boolean
Shape integer
X integer
Y integer

workflow.FireParams

Field Type
data any the payload, which expressions read as trigger.data
webhook string the webhook’s name, as workflows’ [[on]] webhook says

workflow.InputSpec

Field Type
default string
description string
name string
required boolean

workflow.LogEntry

Field Type
message string
time string

workflow.NameParams

Field Type
name string the workflow’s name (hive workflow list)

workflow.Repeat

Field Type
max integer
until string

workflow.Resolved

Field Type
action string
dir string
env map[string]string
environment_id string
kind string
prompt string
run []string
shell string
uses string
with map[string]string
worktree string

workflow.Result

Field Type
attempt integer
changed []string
changed_more integer
ended_at string
exit_code integer
index integer
item string
kind string
outcome string
output []string
outputs map[string]string
plan string
reason string
resolved workflow.Resolved
screen []string
started_at string
summary string

workflow.Run

Field Type
cancelled boolean
created_at string
digest string
dir string
ended_at string
id string
inputs map[string]string
outputs map[string]string
path string
reason string
rev integer
schema integer
source string
spec workflow.Spec
started_at string
state string
steps []workflow.StepRun
trigger workflow.Trigger
workflow string

workflow.RunParams

Field Type
by string who asked, for the run’s record
dir string the directory steps run in unless they name an environment (absolute)
inputs map[string]string the workflow’s inputs, by name
name string a known workflow’s name
source string the file’s name, for errors
toml string the text of a workflow file (instead of name)

workflow.RunRef

Field Type
by string who asks, for a rerun’s record
id string the run’s ID, or a unique prefix of it

workflow.RunSummary

Field Type
counts map[string]integer
created_at string
current []string
ended_at string
id string
reason string
rev integer
started_at string
state string
total integer
trigger string
workflow string

workflow.RunsParams

Field Type
limit integer at most this many (0: every one kept)
workflow string only this workflow’s runs

workflow.Spec

Field Type
concurrency string
description string
environment string
inputs []workflow.InputSpec
name string
outputs map[string]string
steps []workflow.StepSpec
timeout_ms integer
triggers []workflow.TriggerSpec
version integer

workflow.StepRun

Field Type
attempt integer
attempts integer
current workflow.Result
ended_at string
id string
items []string
iteration integer
kind string
log []workflow.LogEntry
next_at string
reason string
results []workflow.Result
started_at string
state string

workflow.StepSpec

Field Type
action string
agent []string
backoff_ms integer
base string
check []string
dir string
env map[string]string
environment string
foreach []string
foreach_expr string
id string
if string
isolate boolean
keep_agent boolean
labels []string
machine string
match string
name string
needs []string
no_summary boolean
on_failure string
prompt string
repeat workflow.Repeat
retries integer
run []string
shell string
timeout_ms integer
until string
uses string
with map[string]string
worktree string

workflow.Trigger

Field Type
by string
data map[string]any
from string
index integer
time string
type string

workflow.TriggerInfo

Field Type
description string
type string

workflow.TriggerSpec

Field Type
branches []string
event string
every_ms integer
git string
inputs map[string]string
match map[string]string
plugin string
remote string
repo string
schedule string
webhook string

workflow.TrustParams

Field Type
name string the workflow’s name
revoke boolean stop its triggers instead

workflow.ValidateParams

Field Type
source string the file’s name, for errors (and the workflow’s name when it gives none)
toml string the text of a workflow file

workflow.WaitParams

Field Type
id string the run’s ID, or a unique prefix of it
timeout_ms integer give up after this many milliseconds (0: never)

workflow.WaitResult

Field Type
outcome string
run workflow.Run

workflow.Workflow

Field Type
description string
digest string
error string
inputs []workflow.InputSpec
last workflow.RunSummary
name string
next string
own boolean
path string
problems []string
spec workflow.Spec
steps integer
text string
triggers []workflow.TriggerInfo
trusted boolean