ENยทESยทDEยทPTยทFR
โŒ˜K

Slack Approval Flow

Interactive Block Kit buttons for approving restricted terminal commands in Slack.

How It Works

  1. The agent requests a terminal command that isn’t in the allowed prefixes list (or contains shell operators)
  2. An approval message is sent to the Slack channel/thread with Block Kit buttons
  3. The user sees three interactive buttons:

Command requires approval:

rm -rf /tmp/old-cache
Allow Once Allow Always Deny

Approval Options

OptionBehavior
Allow OnceExecute the command this time only
Allow AlwaysExecute and persist the command prefix for future auto-approval
DenyReject the command — agent receives denial message

The approval flow in Slack works identically to Telegram. “Allow Always” persists the prefix to SQLite so it survives daemon restarts.

Shell Operators
Commands containing ; | && || $() or backticks always require approval, even if the prefix is whitelisted.