Watch
0
0
Fork
You've already forked hyperhive
0

tell agents to talk to peers over matrix, send for hive-local use

This commit is contained in:
atlas 2026-11-03 02:54:00 +01:00 • committed by mara
commit b55b61b1e0

View file

@ -141,8 +141,11 @@ impl AgentServer {
#[tool_router]
impl AgentServer {
#[tool(
description = "Send a message to another hyperhive agent on this hive. \
Not for the operator: reach them over matrix if you have the matrix MCP tools."
description = "Send a message through the hive-local broker to another hyperhive \
agent on this hive. To talk to a peer agent, prefer matrix (a DM to the peer's \
`user_id` from `get_agent_meta`) when you have the matrix MCP tools; use this \
when you have none or the peer has no matrix account. Not for the operator: reach \
them over matrix if you have the matrix MCP tools."
)]
async fn send(&self, Parameters(args): Parameters<SendArgs>) -> String {
let log = format!("{args:?}");
@ -499,8 +502,8 @@ impl AgentServer {
}
#[tool_handler(
instructions = "You are a hyperhive agent. Use `send` to talk to peers (by their logical \
name); reach the operator over matrix if you have it. Use `recv` to drain your inbox one \
instructions = "You are a hyperhive agent. Talk to peers and the operator over matrix if \
you have it; `send` (by logical name) is the hive-local broker, for peers without matrix. Use `recv` to drain your inbox one \
message at a time. Use `remind` to schedule a future wake-up message for yourself."
)]
impl ServerHandler for AgentServer {}