Repository navigation
Slack
Agentix supports one Slack workspace per instance through Socket Mode. It receives private messages, channel mentions, edits, native slash commands such as /sessions, and Block Kit button actions without a public HTTP endpoint. The same session, approval, queue, and task-board flows used by other channels are available.
For the complete CLI login, initialization flow, and troubleshooting guide, see Slack Initialization and Integration Guide.
Create an app From scratch in Slack app management, enable Socket Mode, configure its permissions and event subscriptions, and install it to your workspace. Follow the initial setup steps for the required console settings.
Record its App ID and Bot User OAuth Token (xoxb-…), then create an App-Level Token (xapp-…) with connections:write. Enable interactivity and writable app DMs, and invite the bot to each channel where you want to use it. Reinstall after changing scopes.
Agentix generates slash commands automatically at startup. You do not need to manage a manifest file: the adapter writes one only when an update is needed and removes the temporary project after processing, including failures and graceful cancellation.
The bot scopes are chat:write, commands, app_mentions:read, im:history, channels:history, and groups:history. Channel message subscriptions allow edited message events to be reconciled. In the unreleased topic-enabled version, authorized owners can reply directly in a known session thread. Other channel messages require a bot mention. The bot can consult recent channel history to reconcile an uncertain topic creation.
The internal manifest handling and connection flow follow Slack's manifest reference and Socket Mode guide.
Use only one installed app per workspace for Agentix's command names. Slack routes duplicate slash commands to the most recently installed registration, regardless of which bot DM is open. When replacing a bot, remove the old app or its conflicting commands. Use separate workspaces for parallel test apps; renaming an app does not isolate /sessions or /claim. Agentix's manifest synchronization updates only the configured app and does not clean up other apps. See One command owner per workspace.
Keep your agent and storage settings and select Slack:
[channel]
kind = "slack"
[channel.slack]
app_id = "A0123456789"
bot_token = "xoxb-your-bot-token"
app_token = "xapp-your-app-token"
owner_user_ids = []With app_id configured, startup uses the logged-in Slack CLI to fetch, merge, update, and verify the app's slash commands. Install Slack CLI 4.7.0 and run slack login as the service user. If it is absent from PATH, set the global absolute slack_cli_path before all TOML tables. Omitting app_id preserves legacy operation and logs a skipped-sync warning.
Both tokens are required. You can put Slack member IDs in owner_user_ids, for example ["U0123456789"], or bootstrap the first owner:
- Start
agentix serveusing this configuration. - Run
agentix client claimlocally. - Send
/claim <code>in the bot's private conversation.
A successful claim saves the sender's member ID to the configuration, consumes the code, and enables access immediately. Claims from channels, other workspaces, bot events, or an already initialized owner list are ignored. Claim codes never reach the coding agent.
When owner_user_ids is empty, startup registers only the /claim command for
Agentix. Successful private enrollment saves the owner and replaces /claim with
the normal menu automatically. If that update fails, the owner stays linked and
restarting the service retries the menu synchronization.
Exported http_proxy/HTTP_PROXY and https_proxy/HTTPS_PROXY apply to Slack Web API requests and WebSocket upgrades, including HTTP(S) and SOCKS proxies. NO_PROXY/no_proxy bypasses matching destinations. No signing secret or incoming port is needed for this Socket Mode implementation.
- Send
/sessions(or/agentix /sessions) in the parent chat, open the session topic, and type your prompt inside it. - In a channel, mention the bot:
@Agentix /sessionsopens the picker. Only configured owners can operate it. - Use
/agentix /helpto see commands. The text after/agentixis passed unchanged as an Agentix command or prompt. - Use Create topic in
/sessionswhen a session needs a thread, then select Open topic on the same card. Reply there to submit input. Type Agentix commands in the thread as message text./helpthere shows session commands and enabled Project commands. In the topic-enabled version, use/historyto browse turns and return to the parent chat to discover other sessions. Opening a topic leaves existing control with its current chat. Select Take control when prompted to move control. - Approval and plan-input buttons use the same single-use action tokens as other channels. Consumed controls are removed and the result is shown in place.
- Create an Issue with
@Agentix /issue new -title "Investigate failure" Detailsor/issue new -title "Investigate failure" Details. Use explicit Issue edit controls to revise requirements; editing the source message does not modify the Issue.
Thread replies route to their thread's session; they do not fetch or automatically quote the parent message. File-only messages are ignored. Long output is bounded to Slack's block limits with a visible truncation marker. Nonterminal stream and working-duration updates have a two-second minimum interval; final results bypass that interval.
See Slack's slash-command documentation for its thread restriction.
-
invalid_auth,not_authed, ortoken_revoked: check the bot and app token fields; do not interchange them. -
missing_scope: update the app permissions, reinstall, and verify the app token hasconnections:write. -
not_in_channelorchannel_not_found: invite the bot to that channel and use its DM conversation rather than a member ID as a destination. - No inbound messages: check Socket Mode, event subscriptions, owner IDs, and the app's writable Messages tab. Mention the bot outside its session threads.
- New messages are paced at 1.1 seconds per channel, shared across threads. A Slack rate-limit response pauses the affected API method according to
Retry-After, with a bounded retry count. Socket disconnects reconnect with bounded backoff. Shutdown cancels connection attempts and pending delivery.
Automated tests use local Slack HTTP/WebSocket and Codex services. Workspace installation, granted permissions, and Slack service behavior still require a real-workspace smoke test with your credentials.
Set command_prefix and/or command_suffix in [channel.slack] to distinguish apps in the same workspace. Both default to an empty string. For example, command_prefix = "ax-" and command_suffix = "-dev" register /ax-sessions-dev, /ax-status-dev, /ax-agentix-dev and the bootstrap /ax-claim-dev. Use lowercase letters, digits, _ and -; the resulting slash command must fit Slack’s 32-character limit. Restart Agentix to synchronize the configured names.
Affixes apply to native Slack slash commands. Arguments and commands typed as ordinary DM text or inside the gateway remain unchanged: /ax-agentix-dev /sessions routes /sessions. With empty affixes the existing menu, including /agentix-status and /agentix-rename, stays the same. When changing an existing custom prefix or suffix, remove obsolete registrations from that app’s Slack manifest; Agentix preserves unrelated command names and cannot infer a previous custom namespace.