Change Summary: Now you can agentrun multiple agents at once without the old ones losing agentdo privilege. Future updates will be seamless with the new handover procedure.
To install or update:
curl -fsSL https://raw.githubusercontent.com/FlysonBot/agentdo/main/install.sh | bashChangelog
Added
- Broker-to-broker handoff: authorizations transfer as live
pidfds overSCM_RIGHTS, and the predecessor retires only once the successor confirms it has them all. agentrun --upgradetriggers the handover after a manual install. The installer does it for you.
Fixed
- Registering a second client no longer evicts the first. The broker keeps a client registry, revokes each independently, and shuts down only when the last one exits.
- Upgrading no longer strips privilege from running agents.
- Handoff no longer deadlocks: a buffered reader was consuming the next message's descriptors while dropping them.
- A retired broker no longer tears down sockets its successor has bound.
- A client registering mid-handoff is no longer stranded.
install.shno longer silently skips the upgrade — it read the old broker's config through a redirect, which the unprivileged shell opened beforesudoran.install.shandagentrunnow forward socket paths to brokers they start, so a non-default configuration no longer produces a successor serving an empty registry.
Changed
PROTOCOL_VERSIONstays at 2 — the client/broker wire format did not change.- 73 tests, up from 50.