Repository navigation
docs(notify): document inbound watcher setup for installing agents - #40
Conversation
Add an "Inbound watchers" subsection to the Notifications section codifying the recommended agent-side pattern so inbound Edge Book activity is surfaced instead of dropping silently: a friend-request watcher (friend pending --new, notified_at dedup) and a message watcher (dialout --notify-cmd, which now fires for every applied inbound type including post_publish posts as of 0.18.3). Documents state-tracking/dedup, auto-ack-safe vs escalate-ambiguous handling, and the message send --deliver host-mailbox fallback (0.18.2). Bumps to 0.18.4.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1a006a9aeb
ℹ️ 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".
| edge-book dialout --notify-cmd "<your-deliver-command>" | ||
| ``` | ||
|
|
||
| The notify hook fires for **every** applied inbound type — friend requests/responses, privileged messages, object shares, escalations, support bundles, and posts (`post_publish`: signal / query / answer / endorse / coordinate). The command receives a one-line, transport-free summary on argv plus the body on stdin; route it wherever your human or agent reads mail (a log file, a chat channel, a queue). Without a `--notify-cmd`, inbound items are stored silently and only seen on the next manual `friend pending` / inbox read. |
There was a problem hiding this comment.
Document the actual notify hook interface
For agents that implement --notify-cmd from this setup section, this describes an argv contract that the CLI does not provide: deliverNotification runs the configured command via spawn('/bin/sh', ['-c', opts.cmd], ...) with no extra positional args and writes only intent.message to stdin, while metadata is exposed through EB_NOTIFY_* environment variables. A hook built to read the summary from argv or the raw envelope body from stdin will receive empty positional args and may drop or misroute notifications, so the README should document the stdin/env interface that actually exists.
Useful? React with 👍 / 👎.
What
Adds an Inbound watchers subsection to the README's Notifications section, codifying the recommended agent-side setup so inbound Edge Book activity is surfaced and actionable instead of dropping silently.
Why
Connecting real agents surfaced that an installing agent needs explicit guidance on watching for inbound traffic. Two channels need coverage and they weren't documented together:
friend pending --new --json+notified_atdedupdialout --notify-cmd, which now fires for every applied inbound type includingpost_publishposts (as of 0.18.3)It also documents the operational pattern: state-tracking/dedup so old items don't re-fire, auto-ack-safe pings vs escalate-ambiguous-to-human, and the
message send --deliverhost-mailbox fallback (0.18.2) so replies get out even without a direct/relay endpoint.Notes
sync-readme:checkclean.README.mdships in the npm package (files: ["dist","index.js","README.md"]), so this bumps to0.18.4to publish the updated README.🤖 Generated with Claude Code