Agent states

What working, needs you, idle, exited and asleep mean on an agent's tile, and how Hivemind knows.

Every agent's tile shows one state: what the agent is doing, and whether it waits on you. The same state shows on its row in the Layers panel, its frame, and in your notifications.

Paste this into your coding agent to get a summary of what each agent is doing right now.

Show the prompt
Tell me what each of my Hivemind agents is doing right now. Do not change anything.

1. Run `hive ctl agents --json`. If it exits 3, tell me Hivemind is not open on this project and stop.
2. Group the agents by state: needs you first, then working, then idle, then exited and asleep.
3. For each agent that needs me, say what it is waiting on, in one line.
4. Suggest which one I should answer first, and why.

REFERENCE https://hivemind.griiken.com/guide/agent-states.md
Agents grouped by state: two agents under Waiting on you that want permission, six under Working, three under Ready for work, none Stopped.
One state per agent: who waits on you, who works, who is ready

The states

StateColourMeans
workingwhitebusy on its task
needs youamberwaiting for a person: a permission question or a question with options
blockedamberwaiting on a person for another reason
review?amberwaiting for you to approve its plan
approval?ambera supervised worker, waiting for its lead to approve a tool. Its lead answers, so the app does not tell you
idlegreyat its prompt, ready for a task
exitedgrey, red if it failedits program has stopped
asleep—put to sleep: its program stopped, its conversation kept, with Resume

A dot on a row means the agent finished since you last looked. Mark as read in the row's ⋮ menu clears it.

Amber always means a person is being waited on. When a frame is collapsed, its dot shows the most urgent state inside it, so needs you wins.

Agent statesAn agent starts idle. A turn makes it working; when it asks you it needs you, and your answer makes it working again. When the turn ends it is idle, with a dot until you look. Sleep puts it asleep and Resume wakes it. When its program stops it is exited.turn startsturn endsasks youyou answerSleepResumeprogram stopsidlegreyworkingwhiteneeds youamberasleepconversation keptexitedred if it failedFrom any state, a program that stops is exited.
How an agent moves between states
  • Start → idle.
  • idle → working: a turn starts. working → idle: the turn ends, and a dot shows until you look.
  • working → needs you: it asks you. needs you → working: you answer.
  • idle → asleep: Sleep. asleep → idle: Resume.
  • Any state → exited: its program stops.

How it works

How Hivemind knowsHooks the agent runs and rules read from its screen both reach the background process. Until the first hook arrives the screen decides; after it, the hooks do. The state goes to the tile, the Layers panel, notifications and your phone.exactfallbackHooksthe agent tells itScreen rulesdetect: in agent.yamlBackground processone stateper agentWhere it showstile, Layers panel,notifications, phoneThe screen decides until the first hook arrives; from then on, the hooks do.
How Hivemind knows
  • Hooks → background process: the agent tells Hivemind when it starts working, stops to ask, or finishes replying. Exact and immediate.
  • Screen rules → background process: for an agent that sends nothing, rules in its agent file read its screen for its prompt, its questions and its spinner.
  • The screen decides until the agent's first hook arrives. From then on, the hooks do.
  • Background process → everywhere it shows: the tile, the Layers panel, notifications and your phone.
  • The computer that runs an agent works out its state. Other devices show what it says.

Which of the two an agent uses is in its agent file. See Add your own agent.

Why it works this way

An agent's own messages are the only exact source, but not every agent sends them. Reading the screen covers the rest, so every agent shows a state. Only agents that tell Hivemind when they finish replying can work for another agent: the lead needs to know when a reply is complete.

What to do with it

Last validated for Hivemind 2026.10.3.

Edit on GitHub

On this page