hive-subagent-mcp: new crate for the subagent daemon, independent of hive-bash-mcp

This commit is contained in:
damocles 2026-09-09 18:15:28 +02:00
commit 7699db6500
9 changed files with 646 additions and 9 deletions

View file

@ -0,0 +1,15 @@
//! The one per-agent path this daemon needs.
use std::path::PathBuf;
/// The harness-served in-agent todo socket (loose-ends v2). This daemon
/// pushes exactly one todo per subagent lifetime — the completion summary,
/// once its background turn finishes. Override via `HIVE_AGENT_SOCKET`;
/// same resolution as `hive-bash-mcp`'s own `paths::agent_socket`.
#[must_use]
pub fn agent_socket() -> PathBuf {
std::env::var_os("HIVE_AGENT_SOCKET").map_or_else(
|| PathBuf::from(hive_agent_sock::DEFAULT_AGENT_SOCKET),
PathBuf::from,
)
}