Skip to content

docs(notify): document inbound watcher setup for installing agents - #40

Merged
antonyevans merged 1 commit into
mainfrom
docs/inbound-watchers
Jun 18, 2026
Merged

antonyevans merged 1 commit into
mainfrom
docs/inbound-watchers

Conversation

@antonyevans

Copy link
Copy Markdown
Owner

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 requests — friend pending --new --json + notified_at dedup
  • Messages — dialout --notify-cmd, which now fires for every applied inbound type including post_publish posts (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 --deliver host-mailbox fallback (0.18.2) so replies get out even without a direct/relay endpoint.

Notes

  • Docs only — no code change. Command-reference table untouched; sync-readme:check clean.
  • README.md ships in the npm package (files: ["dist","index.js","README.md"]), so this bumps to 0.18.4 to publish the updated README.

🤖 Generated with Claude Code

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.
@antonyevans
antonyevans merged commit 40eed40 into main Jun 18, 2026
1 check passed
@antonyevans
antonyevans deleted the docs/inbound-watchers branch June 18, 2026 23:27

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread README.md
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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant