From 23162873272c97a7a90ef46630485cdbf578857f Mon Sep 17 00:00:00 2001 From: damocles Date: Sat, 25 Jul 2026 20:05:32 +0200 Subject: [PATCH] =?UTF-8?q?remove=20hive-agent-wake=20=E2=80=94=20no=20shi?= =?UTF-8?q?pped=20consumer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CLAUDE.md | 6 +- Cargo.lock | 14 --- Cargo.toml | 1 - docs/agent-hierarchy.md | 4 +- docs/turn-loop.md | 6 +- docs/turn-loop/mcp.md | 20 ++-- flake.nix | 1 - hive-agent-mcp/README.md | 7 +- hive-agent-mcp/src/main.rs | 3 +- hive-agent-wake/Cargo.toml | 22 ---- hive-agent-wake/README.md | 25 ----- hive-agent-wake/src/main.rs | 189 --------------------------------- hive-agent/Cargo.toml | 6 +- hive-agent/README.md | 5 +- hive-agent/src/main.rs | 4 +- nix/agent-modules/default.nix | 4 +- nix/agent-modules/packages.nix | 2 +- nix/packages/default.nix | 1 - 18 files changed, 25 insertions(+), 295 deletions(-) delete mode 100644 hive-agent-wake/Cargo.toml delete mode 100644 hive-agent-wake/README.md delete mode 100644 hive-agent-wake/src/main.rs diff --git a/CLAUDE.md b/CLAUDE.md index b10463f0..779cedf3 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -38,8 +38,8 @@ hand-maintained per-file tree drifts out of sync with the code. destroy|rebuild|restart|list|set-parent|…>`, `approvals `, `forge`/`matrix`/`github`/`gateway` provisioning, `choom`, `stop`/`start`, `wg`/`peer-config`. -- **`hive-agent/`**, **`hive-agent-mcp/`**, **`hive-agent-wake/`** — - in-container harness, three sibling crates for every agent (not a +- **`hive-agent/`**, **`hive-agent-mcp/`** — + in-container harness, two sibling crates for every agent (not a single `hive-ag3nt/` dir — that's the runtime/binary-family nickname, not a directory). - **`hive-agent/`** — the serve-loop binary: turn-loop *policy* layer @@ -50,8 +50,6 @@ hand-maintained per-file tree drifts out of sync with the code. streamable-http listener, `hive-mcp-http` systemd unit) + its claude launch-config layer (tool-group/capability → `--allowedTools`, `--mcp-config` render). -- **`hive-agent-wake/`** — small external wake CLI for extra MCP - servers/helpers to nudge claude on external events. - **`hive-claude/`** — reusable, app-agnostic driver for headless `claude --print`: spawns the CLI, streams + classifies stream-json, parses per-turn `Telemetry`, and drives a durable self-compacting diff --git a/Cargo.lock b/Cargo.lock index 7e4e738d..309bca59 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1574,20 +1574,6 @@ dependencies = [ "serde", ] -[[package]] -name = "hive-agent-wake" -version = "0.1.0" -dependencies = [ - "anyhow", - "clap", - "hive-core-agent-sock", - "serde", - "serde_json", - "tokio", - "tracing", - "tracing-subscriber", -] - [[package]] name = "hive-bash-mcp" version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index b4e4848f..d10152a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,6 @@ members = [ "hive-agent-mcp", "hive-agent-sock", "hive-core-agent-sock", - "hive-agent-wake", "hive-bash-mcp", "hive-c0re", "hive-claude", diff --git a/docs/agent-hierarchy.md b/docs/agent-hierarchy.md index 044e7d15..0bf3392c 100644 --- a/docs/agent-hierarchy.md +++ b/docs/agent-hierarchy.md @@ -213,8 +213,8 @@ nspawn agent. Open questions, not yet wired: ## Harness systemd unit shape -One harness serve binary (`hive-agent`, with its `hive-agent-mcp` / -`hive-agent-wake` siblings), one shared `nix/agent-modules/` tree, one +One harness serve binary (`hive-agent`, with its `hive-agent-mcp` +sibling), one shared `nix/agent-modules/` tree, one service unit (`systemd.services.hive-agent`) for all agents. There is no longer a separate manager service name or role distinction in the harness — privilege differences live server-side in the broker diff --git a/docs/turn-loop.md b/docs/turn-loop.md index dba0c023..17c5523b 100644 --- a/docs/turn-loop.md +++ b/docs/turn-loop.md @@ -52,7 +52,7 @@ agents) runs: ## Harness binary shape -Three sibling binaries out of the one `hive-ag3nt` crate, all +Two sibling binaries out of the one `hive-ag3nt` crate, all role-agnostic. (The earlier split into `hive-ag3nt` + `hive-m1nd` was collapsed because the privilege boundary lives server-side at the broker socket (`/run/hive/mcp.sock`): `ManagerRequest` calls are @@ -66,10 +66,6 @@ refused by the standard agent socket regardless of who sends them.) 8790); claude connects to its URL via `--mcp-config`. HTTP is the sole transport — no per-turn stdio child (eliminates the re-registration race). -- `hive-agent-wake --from --body ` — push a message into - our own inbox so the next turn fires with the given body. Used by - co-process helpers (scrapers, webhook listeners) to nudge claude on - external events. `--body -` reads from stdin. ### `Surface` trait + zero-sized type tags diff --git a/docs/turn-loop/mcp.md b/docs/turn-loop/mcp.md index 13d2447d..4a1942f6 100644 --- a/docs/turn-loop/mcp.md +++ b/docs/turn-loop/mcp.md @@ -160,18 +160,14 @@ at_unix_timestamp?)`, `request_next_turn()`. External MCP servers (and any other in-container process) can inject a wake-up event into the agent's inbox via the per-agent -socket at `/run/hive/mcp.sock`. Two equivalent paths: - -- **Shell out to `hive-agent-wake --from