Agents and who needs you

Every agent shows as working, blocked (it needs you), done or idle. The one waiting on you goes to the top, with a sound and a note that takes you there.

Codex needs you: it moves to the top of the agents list with a note in the corner. Answered, it goes back to work.
  • Agents are terminals whose program reports a status (OSC 7501): working, blocked, idle, or done = finished while the user wasn't looking (it becomes idle once they look). A space's and a tab's status is the most urgent of its agents: blocked > done > working > idle. Status hooks cover agents that don't report it themselves: the Agents list asks once ("Know when every agent needs you"; later its sort menu's Status hooks, or woolshed do agents.hooks-on / agents.hooks-off) and then adds a command hook, woolshed-core hook <agent>, to every Claude Code account's settings.json (its CLAUDE_CONFIG_DIR) and to Codex's hooks.json (CODEX_HOME). Only groups whose command ends # woolshed status are Woolshed's; off takes exactly those out. Codex then asks once itself ("Hooks need review": Trust all) before it runs them. Not on Windows yet. The hooks say working, blocked (with the command a permission is for, or a question and its numbered options), idle, and error titled rate_limit when a usage limit stops a turn; an agent that reports itself keeps its own word, and its hooks' details are in terminals()'s records.hook.
  • Sub-agents are terminals an agent started with hc run: the core records the starter as parent (see terminals()). They belong to their parent's tab without a pane; the agents mod shows them, terminal.peek opens one, terminal.keep gives one a pane. Ctrl-click (Cmd-click on macOS) a live terminal address in terminal text to peek at it. Bare addresses refer to the machine of the terminal showing them; use machine/address for another machine. Names and non-live addresses aren't links.
  • Agent navigation order belongs to the mods. A mod displaying agents calls setAgentOrder(list.map(a => a.address)) on render so agent.next / agent.prev follow its list.
  • sounds: { "enabled": true, "done": "<file>", "blocked": "<file>" }. When an agent needs the person, or finishes while they aren't looking at it, Woolshed plays a sound and (unless they're looking) posts a toast that goes there when clicked; with Woolshed in the background, the system's notification too. One that needs you carries its question and answers (Allow, Deny, Reply…, or its numbered options) on both, as agent.answer; Reply brings Woolshed forward with the reply box. The notification goes once it's answered anywhere. done / blocked replace the bundled MP3s (path absolute or relative to ~/.config/woolshed). Changes apply live, including the Play buttons in Settings > Alerts.

Your agents read these same words: Woolshed writes this guide to ~/.config/woolshed/AGENTS.md on every start. In it, “you” is the agent and “the person” is you.