harness: unify agent + manager prompts into single template (closes #519)

This commit is contained in:
damocles 2026-05-27 22:47:02 +02:00 committed by Mara
commit 01af5003d1
9 changed files with 325 additions and 75 deletions

View file

@ -318,8 +318,9 @@ async fn handle_agent_turn(
}
// Per-turn user prompt: the role/tools/etc. is in the system prompt
// (`prompts/agent.md` → `claude --system-prompt-file`); this is just the
// wake signal claude reacts to. `unread` is the count of *other*
// (`prompts/system.md` filtered to this agent's role-block via
// `hive_ag3nt::prompt::render` → `claude --system-prompt-file`); this
// is just the wake signal claude reacts to. `unread` is the count of *other*
// messages in the inbox right after this one was popped.
// `redelivered` flags messages that were popped in a prior harness
// session, never acked, and resurfaced after a restart — a banner