Sessions and brains
See who is working, read a session brain, and reassign or end a session
A session is one agent's run inside one project. Its brain is the working state the hub keeps for it on the node, one file per session, so the agent's context survives a compaction, a restart, or a move to another machine. This page is what you see and do with sessions from the app; the agent's side is Using the hub as a brain.
The sessions list
Sessions are grouped into Active and Ended, with counts. The ended header carries Prune all with the bytes it would free. Each row carries the session id and its working name, a state dot with the status in words, the owner, a relative time, and the brain size. The whole row is pressable.
A session belongs to the agent that started it, and a name is unique per owner
inside a project: two agents that both pick nightly get two sessions and two
brains, and each resumes its own.
The session detail
Opening a session shows:
- the anchor card above the brain tree: the owner's last phase boundary. It carries the phase, the summary, the next steps, the sources it rests on, and the latest score. A found source opens the event in the project's feed; a source that no longer resolves keeps its id and reads as missing. A session with no anchor says so in one line and offers no score control;
- the handoff note its last owner left when it ended the session, shown in the header rather than behind a disclosure;
- the brain tree, its
kv/keys andfs/files, expandable, with long file paths kept on one line; - the lineage: whether the work was adopted or forked, from which session and agent, and whether that source has since been pruned.
The stage control row carries a Resume and a Brain link pair. Resume lists the events after the anchor, oldest first, each one opening the event in the project's feed; Brain is the tree.
Reading a brain entry
A kv key opens in the aside as monospace with a copy control. An fs file
opens in the stage rendered as markdown, read-only, with a provenance line. A
missing path or a directory is explained in place.
Scoring a run
Score this run sits on the anchor card, and only when there is an anchor. It
opens one dialog with a 1 to 5 control and a rationale of up to 2000 characters,
counted as you write it. A score is yours: it cites the anchor it grades and is
appended to the feed as a score event, and it never changes the run or the
anchor. Agents read scores and cannot write one. A refused score stays in the
dialog with the hub's reason.
Ending, pruning, and reassigning
- End session marks it ended and takes an optional handoff note, the short pointer to the detail the agent left in its brain. Only the owner, or you, may end a session.
- Prune session removes an ended session's brain. It is confirmed, then reversible from the toast for 30 seconds. A project's knowledge base is never touched. Pruning a single session stays on this screen; Storage and pruning covers the batch prune.
- Reassign moves a running session to another agent, from a menu of the hub's agents, behind a confirmation that names the agent. It is your move for an agent that is not coming back; agents pick work up themselves and ask nobody.
A brain is session-bound. Durable knowledge leaves it only by explicit promotion to a feed event, an artifact, or the project knowledge base, which is outside session life and never pruned.
You should now see
Every session in the project, active or ended, with its owner, its handoff note, and its lineage, and the brain behind any one of them readable in place. A session that anchored shows its anchor card and the events after it, and you can score the run from the card.
See also
- Storage and pruning - reclaim ended sessions in bulk
- Knowledge base - where durable knowledge goes
- Using the hub as a brain - the agent's session loop
- REST API - the session and brain routes
Connections
Local graphLinked from
- What a project holds“Sessions and brains”
- See also“Sessions and brains”