Skip to main content

Module name_resolution

Module name_resolution 

Source
Expand description

POST /agentmux/agents/resolve — the HTTP face of the one place a typed agent name is interpreted (identity M3, spec §5). Called by agentmux-mcp before WorkEnqueue and CronCreate so those tools can store a UID at authoring time (§5.4) and hand an ambiguous name back to the model with the candidates (§5.2) instead of enqueueing something that can never be delivered unambiguously.

Auth-gated like every other loopback route. The body names a target; it never asserts the caller’s own identity.

Structs§

ResolveRequest 🔒

Functions§

did_you_mean 🔒
The ids of the agents on this computer that a typed name nobody answers to most likely meant, best first.
handle_resolve_agent_name 🔒
resolve_typed_name 🔒
The same resolution for a name typed by an agent of another machine in a remote operation (remote_ops), which is as much a boundary as the MCP tool argument: that agent can’t know a uid here. Internal code still never calls resolve_name_to_uid itself (check-name-resolver-callers.sh).
with_did_you_mean 🔒
A message body queued at the relay for typed, with the ids typed most likely meant when it is a name that answers to no agent here (a typo, a workspace folder’s form), for the sender to send it again to.