slack

A transport that connects a Slack bot to the oracle as a NestJS module in socket mode. Covers its env vars and why it adds no agent-visible tools.

The slack plugin connects a Slack bot to the oracle, so the same oracle is reachable from Slack as well as the web client. It loads when SLACK_BOT_OAUTH_TOKEN is set.

Source: packages/oracle-runtime/src/plugins/slack/

AttributeValue
Visibilitysilent
Stabilitystable
Categorycore
Default stateAuto-detect (env: SLACK_BOT_OAUTH_TOKEN)
Depends onNone

Summary

Connects a Slack bot to the oracle. The plugin contributes no agent-visible tools. It is purely a transport. The agent does not know Slack exists; it sees only inbound messages on the Slack client. Ships its own NestJS module so the bot client can use OnModuleInit / OnModuleDestroy for socket-mode lifecycle and inject the Tier-0 services it needs (messages, sessions, cache).

Environment variables

VarRequiredDescription
SLACK_BOT_OAUTH_TOKENyesSlack bot OAuth token. Triggers auto-detect.
SLACK_APP_TOKENnoApp-level token (required for socket mode in production).
SLACK_USE_SOCKET_MODEnoDefaults to 'true'.
SLACK_MAX_RECONNECT_ATTEMPTSnoCoerced number; defaults to 10.
SLACK_RECONNECT_DELAY_MSnoCoerced number; defaults to 1000.

What it contributes

  • Tools: none.
  • Sub-agents: none.
  • Middleware: none.
  • HTTP routes: none directly.
  • Nest module: SlackModule (registered via getNestModules). It owns the Slack socket-mode client lifecycle.
  • Shared state: none.

Opt out / opt in

const app = await createOracleApp({
  config,
  features: { slack: false }, // never load
  // features: { slack: true }, // force load (will fail env validation if SLACK_BOT_OAUTH_TOKEN missing)
  // features: { slack: 'auto' }, // run autoDetect (default)
});

When to use it

  • You want the same oracle reachable from Slack as well as the web client.