Reviewing agent work

Agents open pull requests. People decide what ships. Hiveship gathers the pull requests waiting on a person into one queue and tells you how each one stands. It never merges anything: you read the code and approve on GitHub.

The review queue

Open Reviews in the sidebar. It is on every plan. Each row is an issue with at least one open pull request linked to it, and the sidebar badge counts the ones delegated to an agent.

Rows are sorted by what needs you most:

  1. Changes requested
  2. Needs review
  3. Approved, but not merged yet

Within each group, the one that has waited longest comes first. A row shows:

  • The issue key and title, with the agent’s avatar when the issue is delegated. Opening it lands on the issue’s Activity tab when an agent worked on it, so you see the session record next to the pull request.
  • Its state, and how long it has been waiting.
  • One chip per open pull request: its size (lines added and removed), the comment count, and who it is on (“approved by” the reviewer, “changes requested”, or “waiting on” the requested reviewers). The chip opens the pull request on GitHub.
  • For stacked pull requests, each chip says where it sits (“2 of 3 in stack”) and the bottom one says to review it first.

The queue opens on Agent PRs, the issues delegated to an agent. Switch to All PRs to see pull requests on issues people are working too. Next to the queue, Recently merged lists the latest merges and how long each took after it was linked. Use j and k to move between rows.

Where the data comes from

A pull request joins the queue once it is linked to an issue: by the agent with link_pr, by a branch named after the issue key, or by pasting its URL on the issue. Review state, requested reviewers and merges come from the GitHub webhook; the size comes from the webhook or from the agent when it links the PR. Without the webhook, the review chips stay empty and Hiveship doesn’t see a merge: a merged pull request stays in the queue unless the agent reports the merge with link_pr. CI check results are not shown.

Approve on GitHub

Read the diff, comment on lines, approve and merge on GitHub, as you do today. Hiveship has no merge button and no diff view. With the GitHub webhook set up, an approval turns the chip to “approved by” the reviewer (their Hiveship name when their GitHub account is linked to a member, otherwise their GitHub login), and a merge takes the pull request out of the queue and into Recently merged.

Send it back

When the work isn’t right, use Send back on an agent’s row. Write what needs to change and pick the status to move the issue to (In Progress by default). One action then does three things:

  • Your note is posted as a comment on the issue.
  • The issue moves to the status you picked.
  • The same agent gets a new queued session for the issue. If it is still working on it, the running session picks up your note instead.

The new session reaches the agent the same way a delegation does, so it starts when the agent next checks its queue or its delegation webhook fires. Queueing it is best effort: if a limit stops the new run, your note and the status change still land, and the confirmation tells you no run was queued.

Send back is for agent rows only; for a person’s pull request, review it on GitHub. Anyone in the workspace except a Viewer can send work back.

Pull request rules

Two rules move the issue as its pull request moves. Set them in the Pull request rules card at the top of Workspace settings → Automations. They work on every plan.

  • PR opened: the issue’s first linked pull request moves it to the status you choose, such as In Review. Off until you turn it on.
  • PR merged: when the issue’s last open pull request merges, the issue moves to Done (or the completed status you choose). On by default for a new workspace.

The rules fire for pull requests the webhook links and for ones an agent links with link_pr. Agents read the same rules to know where to leave the story when they finish. More detail in the GitHub integration docs.

What a person owns

  • The issue. The assignee is always a person. An agent is delegated the work and shows up beside the assignee; Hiveship rejects an agent as assignee.
  • The review. Set a Reviewer on the issue to ask someone to review it without changing who owns it. An agent finishing up can request a reviewer the same way, but only a person can be one.
  • The criteria. People write and reorder acceptance criteria; an agent can only tick them.
  • Who works on what. People and automations delegate. An agent can’t delegate a story directly to another agent, and only a person can unlink a pull request.
  • The decision to ship. Hiveship never approves or merges a pull request. That happens on GitHub, where your own branch rules apply.

What stays in GitHub

The code, the diff, line comments, approvals, CI and the merge all stay in GitHub. Hiveship shows what you need to decide where to look: which pull requests are waiting, how big they are, who they are on, and what the agent did on the issue to get there.

Next steps