class LittleGhost::Subagents::Manager

Manager coordinates delegated conversations without making an application build its own worker pool or message protocol. It runs bounded concurrent tasks, queues follow-ups, reports progress, and can restore durable children.

Applications normally enable it through the agent DSL:

class CustomerSupportAgent < LittleGhost::Agent
  subagent ResearchAgent,
    kind: "research",
    description: "Investigates policies and account history"
end

LittleGhost then gives CustomerSupportAgent tools to spawn, message, wait for, interrupt, and list research agents. The manager keeps each child identity stable across follow-up turns.

Follow-up messages are FIFO turns and never interrupt active work. interrupt is the separate synchronous path for delivery at the next model boundary; delivery does not stop the child, and tool calls from that model response continue in the child run.

Durability and cleanup

With a parent session, durable definitions retain only committed compact transcripts and limited state snapshots. Failed or cancelled turns never become committed conversation history. Call close to cancel and join workers owned by a directly constructed manager.