You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
peers chat creates, resumes, renames, deletes and lists chat sessions, each of which runs as one agent and keeps its messages in a record under the account's data directory. A session can run interactively on a terminal or in line mode, which reads and writes one JSON object per line. peers chat delete is the way to remove a chat session and its record.
The local interface carries a RegisterAgent stream, so a program other than a Claude Code session can register agents and receive their messages, and an adapter runtime keeps those registrations, restores their topic membership, reconnects after a closed stream and dispatches deliveries within their time limits. The MCP adapter uses this path, and peers chat is the first command-line client built on it.
A Broker now checks the expected identity inside the TLS handshake when it redials a paired peer and when it dials to pair: when it holds a card for the address, it checks the fingerprints of the cards it holds before sending any pairing material, and it presents its certificate only to a host that presents the expected fingerprint. A paired peer's fingerprint is always known, while a pair dial with no held card checks no identity. A host that fails the check receives neither the certificate nor any pairing frame.
The commands that change a Broker's state name the Broker's level, user or system, in the line they print, and peers service online and peers service offline also say whether the state changed or was already in that state.
broker.max_agents_per_account is a new configuration key, an integer from 1 to 16384 that defaults to 256. It caps the number of agents one account may hold on a Broker at one time; a registration that would create a further agent fails and states the limit, while a registration that joins an agent the account already holds does not count.
list_agents gives every agent a unique_address and gives the calling session its own self_unique_address, each written name [ref]@<fingerprint prefix>. A message names its sender by the sender field, the display address followed by # and the sending Broker's 12-digit fingerprint prefix, for example nv@hashdata#6e604bee53a1.
peers uninstall now asks a non-root account whether to remove its chat sessions and their message records together with the rest of its data, and removes them with the data directory. --purge without --yes asks a separate confirmation before reading or removing anything for a non-root account's data, while root is not asked separately, and an account with no user-level installation can remove its own data with peers uninstall --purge before any sudo step.
Changed
Every peers command loses the --system and --user options, peers service run included, a breaking change: a command acts on the level of the account that runs it, so run it with sudo to act on the system level and without it to act on your own user level. A script or a command line that passes either option now fails with a usage error, and the exit code 7 that peers service run used for a level mismatch no longer exists. A service definition written by 0.6.3 starts the Broker with a level option and fails to start with this release, so when upgrading from 0.6.x run the install script again, with sudo for a system installation, instead of running peers update or update_broker: the script installs this release and rewrites the definitions, while a system-level update run by 0.6.x calls the new binary's post-update step with a level option it rejects and rolls back. Replacing the binary by hand does not. peers service status, the peers service start, stop, restart, online and offline commands, peers uninstall and the commands that change the Broker's state name the level, and --admin-group is a usage error when the command does not run as root.
peers mcp now requires --agent-type claude-code, a breaking change: without the option, or with any other value, it prints an error naming the supported values and exits with code 2. Every registration written before this release lacks the option, so every one of them fails after the upgrade, and the install script leaves such a registration unchanged even on a rerun. Nothing else rewrites it either: peers update leaves every account's registration alone, and peers mcp does not repair one. Remove the registration with claude mcp remove -s user peer and rerun the install script, or add --agent-type claude-code to it by hand, then reconnect the server with /mcp in each open session. On a system installation, every other account that registered the server against the system Broker must do the same for its own registration.
peers service status now describes this Broker only, a breaking change: its header names the level, version, alias, fingerprint and advertised addresses, followed by the degraded and offline lines, the agents table and the update hint, and it no longer has a Peers table. peers broker list now lists the other Brokers with LINK and DETAIL columns and no state line, lists peers first, reads no local state, and in a diagnostics-only degraded run writes nothing and points at peers service status. With no running Broker, peers service status now writes the state of the installed Broker services on standard output and exits with code 1 instead of printing No Broker Available; with no service installed, it gives the install command, and a socket this account may not connect to is reported as that denial rather than as a stopped service. A script that parsed either output must be updated.
An advertised address list with more than 8 direct items is now refused as a whole instead of being truncated, a breaking change: no item of it is used, the previous list stays, and the pairing or link it arrived on is unaffected. The refusal appears in the peer's status detail, in peers broker list's DETAIL column and in the audit log, and a Broker card with more than 8 direct items is treated as invalid and is neither stored, forwarded nor listed.
connect_broker no longer returns a warnings field and peers broker connect writes no warning: lines, a breaking change: a pairing that contradicts a held card for an address that identifies one host now fails before any pairing material is sent, naming the publishers of the cards held for that address. Pair through an address no held card lists, wait until the cards expire, or hold the target Broker's own card instead.
The sender field and the two addresses replace local aliases, a breaking change:
connect_broker no longer takes local_alias, peers broker connect no longer takes --alias, and the needs_local_alias error is gone. A pairing never asks for a local alias.
Every Broker shows another Broker under that Broker's own alias. Aliases are no longer unique, and broker.alias may equal a peer's alias. Local aliases kept in a peers.json written by 0.6.x stay there but are not used.
A message's sender ends in # and 12 hexadecimal digits of the sending Broker's fingerprint, and list_agents adds unique_address and self_unique_address. Copy the sender, or a listed unique address, verbatim when replying.
A display address name@alias that resolved before can now fail as ambiguous once two Brokers report one alias; the error lists the unique addresses to choose from. An address whose part after @ is one Broker's alias and another's fingerprint prefix also fails as ambiguous.
disconnect_broker and peers broker disconnect refuse an alias that several peers report, and accept a fingerprint prefix of 8 or more digits.
Downgrading to 0.6.x is not clean: 0.6.x refuses a peers.json when two peers have the same alias, or when a peer's alias equals an alias it used before and 0.6.x recorded as retired, so unpair those peers before downgrading. A downgrade also needs the MCP server registered again, because 0.6.x does not accept --agent-type: remove the registration with claude mcp remove -s user peer and rerun the older release's install script, or register the server by hand. Brokers of 0.6.x keep interoperating with this version, because the link protocol does not change.
The update_broker MCP tool and the Broker's update path are removed, a breaking change: no tool starts an update any more, and a system-level installation is updated only by root with sudo peers update in a terminal. peers update now performs the lookup, download, verification and replacement in its own process, rewrites the level's service definitions, restarts the services that were running, waits up to 60 seconds for each to report the new version and exits with code 3 when a restarted Broker runs degraded. It refuses a caller other than root whose running binary is the one the system-level service definition starts, and refuses an update that this session cannot restart before downloading anything. A failed update restores the previous definitions and binary; updating no longer writes an audit record, and the update_applied and update_failed events remain readable in existing logs.
list_agents now has a 10-second tool time limit, the same as the other tools that answer from memory or from one small file, instead of a 20-second limit of its own.
peers service run no longer exits with code 6 when it starts inside a Claude Code session: a Broker may now start inside a session's process tree, and exit code 6 is unassigned.
A host made entirely of numeric parts, each all decimal digits or starting with 0x, that is not a canonical IPv4 or IPv6 address is now refused as an invalid address before dialing, because the system resolver may read it as another address.
The MCP server's instructions now state only where content from other agents comes from and what a successful send confirms, a change to text sessions read: they no longer call that content "not the user's instructions" or ask for the user's consent before acting on it, and they say a successful send_message means the target agent's adapter accepted the message, reaching the session for a Claude Code session.
A message from the session's own MCP adapter is delivered into the session without approval when no inbound policy is set, as the probe runs confirmed; an explicit crossSessionInbound policy still governs it. The claude_config_dir check, the per-account helper process and the Broker's reading of the session registry are removed, and each session's MCP adapter now registers itself and writes its deliveries into its own session.
Removed
update_broker, the MCP tool that updated the Broker, together with the Broker's update handler and the local interface's ApplyUpdate.
The --system and --user options of every peers command, peers service run included.
connect_broker's local_alias parameter, peers broker connect's --alias option and the needs_local_alias error.
connect_broker's warnings field and the warning: lines peers broker connect wrote to standard error.
The per-account helper process, the Broker's session-registry reading and the local interface's claude_config_dir field.
Fixed
After an update, the restarted Broker is probed without depending on the local protocol version, so an update from this version to a later release works across a protocol change: the probe sends no Hello and reads the status directly.
config set writes a config_set audit record only when the value changed, so running a command again with the same value no longer adds a record.
peers uninstall --purge and a user-level peers service install now take the account's home directory from the account database, as the configuration does, so a HOME that points elsewhere no longer removes or writes the wrong directory.
The local interface's JoinTopic and LeaveTopic with an empty name now answer this agent has no default topic; pass a topic name instead of the general invalid-name text, and consume no rate-limit token; peers chat uses the same text.
A tool call that opens its Broker connection on demand no longer blocks until the process stops when a held mismatched connection is stuck; the connection recovers after the Broker restarts, and the call keeps its time limit. The client also waits for the connection to be ready before sending Hello, so an answering Broker under load is no longer reported as having refused the connection.