Overview of the netclaw-discord-socket specification
devThe netclaw-discord-socket specification defines how Netclaw supports Discord as a first-class chat ingress/egress transport. It aims to provide operational parity to Slack Socket Mode by implementing a Discord gateway adapter.
Key capabilities include:
- Connection Management: Defines the gateway adapter's connection lifecycle and health reporting.
- Event Normalization: Converts inbound Discord events into
SendUserMessageformat with deterministic thread-aware session identity. - Security: Implements ACL-gated dispatch for inbound messages.
- Reply Targeting: Ensures replies are correctly targeted back to the originating Discord context.
- Command Compatibility: Supports text-first slash command compatibility without requiring explicit Discord app-command registration.
- Interactive Approvals: Handles interactive tool-approval by preferring Discord interaction controls while maintaining a deterministic text fallback.
- Proactive Communication: Supports agent-initiated proactive Discord channel posts and ensures proactive threads are wired into the actor hierarchy and conform to
thread-history-backfill.