no nap tool — recv with long wait_seconds replaces it; max raised to 180s

recv-with-timeout is strictly better than a fixed sleep because it
wakes instantly on incoming messages. drop the half-written nap MCP
tool, raise the recv wait_seconds cap from 60s to 180s on both
agent and manager sockets.

prompts updated: agent.md + manager.md now spell out the pattern —
when there's nothing else useful to do, call recv with
wait_seconds=180 to park the turn; do NOT use Bash sleep for the
same purpose. todo drops the nap entry and the napping-state-badge
follow-up; both replaced by 'just use a long recv'.
This commit is contained in:
müde 2026-05-15 20:53:15 +02:00
parent f65ee88269
commit 7d93dd9db4
6 changed files with 16 additions and 21 deletions

12
TODO.md
View file

@ -27,10 +27,6 @@ Pick anything from here when relevant. Cross-cutting design notes live in
## UI / UX
- **State badge: napping state.** Idle / thinking / compacting
already ship from server-side `TurnState`. Add `napping 😴`
once the `nap` tool exists — it just adds a new `TurnState`
variant the harness flips into for the duration of the nap.
- **Terminal: `/model` slash command.** Operator-typeable model
override from the terminal. Depends on the model-override work
above; once an override mechanism exists, wire a `/model <name>`
@ -81,14 +77,6 @@ Pick anything from here when relevant. Cross-cutting design notes live in
## Loop substance
- **`nap` tool.** Agent-side MCP tool `mcp__hyperhive__nap(seconds)` that
parks the turn loop for a short while before next-message processing.
Use cases: agent decides it has nothing useful to do, or wants to
throttle itself between rapid wake events. Implementation: harness
records a "wake-not-before" timestamp; `recv_blocking` skips the long
poll until that ts; the state badge reads `napping · MM:SS` during.
Operator can cancel via the same `/cancel` slash command or a
dashboard button.
- **Notes compaction.** `/state/` is bind-mounted persistently and agents
are told (in the system prompt) to keep `/state/notes.md` for durable
knowledge — but we don't currently nudge them to compact when notes