//! Library for `hive-subagent-daemon`: spawns nested claude sessions on //! request and serves the `start`/`continue`/`status`/`interrupt` MCP tool //! surface directly over streamable-http — no stdio bridge, no round-trip //! socket. Independent of `hive-bash-mcp` — a subagent is a much heavier //! capability than a bash command (a full nested `claude` process), worth //! its own deployable/restartable unit rather than sharing one. //! //! A second route on the same listener serves `goal_reached`/`need_help` to //! the *subagents*, which is how a run says it's done or stuck; see //! [`mcp`]'s module doc for why that is a separate surface rather than two //! more tools on the parent's, and why it is served per session under a //! minted token rather than at one shared path — neither tool takes a //! session name, so a subagent has no way to say it is somebody else. //! //! See [`session`]'s module doc for the actual design: no task files, no //! restart recovery, no mid-turn compaction — the daemon's only state is a //! handful of in-memory maps, live only as long as the process is. pub mod mcp; pub mod mcp_config; pub mod paths; pub mod session;