agentrelay trust for fine-grained per-teammate policies, and agentrelay block / unblock for immediate revocation. Both operate on ~/.agentrelay/trust.yaml, which the MCP server reads on every incoming handoff.
agentrelay trust
Thetrust command provides typed read/write access to ~/.agentrelay/trust.yaml. You can also edit that file directly with any text editor — the CLI is a convenience layer for scripting and discoverability.
trust list
Lists all entries in your trust file: explicit teammate policies, the unknown-teammate policy, and the current block list.trust set
Sets or updates the trust policy for a specific handle. All flags are optional — omitted flags leave the existing value unchanged.
For example, to let Carol’s agent auto-write documentation files but still ask for approval on everything else:
trust.yaml:
trust reset
Removes the explicit entry for a handle, reverting that teammate to thedefaults policy.
Editing trust.yaml directly
The file is designed to be human-readable and hand-editable. The CLI only writes when something actually changes, so you retain your formatting on direct edits. The full schema:auto_write_paths entries are matched as glob prefixes — docs/ matches docs/api.md and docs/setup/quickstart.md. Setting unknown_teammates.policy: reject means any handoff from a handle not listed under teammates: is automatically rejected without prompting you.
agentrelay block / unblock
block adds a teammate to the blocked list in your local ~/.agentrelay/trust.yaml. When your MCP server processes an incoming handoff, it reads this file and rejects any handoff from a blocked handle before contacting the relay.
block
mallory@external to the blocked: [...] array in trust.yaml. Your MCP server will reject any incoming handoff from that handle on the next evaluation — before returning any content to your agent.
unblock
blocked list in trust.yaml. Your MCP server will no longer reject handoffs from that handle on the next evaluation.
Listing blocks
trust.yaml. The blocked array is also visible in agentrelay trust list.
How blocks survive restarts
The block list lives in~/.agentrelay/trust.yaml under the top-level blocked: key. The MCP server reads this file on startup and on each handoff evaluation, so blocks survive process restarts without any additional configuration.
Entries in blocked: are a hard override. Even if a handle appears under teammates: with explicit trust, a matching entry in blocked: always wins — the blocked handle is rejected regardless of any other policy.