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
create_pairing_key and peers key create append a paste-ready connect prompt that already names this Broker's addresses and the one-time pairing key: one sentence to paste into a session on the other host, and the equivalent peers broker connect command. It lists every shown address and says to choose one the other host can reach, while the command uses the first address and offers the rest as replacements. The tool returns the same text as connect_prompt, and leaves the field out when no address can be shown.
Changed
Upgrade every paired host to this version. The link protocol is now 2, so a Broker of this version can neither establish a link nor pair with a v0.5.0 or earlier Broker. When only one side of a paired link is upgraded, the link between the two breaks until the other side is upgraded too: the versions are incompatible, so each attempt is refused and retried with a backoff. Once both hosts run this version, no re-pairing is needed and the link recovers on its own.
The descriptions of send.request_timeout and link.dial_timeout now say that a call made from a Claude Code session is also bounded by the fixed limit of the tool that makes it, 30 seconds for send_message and connect_broker, so any part of either value above that limit does not apply to session calls. They also say that peers broker connect has no limit of its own and uses link.dial_timeout in full.
list_brokers and peers service status now explain a peer whose link was closed because it sent more state frames than this Broker's inbound limit allows on one connection, instead of leaving the status detail empty. The detail says the peer ran past the state-frame limit, that the link reconnects after a backoff, and to check the audit log's link_down record. Other link failures that had no explanation keep none.
pairing.max_attempts_per_minute now limits the unmatched pairing requests from each source per minute rather than from all sources together, a breaking change: one IPv4 address or one IPv6 /64 may make that many, and all sources together may make ten times that. Existing configurations keep their value; each source now gets its own allowance under the shared global ceiling.
The link protocol version is now 2, a breaking change: a Broker of this version cannot establish a link or pair with a v0.5.0 or earlier Broker, and a link attempt is reported as version-incompatible; for a link, the accepting side names the peer's version, while the dialing side only reports the incompatibility. The digest fields of TopicDigests, Roster and RosterDelta changed meaning because each digest now binds the sender's fingerprint; see the Security entry below.
On a system Broker, an agent whose name belongs to another account now shows a full 12-character disambiguator instead of the shortest distinguishing prefix, a breaking change: a client that compares the disambiguator with the one Claude Code shows for the same session, or that expects the shortest prefix, sees a different value. A by-name address reaches only the agent of the account that owns the name, so the later account's same-named agent is reached only by its full address. Member entries gained the publisher's account and a ref-required flag, so every peer must run this version, matching link protocol version 2. list_agents gained an account field for display.
The configuration file no longer accepts YAML anchors and aliases, a breaking change: an existing file that uses anchors fails to load until they are removed. Mappings or sequences nested deeper than 32 levels are now parse errors, and a file larger than 1 MiB is refused before it is parsed.
broker.advertise and broker.advertise_extra now check each host as an IP address or a domain name this system can dial, a breaking change: a configuration that loaded before may fail to load until the host is corrected, for example one with a space or a slash, an IPv6 address without brackets, a wildcard address, or a domain label over 63 bytes. A fully qualified name may keep one trailing dot.
A Broker now decides whether it runs inside a Claude Code session from the parent process chain as well as from its own environment: an ancestor that carries the session's inbox-socket variable, or whose process id has a record in this account's session registry, also counts. So running peers service run by hand from a session's terminal after clearing the variable is refused with exit code 6 instead of starting a second Broker beside the session's. A Broker the service manager starts is unaffected, because its parent chain holds no session process. An ancestor whose environment cannot be read is skipped and the walk continues, and a chain that cannot be followed or runs past 256 levels stops the walk and counts as outside a session.
Fixed
A peer's stored local alias is now held to the alias rules when peers.json is loaded: a value that is not a valid alias rejects the file as ErrStore through the same record error an invalid retired alias uses, instead of loading. Every write path already validated the value, so only a hand-edited file reaches this check; it is defense in depth.
A session now classifies a failed attempt to reach its Broker by what the socket probe found, instead of treating every non-missing socket as a running Broker. Only a system Broker socket answered by root, with a failed handshake or registration stream, is reported as running but not answering, with the original error, the same Broker retried in the background, and a request to the administrator if it persists. A socket served by another account reports the same peer mismatch as selection, naming the path and the answering uid, for user and system targets alike, instead of claiming the Broker is running. A system socket this account may not connect to, or that failed the probe another way, is reported as cannot reach the system Broker at <path>: <error> with the background retry, without claiming the Broker is running; only a socket that is missing or refuses connections still reports that the system Broker is unavailable. A user Broker that cannot be connected to now reports that it is unavailable once instead of repeating the phrase with its socket path.
A system Broker socket that refuses connections during selection and is then answered by another account during the up-to-ten-second retry now reports the peer mismatch, naming the socket and the answering uid, instead of running out the retry and saying the system Broker is unavailable for the administrator to start. A session with no user Broker whose system socket is answered by another account from the first probe reports the same mismatch and enters PhaseUnavailable instead of PhaseNoBroker. A peer mismatch reported during selection also drops the extra the Broker is unavailable: … wrapper, so one condition reads the same whichever phase met it; when the system socket is the one taken, the status is followed by the text that explains how to start a Broker, which the reconnect phase does not add.
A session now tells the model why a running local Broker refused it instead of reporting that no Broker is available. A registration stream the Broker ended with an error code passes the Broker's sentence and code through, so an account at its registration limit sees quota_exceeded with the Broker's explanation rather than the system Broker is unavailable; ask the administrator to start it. A socket that answered but closed the handshake is reported as a running Broker that refused the connection and may be at the account's or the host's local connection limit, and only a missing or refusing socket keeps the wording about starting a Broker.
A system Broker's permission check that cannot take a slot within its budget is now refused with quota_exceeded and Too many configuration access checks are running; try again shortly. instead of internal, so a caller knows to retry rather than treating the Broker as broken.
list_topics now returns a tool error when the Broker does not answer within the topic RPC timeout, the same ten-second bound join_topic and leave_topic apply, instead of leaving the call open until the connection or the process ends. A session polling the topic list could otherwise wait without bound on a Broker that stopped responding.
get_config, set_config, set_broker_online, list_brokers, disconnect_broker, create_pairing_key, list_agents, connect_broker, send_message and update_broker now return a tool error when the Broker does not answer within a fixed bound, instead of leaving the call open until Claude Code's own timeout. The bounds are ten seconds for the tools that answer from a local file or from memory, twenty for list_agents, thirty for connect_broker and send_message, and four minutes for update_broker. They do not follow send.request_timeout or link.dial_timeout, so raising either past its bound makes the tool report Delivery unknown or a Not connected result before the Broker finishes; that is expected. An update_broker timeout says the upgrade was either abandoned, leaving the running version unchanged (a replacement that had started is rolled back), or completed, leaving the Broker restarting with the new version, and how to check.
A session that remembered more topics than the Broker's topic rate limit allows in one burst no longer loses the rest when it re-registers. After a Broker restart the account's sessions restore their topics at once, and a join past the rate limit was refused with quota_exceeded and dropped from memory, so the topic could not be restored again unless the user rejoined it. A quota refusal no longer holds up the topics behind it: the refused topic is deferred and the pass continues, so a topic stuck at the account's count limit cannot keep the topics that fit from being restored. The deferred topics are retried as a whole after each pass, for as long as the registration stays valid, with an exponential backoff from 250ms to 30 seconds and jitter clamped to that range so that sessions refused together do not retry in lockstep; the entry is kept when the connection ends, one warning per topic is logged after the first few failures, and a rejection for any other reason is still dropped. A restore now belongs to one registration rather than to the Register stream, so a revoked or replaced registration stops it and the next registration restores at once, and a join refused with not_registered keeps the topic instead of forgetting it. The topic count limit shares the same code, so it is retried at the same slow pace and recovers by itself once another topic leaves and frees a slot.
The audit log no longer leaves a merge window in memory when its expiry timer fires a little before the wall-clock deadline. Such a firing expires nothing and used to leave no timer armed, so the window was written only on the next append or Close, or lost if the Broker was killed first. It now re-arms a timer for the remaining time and is written once the deadline passes, without waiting for another event.
On macOS, a failed dscl group lookup now fails the system installation or uninstall with the directory service's error instead of being read as an absent group. Only a record the directory service reports as missing is an absent group, so a transient failure no longer makes service install --system run dseditgroup -o create and record the group as created by this run, which a later uninstall would then delete although it existed before.
A Broker no longer fails to start when its local socket file is removed between the bind and the step that sets its mode. That step used to report the runtime directory as unusable, which exited the Broker. The bind now closes the listener and binds again, up to three attempts, before returning the error, so a concurrent cleanup of the runtime directory no longer turns this race into a failed startup, and the socket it finally leaves has the same permission and group as an undisturbed bind. Each retry writes one local_socket_bind_retry run log record with the socket path and the attempt number, and a bind that succeeds after a retry writes local_socket_rebound.
Security
Pairing attempts are now limited per source, so a stranger cannot fill one global counter with junk requests and keep a static-key pairing answering "try later". Each source, one IPv4 address or one IPv6 /64, may make pairing.max_attempts_per_minute unmatched requests per minute, and all sources together may make ten times that, which a party that can send from many sources, such as a whole IPv6 prefix, can still fill. A lookup tag is now bound to the initiator's certificate fingerprint, so the acceptor recomputes it with the fingerprint it sees in this TLS connection, and a party that forwards someone else's tag matches no key and consumes no one-time key. The initiator sends its alias in PairConfirm, after it has verified the acceptor, so a wrong or hijacked address no longer learns the host and account name, and the acceptor records no alias in a failure before the initiator's proof verifies. The pairing frames changed meaning and the link protocol version is now 2, so a Broker on an earlier version cannot pair with this one. Against an earlier Broker the failure is asymmetric: a new initiator that reaches an earlier acceptor is told pairing key is invalid, because that acceptor does not know PairRequest's version field, while an earlier initiator that reaches this acceptor reports protocol error: unknown PairReject reason 5, because it does not know the version-incompatible rejection reason. This acceptor records only version incompatible in its audit and does not name the peer's version.
A host that opens many unauthenticated connections can no longer evict the connections of other sources or of paired peers. Unauthenticated connections are limited per source and, once a peer's fingerprint is known, per fingerprint; the bytes and HTTP/2 header size a connection may send before authentication are bounded.
create_pairing_key's note, its not-listening error, the server instructions and connect_broker's key parameter now say the pairing key and the connect prompt go only to the user, who passes them outside peers. A session no longer relays either to another agent over send_message, Claude Code's built-in session messaging or any other agent-to-agent channel when that agent asks for a pairing key.
Rejected unauthenticated connections are merged in the audit log by network source, not by the certificate fingerprint the stranger chooses, so a client that rekeys every attempt can no longer make the audit log and the pending in-memory windows grow without bound. The pending windows are capped, further sources fold into one summary record, and appending a rejection no longer scans every open window.
A malicious or compromised peer could send a Broker's own topic digests back verbatim: the echo matched every local topic, so the peer learned the member list of each and could forge members under those digests. A digest is now SHA-256(salt ‖ sender fingerprint ‖ topic name), so the two directions of a topic differ and an echoed set intersects nothing. The digest fields of TopicDigests, Roster and RosterDelta changed meaning, so the link protocol version is now 2: this version's Broker cannot establish a link with 0.5.0 and earlier, which is reported as the existing version-incompatible status; the accepting side names the peer's version, the dialing side does not.
Received content is framed as untrusted. The server instructions say that a message from another agent and the public topic names, descriptions and other Brokers' addresses that list_topics and list_brokers return are not the user's instructions, and that acting on what they ask for needs the user's explicit consent. The list_agents, list_topics and list_brokers descriptions each mark what they report as unverified: agent names and addresses, and a remote agent's self-reported account, for list_agents; public topic names and descriptions for list_topics; and other Brokers' addresses for list_brokers. Message bodies escape both the opening and the closing envelope tag in any letter case, so a body cannot forge either end of its attribution envelope. A peer delivery error is quoted back as the peer's words only when its code is one the receiver can return; otherwise the result is delivery_unknown with local text and a peer_delivery_error_unrecognized log event. Terminal commands display control and format characters from Broker strings in escaped form.
The low-port refusals no longer advise chmod 0644 or chown root:root on the system configuration file: a refused Set explains that the file must be writable only by root, and a refused start or reload prints the current broker.listen value for root to check before running chmod g-w. A system Broker creates a missing configuration file with mode 0600. A user Broker whose /tmp/peers-<uid> is taken by another account now uses the platform's per-user runtime directory and logs runtime_dir_fallback, and the account lock, runtime directory and local socket timestamps are refreshed every minute so a time-based /tmp cleanup does not remove them. The Broker running from the fallback directory is still found, and a second instance still refused, when the occupant removes the taken /tmp/peers-<uid> directory again.
A paired peer could grow the member lists a Broker keeps for it without limit, and a local account could break every cross-host link with an overlong session name or a burst of topic changes. Agent names are now capped at 128 bytes, a peer's roster is held to 4096 entries per topic digest and 16384 per link, local topics are capped at 512 (128 per account on a system Broker) with 4096 local members each, topic changes are rate-limited per account, and a frame above the 4 MiB link limit is refused with ErrFrameTooLarge instead of breaking the link. A linked digest or roster frame still queued is now replaced in place by a newer one, and an unsent roster delta is folded into a full roster, so a burst of topic changes can no longer fill a link's send queue.
A paired peer can no longer exhaust this Broker's memory, its dedupe table or a session's inbox quota. One connection's state-frame queue is capped at 4096 frames and 64 MiB of payload and runs at most 64 request handlers at once; the dedupe table holds at most 4096 entries per source; and each source gets a token bucket of 10 messages per target, refilled one every 10 seconds. A peer that exceeds a limit loses only its own connection, entries or quota; other peers and local sends are unaffected.
Release builds no longer restore an Actions cache. The tagged release job verifies the module graph before goreleaser builds the binary a system Broker installs, and the site and real-session jobs build from source as well. Every third-party action is pinned to a commit SHA, make lint rejects a mutable tag, and every checkout leaves no credentials in .git/config. make third-party-check compares each vendored library with its recorded upstream and local changes, and make vulncheck scans the module graph on Linux and macOS.
golang.org/x/net is upgraded from v0.60.0 to v0.62.0, which closes GO-2026-6866 and GO-2026-6860. Both sit in the html package, which peers does not call, so neither was reachable, but a release closes every known issue in the module graph.
An alias that a peer gave up during a relationship stays reserved for that peer instead of becoming available to another peer, so an Agent address handed out earlier cannot start naming a different Broker.
Self-reported aliases and addresses are validated and normalized before they are stored.
A system installation no longer hands an existing group's members management of the system Broker without the administrator's knowledge. When the default peers group already lists members, was not created by an earlier peers installation and a new configuration file would be generated, service install --system refuses before writing any file unless the administrator names the group with --admin-group; a group whose id is 0 is refused outright, since its accounts would hold the configuration file's permissions. The member list includes accounts whose primary group is that group and, on macOS, nested groups, and a failed member lookup refuses the installation instead of treating the group as empty; naming the group or keeping an existing configuration file skips the lookup. The install summary names the administration group, where it came from and the members the account database lists.
The install script no longer follows a symlink placed in a completion or man-page directory: it checks each directory from /usr/local down to the target before creating any of them, refuses a symlink, an owner other than root or SUDO_USER and group or other write permission, and skips the file with a warning and the command to install it by hand. A completion is written through a temporary file in the same directory and renamed into place, and when that directory belongs to SUDO_USER the account performs the temporary file's creation, write and rename through sudo -u, so a process of the account cannot swap it for a symlink and have root write through it.
A peer could push records in a Records frame without being asked and pile up one fetch goroutine per RecordList. Each peer now has at most one outstanding RecordRequest; a Records frame is accepted only for identifiers this Broker requested within the last 60 seconds, each identifier is accepted once, and unrequested records in one frame are dropped together and reported as directory_unrequested_records.
A peer could make every Broker in the network rewrite its directory file and keep forwarding records by issuing a new version of the same record. A replacement received from a link is now accepted at most once every 60 seconds per Broker, and a newer version that arrives inside the window is fetched once the window ends instead of waiting for the next reconciliation. Records accepted from a link are written once a minute by the maintenance loop instead of on every batch; records accepted within the minute before a crash are recovered by reconciliation. The window also applies to an identifier whose record expired and was purged, so a short-lived record cannot bypass it.
A public topic whose name or description breaks the format rules and a card address that is not a well-formed host and port are no longer listed, while the record is still accepted and forwarded.
A public topic's description declared by this Broker or a peer can no longer be replaced by a remote publisher that claims the largest version. The local interface reports the Broker whose declaration supplied the description, how many Brokers declare the name, and the declarer's alias.
The fingerprint mismatch warning now says the directory card is self-reported and asks the user to confirm the fingerprint with the other side, rather than presenting the card's claim as fact. One card yields one warning and a Connect result carries at most eight.
A local account can no longer exhaust a system Broker by opening many local connections, streams or registrations, by making it spawn permission-check processes without limit, by forcing an account-name lookup on every connection for a uid with no account entry, or by registering a session name without an upper bound. Local connections and Register streams are capped at 256 per account, 4096 connections at once across all accounts, and concurrent streams at 64 per connection; permission checks run at most 8 at a time and 2 per account; and a registration's downstream events are coalesced and bounded, with their backlog ending the stream with quota_exceeded. The connection handshake lets a uid already cached as a real account take its global slot without waiting for a lookup, and refreshes an expired entry in the background instead of pushing the account into the queue. Other connections wait for a lookup under a separate bound of 64, so socket connections arriving faster than the OS account lookup answers cannot fill the global slots; a connection past the bound is refused at once, and a lookup that cannot start or finish within 5 seconds refuses the connection (fail closed). Uids with no account entry share one unknown-account bucket for every per-account limit, so a rootless container's rotating subuid cannot multiply a quota; only a definitive "no such account" enters that bucket and the cache, for 30 seconds, and a lookup failure or timeout refuses that request alone instead of being cached, so the next connection asks the account database again. Real accounts and uids with no entry are cached separately: the real-account cache grows only with the accounts the host has, while the negative cache is bounded at 1024 entries and evicts the least recently used one, so a rootless container's rotating subuid cannot evict a real account's cached name. Caller-name and permission-check lookups share one process-wide gate of 4 concurrent account lookups (getent processes on Linux). Over-limit refusals and access_check_busy are logged at most once per account or uid per minute, and access_check_unknown_account at most once a minute across every uid, so that throttle keeps no entry per uid. The degraded diagnostics-only service applies the same connection, stream and registration limits. The systemd unit of a system Broker now sets TasksMax=8192 and LimitNOFILE=65536; peers update writes the new unit when it rewrites the main unit, so the running service picks it up without a reinstall, and sudo peers service install --system writes it again.
On a system Broker, one account could intercept or impersonate another account's agent when both used the same name. The Broker now records which account owns each name in name-owners.json: the account that registers a name first keeps its address without a disambiguator, a by-name address resolves only to that account's agents, and an agent of another account with the same name shows a full 12-character disambiguator, so the owner's short disambiguator cannot select it. An idle name is released after 7 days. A refused by-name send returns not_found and says the name belongs to another account. list_agents shows each agent's account, for display only.
The self-update download now bounds checksums.txt on its own instead of sharing the archive's 100 MiB cap, and reads it line by line, so a checksum file far larger than a release needs cannot make the updater allocate memory out of proportion to it. A file above the new 64 KiB cap is refused with a size-limit error, and so is a single line above 1 KiB. A release API response is now checked against its 1 MiB cap before it is parsed, so an oversized response is reported as a size-limit error instead of a JSON decoding error. checksums.txt comes from the release's asset address on GitHub over HTTPS, and the API request goes to api.github.com, so exploiting either path needs control of the release source or of the HTTPS connection; both checks are defense in depth.