Slash Commands
Just send these commands directly in a topic, and the daemon intercepts and handles them. Only the allowlisted commands in the passthrough section are forwarded verbatim to the underlying CLI; any other /xxx the daemon doesn't recognize is treated as ordinary conversation text and relayed as a normal message. Send /help anytime to view the full list.
📌 Session Management
/sessions card preview:

See Session & Topic Model for the repository-picker and pinned-directory branches of bare /t.
The header directives:
/repo <path|project name>— pin the repository directly, skipping the picker card. Note it takes exactly one token: quote a path containing spaces, as in/repo "~/Code/my project"./repo(no argument) — start right away in the default working directory, the same as the picker card's start-directly button./repo wt <path|project name> [branch]— create a fresh worktree on that repository (off the remote default branch) and start the session inside it. The branch may be omitted (auto-named from the title / first task); when given, it is only taken from the next word on the same line as the repo that looks like a branch name (ci/temp_splitand the like), so a Chinese first task is never swallowed, but start a latin first task on a new line. An invalid branch name or an existing target directory is rejected before the topic is opened; if git itself fails, the topic exists and the session waits in repo selection. Resending while creation is still running is told to wait; after failure, send/repo <path|project name>or/repo wt <repo> [branch]in the topic — the earlier message stays queued./model <model>— the model to launch with this time. Only available on CLIs that can actually carry a model in their launch arguments; the rest reject it rather than ignoring it silently./effort <level>— reasoning effort (low/medium/high/xhigh/max/ultra), validated against the model this launch will actually use.
The whole message can be written on one line or split across lines — the result is identical:
With no first task (e.g. /t /repo botmux), the CLI boots idle and waits for your next message instead of answering an empty turn.
A few boundaries:
- A header only takes effect on the first message of a new topic. To change repository/model/reasoning effort inside a running topic, send
/repo,/modelor/efforton their own; use/renameto change the title. - The header's
/repo wtdoes not accept the numeric form (numbers only mean something on the picker card); the in-session/repo wt <N|project name> [branch]still does. - A standalone mid-session
/repostill takes the rest of the line, unlike the single-token rule inside the header.
Codex capacity recovery is off by default. Administrators can enable it with /botconfig set codexCapacityRecovery on and disable it with /botconfig set codexCapacityRecovery off. When enabled, managed Codex and Codex App Lark sessions automatically continue explicit model-capacity failures (server_overloaded) after 15 seconds and, if needed, another 45 seconds. Each continuation appends a recovery input to the native session (at most two per task); these inputs may remain in model context, and disabling recovery does not delete history. An opted-out pending recovery is saved as cancelled with one notice, so re-enabling recovery or restarting does not revive that old task. Detection is not specific to modelhub and does not guarantee a quick recovery. Continuations resume existing progress instead of replaying the original task. New input, /stop, or closing the session cancels the previous recovery. After a process restart, pending or unconfirmed recovery stops and requires manual continuation. Already running work can still deliver a successful result, but a late capacity failure will not trigger another automatic continuation, avoiding replay of a cancellation that could not be saved. After two unsuccessful continuations, the failure card offers a manual retry. Generic 503, stream, authentication and rate-limit errors retain their existing behavior, as do adopted, HTTP and meeting-receiver sessions.
Rename a session, pick a CLI for a new session (/rename, /cli)
Both are available by default and need operate permission (admins / allowedUsers, or opened up through canTalkDaemonCommands).
/rename <title>: send it in an existing session to rename the Botmux session (the Dashboard and the/sessionslist follow); a running Codex / Claude Code session also gets its native session name updated. The Lark group and topic names don't change./rename(no title): by default you get the usage reply. Turn on "Let the CLI name the session on a bare /rename" under Dashboard → Bot config → Slash commands (bareRenamePassthroughinbots.json, or/botconfig set bareRenamePassthrough on), and in a Claude Code session (adopted sessions included) the bare/renamegoes to Claude as is, and Claude names the session from the conversation. Only Claude's own session name changes; the Botmux session title stays. If Claude Code isn't running you get a note that it can't name the session; other CLIs still get the usage reply./cli <cliId>: picks the CLI only for a session whose CLI hasn't started yet — for example, send/cli codexas the first message of a new topic, then send the task, and that session runs on Codex while the bot's default CLI stays the same. ForcliIdvalues see Supported CLIs. Program names and short aliases work too, in any case:/cli ccor/cli claudepicks Claude Code,/cli ompOh My Pi,/cli agyAntigravity. A fullcliIdalways wins, so/cli codexpicks Codex rather than Codex App, which also runscodex. When an alias names several CLIs (traeis both TRAE CLI generations) nothing is picked and the reply lists the candidates to send instead. A bare/clilists every CLI you can pick and its aliases. It is refused when the session already has history or a running CLI, for adopted sessions, for queued sessions, when the bot setsenv, when it uses the Riff backend, when you pickriff, or when the chosen CLI doesn't work with the bot's zero prompt injection (promptInjection: "none") orcodexRpcInput./cliis not listed in/help.
Group manager (Agent tool)
In a regular group, mention the target bot and ask it to run botmux manager set, botmux manager clear, or botmux manager status. The built-in botmux-chat-manager skill calls session-scoped IPC; this is not a daemon /manager slash command.
Off by default, enabled per bot: turn on "Group manager (default responder)" under Dashboard, bot configuration, session & mention policy (or /botconfig set chatManagerEnabled on). Only then does the bot expose the in-session tool and allow set. Turning it off stops un-@ answering and blocks set, but it never changes the group name or description; clear and status stay available and the saved manager record is kept (re-enabling restores it).
Mutations require the current human sender to explicitly authorize the action and belong to the target bot's administrator allowlist. A session owner, bot, scheduled task or stale turn is not a substitute. Only the current regular group is supported, excluding automatically managed session groups.
Managers answer talk-authorized top-level messages without a mention, yielding when another member is addressed (@all is not a handoff). The bot name is appended to the group title; clearing preserves manual renames. Existing ambient, never and reply-mode settings remain independent. Manager ownership is a group-level handoff, not a new mention mode or a guarantee that no other bot replies.
Whether manager-answered messages open a topic: off by default, so a top-level message the manager answers without an @ still gets a flat reply. In a regular group whose reply mode is shared, turn on "Open a topic for group-manager messages" in the same Dashboard section (or /botconfig set chatManagerSharedTopic on) to put the reply in a topic under that message, the same as a top-level message that @-mentions the bot. It is still the one group session; Group manager must be on; other reply modes are unaffected. Whether follow-ups inside that topic need an @ still follows the group @ policy: with the default "Require @" they do, while "No @ inside topics", "No @ anywhere" or "No @, yield" allow mention-free follow-ups.

