Agent sessions and what is recorded

A session is one run of an agent on one issue. It records what the agent did, so a teammate can see how the work went without asking. It is not a recording of the developer’s session: Hiveship keeps a short line per step and the agent’s messages, and drops the rest.

Session states

  • Queued. The issue was delegated to the agent, or sent back to it from the review queue, and the agent hasn’t started yet.
  • Working. The agent has picked the story up and is working on it.
  • Waiting for input. The agent asked a question and is waiting for a person.
  • Completed. The agent finished and closed the session, usually with a short summary.
  • Errored. The agent reported a failure, the session timed out, or a person removed the delegation while it was still open.

Queued, working and waiting for input are the live states. An issue has at most one live session at a time, and an agent can only report on its own sessions.

When a session times out

A queued or working session with no activity for a few hours is marked errored. Each post to the session counts as activity, and so does any Hiveship call the agent makes about the story while the session is working, so an agent that keeps working keeps its session. A session waiting for input never times out, because it is waiting on a person. When a session times out, the issue’s creator and assignee get a notification, and the board card offers Retry. Working with agents explains what to check before you retry.

What the agent posts

Agents report progress with the post_activity MCP tool (or the REST endpoint behind it). Each post is one of five kinds. This is what Hiveship keeps of each:

  • A step (a tool call) is stored as one line: the tool’s name, what it touched (a command, a file path or a search, cut to 80 characters, plus a count of further files), whether it passed or failed, how long it took if the agent said, and for a failed step the first line of the error, cut to 160 characters. The tool’s arguments and its output are dropped.
  • A question is kept as written.
  • A reply (the agent’s response, such as its final summary) is kept up to 2,000 characters.
  • An error keeps its message, up to 500 characters. A stack trace is dropped.
  • A thought is not stored at all.

So Hiveship never keeps the agent’s reasoning, the contents of the files it read, or the output of the commands it ran.

The session itself keeps its state, when it was created, started and finished, the tokens the agent reported, the model it used and the error message if it failed. Linked pull requests live on the issue.

Turn the step log off

Some teams want only the agent’s questions, replies and errors on their issues. A workspace owner or admin can turn step lines off under Settings → General → Agent step log. It is on by default.

With it off, Hiveship stops storing new step lines. Questions, replies and errors are still kept, and the agent’s steps still count as activity, so its session doesn’t time out. Turning it off doesn’t delete step lines already saved. The board card keeps working without steps: it shows the elapsed time, tokens and the latest reply instead.

How long it is kept

The retention window for step lines is 30 days after the session ends, on every plan. Step lines older than that can be deleted, so don’t treat them as a permanent record. The agent’s questions, replies and errors, the session’s state, times and tokens, and the issue’s own history are kept as long as the issue. A live session is never trimmed.

Token usage

An agent can report how many tokens it used, usually when it finishes, as a total or broken down by model (input, output, cache reads and cache writes). Hiveship records what the agent reports; it doesn’t measure usage itself or turn it into a cost. An agent that doesn’t report shows as not reported, never as zero. You see it in three places:

  • Per session: in the session’s header on the issue’s Activity tab, and on each row of the Sessions view.
  • Per story: the Agent sessions section of the issue sidebar adds up every session on the issue, with how many of the finished sessions reported (“2 of 5 reported”).
  • Per workspace: the Token usage panel on Insights shows tokens by model for sessions that finished in the chosen window. Insights is on Pro and up, for owners and admins, and for members who have been given access to Insights.

Who sees sessions

Everyone in the workspace sees the sessions on an issue: the issue’s Activity tab, the board card and the agents section on Home show the work on shared issues.

The Sessions view (open Agents in the sidebar and switch to Sessions) is a history of agent runs, newest first. Filter it by status, by agent and by age (last 7, 30 or 90 days, or any time; it opens on 30). Each row has the issue, the agent, who runs it, the assignee, the status, when it started, how long it took, its tokens and up to three linked pull requests.

  • Mine lists sessions of agents you own, on any issue, plus sessions of agents that have no owner on issues assigned to you. Everyone opens on Mine.
  • All lists every session in the workspace. Only owners and admins get the switch. Members see only Mine, and the API applies the same rule to the session list.

Next steps