Session & Topic Model
In botmux, a session = one running AI coding CLI process (such as Claude Code or Codex) + its context. Every message you send lands in some session.
Questions like "why does every @ feel like starting over" or "why can't a new group see earlier chat" all come down to which session a message landed in. This page explains that, and how to start, continue, and recover sessions.
At a glance: which session does a message go to
Sessions are per bot. If you @ two bots in the same topic, that's two independent sessions that don't share context.
Topic groups
Each new topic starts a new session; replying inside a topic continues that session. Topics are fully isolated, which makes them good for running several tasks in parallel.
Regular groups
How a regular group splits sessions depends on its "reply mode". Each bot has a default, and a single group can override it with /reply-mode:
- See the current mode:
/reply-mode; go back to the bot default:/reply-mode inherit. - Change the bot default in Dashboard "Bot config", or set
regularGroupReplyModeinbots.json(see bots.json).
To open a dedicated topic for a task in a regular group, use /t:
- Text before
/tis the topic title. After it you can add/repo(pick a repository),/model(pick a model), and the first task. - Bare
/tjust sets up the topic. If a repository must be picked, a repo picker card appears; otherwise it waits for your next task or/repoin the topic, without starting an empty session. /thopens a topic in the current group session's working directory;/twcreates a worktree first, then opens the topic.- Full syntax is in Slash Commands.
When "show a status card while a task runs" is off,
/t <text>still posts a visible reply first so Lark expands the topic right away; reactions are only progress hints.
Direct messages
By default your whole DM is one continuous session, so everything builds on earlier context. Each person's DM with the bot is separate. To change this:
The DM mode applies to all DMs with that bot, and maps to p2pMode in bots.json.
Common tasks: start, continue, recover

A session's lifecycle
Each turn gets a new status card, and the previous card freezes in its final state so you can look back. Card colors and buttons are in Live Streaming Cards; what triggers dormancy and whether a daemon restart loses context are in the FAQ.
Settings → Feishu Cards → Model queue notification is off by default for all bots on this machine through dashboard.modelQueueNotify. Changes take effect on the next card refresh. Turning it off preserves ordinary execution status and elapsed time. Only explicit capacity evidence activates the queue label; pending next-turn input and silence do not establish queueing.
The four names of a session
"I renamed it, so why didn't Lark change?" Because a session has four separate names:
About botmux session rename:
- It only works inside a session. It detects the current session automatically and takes no argument for picking another one, so it can't rename someone else's session.
- A good title shape is "type | subject", e.g.
Debug | payment-link timeout. - It only changes the botmux title, not the Lark group name.
When an agent renames the group on its own because the task moved to a new phase, it adds --proactive, which prevents repeated renames within 10 minutes.
Who can do what (three permission tiers)
- botmux commands need operate access by default. A few only need talk access, such as
/resume. - To let people with talk access run specific commands, add those commands to
canTalkDaemonCommandsinbots.json.
With these tiers you can safely add the bot to an on-call group: everyone can ask, but only admins can change session state, and a stray click from someone else won't break the session. Full rules (quotas, expiry, "joining a group ≠ being authorized", block list, grant request cards) are in Permissions & Access.
Common confusions
- Every @ feels like starting over: in a topic group, a new topic is a new session. To keep going, reply in the same topic. In a regular group set to
new-topic, every @ also opens a new session; check with/reply-mode. - A new session doesn't know what was said earlier in the group: new sessions start blank. Just tell it "look at the earlier chat history" (the bot needs permission to read group messages, see FAQ). An admin can also run
/context-sharing onin the group, so the bot automatically catches up on group messages it missed whenever it's @-ed; see Multi-Bot Collaboration. - Switching to another CLI while keeping context: not possible. CLIs don't share session history, so there's no lossless switch. To change CLIs, start a new bot or session and have the old bot write a handoff summary first.
/relaymoves the same session to another group, and/adoptbrings an existing local CLI session into Lark; neither changes the CLI.
Next: Permissions & Access · Mention Policy · Slash Commands · Relay