Clear the old manager before setting the new one. Each manager-specific mention-free decision verifies the remote description marker with no stale fallback and requires local administrator opt-in. Description overflow is rejected without truncating human text.
Lark has no cross-host conditional writes: concurrent claims are not strongly consistent. After network failures or chat_update_unconfirmed, inspect status before retrying. Local records are stored under chat-managers/ in the data directory with mode 0600; include them in backups.
💬 Reply Mode (/reply-mode)
Controls how the bot opens a session when @mentioned. No argument (or status) shows the current mode; changing it needs canOperate, viewing needs canTalk. In group chats you must @ the target bot (in multi-bot groups, @ the specific bot). Only regular groups and 1:1 DMs are supported; topic groups need no setting (they're already topics) and the command is rejected there.
DM (1:1) — the mode applies to all of this bot's DMs (bot-level global config, not per-chat), but different users' DMs with the bot still keep isolated sessions. The modes are chat / topic / group (new-topic is a compat alias of topic):
shared / chat-topic rely on native group topics and are rejected in DMs.
Regular groups — how top-level @mentions open sessions (per-chat override, higher priority than the dashboard default):
The group-level setting overrides the dashboard "Bot Config → Regular Group Mode" default. An explicit setting is kept as an override even when it equals the current default (later default changes do not affect this group); use /reply-mode inherit to follow the default again. You can also pick it per bot in the dashboard under "Groups → Manage". Setting a new mode requires confirming the chat is a regular group; status and clearing are not gated.
/substitute [status|on|off] — show or toggle substitute mode for the current group (owner-only to change).
📢 Mention Policy (/mention-mode, regular groups only)
/mention-mode always|topic|never|ambient switches this chat's policy; /mention-mode status (or no argument) reports it. Regular groups only: DMs never need @, and topic groups and /group session groups reject the command. Querying needs only talk access; changing needs operate rights (allowedUsers).
always: @ required to get an answer (default);topic: replies inside the bot's own topics skip @;never: no @ required anywhere in the group;ambient: no @ required, but the bot yields when a message explicitly @-mentions someone else.- Skipping @ never skips the permission gate, and a set of no-@ exceptions still applies (in-topic replies, substitute triggers, the message listener, and more) — see Mention Policy for the full semantics.
📑 Chat Tabs
Built-in Lark tabs are read-only through OpenAPI, though they must still be included when sorting. If the chat only allows its owner and administrators to manage tabs, the bot also needs that chat-level privilege.
AI agents and background scripts should use the CLI instead of sending a slash command into the chat:
The CLI resolves the bot and chat from the current BOTMUX_SESSION_ID. Use --session-id outside the current process tree or --chat-id to override the destination. add is idempotent by URL: an existing page tab is reused and renamed when needed. This works for merge requests, project boards, release pages, and other automation scenarios. Background callers can also use botmux tabs list|update|remove|sort.
Change Reasoning Effort in a Codex App Session
Send /effort low|medium|high|xhigh|max|ultra in an existing Codex App session. Available levels are validated against the current model's advertised capabilities. The command saves settings for future turns without adding a model message or interrupting the task.
Updating the active turn requires explicitly enabling the experimental Codex step_model_switching feature. In the verified Codex 0.160 / 0.162.1 versions, it is UnderDevelopment and off by default; Botmux does not enable it automatically. To opt in, merge the following into the CODEX_HOME/config.toml actually used by this session's app-server, then use it after the next app-server start (if [features] already exists, add or update only this key):
With the feature disabled, commands sent during a task still save future-turn settings and explicitly report why the active turn was not updated. A completed or unavailable target turn produces a separate notice. Only an applied response confirms that the server accepted the active-turn update; requests already issued keep their original parameters, and the turn may have no further inference steps.
Change reasoning effort in a Codex CLI session
Send /effort low|medium|high|xhigh|max|ultra in an existing local Codex CLI session. Botmux drives the native /model menu, keeps the current model, and selects the level for this session only. After native confirmation, it saves the session launch preference. The receipt explicitly says next turn only; the running turn keeps its original effort, even when step_model_switching is enabled.
This supports managed local PTY / tmux sessions with the native s session menu action and thread_settings_applied receipts (verified with Codex 0.162.1). RPC input, remote backends, wrappers, adopted sessions, sandbox and read isolation are excluded. Drafts, other menus, conflicting input and unrecognized screens are rejected without clearing the composer or restarting the task. You can still use /model manually.
For Claude Code and other CLIs, /effort continues to follow the passthrough rules below.
🔀 Passthrough to the Underlying CLI
/compact /model /clear /plugin /usage /new /context /cost /mcp /diff /code-review /security-review /review /btw /effort /fast — delivered literally to the underlying CLI and handled by its built-in commands (except Codex CLI / App /effort, described above).
Riff has no passthrough surface: Riff has no local CLI, so the slash commands above are not delivered as keystrokes. They are wrapped as a single normal message that becomes one remote task, and the command text never reaches a slash parser. Sending /compact, /model, etc. (including entries from customPassthroughCommands) in a Riff session therefore behaves like an ordinary chat message instead of being split into multiple remote tasks.
/fast is Codex-specific: it toggles Codex's native service tier, and the streaming card shows a read-only ⚡ <tier> badge reflecting whatever tier Codex actually runs. On RPC-input sessions or the Mojo backend, /fast still goes through the passthrough branch and is rejected fail-closed with a clear notice rather than silently applying. On the Riff backend it follows the paragraph above: /fast is not a passthrough command and is wrapped as an ordinary message that becomes one remote task, so it does not switch the tier either.
Some CLIs also declare adapter-default passthrough commands: Claude Code, Codex, Seed, Relay and TRAE CLI (traex) default-allow /goal, so a new topic whose first message is /goal ... will start/select the repository first and then send /goal ... to the CLI literally. The subcommands and behavior of /goal depend on the CLI version you run.
To allow more commands through, configure customPassthroughCommands for that bot (e.g. ["/export"]) to extend beyond the allowlist above as needed. Entries that would shadow a botmux daemon command (such as /status, /help, /cd) are automatically dropped — daemon commands always keep their own semantics and cannot be overridden via passthrough. You can also edit it in Dashboard → Bot Config → Slash commands → Extra passthrough commands: the top lists the commands the current CLI already passes through by default, and below you add or remove extra commands one by one (Enter, comma or Tab creates an entry; you can also paste several at once). Enter only the command name here and send arguments with the command in the conversation; extra commands are passed through only to a session whose CLI is running, and do not cold-start a session in a new topic the way /goal does.
Cascading several passthrough commands in one message (inside a running session): put one passthrough command per line, optionally followed by a task body, and botmux sends them in order, waiting for the CLI to become idle between items —
Rules: only a leading run of passthrough lines forms a cascade (a botmux command such as /cd or an unknown /xxx inside that run makes the whole message ordinary text, as today); the body starts at the first line not beginning with /, and any later /xxx is part of the body; a single line such as /model opus then continue is still sent verbatim as one line. The idle wait is capped at 120 s, after which the remaining items are sent immediately with a notice. Remote sandbox backends (riff / mojo) and adopted external sessions do not support cascades and reply "send them one by one"; messages with attachments are not split either.
Claude Code's /btw: side answers come back to the topic
Send /btw <question> in a Claude Code session and the command goes to Claude Code as is; the side answer it shows in a terminal overlay is read by botmux, posted back to the topic as "💬 /btw side answer", and the overlay is closed so the main task carries on. On by default, nothing to configure. Claude Code only, and not for adopted sessions or remote backends such as Riff / Mojo; long answers are truncated, with the full text in the web terminal.
🧩 View Available Commands
/list-slash-command (alias /slash): lists the currently available slash commands in a card, in four sections —
- botmux's fixed passthrough allowlist;
- commands default-allowed by the current CLI adapter;
- commands this bot custom-allows via
customPassthroughCommandsin bots.json; - custom commands / skills / plugins auto-discovered from the
.claudedirectory (project-level +~/.claude+ plugin cache), shown in a paginated "command | description" table, with a note of any detected MCP server names.
Permissions are the same as /help, and it doesn't occupy a session slot.
Dashboard's Bot Config → Security → Slash commands section also has an optional native Lark command panel (see the next section, Get botmux commands when you type / in Lark, for how to turn it on). It lists botmux's own commands (including aliases, derived directly from the command registry) as candidates and marks each entry as synced, missing, or outdated on Lark; users decide what to register with each row's Sync action. Commands that only exist remotely are shown too and can be deleted one at a time. Sync all to Lark is an explicit additive operation: it creates missing entries and updates descriptions, but never deletes implicitly. CLI passthrough commands (/compact, /model, …) are not candidates yet, because support differs across CLIs and input backends.
The panel needs the optional scopes application:app_slash_command:read / application:app_slash_command:write. They are not part of the default scope manifest and the startup self-check never tops them up automatically; when they are missing, or the tenant is not in Lark's gated rollout (desktop 7.70+ and the FG allowlist), the panel only shows "unavailable" plus grant links, and every other bot feature keeps working. The native / panel may take about five minutes to refresh in Lark clients. Working-directory .claude discoveries, skills, plugins, and MCP prompts are not stable app-wide capabilities, so they remain visible only in botmux's /slash card and are not registered remotely.
⌨️ Get botmux commands when you type / in Lark
Typing / in a Lark chat can show botmux's commands with hints and completion. This is off by default: the commands first have to be registered on the Lark app, one bot at a time.
- Grant the app two optional scopes: Lark developer console → (this bot's app) → Permissions, request
application:app_slash_command:readandapplication:app_slash_command:write, then publish an app version. They aren't in botmux's default scope manifest, and the startup self-check won't add them for you. - Sync the commands in the Dashboard: Bot Config → pick the bot → Security → Slash commands → Native Lark command panel. It lists botmux's own commands (aliases included), each marked synced / missing / outdated. Click Sync all to Lark to register everything, or Sync on individual rows.
- Wait for the client to refresh: Lark clients take about five minutes to pick up the change; after that, typing
/in a chat with this bot shows them.
Notes:
- This is a gated Lark capability: it needs desktop 7.70 or later and the tenant on Lark's FG allowlist. Without the scopes or outside the rollout, the panel only shows "unavailable" plus grant links, and the bot's other features keep working.
- Only botmux's own commands are registered. Passthrough commands such as
/compactand/model, and custom commands or skills discovered under.claude, are not; use the/slashcard for those. - Sync all to Lark only adds and updates, never deletes. Commands that exist only on Lark are marked as remote-only; delete them one by one with Delete if needed.
- core-only (
apiOnly) bots have no Lark connection and can't use the panel.
📡 Session Onboarding
See Session Adopt.
🔐 User Authorization
Basic authorization requires the app to enable im:message:readonly, im:resource, and offline_access. If another operation returns missing_scope, request the names reported by the error with /login --scope ...; the app administrator must first enable those user permissions in the developer console. Resource visibility/access errors require access to that resource, not another /login.
🎭 Roles (Personas)
See Roles & Teams for details.
🔀 Session Relay (Regular Groups)
See Session Relay for details.
🛎️ On-Call (Group Chats)
/oncall bind <path> · /oncall unbind · /oncall status
🔑 Usage Authorization (owner / admins)
Layers, quotas, grant request cards, and the block list are documented in Permissions & Access. Note: being added to a group is not authorization — a restricted bot still accepts only listed members.
⚙️ Remote Config & Skills (owner-only)
Written and hot-applied — no restart needed.
🆕 One-Click New Session Group
/group <group name> (alias /g): automatically creates a new Lark group, invites you in, transfers ownership to you, and runs the entire group as a standalone CLI session. @botA @botB /g <group name> can add multiple bots into the new group at once.
Like session groups, the new group gets a gradient logo avatar by default, and without a name it is renamed from its first message.
With --start the text is a task: /g --start Investigate the wrong price names the group from the task, forwards the quote and attachments into it, and has the bot start working there; quote a message and send just /g --start to use the quoted message as the task. With groupCreation.autoStart: true a bot starts tasks by default; use /g --no-start <name> for a plain group once.
Add --role-profile <profile> to bootstrap the new group with reusable per-bot roles:
See One-Click Session Group for details.
📌 Upgrade an Ordinary Group to Project Mode
In the top-level ordinary-group chat, mention the Bot that should coordinate the project:
The addressed Bot becomes coordinator and the other bots in this group that are managed by the same Botmux host become workers. The command writes the same source of truth as Dashboard and immediately sends and pins the getting-started card. A settled project goal is not required; discussion can begin first in the top-level chat. Command-based enablement turns on “automatically enroll new bots” by default, so newly joined bots managed by the same host enter the worker allowlist independently of the auto-start-on-join setting.
On every project turn, the coordinator receives Botmux's fixed project-state protocol: read durable state first, then persist material changes to the goal, phase, current work, remaining plan, blockers, or milestones. This protocol is injected separately from custom Roles, so Role wording and once-only Role injection cannot disable it. On first initialization, Botmux sends and pins a fresh formal project card at the current point in the timeline, then unpins the getting-started guide; later progress updates patch the formal card in place.
@bot /project status: show the coordinator, workers, and whether a project has started.@bot /project roles: Reply in the current group with a focused role card for this project’s coordinator and workers; only the admin who opened the card can operate it. Saving reuses the per-chat/rolefiles and follows the bot’s existing injection policy: every-turn mode applies on the next message, while once mode applies after a new or rebuilt session.@bot /project disable: leave project-group mode; an unused guide is unpinned, while existing project state is retained for a later re-enable.
The command works only in ordinary groups and only for the Bot's owner/allowedUsers. Repeating enable preserves any worker subset and auto-enrollment policy already curated in Dashboard. Dashboard can disable “automatically enroll new bots”; when disabled, the explicit worker list remains unchanged. Dashboard also lists the same project agents and deep-links to their group-role editors; both entry points share one role source of truth.
🧠 Group Context Sharing
In a real Lark group, mention any bot managed by this deployment:
The switch is group-wide and off by default. Once enabled, bots managed by this deployment passively retain published messages from the group. A bot that was not mentioned stays asleep. On its next activation under the existing mention policy, it receives attributed background it missed. The switch does not change mention routing or create a model turn or session merely to deliver background.
Only a human owner/member of that bot's allowedUsers can inspect or change the switch; ordinary talk grants and other bots do not qualify. DMs and API virtual sessions are unsupported. Sessions configured with promptInjection=none explicitly do not receive automatic background.
By default, injected background is bounded to 24,000 characters per turn, while stored group observations are retained for 30 days or 10,000 messages. Injected background counts toward the activated model's input tokens, but passive observation does not call a model. Scope is limited to published group messages and resource references; it excludes DMs, hidden reasoning, unpublished tool results, and private files. If platform backfill is incomplete because of history limits, permissions, or retention, the background carries an incomplete-range marker instead of presenting the gap as complete history.
status and successful enable responses also show a recall-event subscription diagnostic. Only a subscribed reason means the app configuration was verified to include im.message.recalled_v1; this does not promise 100% push delivery. update_submitted means an update was submitted but still requires publishing a new app version in Lark Developer Console. Unknown, unavailable-login, or stale results mean historical background may temporarily retain recalled messages; inspect that event subscription and retry. Disabling performs no subscription check or setup action.
📄 Feishu Doc Comment Entry
/watch-comment: watch Feishu doc comments, bind them to an AI session, and post replies back into their threads; supports <doc link> [--dir <path>] [--all|--mentions-only] and list/off. /subscribe-lark-doc keeps the original per-file Feishu API subscription flow. See Feishu Doc Comment Entry for details.
🔧 Workflow (orchestration, experimental)
The old
/template run|cancelcommands are retired; sending/templatenow returns a retirement notice.
See Workflow for details.
👥 Multi-Bot Collaboration
Rules for /invite:
- Only this bot's admins (
allowedUsers) can use it, and the message must @ this bot. It does not work in DMs. - Names are resolved against the local and team rosters. When a name matches several bots, botmux does not guess and asks you to use
--app; it also suggests--appwhen neither roster has the name. - Bots already in the group are skipped and listed in the reply.
To see which bots in the current group you can collaborate with: botmux bots list.
⏰ Scheduling & ❓ Help
/schedule ... (see Scheduled Tasks) · /help (shows the full list inside the topic)
