2.1 KiB
2.1 KiB
summary, read_when
| summary | read_when | ||
|---|---|---|---|
| Slash commands: text vs native, config, and supported commands |
|
Slash commands
Commands are handled by the Gateway. Send them as a standalone message that starts with /.
Inline text like hello /status is ignored.
Config
{
commands: {
native: false,
text: true,
useAccessGroups: true
}
}
commands.text(defaulttrue) enables parsing/...in chat messages.- On surfaces without native commands (WhatsApp/WebChat/Signal/iMessage), text commands still work even if you set this to
false.
- On surfaces without native commands (WhatsApp/WebChat/Signal/iMessage), text commands still work even if you set this to
commands.native(defaultfalse) registers native commands on Discord/Slack/Telegram.falseclears previously registered commands on Discord/Telegram at startup.- Slack commands are managed in the Slack app and are not removed automatically.
commands.useAccessGroups(defaulttrue) enforces allowlists/policies for commands.
Command list
Text + native (when enabled):
/help/status/stop/restart/activation mention|always(groups only)/send on|off|inherit(owner-only)/resetor/new/think <level>(aliases:/thinking,/t)/verbose on|off(alias:/v)/reasoning on|off|stream(alias:/reason;stream= Telegram draft only)/elevated on|off(alias:/elev)/model <name>(or/<alias>fromagent.models.*.alias)/queue <mode>(plus options likedebounce:2s cap:25 drop:summarize)
Text-only:
/compact [instructions](see /concepts/compaction)
Surface notes
- Text commands run in the normal chat session (DMs share
main, groups have their own session). - Native commands use isolated sessions:
discord:slash:<userId>,slack:slash:<userId>,telegram:slash:<userId>. /stoptargets the active chat session so it can abort the current run.- Slack:
slack.slashCommandis still supported for a single/clawd-style command. If you enablecommands.native, you must create one Slack slash command per built-in command (same names as/help).