Slack Notify Plugin
What It Does
@agentxchain/plugin-slack-notify posts advisory AgentXchain lifecycle messages to a Slack incoming webhook.
It covers the three shipped moments where external notification is useful and truthful:
after_acceptancebefore_gateon_escalation
It does not block governed progress. Missing credentials, network failures, or Slack errors degrade to warn.
Install
Install by short name (recommended):
agentxchain plugin install slack-notify
Install with explicit plugin config:
agentxchain plugin install slack-notify \
--config '{"webhook_env":"MY_SLACK_WEBHOOK_URL","mention":"@ops"}'
Config And Runtime Inputs
Plugin config
{
"webhook_env": "MY_SLACK_WEBHOOK_URL",
"mention": "@ops"
}
webhook_envThe environment variable that contains the Slack incoming webhook URL.mentionOptional prefix inserted at the top of each Slack message.
Runtime env fallback
- If
webhook_envis not configured, the plugin looks forAGENTXCHAIN_SLACK_WEBHOOK_URLfirst and thenSLACK_WEBHOOK_URL. - If
mentionis not configured, the plugin falls back toAGENTXCHAIN_SLACK_MENTION.
Message Behavior
The plugin reads the hook envelope from stdin and sends one Slack message per hook invocation.
after_acceptanceIncludes run id, phase, role, turn id, decisions, objections, and run status.before_gateIncludes gate type, current phase, target phase, and history length.on_escalationIncludes blocked reason, recovery action, failed role, failed turn, and last error.
Failure Semantics
- Advisory only: the plugin never blocks a governed step.
- Invalid
AGENTXCHAIN_PLUGIN_CONFIGJSON returnswarn. - Missing webhook env returns
warn. - Non-2xx Slack responses return
warn. - Request failures and timeouts return
warn.
Boundaries
- This plugin uses Slack incoming webhooks, not OAuth tokens or bot scopes.
- It does not claim post-gate completion or other lifecycle states the shipped hook surface cannot prove.
- It is a notification mirror, not a source of governance truth.