Repository navigation
agora v2: messaging goes native — CLI slims to registry, topology, and board - #91
Conversation
…sage The Monitor-listener delivery layer (send/listen/log, per-member inboxes, cursors, emit-then-checkpoint) is retired: native SendMessage wakes an idle session, queues to a busy one, and revives a dead one (all three verified live against a --bg daemon). agora keeps what the native tool lacks — named groups, spawn topology, and the communal board — and nodes now carry an addr (SendMessage target, defaulting to the alias). Board delivery becomes a poster-side nudge: post prints the other members' addrs. Removed commands refuse with a pointer at SendMessage; the --no-wait requirement for agora daemons is gone with the listener that caused it.
…superseded on transport
…join warns on cross-group addr collisions
…or the native-transport pivot
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 20d7e1466b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| other="$(basename "$(dirname "$(dirname "$nf")")")" | ||
| if [ "$other" = "$1" ]; then continue; fi |
There was a problem hiding this comment.
Detect duplicate addresses within the same group
When two members of one group join with the same custom --addr, this early skip prevents any warning, even though the resulting topology maps both aliases to the same machine-wide SendMessage target. Messages intended for either member can therefore reach the wrong session or become ambiguous. Scan the current group too, excluding only the node whose alias is being refreshed.
Useful? React with 👍 / 👎.
| send|listen|log) | ||
| die "'$cmd' is gone — messaging rides the harness SendMessage tool now (a node's addr in 'agora topology' is the target); the board (agora post/board) is the durable record" ;; |
There was a problem hiding this comment.
Preserve messaging on harnesses without SendMessage
When agora is used through the Codex plugin or another supported non-Claude harness, these commands now refuse while the replacement named in the error does not exist there. I checked .codex-plugin/plugin.json, which exposes the entire skills/ directory, and a repo-wide search found no harness adapter or fallback for SendMessage/ToolSearch; agents following the updated skill therefore lose all direct messaging rather than switching transports. Keep a CLI fallback or gate the native transport by harness capability.
Useful? React with 👍 / 👎.
| To spawn a child daemon wired in as YOUR child, put the agora variables | ||
| inline on the spawn command itself — the harness Bash tool does not inherit | ||
| session env, so an exported variable never reaches your spawn commands: | ||
|
|
||
| AGORA_GROUP={{GROUP}} AGORA_PARENT={{ALIAS}} <path-to>/daemon-spawn.sh --no-wait <name> "<task>" ... | ||
| AGORA_GROUP={{GROUP}} AGORA_PARENT={{ALIAS}} <path-to>/daemon-spawn.sh <name> "<task>" ... |
There was a problem hiding this comment.
Keep child spawns nonblocking in the preamble
When a daemon follows this rendered command literally, it invokes daemon-spawn.sh in the foreground without --no-wait; that script explicitly waits for the child's entire first turn before returning. The parent therefore cannot process queued native messages or perform concurrent work during a long child turn, which serializes the group and can hold it until the spawn watcher times out. Retain --no-wait here or show the required Monitor/background-shell invocation.
Useful? React with 👍 / 👎.
What this does
Retires agora v1's entire delivery layer —
send/listen/log, per-member inboxes, cursors, the persistent-Monitor listener, and the--no-waitspawn rule it forced — and moves member-to-member messaging onto the harness's native cross-session SendMessage tool. Agora keeps what the native tool lacks: named groups, spawn topology, the alias→addr registry, and the durable communal board.Why
Live probes (recorded in the execplan) established that native SendMessage covers the whole delivery problem: it wakes an idle session into a new turn, queues to a busy one, and revives a session whose process was killed — and
--bgdaemons are addressable in ListAgents under their spawn name. v1's listener machinery was compensating for a wake primitive the harness turned out to provide, at the cost of arming ceremony, silent deafness on listener death, and thestate=workingdistortion.This reverses v1's file-transport decision on new evidence; the reversal rationale, live proofs, and what v2 knowingly gives up (operator DM timeline, CLI-originated targeted sends) are in
docs/doperpowers/execplans/2026-08-31-agora-native-transport.md.Changes
skills/agora/scripts/agora: delivery layer removed (net −339 lines); nodes gainaddr(SendMessage target, default = alias,.addr // .aliasread fallback for persisted v1 records);postprints the nudge list; removed commands refuse with a pointer at SendMessage; join warns on cross-group addr collisions.skills/agora/references/spawn-preamble.md,skills/agora/SKILL.md: rewritten for the native protocol — no arming, no--no-wait.skills/orchestrating-daemons/scripts/daemon-spawn.sh: comment updates only; the agora dimension (pre-join + preamble + session back-fill) is unchanged.tests/agora/run-agora-tests.sh: rewritten for the new surface — 34 assertions incl. v1-record and collision fixtures.Validation
--no-wait— blocking watcher returned normally, topology-resolved addr, native DM and board-post nudge both arrived as<cross-session-message>events.🤖 Generated with Claude Code
https://claude.ai/code/session_016qay2VShy979GbX13uNqPt